Plugin Directory

Changeset 1028993


Ignore:
Timestamp:
11/19/2014 10:44:55 PM (11 years ago)
Author:
ShopSite
Message:

Change some names to prevent conflicts

Location:
shopsite-plugin/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shopsite-plugin/trunk/editor_plugin.js

    r1024192 r1028993  
    1010          tutorial = "&tutorial=1";
    1111                ed.windowManager.open({
    12           url: path +
     12          url: ss_path +
    1313            "/shopsite.php?ss_action=insert" + tutorial,
    1414                    width : 600,
  • shopsite-plugin/trunk/populate_products.js

    r1024192 r1028993  
    1313    type: 'POST',
    1414    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",
    1616    success: function(data) {
    1717      //alert(data);
  • shopsite-plugin/trunk/readme.txt

    r1028291 r1028993  
    2626
    2727== 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
    2831= 1.4 =
    2932* 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  
    22/**
    33 * @package ShopSite
    4  * @version 1.4
     4 * @version 1.4.1
    55 */
    66/*
     
    99Description: ShopSite plugin to put products into your WordPress blog
    1010Author: ShopSite
    11 Version: 1.4
     11Version: 1.4.1
    1212Author URI: http://shopsite.com/
    1313*/
     
    8383add_action('init', 'shopsite_addbuttons');
    8484add_shortcode( 'product', 'product_handler' );
     85add_shortcode( 'ss_product', 'product_handler' );
    8586
    8687function add_shopsite_menu() {
     
    284285  echo
    285286  "<script>
    286   var path='".plugin_dir_url(__FILE__)."';
     287  var ss_path='".plugin_dir_url(__FILE__)."';
    287288  </script>";
    288289 
     
    419420  );
    420421 
     422  //debug_print(print_r($products_xml,1));
     423 
    421424
    422425 
     
    512515        if (sku.length > 0)
    513516          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>';
    515518       
    516519        tinyMCEPopup.execCommand('mceInsertContent', false, shortcode);
     
    607610 
    608611  echo
    609     "<script> var path='".plugin_dir_url(__FILE__)."';
     612    "<script> var ss_path='".plugin_dir_url(__FILE__)."';
    610613    var identifier = \"$identifier\";
    611614    var product_map = $product_map;
  • shopsite-plugin/trunk/tutorial_driver.js

    r1024192 r1028993  
    1010
    1111function 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>',
    1313  'instructionCss':{'width':400},'placement':'above', 'removeOnClose':false});
    1414  $('.remove_me').one('click', function () {
Note: See TracChangeset for help on using the changeset viewer.