Changeset 1001204
- Timestamp:
- 10/03/2014 11:36:13 AM (12 years ago)
- Location:
- pricemesh/trunk
- Files:
-
- 4 edited
-
admin/pricemesh-admin.php (modified) (2 diffs)
-
pricemesh-base.php (modified) (1 diff)
-
public/pricemesh-public.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pricemesh/trunk/admin/pricemesh-admin.php
r968899 r1001204 324 324 register_setting($group, $option); 325 325 326 //title 327 $option = "pricemesh_option_link_all"; 328 $option_name = "Link auf Händler und Preis"; 329 $option_callback = "settings_config_link_all_callback"; 330 add_settings_field( 331 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 332 ); 333 register_setting($group, $option); 334 326 335 327 336 … … 445 454 } 446 455 echo "<p><label><input type='radio' name='pricemesh_option_debug' value='$value' $checked>$string</label></p>"; 456 } 457 } 458 459 460 /** 461 * link_all Callback 462 * @since 1.5.2 463 */ 464 public function settings_config_link_all_callback(){ 465 $opts = self::get_pricemesh_settings(); 466 $setting = $opts["link_all"]; 467 $options = array("on" => __("An"), "off" => __("Aus")); 468 foreach($options as $value => $string) { 469 if($setting == $value){ 470 $checked = "checked"; 471 }else{ 472 $checked = ""; 473 } 474 echo "<p><label><input type='radio' name='pricemesh_option_link_all' value='$value' $checked>$string</label></p>"; 447 475 } 448 476 } -
pricemesh/trunk/pricemesh-base.php
r968899 r1001204 29 29 "title" => get_option("pricemesh_option_title", "off"), 30 30 "name" => get_option("pricemesh_option_name", ""), 31 "link_all" => get_option("pricemesh_option_link_all", "off"), 31 32 32 33 "wp_robot_integration" => get_option("pricemesh_option_wp_robot_integration", 0), -
pricemesh/trunk/public/pricemesh-public.php
r968899 r1001204 22 22 * @var string 23 23 */ 24 const VERSION = '1.5. 1';24 const VERSION = '1.5.2'; 25 25 26 26 /** … … 412 412 var pricemesh_theme = '".$opts["theme"]."'; 413 413 var pricemesh_name = '".$opts["name"]."'; 414 var pricemesh_link_all = '".$opts["link_all"]."'; 414 415 var pricemesh_load = true; 415 416 var pricemesh_plugin = 'wp'; -
pricemesh/trunk/readme.txt
r992395 r1001204 4 4 Requires at least: 3.4 5 5 Tested up to: 4.0 6 Stable tag: 1.5. 16 Stable tag: 1.5.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 = 1.5.1 = 76 * Das Händlerlogo und der Preis sind nun optional verlinkbar. 77 78 = 1.5.1 = 76 79 * Custom Post Types werden nun unterstützt 77 80
Note: See TracChangeset
for help on using the changeset viewer.