Plugin Directory

Changeset 963908


Ignore:
Timestamp:
08/11/2014 02:48:21 PM (12 years ago)
Author:
pricemesh
Message:

new features added, wp 3.9.2 support

Location:
pricemesh/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pricemesh/trunk/admin/pricemesh-admin.php

    r917041 r963908  
    235235        //theme
    236236        $option = "pricemesh_option_theme";
    237         $option_name = "Theme";
     237        $option_name = "Theme (Pro)";
    238238        $option_callback = "settings_styling_theme_callback";
    239239        add_settings_field(
     
    244244        //stylesheet
    245245        $option = "pricemesh_option_stylesheet";
    246         $option_name = "Stylesheet";
     246        $option_name = "Stylesheet (Pro)";
    247247        $option_callback = "settings_styling_stylesheet_callback";
    248248        add_settings_field(
     
    261261        );
    262262
     263        //name
     264        $option = "pricemesh_option_name";
     265        $option_name = "Titel (Pro)";
     266        $option_callback = "settings_config_name_callback";
     267        add_settings_field(
     268            $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     269        );
     270        register_setting($group, $option);
     271
    263272        //initial_items
    264273        $option = "pricemesh_option_initial_items";
     
    308317        //title
    309318        $option = "pricemesh_option_title";
    310         $option_name = "Produkttitel";
     319        $option_name = "Produktname";
    311320        $option_callback = "settings_config_title_callback";
    312321        add_settings_field(
     
    314323        );
    315324        register_setting($group, $option);
     325
     326
    316327
    317328        //-----------------------------------------------------------------
     
    448459
    449460    /**
     461     * name Callback
     462     * @since    1.5
     463     */
     464    public function settings_config_name_callback(){
     465        $opts = self::get_pricemesh_settings();
     466        $setting = $opts["name"];
     467        echo "<input maxlength='40' type='text' name='pricemesh_option_name' value='$setting' class='regular-text'/>";
     468
     469    }
     470
     471    /**
    450472     * theme Callback
    451473     * @since    1.3.0
     
    454476        $opts = self::get_pricemesh_settings();
    455477        $setting = $opts["theme"];
    456 
    457         $options = array("basic" => __("Standard"));
     478        $options = array("basic" => __("Standard"), "dark" => __("Dark"));
     479        //$options = array("basic" => __("Standard"));
    458480        foreach($options as $value => $string) {
    459481            if($setting == $value){
  • pricemesh/trunk/admin/views/admin.php

    r866107 r963908  
    44
    55    <form method="POST" action="options.php">
     6        <?php echo _("Eine Übersicht über alle Einstellungen gibt es <a target='_blank' href='https://www.pricemesh.io/de/hilfe/einstellungen/'>hier</a>"); ?>
    67        <?php settings_fields('pricemesh-settings-group');  //pass slug name of page, also referred
    78        //to in Settings API as option group name
  • pricemesh/trunk/pricemesh-base.php

    r892911 r963908  
    2828            "debug" => get_option("pricemesh_option_debug", "off"),
    2929            "title" => get_option("pricemesh_option_title", "off"),
     30            "name" => get_option("pricemesh_option_name", ""),
    3031
    3132            "wp_robot_integration" => get_option("pricemesh_option_wp_robot_integration", 0),
  • pricemesh/trunk/public/pricemesh-public.php

    r942938 r963908  
    2222     * @var     string
    2323     */
    24     const VERSION = '1.4.2';
     24    const VERSION = '1.5';
    2525
    2626    /**
     
    398398                var pricemesh_stylesheet = '".$opts["stylesheet"]."';
    399399                var pricemesh_title = '".$opts["title"]."';
     400                var pricemesh_theme = '".$opts["theme"]."';
     401                var pricemesh_name = '".$opts["name"]."';
    400402                var pricemesh_load = true;
    401403                var pricemesh_plugin = 'wp';
  • pricemesh/trunk/readme.txt

    r942938 r963908  
    33Tags: affiliate, commerce, e-commerce, ecommerce, sales, sell, shop, shopping, widgets, wordpress ecommerce, amazon, preisvergleich, ads, advertising
    44Requires at least: 3.4
    5 Tested up to: 3.9.1
    6 Stable tag: 1.4.2
     5Tested up to: 3.9.2
     6Stable tag: 1.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434*   Preisvergleich innerhalb des Content oder als Widget in der Sidebar
    3535*   Fügt sich in jedes Template ein
    36 *   Keine teuren Themes, oder custom Templates erforderlich
     36*   Keine teuren Themes oder custom Templates erforderlich
    3737*   Einfach zu installieren und einzurichten
    3838
     
    60602. Im Wordpress Adminbereich anmelden
    61613. Das Plugin im 'Plugins' Menü aktivieren
    62 4. Im Adminmenü auf der linken Seite auf `Pricemesh Einstellungen` klicken und eigenes Token eintragen, oder Demo Token übernehmen
    63 5. ASIN, EAN, oder ISBN des Produktes zu einem Beitrag hinzufügen
     624. Im Adminmenü auf der linken Seite auf `Pricemesh Einstellungen` klicken und eigenes Token eintragen oder Demo Token übernehmen
     635. ASIN, EAN oder ISBN des Produktes zu einem Beitrag hinzufügen
    6464
    6565
     
    7272
    7373== Changelog ==
     74
     75= 1.5 =
     76* Dark Theme hinzugefügt
     77* Titel hinzugefügt
     78
    7479
    7580= 1.4.2 =
Note: See TracChangeset for help on using the changeset viewer.