Changeset 1027326
- Timestamp:
- 11/17/2014 02:56:30 PM (11 years ago)
- Location:
- pricemesh/trunk
- Files:
-
- 5 edited
-
admin/pricemesh-admin.php (modified) (35 diffs)
-
admin/views/admin.php (modified) (1 diff)
-
admin/views/metabox.php (modified) (11 diffs)
-
public/pricemesh-public.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pricemesh/trunk/admin/pricemesh-admin.php
r1001204 r1027326 147 147 148 148 $this->plugin_screen_hook_suffix = add_options_page( 149 __('Pricemesh Einstellungen', $this->plugin_slug),149 __('Pricemesh Settings', $this->plugin_slug), 150 150 __('Pricemesh', $this->plugin_slug), 151 151 'manage_options', … … 169 169 //----------------------------------------------------------------- 170 170 $section = "pricemesh_section_auth"; 171 $section_name = "Token & Secret";171 $section_name = __("Token & Secret", $this->plugin_slug); 172 172 $section_callback = "settings_section_auth_callback"; 173 173 add_settings_section( 174 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug174 $section, $section_name, array($this, $section_callback),$this->plugin_slug 175 175 ); 176 176 177 177 //token 178 178 $option = "pricemesh_option_token"; 179 $option_name = "Token";179 $option_name = __("Token", $this->plugin_slug); 180 180 $option_callback = "settings_auth_token_callback"; 181 181 add_settings_field( 182 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section182 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 183 183 ); 184 184 register_setting($group, $option); … … 187 187 //secret 188 188 $option = "pricemesh_option_secret"; 189 $option_name = "Secret Key";189 $option_name = __("Secret Key", $this->plugin_slug); 190 190 $option_callback = "settings_auth_secret_callback"; 191 191 add_settings_field( 192 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section192 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 193 193 ); 194 194 register_setting($group, $option); … … 199 199 //----------------------------------------------------------------- 200 200 $section = "pricemesh_section_basic"; 201 $section_name = "Grundeinstellungen";201 $section_name = __("Base Settings", $this->plugin_slug); 202 202 $section_callback = "settings_section_basic_callback"; 203 203 add_settings_section( 204 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug204 $section, $section_name, array($this, $section_callback),$this->plugin_slug 205 205 ); 206 206 207 207 //country 208 208 $option = "pricemesh_option_country"; 209 $option_name = "Land";209 $option_name = __("Country", $this->plugin_slug); 210 210 $option_callback = "settings_basic_country_callback"; 211 211 add_settings_field( 212 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section212 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 213 213 ); 214 214 register_setting($group, $option); … … 216 216 //debug 217 217 $option = "pricemesh_option_debug"; 218 $option_name = "Hinweise und Warnungen";218 $option_name = __("Errors and Warnings", $this->plugin_slug); 219 219 $option_callback = "settings_basic_debug_callback"; 220 220 add_settings_field( 221 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section221 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 222 222 ); 223 223 register_setting($group, $option); … … 227 227 //----------------------------------------------------------------- 228 228 $section = "pricemesh_section_styling"; 229 $section_name = "Design";229 $section_name = __("Design", $this->plugin_slug); 230 230 $section_callback = "settings_section_styling_callback"; 231 231 add_settings_section( 232 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug232 $section, $section_name, array($this, $section_callback),$this->plugin_slug 233 233 ); 234 234 235 235 //theme 236 236 $option = "pricemesh_option_theme"; 237 $option_name = "Theme (Pro)";237 $option_name = __("Theme (Pro)", $this->plugin_slug); 238 238 $option_callback = "settings_styling_theme_callback"; 239 239 add_settings_field( 240 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section240 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 241 241 ); 242 242 register_setting($group, $option); … … 244 244 //stylesheet 245 245 $option = "pricemesh_option_stylesheet"; 246 $option_name = "Stylesheet (Pro)";246 $option_name = __("Stylesheet (Pro)", $this->plugin_slug); 247 247 $option_callback = "settings_styling_stylesheet_callback"; 248 248 add_settings_field( 249 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section249 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 250 250 ); 251 251 register_setting($group, $option); … … 255 255 //----------------------------------------------------------------- 256 256 $section = "pricemesh_section_config"; 257 $section_name = "Konfiguration";257 $section_name = __("Configuration", $this->plugin_slug); 258 258 $section_callback = "settings_section_config_callback"; 259 259 add_settings_section( 260 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug260 $section, $section_name, array($this, $section_callback),$this->plugin_slug 261 261 ); 262 262 263 263 //name 264 264 $option = "pricemesh_option_name"; 265 $option_name = "Titel (Pro)";265 $option_name = __("Title (Pro)", $this->plugin_slug); 266 266 $option_callback = "settings_config_name_callback"; 267 267 add_settings_field( 268 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section268 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 269 269 ); 270 270 register_setting($group, $option); … … 272 272 //initial_items 273 273 $option = "pricemesh_option_initial_items"; 274 $option_name = "Angezeigte Produkte";274 $option_name = __("Listed Products", $this->plugin_slug); 275 275 $option_callback = "settings_config_initial_items_callback"; 276 276 add_settings_field( 277 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section277 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 278 278 ); 279 279 register_setting($group, $option); … … 281 281 //disclaimer 282 282 $option = "pricemesh_option_disclaimer"; 283 $option_name = "Disclaimer";283 $option_name = __("Disclaimer", $this->plugin_slug); 284 284 $option_callback = "settings_config_disclaimer_callback"; 285 285 add_settings_field( 286 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section286 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 287 287 ); 288 288 register_setting($group, $option); … … 290 290 //stock 291 291 $option = "pricemesh_option_stock"; 292 $option_name = "Versandinfo";292 $option_name = __("Shipping", $this->plugin_slug); 293 293 $option_callback = "settings_config_stock_callback"; 294 294 add_settings_field( 295 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section295 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 296 296 ); 297 297 register_setting($group, $option); … … 299 299 //duplicates 300 300 $option = "pricemesh_option_duplicates"; 301 $option_name = "Duplikate filtern";301 $option_name = __("Duplicates", $this->plugin_slug); 302 302 $option_callback = "settings_config_duplicates_callback"; 303 303 add_settings_field( 304 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section304 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 305 305 ); 306 306 register_setting($group, $option); … … 308 308 //display 309 309 $option = "pricemesh_option_display"; 310 $option_name = "Anzeige";310 $option_name = __("Show Pricemesh", $this->plugin_slug); 311 311 $option_callback = "settings_config_display_callback"; 312 312 add_settings_field( 313 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section313 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 314 314 ); 315 315 register_setting($group, $option); … … 317 317 //title 318 318 $option = "pricemesh_option_title"; 319 $option_name = "Produktname";319 $option_name = __("Product Title", $this->plugin_slug); 320 320 $option_callback = "settings_config_title_callback"; 321 321 add_settings_field( 322 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section322 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 323 323 ); 324 324 register_setting($group, $option); … … 326 326 //title 327 327 $option = "pricemesh_option_link_all"; 328 $option_name = "Link auf Händler und Preis";328 $option_name = __("Link on Shop and Price", $this->plugin_slug); 329 329 $option_callback = "settings_config_link_all_callback"; 330 330 add_settings_field( 331 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section331 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 332 332 ); 333 333 register_setting($group, $option); … … 339 339 //----------------------------------------------------------------- 340 340 $section = "pricemesh_section_3rdparty"; 341 $section_name = "Third Party Integration";341 $section_name = __("Third Party Integration", $this->plugin_slug); 342 342 $section_callback = "settings_section_3rd_party_callback"; 343 343 add_settings_section( 344 $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug344 $section, $section_name, array($this, $section_callback),$this->plugin_slug 345 345 ); 346 346 … … 348 348 //wp robot 349 349 $option = "pricemesh_option_wp_robot_integration"; 350 $option_name = "WP Robot";350 $option_name = __("WP Robot", $this->plugin_slug); 351 351 $option_callback = "settings_3rd_party_wp_robot_callback"; 352 352 add_settings_field( 353 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section353 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 354 354 ); 355 355 register_setting($group, $option); … … 357 357 //woocommerce 358 358 $option = "pricemesh_option_woocommerce_integration"; 359 $option_name = "WooCommerce";359 $option_name = __("WooCommerce", $this->plugin_slug); 360 360 $option_callback = "settings_3rd_party_woocommerce_callback"; 361 361 add_settings_field( 362 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section362 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 363 363 ); 364 364 register_setting($group, $option); … … 366 366 //custom post types 367 367 $option = "pricemesh_option_custom_post_types"; 368 $option_name = "Custom Post Types";368 $option_name = __("Custom Post Types", $this->plugin_slug); 369 369 $option_callback = "settings_3rd_party_custom_post_types_callback"; 370 370 add_settings_field( 371 $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section371 $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section 372 372 ); 373 373 register_setting($group, $option); … … 380 380 */ 381 381 public function settings_section_auth_callback(){ 382 echo __(" Erstellen Sie einen kostenlosen Account auf<a href='https://www.pricemesh.io' target='_blank'>pricemesh.io</a>".383 " und tragen Sie Ihr eigenes Token und den Secret Key ein, um Provisionen für Verkäufe zu erhalten und die".384 " Suchfunktion nutzen zu können", $this->plugin_slug);382 echo __("Create a account on <a href='https://www.pricemesh.io' target='_blank'>pricemesh.io</a>". 383 " and add your own token and secret key to". 384 " earn sales commission and to use the search function.", $this->plugin_slug); 385 385 } 386 386 … … 395 395 echo "<input type='text' name='$name' id='$name' value='$setting' class='regular-text'/>"; 396 396 if(strpos($setting, "demo") === 0){ 397 echo "<p class='description'>".__(" Das Demo-Token ist voll funktionsfähig, es können damit jedoch keine Provisionen verdient werden.", $this->plugin_slug)."</p>";397 echo "<p class='description'>".__("You can't earn commission with the demo token.", $this->plugin_slug)."</p>"; 398 398 } 399 399 } … … 408 408 echo "<input type='text' name='pricemesh_option_secret' value='$setting' class='regular-text'/>"; 409 409 if(empty($setting)){ 410 echo "<p class='description'>".__(" Um die Suchfunktion zu nutzen, tragen Sie bitte den Secret Key ein.", $this->plugin_slug)."</p>";410 echo "<p class='description'>".__("To use the search function, please add your secret key..", $this->plugin_slug)."</p>"; 411 411 } 412 412 } … … 427 427 $opts = self::get_pricemesh_settings(); 428 428 $setting = $opts["country"]; 429 $available_countries = array("de" );429 $available_countries = array("de", "es","fr", "it", "us", "uk"); 430 430 431 431 echo "<select name='pricemesh_option_country'>"; … … 446 446 $opts = self::get_pricemesh_settings(); 447 447 $setting = $opts["debug"]; 448 $options = array("on" => __(" Anzeigen"), "off" => __("Nicht anzeigen"));448 $options = array("on" => __("Show", $this->plugin_slug), "off" => __("Hide", $this->plugin_slug)); 449 449 foreach($options as $value => $string) { 450 450 if($setting == $value){ … … 465 465 $opts = self::get_pricemesh_settings(); 466 466 $setting = $opts["link_all"]; 467 $options = array("on" => __(" An"), "off" => __("Aus"));467 $options = array("on" => __("On", $this->plugin_slug), "off" => __("Off", $this->plugin_slug)); 468 468 foreach($options as $value => $string) { 469 469 if($setting == $value){ … … 513 513 $opts = self::get_pricemesh_settings(); 514 514 $setting = $opts["theme"]; 515 $options = array("basic" => __("Standard" ), "dark" => __("Dark"));515 $options = array("basic" => __("Standard", $this->plugin_slug), "dark" => __("Dark", $this->plugin_slug)); 516 516 //$options = array("basic" => __("Standard")); 517 517 foreach($options as $value => $string) { … … 561 561 $opts = self::get_pricemesh_settings(); 562 562 $setting = $opts["disclaimer"]; 563 $options = array("off" => __("Nicht anzeigen"), "top" => __("Oberhalb des Preisvergleichs"), "bottom" => __("Unterhalb des Preisvergleichs")); 563 $options = array("off" => __("Hide", $this->plugin_slug), 564 "top" => __("Above", $this->plugin_slug), 565 "bottom" => __("Below", $this->plugin_slug)); 564 566 foreach($options as $value => $string) { 565 567 if($setting == $value){ … … 579 581 $opts = self::get_pricemesh_settings(); 580 582 $setting = $opts["stock"]; 581 $options = array("on" => __("Versandinfo anzeigen"), "off" => __("Versandinfo nicht anzeigen")); 583 $options = array("on" => __("Show shipping", $this->plugin_slug), 584 "off" => __("Hide shipping", $this->plugin_slug)); 582 585 foreach($options as $value => $string) { 583 586 if($setting == $value){ … … 599 602 $opts = self::get_pricemesh_settings(); 600 603 $setting = $opts["duplicates"]; 601 $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)")); 604 $options = array("off" => __("No filter", $this->plugin_slug), 605 "all" => __("Filter all duplicates (shop only once)", $this->plugin_slug), 606 "same-price" => __("Filter on same price (one shop per price)", $this->plugin_slug)); 602 607 foreach($options as $value => $string) { 603 608 if($setting == $value){ … … 618 623 $opts = self::get_pricemesh_settings(); 619 624 $setting = $opts["display"]; 620 $options = array("always" => __("Preisvergleich immer anzeigen"), "has-products" => __("Preisvergleich nur anzeigen, wenn Produkte gefunden werden")); 625 $options = array("always" => __("Show always", $this->plugin_slug), 626 "has-products" => __("Hide if no items are found", $this->plugin_slug)); 621 627 foreach($options as $value => $string) { 622 628 if($setting == $value){ … … 636 642 $opts = self::get_pricemesh_settings(); 637 643 $setting = $opts["title"]; 638 $options = array("on" => __("Titel anzeigen"), "off" => __("Titel nicht anzeigen")); 644 $options = array("on" => __("Show Title", $this->plugin_slug), 645 "off" => __("Hide Title", $this->plugin_slug)); 639 646 foreach($options as $value => $string) { 640 647 if($setting == $value){ … … 654 661 */ 655 662 public function settings_section_3rd_party_callback(){ 656 echo __("Pricemesh kann auf andere Plugins zugreifen und zusätzliche Funktionen freischalten.", $this->plugin_slug);663 echo __("Pricemesh can access other plugins to add functionality.", $this->plugin_slug); 657 664 } 658 665 … … 669 676 echo "<p class='description'>". 670 677 "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' $checked/>". 671 " ".__(" Fügt automatisch importierte ASINs zu dem aktuellen Post hinzu.", $this->plugin_slug).678 " ".__("Adds imported ASINs to the article.", $this->plugin_slug). 672 679 "</p>"; 673 680 }else{ 674 681 //echo "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' disabled/>"; 675 echo "<p class='description'>".__("WPRobot is t nicht installiert", $this->plugin_slug)."</p>";682 echo "<p class='description'>".__("WPRobot is not installed", $this->plugin_slug)."</p>"; 676 683 } 677 684 } … … 688 695 echo "<p class='description'>". 689 696 "<input name='pricemesh_option_woocommerce_integration' type='checkbox' value='1' $checked/>". 690 " ".__(" Schaltet die Pricemesh auf Produktseiten frei", $this->plugin_slug).697 " ".__("Enables Pricemesh on Product Pages", $this->plugin_slug). 691 698 "</p>"; 692 699 }else{ 693 700 //echo "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' disabled/>"; 694 echo "<p class='description'>".__("WooCommerce is t nicht installiert", $this->plugin_slug)."</p>";701 echo "<p class='description'>".__("WooCommerce is not installed", $this->plugin_slug)."</p>"; 695 702 } 696 703 } … … 706 713 echo "<input type='text' name='$name' id='$name' value='$setting' class='regular-text'/>"; 707 714 echo "<p class='description'>". 708 " ".__("List e von Custom Post Types bei denen Pricemesh angezeigt werden soll. Format:type1,type2,type3", $this->plugin_slug).715 " ".__("List of custom post types Pricemesh should be enabled on. Format type1,type2,type3", $this->plugin_slug). 709 716 "</p>"; 710 717 } -
pricemesh/trunk/admin/views/admin.php
r963908 r1027326 4 4 5 5 <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>"); ?>6 <?php echo __("Get an overview of all available settings <a target='_blank' href='https://www.pricemesh.io/en/help/settings/'>here</a>", $this->plugin_slug); ?> 7 7 <?php settings_fields('pricemesh-settings-group'); //pass slug name of page, also referred 8 8 //to in Settings API as option group name -
pricemesh/trunk/admin/views/metabox.php
r866107 r1027326 4 4 <input type="text" id="pricemesh_pids" name="pricemesh_pids" value="<?php echo $opts["pids"]; ?>" 5 5 style="display:none;visibility: hidden;"> 6 <input type="button" class="button tagadd" value="<?php echo __(" Hinzufügen", $this->plugin_slug);?>" id="pricemesh_add_new_pid_btn">6 <input type="button" class="button tagadd" value="<?php echo __("Add", $this->plugin_slug);?>" id="pricemesh_add_new_pid_btn"> 7 7 </p> 8 8 … … 14 14 </div> 15 15 <hr class="pm-hr"/> 16 <h4 class="pm-h4"><?php echo __("Produ ktsuche", $this->plugin_slug);?></h4>16 <h4 class="pm-h4"><?php echo __("Product Search", $this->plugin_slug);?></h4> 17 17 <?php if(empty($opts["secret"])){ 18 ?><?php echo __(" Um die Produktsuche zu nutzen, tragen Sie Ihren Secret Key ein. <a href='options-general.php?page=Pricemesh'>Zu den Einstellungen</a>", $this->plugin_slug);?><?php18 ?><?php echo __("To use product search, add your secret key <a href='options-general.php?page=Pricemesh'>here</a>", $this->plugin_slug);?><?php 19 19 }else{?> 20 20 <div class="pm-container pm-content"> … … 24 24 <input class="hidden" id="pm-id_country" name="country" type="text" value="<?php echo $opts["country"]; ?>"> 25 25 26 <label for="pm-id_query"> Suchbegriff</label><br/>26 <label for="pm-id_query"><?php echo __("Keyword", $this->plugin_slug);?></label><br/> 27 27 28 28 <input class="input-lg form-control" id="pm-id_query" name="query" type="text" value=""> 29 <input type="button" class="button tagadd" value=" Suchen" id="pm-searchbutton"> <span id="pm-extended-search"><i30 id="pm-extended-search-icon" class="pm-icon pm-chevron-right"></i> <?php echo __("E rweiterte Sucheinstellungen", $this->plugin_slug);?></span>29 <input type="button" class="button tagadd" value="<?php echo __("Search", $this->plugin_slug);?>" id="pm-searchbutton"> <span id="pm-extended-search"><i 30 id="pm-extended-search-icon" class="pm-icon pm-chevron-right"></i> <?php echo __("Extended Setttings", $this->plugin_slug);?></span> 31 31 32 32 </div> … … 36 36 <tr> 37 37 <td> 38 <label for="pm-id_not_words"><?php echo __(" Ohne", $this->plugin_slug);?></label>39 40 </td> 41 <td> 42 <label for="pm-id_price_min"><?php echo __(" Preis min.", $this->plugin_slug);?></label>43 44 </td> 45 <td> 46 <label for="pm-id_price_max"><?php echo __(" Preis max.", $this->plugin_slug);?></label>47 48 </td> 49 <td> 50 <label for="pm-id_price_max"><?php echo __(" Tiefe Suche", $this->plugin_slug);?></label>38 <label for="pm-id_not_words"><?php echo __("Without", $this->plugin_slug);?></label> 39 40 </td> 41 <td> 42 <label for="pm-id_price_min"><?php echo __("Min. price", $this->plugin_slug);?></label> 43 44 </td> 45 <td> 46 <label for="pm-id_price_max"><?php echo __("Max. price", $this->plugin_slug);?></label> 47 48 </td> 49 <td> 50 <label for="pm-id_price_max"><?php echo __("Deepsearch", $this->plugin_slug);?></label> 51 51 52 52 </td> … … 101 101 </div> 102 102 <div id="pm-search-error" class="pm-error hidden"> 103 <?php echo __(" Bei der Anfrage ist ein Fehler aufgetreten: ", $this->plugin_slug);?>103 <?php echo __("There was an error processing your request: ", $this->plugin_slug);?> 104 104 <strong id="pm-search-error-message"></strong> 105 105 </div> … … 152 152 <a href="#pm-descriptions{{@index}}" data-toggle="tab"> 153 153 <span class="pm-badge pm-badge-info">{{ descriptions.length }}</span> {{ pluralize 154 descriptions.length '<?php echo __(" Text", $this->plugin_slug);?>' '<?php echo __("Texte", $this->plugin_slug);?>'}}154 descriptions.length '<?php echo __("Description", $this->plugin_slug);?>' '<?php echo __("Descriptions", $this->plugin_slug);?>'}} 155 155 </a> 156 156 </li> … … 160 160 <a href="#pm-images{{@index}}" data-toggle="tab"> 161 161 <span class="pm-badge pm-badge-inverse">{{ images.length }}</span> {{ pluralize 162 images.length '<?php echo __(" Bild", $this->plugin_slug);?>' '<?php echo __("Bilder", $this->plugin_slug);?>'}}162 images.length '<?php echo __("Image", $this->plugin_slug);?>' '<?php echo __("Images", $this->plugin_slug);?>'}} 163 163 </a> 164 164 </li> … … 180 180 <tr> 181 181 <th><?php echo __("Name", $this->plugin_slug);?></th> 182 <th><?php echo __("Pr eis", $this->plugin_slug);?></th>182 <th><?php echo __("Price", $this->plugin_slug);?></th> 183 183 </tr> 184 184 {{#each shops}} … … 206 206 <table class="pm-table pm-table-bordered table-striped"> 207 207 <tr> 208 <th><?php echo __(" Quelle", $this->plugin_slug);?></th>209 <th><?php echo __(" Bild", $this->plugin_slug);?></th>208 <th><?php echo __("Source", $this->plugin_slug);?></th> 209 <th><?php echo __("Image", $this->plugin_slug);?></th> 210 210 </tr> 211 211 {{#each images}} … … 214 214 <tr> 215 215 <td>{{ origin }} <a class="pm-btn pm-btn-xs pm-btn-warning" href="{{ image }}" 216 target="_blank"><?php echo __(" Quelle", $this->plugin_slug);?></a></td>216 target="_blank"><?php echo __("Source", $this->plugin_slug);?></a></td> 217 217 <td><img src="{{ image }}"/></td> 218 218 </tr> … … 228 228 <span class="pm-pull-right pm-price"> 229 229 <strong> 230 <?php echo __("Pr eis", $this->plugin_slug);?>:230 <?php echo __("Price", $this->plugin_slug);?>: 231 231 {{#ifEqual price_min price_max }} 232 232 {{ price_min }} -
pricemesh/trunk/public/pricemesh-public.php
r1001204 r1027326 22 22 * @var string 23 23 */ 24 const VERSION = '1. 5.2';24 const VERSION = '1.6'; 25 25 26 26 /** … … 256 256 $domain = $this->plugin_slug; 257 257 $locale = apply_filters('plugin_locale', get_locale(), $domain ); 258 258 echo $locale; 259 echo trailingslashit(WP_LANG_DIR).$domain.'/'.$domain.'-'.$locale.'.mo'; 260 echo basename(plugin_dir_path(dirname(__FILE__))).'/languages/'.$locale.'.mo'; 259 261 load_textdomain($domain, trailingslashit(WP_LANG_DIR).$domain.'/'.$domain.'-'.$locale.'.mo'); 260 262 load_plugin_textdomain($domain, FALSE, basename(plugin_dir_path(dirname(__FILE__))).'/languages/'); -
pricemesh/trunk/readme.txt
r1001204 r1027326 1 1 === Plugin Name === 2 2 Contributors: pricemesh 3 Tags: affiliate, commerce, e-commerce, ecommerce, sales, sell, shop, shopping, widgets, wordpress ecommerce, amazon, preisvergleich, ads, advertising3 Tags: affiliate, commerce, e-commerce, pricemesh, price compare, price comparison, ecommerce, sales, sell, shop, shopping, widgets, wordpress ecommerce, amazon, preisvergleich, ads, advertising 4 4 Requires at least: 3.4 5 5 Tested up to: 4.0 6 Stable tag: 1. 5.26 Stable tag: 1.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Mit diesem Plugin ist es möglich Wordpress um einen eigenen Preisvergleich zu erweitern. 10 Extend WordPress with your own price comparison | WordPress mit einem eigenen Preisvergleich erweitern 11 11 12 12 == Description == 13 13 14 ** English ** 15 16 This plugin enables you to extend WordPress with your own price comparison. After the installation a small box will appear with every post in the admin area where UPCs, 17 EANs and ASINs can be entered. You can also search for products with the integrated search function and attach them to the current post. 18 19 The price comparison will appear directly under your article between the comments in the standard setting. To place the price comparison in your article, use the [pricemesh] short code. 20 within the text area. There is also a widget available that can be displayed e.g. in the side bar. 21 22 To earn your own commission you need to have an account with [pricemesh.io](https://www.pricemesh.io/ "WordPress Price Comparison"). There the supported affiliate networks and 23 affiliate programs can be connected with pricemesh. The commissions is paid out by the affiliate networks you connect with Pricemesh. The account can be tested free of charge for 14 days, 24 after that it will be 2.99 GBP / 3.99 EUR / 4.99 USD per month. 25 A demo token is already deposited in the settings, so you can try the plugin. However, you cannot earn your own commission with that. 26 27 **Demo Pages** 28 29 * [Beneath headline](http://mac.pricemesh.io/de/content.html) 30 * [As a tab](http://games.pricemesh.io/de/tabs.html) 31 * [In content area](http://games.pricemesh.io/de/content.html) 32 * [Sidebar](http://mac.pricemesh.io/de/sidebar.html) 33 34 **Features** 35 36 * Price comparison in content area or as a widget in the sidebar 37 * Fits in every template 38 * No themes or custom templates required 39 * Easy to install and configure 40 41 **Supported Affiliate Networks and Partner Programs** 42 43 * Affili.net 44 * Amazon 45 * Belboon 46 * Commmission Junction 47 * Tradedoubler 48 * eBay Commerce Network (shopping.com) 49 * Zanox 50 51 **Commissions** 52 53 Plugin and Pricemesh accounts are free. All commissions for sales and clicks are paid out by the affiliate networks you connect with Pricemeh. To use Pricemesh you need a subscription starting at $3.99/month. 54 55 ** More Info ** 56 57 You can find more information on the [plugin page](https://www.pricemesh.io/plugins/wordpress/) 58 59 ** Deutsch ** 60 14 61 Mit diesem Plugin ist es möglich Wordpress um einen eigenen kostenlosen Preisvergleich zu erweitern und damit Geld zu verdienen. Nach der Installation erscheint im Adminbereich bei jedem Post 15 eine kleine Box in der ASINs, EANs und ISBNs eingetragen werden können. 62 eine kleine Box in der ASINs, EANs und ISBNs eingetragen werden können. Außerdem kann über die integrierte Suchfunktion nach Produkten gesucht werden. 16 63 17 64 In der Standardeinstellung erscheint der Preisvergleich direkt unter dem Textbereich des Beitrags auf der Seite. Mit Hilfe des [pricemesh] Shortcodes ist aber auch eine Einblendung 18 65 innerhalb des Textbereichs möglich. Es steht außerdem ein Widget zur Verfügung, das beispielsweise in der Sidebar eingeblendet werden kann. 19 66 20 Um eigene Provisionen zu verdienen ist ein kostenloserAccount auf [pricemesh.io](https://www.pricemesh.io/ "Wordpress Preisvergleich") erforderlich. Dort können die unterstützten Affiliate-Netzwerke und21 Partnerprogramme mit pricemesh verbunden werden. Die Vergütung der Provisionen erfolgt wie gewohnt über die Netzwerke.67 Um eigene Provisionen zu verdienen ist ein Account auf [pricemesh.io](https://www.pricemesh.io/ "Wordpress Preisvergleich") erforderlich. Dort können die unterstützten Affiliate-Netzwerke und 68 Partnerprogramme mit Pricemesh verbunden werden. Die Vergütung der Provisionen erfolgt wie gewohnt über die Netzwerke. Der Account kann 14 Tage kostenlos getestet werden, danach ab 3,99 EUR/Monat. 22 69 23 Zum ausprobieren des Plugins ist bereits ein Demo Token hinterlegt. 70 Zum ausprobieren des Plugins ist bereits ein Demo Token hinterlegt. Eigene Provisionen können damit jedoch nicht verdient werden. 24 71 25 72 **Demo Seiten** … … 49 96 **Provisionsmodell** 50 97 51 Das Plugin und der Account auf pricemesh.io sind kostenlos. Alle erzielten Provisionen Sales und ggf. Klicks werden weiterhin direkt über die Affiliate Netzwerke abgerechnet und ausgezahlt. Bei maximal 15% der eingehenden Klicks werden diese zu gunsten von pricemesh.io vergütet (Klickbeteiligung).98 Das Plugin und der Account auf Pricemesh.io sind kostenlos. Alle erzielten Provisionen Sales und ggf. Klicks werden weiterhin direkt über die Affiliate Netzwerke abgerechnet und ausgezahlt. Zum Betrieb ist eine Lizenz ab 3,99 EUR/Monat erfoderlich. 52 99 53 100 Mehr: … … 57 104 == Installation == 58 105 106 **English** 107 1. Upload and unzip `pricemesh.zip` in `/wp-content/plugins/`. 108 2. Log In to your WordPress admin 109 3. Activate the Plugin in the plugins menu 110 4. In the admin area click on the left site on `Pricemesh Settings` and fill in your token and secret key 111 5. Add a UPC, ASIN, EAN, or ISBN to a article 112 113 **Deutsch** 59 114 1. `pricemesh.zip` in den Ordner `/wp-content/plugins/` hochladen und dort entpacken 60 115 2. Im Wordpress Adminbereich anmelden … … 63 118 5. ASIN, EAN oder ISBN des Produktes zu einem Beitrag hinzufügen 64 119 65 66 120 == Screenshots == 67 121 68 1. Meta -Box zum Hinzufügen von Produknummern69 2. Einstellungen70 3. Beispielseite mit dem Preisvergleich als Tab71 4. Beispielseite mit dem Preisvergleich nach der Headline122 1. Metabox to add product numbers // Meta-Box zum Hinzufügen von Produknummern 123 2. Settings // Einstellungen 124 3. Example page with price comparison as a tab // Beispielseite mit dem Preisvergleich als Tab 125 4. Example page with price comparison beneath the headline // Beispielseite mit dem Preisvergleich nach der Headline 72 126 73 127 == Changelog == 128 129 = 1.6 = 130 * Translation and Internationalization 74 131 75 132 = 1.5.1 =
Note: See TracChangeset
for help on using the changeset viewer.