Changeset 1028993
- Timestamp:
- 11/19/2014 10:44:55 PM (11 years ago)
- Location:
- shopsite-plugin/trunk
- Files:
-
- 5 edited
-
editor_plugin.js (modified) (1 diff)
-
populate_products.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
shopsite.php (modified) (7 diffs)
-
tutorial_driver.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shopsite-plugin/trunk/editor_plugin.js
r1024192 r1028993 10 10 tutorial = "&tutorial=1"; 11 11 ed.windowManager.open({ 12 url: path +12 url: ss_path + 13 13 "/shopsite.php?ss_action=insert" + tutorial, 14 14 width : 600, -
shopsite-plugin/trunk/populate_products.js
r1024192 r1028993 13 13 type: 'POST', 14 14 data: {ss_action:'get_data', shopsite_url:shopsite_url, id_list: id_list, identifier: identifier}, 15 url: path + "shopsite.php",15 url: ss_path + "shopsite.php", 16 16 success: function(data) { 17 17 //alert(data); -
shopsite-plugin/trunk/readme.txt
r1028291 r1028993 26 26 27 27 == Changelog == 28 = 1.4.1 = 29 * Changed the shortcode to [ss_product] and javascript variable name to ss_path to avoid conflicts with other plugins. 30 28 31 = 1.4 = 29 32 * Changed the configuration procedure to only make user copy/paste 1 string instead of 5. Added installation tutorial. -
shopsite-plugin/trunk/shopsite.php
r1024192 r1028993 2 2 /** 3 3 * @package ShopSite 4 * @version 1.4 4 * @version 1.4.1 5 5 */ 6 6 /* … … 9 9 Description: ShopSite plugin to put products into your WordPress blog 10 10 Author: ShopSite 11 Version: 1.4 11 Version: 1.4.1 12 12 Author URI: http://shopsite.com/ 13 13 */ … … 83 83 add_action('init', 'shopsite_addbuttons'); 84 84 add_shortcode( 'product', 'product_handler' ); 85 add_shortcode( 'ss_product', 'product_handler' ); 85 86 86 87 function add_shopsite_menu() { … … 284 285 echo 285 286 "<script> 286 var path='".plugin_dir_url(__FILE__)."';287 var ss_path='".plugin_dir_url(__FILE__)."'; 287 288 </script>"; 288 289 … … 419 420 ); 420 421 422 //debug_print(print_r($products_xml,1)); 423 421 424 422 425 … … 512 515 if (sku.length > 0) 513 516 sku_string = 'sku=\''+sku+'\''; 514 var shortcode = '<p>[ product '+p_id_string+' '+sku_string+']'+p_name+'[/product]</p>';517 var shortcode = '<p>[ss_product '+p_id_string+' '+sku_string+']'+p_name+'[/ss_product]</p>'; 515 518 516 519 tinyMCEPopup.execCommand('mceInsertContent', false, shortcode); … … 607 610 608 611 echo 609 "<script> var path='".plugin_dir_url(__FILE__)."';612 "<script> var ss_path='".plugin_dir_url(__FILE__)."'; 610 613 var identifier = \"$identifier\"; 611 614 var product_map = $product_map; -
shopsite-plugin/trunk/tutorial_driver.js
r1024192 r1028993 10 10 11 11 function continue_tutorial() { 12 $('#content_ifr').tutorial({'instruction':'You\'ll see something like [ product...] in your blog and when you preview or publish that tag will show your Order Button <br> <a href=# class=\'remove_me\'>Finish tutorial</a>',12 $('#content_ifr').tutorial({'instruction':'You\'ll see something like [ss_product...] in your blog and when you preview or publish that tag will show your Order Button <br> <a href=# class=\'remove_me\'>Finish tutorial</a>', 13 13 'instructionCss':{'width':400},'placement':'above', 'removeOnClose':false}); 14 14 $('.remove_me').one('click', function () {
Note: See TracChangeset
for help on using the changeset viewer.