Changeset 874063
- Timestamp:
- 03/12/2014 02:40:46 PM (12 years ago)
- Location:
- pricemesh
- Files:
-
- 10 edited
- 1 copied
-
tags/1.3 (copied) (copied from pricemesh/trunk)
-
tags/1.3/admin/pricemesh-admin.php (modified) (3 diffs)
-
tags/1.3/pricemesh-base.php (modified) (1 diff)
-
tags/1.3/pricemesh.php (modified) (1 diff)
-
tags/1.3/public/pricemesh-public.php (modified) (3 diffs)
-
tags/1.3/readme.txt (modified) (2 diffs)
-
trunk/admin/pricemesh-admin.php (modified) (3 diffs)
-
trunk/pricemesh-base.php (modified) (1 diff)
-
trunk/pricemesh.php (modified) (1 diff)
-
trunk/public/pricemesh-public.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pricemesh/tags/1.3/admin/pricemesh-admin.php
r866890 r874063 215 215 register_setting($group, $option); 216 216 217 //debug 218 $option = "pricemesh_option_debug"; 219 $option_name = "Hinweise und Warnungen anzeigen"; 220 $option_callback = "settings_basic_debug_callback"; 221 add_settings_field( 222 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 223 ); 224 register_setting($group, $option); 225 226 //----------------------------------------------------------------- 227 // Styling Section 228 //----------------------------------------------------------------- 229 $section = "pricemesh_section_styling"; 230 $section_name = "Design"; 231 $section_callback = "settings_section_styling_callback"; 232 add_settings_section( 233 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug 234 ); 235 236 //theme 237 $option = "pricemesh_option_theme"; 238 $option_name = "Theme"; 239 $option_callback = "settings_styling_theme_callback"; 240 add_settings_field( 241 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 242 ); 243 register_setting($group, $option); 244 245 //stylesheet 246 $option = "pricemesh_option_stylesheet"; 247 $option_name = "Stylesheet"; 248 $option_callback = "settings_styling_stylesheet_callback"; 249 add_settings_field( 250 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 251 ); 252 register_setting($group, $option); 253 254 //----------------------------------------------------------------- 255 // Config Section 256 //----------------------------------------------------------------- 257 $section = "pricemesh_section_config"; 258 $section_name = "Konfiguration"; 259 $section_callback = "settings_section_config_callback"; 260 add_settings_section( 261 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug 262 ); 263 264 //initial_items 265 $option = "pricemesh_option_initial_items"; 266 $option_name = "Angezeigte Produkte"; 267 $option_callback = "settings_config_initial_items_callback"; 268 add_settings_field( 269 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 270 ); 271 register_setting($group, $option); 272 273 //disclaimer 274 $option = "pricemesh_option_disclaimer"; 275 $option_name = "Disclaimer"; 276 $option_callback = "settings_config_disclaimer_callback"; 277 add_settings_field( 278 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 279 ); 280 register_setting($group, $option); 281 282 //stock 283 $option = "pricemesh_option_stock"; 284 $option_name = "Versandinfo zeigen"; 285 $option_callback = "settings_config_stock_callback"; 286 add_settings_field( 287 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 288 ); 289 register_setting($group, $option); 290 291 //duplicates 292 $option = "pricemesh_option_duplicates"; 293 $option_name = "Duplikate filtern"; 294 $option_callback = "settings_config_duplicates_callback"; 295 add_settings_field( 296 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 297 ); 298 register_setting($group, $option); 299 300 //display 301 $option = "pricemesh_option_display"; 302 $option_name = "Anzeige"; 303 $option_callback = "settings_config_display_callback"; 304 add_settings_field( 305 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 306 ); 307 register_setting($group, $option); 217 308 218 309 //----------------------------------------------------------------- … … 271 362 echo "<input type='text' name='pricemesh_option_secret' value='$setting' class='regular-text'/>"; 272 363 if(empty($setting)){ 273 echo "<p class='description'>".__("Um die Suchfunktion zu nutzen, tragen Sie bitte d as Secretein.", $this->plugin_slug)."</p>";364 echo "<p class='description'>".__("Um die Suchfunktion zu nutzen, tragen Sie bitte den Secret Key ein.", $this->plugin_slug)."</p>"; 274 365 } 275 366 } … … 303 394 304 395 /** 396 * debug Callback 397 * @since 1.3.0 398 */ 399 public function settings_basic_debug_callback(){ 400 $opts = self::get_pricemesh_settings(); 401 $setting = $opts["debug"]; 402 if($setting == "on"){ 403 echo '<input type="checkbox" name="pricemesh_option_debug" value="on" checked>'; 404 }else{ 405 echo '<input type="checkbox" name="pricemesh_option_debug" value="on">'; 406 } 407 } 408 409 /** 410 * styling section Callback 411 * @since 1.3.0 412 */ 413 public function settings_section_styling_callback(){ 414 415 } 416 417 /** 418 * stylesheet Callback 419 * @since 1.3.0 420 */ 421 public function settings_styling_stylesheet_callback(){ 422 $opts = self::get_pricemesh_settings(); 423 $setting = $opts["stylesheet"]; 424 echo "<input maxlength='200' type='text' name='pricemesh_option_stylesheet' value='$setting' class='regular-text'/>"; 425 426 } 427 428 /** 429 * theme Callback 430 * @since 1.3.0 431 */ 432 public function settings_styling_theme_callback(){ 433 $opts = self::get_pricemesh_settings(); 434 $setting = $opts["theme"]; 435 436 $options = array("basic" => __("Standard")); 437 foreach($options as $value => $string) { 438 if($setting == $value){ 439 $checked = "checked"; 440 }else{ 441 $checked = ""; 442 } 443 echo "<p><label><input type='radio' name='pricemesh_option_theme' value='$value' $checked>$string</label></p>"; 444 } 445 446 } 447 448 /** 449 * config section Callback 450 * @since 1.3.0 451 */ 452 public function settings_section_config_callback(){ 453 } 454 455 /** 456 * initial_items Callback 457 * @since 1.3.0 458 */ 459 public function settings_config_initial_items_callback(){ 460 $opts = self::get_pricemesh_settings(); 461 $setting = $opts["initial_items"]; 462 $available_items = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); 463 464 echo "<select name='pricemesh_option_initial_items'>"; 465 foreach($available_items as $items){ 466 if($items == $setting){ 467 echo "<option selected>$items</option>"; 468 }else{ 469 echo "<option>$items</option>"; 470 } 471 } 472 echo "</select>"; 473 474 } 475 476 /** 477 * disclaimer Callback 478 * @since 1.3.0 479 */ 480 public function settings_config_disclaimer_callback(){ 481 $opts = self::get_pricemesh_settings(); 482 $setting = $opts["disclaimer"]; 483 $options = array("off" => __("Nicht anzeigen"), "top" => __("Oberhalb des Preisvergleichs"), "bottom" => __("Unterhalb des Preisvergleichs")); 484 foreach($options as $value => $string) { 485 if($setting == $value){ 486 $checked = "checked"; 487 }else{ 488 $checked = ""; 489 } 490 echo "<p><label><input type='radio' name='pricemesh_option_disclaimer' value='$value' $checked>$string</label></p>"; 491 } 492 } 493 494 /** 495 * stock Callback 496 * @since 1.3.0 497 */ 498 public function settings_config_stock_callback(){ 499 $opts = self::get_pricemesh_settings(); 500 $setting = $opts["stock"]; 501 if($setting == "on"){ 502 echo '<input type="checkbox" name="pricemesh_option_stock" value="on" checked>'; 503 }else{ 504 echo '<input type="checkbox" name="pricemesh_option_stock" value="on">'; 505 } 506 507 508 } 509 510 /** 511 * duplicates Callback 512 * @since 1.3.0 513 */ 514 public function settings_config_duplicates_callback(){ 515 $opts = self::get_pricemesh_settings(); 516 $setting = $opts["duplicates"]; 517 $options = array("off" => _("Nicht filtern"), "all" => _("Alle duplikate filtern (Händler darf nur einmal vorkommen)"), "same-price" => _("Bei gleichem Preis filtern (Händler darf nur einmal pro Preis vorkommen)")); 518 foreach($options as $value => $string) { 519 if($setting == $value){ 520 $checked = "checked"; 521 }else{ 522 $checked = ""; 523 } 524 echo "<p><label><input type='radio' name='pricemesh_option_duplicates' value='$value' $checked>$string<br></label></p>"; 525 } 526 527 } 528 529 /** 530 * display Callback 531 * @since 1.3.0 532 */ 533 public function settings_config_display_callback(){ 534 $opts = self::get_pricemesh_settings(); 535 $setting = $opts["display"]; 536 $options = array("always" => __("Preisvergleich immer anzeigen"), "has-products" => __("Preisvergleich nur anzeigen, wenn Produkte gefunden werden")); 537 foreach($options as $value => $string) { 538 if($setting == $value){ 539 $checked = "checked"; 540 }else{ 541 $checked = ""; 542 } 543 echo "<p><label><input type='radio' name='pricemesh_option_display' value='$value' $checked>$string</label></p>"; 544 } 545 } 546 547 548 549 /** 305 550 * 3rd party section Callback 306 551 * @since 1.0.1 -
pricemesh/tags/1.3/pricemesh-base.php
r866107 r874063 19 19 "token" => get_option("pricemesh_option_token", "demo-abcde-demo-12345-demo-abcde1234"), 20 20 "country" => get_option("pricemesh_option_country", "de"), 21 "initial_items" => get_option("pricemesh_option_initial_items", "5"), 22 "disclaimer" => get_option("pricemesh_option_disclaimer", "off"), 23 "stock" => get_option("pricemesh_option_stock", "on"), 24 "duplicates" => get_option("pricemesh_option_duplicates", "all"), 25 "display" => get_option("pricemesh_option_display", "always"), 26 "stylesheet" => get_option("pricemesh_option_stylesheet", ""), 27 "theme" => get_option("pricemesh_option_theme", "basic"), 28 "debug" => get_option("pricemesh_option_debug", "off"), 29 21 30 "wp_robot_integration" => get_option("pricemesh_option_wp_robot_integration", 0), 22 31 ); -
pricemesh/tags/1.3/pricemesh.php
r866890 r874063 4 4 Plugin URI: https://www.pricemesh.io/plugins/wordpress/ 5 5 Description: Mit diesem Plugin ist es möglich Wordpress um einen eigenen Preisvergleich zu erweitern. 6 Version: 1. 2.26 Version: 1.3 7 7 Author: pricemesh 8 8 Author URI: https://www.pricemesh.io -
pricemesh/tags/1.3/public/pricemesh-public.php
r866890 r874063 22 22 * @var string 23 23 */ 24 const VERSION = '1. 2.2';24 const VERSION = '1.3'; 25 25 26 26 /** … … 381 381 if($this->is_injection_needed()){ 382 382 $opts = self::get_pricemesh_settings(); 383 if(current_user_can('edit_post', get_post_meta($GLOBALS['post']->ID)) ){384 $debug = " true";383 if(current_user_can('edit_post', get_post_meta($GLOBALS['post']->ID)) && $opts["debug"]){ 384 $debug = "on"; 385 385 }else{ 386 $debug = " false";386 $debug = "off"; 387 387 } 388 388 echo "<script type='text/javascript'> … … 390 390 var pricemesh_country = '".$opts["country"]."'; 391 391 var pricemesh_pids = '".$opts["pids"]."'; 392 var pricemesh_debug = $debug; 393 var pricemesh_initialItems = 5; 392 var pricemesh_debug = '$debug'; 393 var pricemesh_initialitems = '".$opts['initial_items']."'; 394 var pricemesh_disclaimer = '".$opts["disclaimer"]."'; 395 var pricemesh_stock = '".$opts["stock"]."'; 396 var pricemesh_duplicates = '".$opts["duplicates"]."'; 397 var pricemesh_stylesheet = '".$opts["stylesheet"]."'; 394 398 var pricemesh_load = true; 395 var pricemesh_ is_wp = true;399 var pricemesh_plugin = 'wp'; 396 400 (function() { 397 401 var pricemesh = document.createElement('script'); pricemesh.type = 'text/javascript'; pricemesh.async = true; -
pricemesh/tags/1.3/readme.txt
r866890 r874063 4 4 Requires at least: 3.4 5 5 Tested up to: 3.8 6 Stable tag: 1. 2.26 Stable tag: 1.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.3 = 76 Es gibt nun zahlreiche Möglichkeiten das Design und das Verhalten des Preisvergleichs anzupassen. 77 * Es können nun eigene Stylesheets eingebunden werden 78 * Optional kann ein Disclaimer eingeblendet werden 79 * Die Anzahl der angezeigten Ergebnisse kann nun eingestellt werden 80 * Versandinformationen können nun ausgeblendet werden 81 * Filterung von Duplikaten 82 * Der Preisvergleich kann nun ausgeblendet werden, wenn keine Produkte gefunden werden 83 75 84 = 1.2.2 = 76 85 * Bugfix -
pricemesh/trunk/admin/pricemesh-admin.php
r866890 r874063 215 215 register_setting($group, $option); 216 216 217 //debug 218 $option = "pricemesh_option_debug"; 219 $option_name = "Hinweise und Warnungen anzeigen"; 220 $option_callback = "settings_basic_debug_callback"; 221 add_settings_field( 222 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 223 ); 224 register_setting($group, $option); 225 226 //----------------------------------------------------------------- 227 // Styling Section 228 //----------------------------------------------------------------- 229 $section = "pricemesh_section_styling"; 230 $section_name = "Design"; 231 $section_callback = "settings_section_styling_callback"; 232 add_settings_section( 233 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug 234 ); 235 236 //theme 237 $option = "pricemesh_option_theme"; 238 $option_name = "Theme"; 239 $option_callback = "settings_styling_theme_callback"; 240 add_settings_field( 241 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 242 ); 243 register_setting($group, $option); 244 245 //stylesheet 246 $option = "pricemesh_option_stylesheet"; 247 $option_name = "Stylesheet"; 248 $option_callback = "settings_styling_stylesheet_callback"; 249 add_settings_field( 250 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 251 ); 252 register_setting($group, $option); 253 254 //----------------------------------------------------------------- 255 // Config Section 256 //----------------------------------------------------------------- 257 $section = "pricemesh_section_config"; 258 $section_name = "Konfiguration"; 259 $section_callback = "settings_section_config_callback"; 260 add_settings_section( 261 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug 262 ); 263 264 //initial_items 265 $option = "pricemesh_option_initial_items"; 266 $option_name = "Angezeigte Produkte"; 267 $option_callback = "settings_config_initial_items_callback"; 268 add_settings_field( 269 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 270 ); 271 register_setting($group, $option); 272 273 //disclaimer 274 $option = "pricemesh_option_disclaimer"; 275 $option_name = "Disclaimer"; 276 $option_callback = "settings_config_disclaimer_callback"; 277 add_settings_field( 278 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 279 ); 280 register_setting($group, $option); 281 282 //stock 283 $option = "pricemesh_option_stock"; 284 $option_name = "Versandinfo zeigen"; 285 $option_callback = "settings_config_stock_callback"; 286 add_settings_field( 287 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 288 ); 289 register_setting($group, $option); 290 291 //duplicates 292 $option = "pricemesh_option_duplicates"; 293 $option_name = "Duplikate filtern"; 294 $option_callback = "settings_config_duplicates_callback"; 295 add_settings_field( 296 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 297 ); 298 register_setting($group, $option); 299 300 //display 301 $option = "pricemesh_option_display"; 302 $option_name = "Anzeige"; 303 $option_callback = "settings_config_display_callback"; 304 add_settings_field( 305 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section 306 ); 307 register_setting($group, $option); 217 308 218 309 //----------------------------------------------------------------- … … 271 362 echo "<input type='text' name='pricemesh_option_secret' value='$setting' class='regular-text'/>"; 272 363 if(empty($setting)){ 273 echo "<p class='description'>".__("Um die Suchfunktion zu nutzen, tragen Sie bitte d as Secretein.", $this->plugin_slug)."</p>";364 echo "<p class='description'>".__("Um die Suchfunktion zu nutzen, tragen Sie bitte den Secret Key ein.", $this->plugin_slug)."</p>"; 274 365 } 275 366 } … … 303 394 304 395 /** 396 * debug Callback 397 * @since 1.3.0 398 */ 399 public function settings_basic_debug_callback(){ 400 $opts = self::get_pricemesh_settings(); 401 $setting = $opts["debug"]; 402 if($setting == "on"){ 403 echo '<input type="checkbox" name="pricemesh_option_debug" value="on" checked>'; 404 }else{ 405 echo '<input type="checkbox" name="pricemesh_option_debug" value="on">'; 406 } 407 } 408 409 /** 410 * styling section Callback 411 * @since 1.3.0 412 */ 413 public function settings_section_styling_callback(){ 414 415 } 416 417 /** 418 * stylesheet Callback 419 * @since 1.3.0 420 */ 421 public function settings_styling_stylesheet_callback(){ 422 $opts = self::get_pricemesh_settings(); 423 $setting = $opts["stylesheet"]; 424 echo "<input maxlength='200' type='text' name='pricemesh_option_stylesheet' value='$setting' class='regular-text'/>"; 425 426 } 427 428 /** 429 * theme Callback 430 * @since 1.3.0 431 */ 432 public function settings_styling_theme_callback(){ 433 $opts = self::get_pricemesh_settings(); 434 $setting = $opts["theme"]; 435 436 $options = array("basic" => __("Standard")); 437 foreach($options as $value => $string) { 438 if($setting == $value){ 439 $checked = "checked"; 440 }else{ 441 $checked = ""; 442 } 443 echo "<p><label><input type='radio' name='pricemesh_option_theme' value='$value' $checked>$string</label></p>"; 444 } 445 446 } 447 448 /** 449 * config section Callback 450 * @since 1.3.0 451 */ 452 public function settings_section_config_callback(){ 453 } 454 455 /** 456 * initial_items Callback 457 * @since 1.3.0 458 */ 459 public function settings_config_initial_items_callback(){ 460 $opts = self::get_pricemesh_settings(); 461 $setting = $opts["initial_items"]; 462 $available_items = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); 463 464 echo "<select name='pricemesh_option_initial_items'>"; 465 foreach($available_items as $items){ 466 if($items == $setting){ 467 echo "<option selected>$items</option>"; 468 }else{ 469 echo "<option>$items</option>"; 470 } 471 } 472 echo "</select>"; 473 474 } 475 476 /** 477 * disclaimer Callback 478 * @since 1.3.0 479 */ 480 public function settings_config_disclaimer_callback(){ 481 $opts = self::get_pricemesh_settings(); 482 $setting = $opts["disclaimer"]; 483 $options = array("off" => __("Nicht anzeigen"), "top" => __("Oberhalb des Preisvergleichs"), "bottom" => __("Unterhalb des Preisvergleichs")); 484 foreach($options as $value => $string) { 485 if($setting == $value){ 486 $checked = "checked"; 487 }else{ 488 $checked = ""; 489 } 490 echo "<p><label><input type='radio' name='pricemesh_option_disclaimer' value='$value' $checked>$string</label></p>"; 491 } 492 } 493 494 /** 495 * stock Callback 496 * @since 1.3.0 497 */ 498 public function settings_config_stock_callback(){ 499 $opts = self::get_pricemesh_settings(); 500 $setting = $opts["stock"]; 501 if($setting == "on"){ 502 echo '<input type="checkbox" name="pricemesh_option_stock" value="on" checked>'; 503 }else{ 504 echo '<input type="checkbox" name="pricemesh_option_stock" value="on">'; 505 } 506 507 508 } 509 510 /** 511 * duplicates Callback 512 * @since 1.3.0 513 */ 514 public function settings_config_duplicates_callback(){ 515 $opts = self::get_pricemesh_settings(); 516 $setting = $opts["duplicates"]; 517 $options = array("off" => _("Nicht filtern"), "all" => _("Alle duplikate filtern (Händler darf nur einmal vorkommen)"), "same-price" => _("Bei gleichem Preis filtern (Händler darf nur einmal pro Preis vorkommen)")); 518 foreach($options as $value => $string) { 519 if($setting == $value){ 520 $checked = "checked"; 521 }else{ 522 $checked = ""; 523 } 524 echo "<p><label><input type='radio' name='pricemesh_option_duplicates' value='$value' $checked>$string<br></label></p>"; 525 } 526 527 } 528 529 /** 530 * display Callback 531 * @since 1.3.0 532 */ 533 public function settings_config_display_callback(){ 534 $opts = self::get_pricemesh_settings(); 535 $setting = $opts["display"]; 536 $options = array("always" => __("Preisvergleich immer anzeigen"), "has-products" => __("Preisvergleich nur anzeigen, wenn Produkte gefunden werden")); 537 foreach($options as $value => $string) { 538 if($setting == $value){ 539 $checked = "checked"; 540 }else{ 541 $checked = ""; 542 } 543 echo "<p><label><input type='radio' name='pricemesh_option_display' value='$value' $checked>$string</label></p>"; 544 } 545 } 546 547 548 549 /** 305 550 * 3rd party section Callback 306 551 * @since 1.0.1 -
pricemesh/trunk/pricemesh-base.php
r866107 r874063 19 19 "token" => get_option("pricemesh_option_token", "demo-abcde-demo-12345-demo-abcde1234"), 20 20 "country" => get_option("pricemesh_option_country", "de"), 21 "initial_items" => get_option("pricemesh_option_initial_items", "5"), 22 "disclaimer" => get_option("pricemesh_option_disclaimer", "off"), 23 "stock" => get_option("pricemesh_option_stock", "on"), 24 "duplicates" => get_option("pricemesh_option_duplicates", "all"), 25 "display" => get_option("pricemesh_option_display", "always"), 26 "stylesheet" => get_option("pricemesh_option_stylesheet", ""), 27 "theme" => get_option("pricemesh_option_theme", "basic"), 28 "debug" => get_option("pricemesh_option_debug", "off"), 29 21 30 "wp_robot_integration" => get_option("pricemesh_option_wp_robot_integration", 0), 22 31 ); -
pricemesh/trunk/pricemesh.php
r866890 r874063 4 4 Plugin URI: https://www.pricemesh.io/plugins/wordpress/ 5 5 Description: Mit diesem Plugin ist es möglich Wordpress um einen eigenen Preisvergleich zu erweitern. 6 Version: 1. 2.26 Version: 1.3 7 7 Author: pricemesh 8 8 Author URI: https://www.pricemesh.io -
pricemesh/trunk/public/pricemesh-public.php
r866890 r874063 22 22 * @var string 23 23 */ 24 const VERSION = '1. 2.2';24 const VERSION = '1.3'; 25 25 26 26 /** … … 381 381 if($this->is_injection_needed()){ 382 382 $opts = self::get_pricemesh_settings(); 383 if(current_user_can('edit_post', get_post_meta($GLOBALS['post']->ID)) ){384 $debug = " true";383 if(current_user_can('edit_post', get_post_meta($GLOBALS['post']->ID)) && $opts["debug"]){ 384 $debug = "on"; 385 385 }else{ 386 $debug = " false";386 $debug = "off"; 387 387 } 388 388 echo "<script type='text/javascript'> … … 390 390 var pricemesh_country = '".$opts["country"]."'; 391 391 var pricemesh_pids = '".$opts["pids"]."'; 392 var pricemesh_debug = $debug; 393 var pricemesh_initialItems = 5; 392 var pricemesh_debug = '$debug'; 393 var pricemesh_initialitems = '".$opts['initial_items']."'; 394 var pricemesh_disclaimer = '".$opts["disclaimer"]."'; 395 var pricemesh_stock = '".$opts["stock"]."'; 396 var pricemesh_duplicates = '".$opts["duplicates"]."'; 397 var pricemesh_stylesheet = '".$opts["stylesheet"]."'; 394 398 var pricemesh_load = true; 395 var pricemesh_ is_wp = true;399 var pricemesh_plugin = 'wp'; 396 400 (function() { 397 401 var pricemesh = document.createElement('script'); pricemesh.type = 'text/javascript'; pricemesh.async = true; -
pricemesh/trunk/readme.txt
r866890 r874063 4 4 Requires at least: 3.4 5 5 Tested up to: 3.8 6 Stable tag: 1. 2.26 Stable tag: 1.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.3 = 76 Es gibt nun zahlreiche Möglichkeiten das Design und das Verhalten des Preisvergleichs anzupassen. 77 * Es können nun eigene Stylesheets eingebunden werden 78 * Optional kann ein Disclaimer eingeblendet werden 79 * Die Anzahl der angezeigten Ergebnisse kann nun eingestellt werden 80 * Versandinformationen können nun ausgeblendet werden 81 * Filterung von Duplikaten 82 * Der Preisvergleich kann nun ausgeblendet werden, wenn keine Produkte gefunden werden 83 75 84 = 1.2.2 = 76 85 * Bugfix
Note: See TracChangeset
for help on using the changeset viewer.