Plugin Directory

Changeset 892911


Ignore:
Timestamp:
04/14/2014 01:46:11 PM (12 years ago)
Author:
pricemesh
Message:

product title is a new optional feature

Location:
pricemesh/trunk
Files:
5 edited

Legend:

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

    r890488 r892911  
    301301        $option_name = "Anzeige";
    302302        $option_callback = "settings_config_display_callback";
     303        add_settings_field(
     304            $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     305        );
     306        register_setting($group, $option);
     307
     308        //title
     309        $option = "pricemesh_option_title";
     310        $option_name = "Produkttitel";
     311        $option_callback = "settings_config_title_callback";
    303312        add_settings_field(
    304313            $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     
    550559            }
    551560            echo "<p><label><input type='radio' name='pricemesh_option_display' value='$value' $checked>$string</label></p>";
     561        }
     562    }
     563
     564    /**
     565     * display Callback
     566     * @since    1.4
     567     */
     568    public function settings_config_title_callback(){
     569        $opts = self::get_pricemesh_settings();
     570        $setting = $opts["title"];
     571        $options = array("on" => __("Titel anzeigen"), "off" => __("Titel nicht anzeigen"));
     572        foreach($options as $value => $string) {
     573            if($setting == $value){
     574                $checked = "checked";
     575            }else{
     576                $checked = "";
     577            }
     578            echo "<p><label><input type='radio' name='pricemesh_option_title' value='$value' $checked>$string</label></p>";
    552579        }
    553580    }
  • pricemesh/trunk/pricemesh-base.php

    r890024 r892911  
    2727            "theme" => get_option("pricemesh_option_theme", "basic"),
    2828            "debug" => get_option("pricemesh_option_debug", "off"),
     29            "title" => get_option("pricemesh_option_title", "off"),
    2930
    3031            "wp_robot_integration" => get_option("pricemesh_option_wp_robot_integration", 0),
  • pricemesh/trunk/pricemesh.php

    r890024 r892911  
    44Plugin URI: https://www.pricemesh.io/plugins/wordpress/
    55Description: Mit diesem Plugin ist es möglich Wordpress um einen eigenen Preisvergleich zu erweitern.
    6 Version: 1.3.1
     6Version: 1.4
    77Author: pricemesh
    88Author URI: https://www.pricemesh.io
  • pricemesh/trunk/public/pricemesh-public.php

    r890488 r892911  
    2222     * @var     string
    2323     */
    24     const VERSION = '1.3.2';
     24    const VERSION = '1.4';
    2525
    2626    /**
     
    395395                var pricemesh_duplicates = '".$opts["duplicates"]."';
    396396                var pricemesh_stylesheet = '".$opts["stylesheet"]."';
     397                var pricemesh_title = '".$opts["title"]."';
    397398                var pricemesh_load = true;
    398399                var pricemesh_plugin = 'wp';
  • pricemesh/trunk/readme.txt

    r890488 r892911  
    44Requires at least: 3.4
    55Tested up to: 3.8.2
    6 Stable tag: 1.3.2
     6Stable tag: 1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 1.4 =
     76* Der Titel des Produktes kann nun optional ein- und ausgeblendet werden
     77
    7578= 1.3.2 =
    7679* Bugfix
     
    8184
    8285= 1.3 =
    83 Es gibt nun zahlreiche Möglichkeiten das Design und das Verhalten des Preisvergleichs anzupassen.
     86* Es gibt nun zahlreiche Möglichkeiten das Design und das Verhalten des Preisvergleichs anzupassen.
    8487* Es können nun eigene Stylesheets eingebunden werden
    8588* Optional kann ein Disclaimer eingeblendet werden
Note: See TracChangeset for help on using the changeset viewer.