Plugin Directory

Changeset 1837405


Ignore:
Timestamp:
03/10/2018 02:32:15 AM (8 years ago)
Author:
loganfive
Message:

Deploy from Git

Location:
thematic-maps/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • thematic-maps/trunk/admin/class-thematic-maps-admin.php

    r1834227 r1837405  
    134134    }
    135135   
     136    /**
     137     * Add a Setting link to WordPress plugin list page
     138     *
     139     * @since 1.0.2
     140     *
     141     * @return array
     142     */
     143    public function add_settings_link( $links ) {
     144
     145        $settings_link = '<a href="admin.php?page=' . $this->plugin_name . '">' . __( 'Settings', $this->plugin_name ) . '</a>';
     146        array_unshift( $links, $settings_link );
     147
     148        return $links;
     149    }
     150
    136151    public function tm_admin_menu() {
    137152        add_menu_page(
     
    270285        echo '<input type="text" name="' . $this->plugin_name . '_plugin[maps_apikey]" value="' . esc_attr($options['maps_apikey']) . '" maxlength="255" size="40"/>';
    271286        echo 'Get your API key at <a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">Google</a>';
    272         echo $messages[0];
    273287
    274288    }   
     
    300314            </select> <?php
    301315        }
    302         echo $messages[0];
    303316
    304317    }   
     
    314327        $options = get_option($this->plugin_name.'_plugin');
    315328        echo '<input type="text" name="' . $this->plugin_name . '_plugin[nf_field]" value="' . esc_attr($options['nf_field']) . '" maxlength="255" size="40"/>';
    316         echo $messages[0];
    317329    }   
    318330
     
    327339        $options = get_option($this->plugin_name.'_plugin');
    328340        echo '<input type="text" class="tm-color-picker" name="' . $this->plugin_name . '_plugin[ca_min_color]" value="' . esc_attr($options['ca_min_color']) . '" maxlength="7" size="10"/>';
    329         echo $messages[0];
    330341    }
    331342
     
    340351        $options = get_option($this->plugin_name.'_plugin');
    341352        echo '<input type="text" class="tm-color-picker" name="' . $this->plugin_name . '_plugin[ca_max_color]" value="' . esc_attr($options['ca_max_color']) . '" maxlength="7" size="10"/>';
    342         echo $messages[0];
    343353    }   
    344354
     
    353363        $options = get_option($this->plugin_name.'_plugin');
    354364        echo '<input type="text" class="tm-color-picker" name="' . $this->plugin_name . '_plugin[ca_default_color]" value="' . esc_attr($options['ca_default_color']) . '" maxlength="7" size="10"/>';
    355         echo $messages[0];
    356365    }   
    357366
  • thematic-maps/trunk/includes/class-thematic-maps.php

    r1834826 r1837405  
    8080            $this->version = THEMATIC_MAPS_VERSION;
    8181        } else {
    82             $this->version = '1.0.1';
     82            $this->version = '1.0.2';
    8383        }
    8484        $this->plugin_name = 'thematic_maps';
     
    173173        $this->loader->add_action( 'admin_menu', $plugin_admin, 'tm_admin_menu' );
    174174        $this->loader->add_action( 'admin_init', $plugin_admin, 'tm_settings_init' );
     175
     176        $this->loader->add_filter( 'plugin_action_links', $plugin_admin, 'add_settings_link' );
    175177    }
    176178
  • thematic-maps/trunk/readme.txt

    r1834826 r1837405  
    2121
    2222== Change Log ==
     23v1.0.2 = Added Settings link to WordPress plugin list page
    2324v1.0.1 = Plugin icon changed
    2425v1.0.0 - Initial Release
  • thematic-maps/trunk/thematic-maps.php

    r1834826 r1837405  
    22
    33/**
    4  * The plugin bootstrap file
    5  *
    6  * This file is read by WordPress to generate the plugin information in the plugin
    7  * admin area. This file also includes all of the dependencies used by the plugin,
    8  * registers the activation and deactivation functions, and defines a function
    9  * that starts the plugin.
     4 * Thematic MAps bootstrap file
    105 *
    116 * @link              https://github.com/garretthunter
    12  * @since             1.0.
     7 * @since             1.0.0
    138 * @package           Thematic_Maps
    149 *
     
    1712 * Plugin URI:        https://github.com/garretthunter/thematic-maps
    1813 * Description:       Displays a thematic map of the United States of America showing each state shaded in proportion to the measurement of a statistical variable, such as population density or per-capita income. Requires the <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a> plugin.
    19  * Version:           1.0.1
     14 * Version:           1.0.2
    2015 * Author:            Garrett Hunter
    2116 * Author URI:        https://github.com/garretthunter
     
    3631 * Rename this for your plugin and update it as you release new versions.
    3732 */
    38 define( 'THEMATIC_MAPS_VERSION', '1.0.1' );
     33define( 'THEMATIC_MAPS_VERSION', '1.0.2' );
    3934
    4035/**
Note: See TracChangeset for help on using the changeset viewer.