Changeset 3337265
- Timestamp:
- 07/31/2025 12:23:57 PM (7 months ago)
- Location:
- fast-etsy-listings/trunk
- Files:
-
- 6 edited
-
changelog.txt (modified) (1 diff)
-
constants.php (modified) (1 diff)
-
fast-etsy-listings.php (modified) (1 diff)
-
mce/mce-button-listing.js (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
shortcode-listing.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fast-etsy-listings/trunk/changelog.txt
r3334758 r3337265 1 1 == Changelog == 2 3 = 1.2.11 = 4 Fixed bug with loading of single listing items: 'Item ID must be an integer' error. 2 5 3 6 = 1.2.10 = -
fast-etsy-listings/trunk/constants.php
r3334758 r3337265 5 5 6 6 define("FU_ETSY_PLUGIN_TITLE", "Fast Etsy Listings"); 7 define("FU_ETSY_PLUGIN_VER", "1.2.1 0");7 define("FU_ETSY_PLUGIN_VER", "1.2.11"); 8 8 define("FU_ETSY_PLUGIN_WEBSITE", "https://www.fubaby.com/wordpress-plugins/fast-etsy-listings/"); 9 9 define("FU_ETSY_CALLCACHEEXPIRY", 360); // minutes (6 hrs) -
fast-etsy-listings/trunk/fast-etsy-listings.php
r3334758 r3337265 4 4 * Plugin URI: http://www.fubaby.com/wordpress-plugins/fast-etsy-listings/ 5 5 * Description: Display Etsy Shop listings on your site, using blocks and shortcodes. 6 * Version: 1.2.1 06 * Version: 1.2.11 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.4 -
fast-etsy-listings/trunk/mce/mce-button-listing.js
r3073400 r3337265 38 38 editor.addCommand('etsy_listing_popup', function(ui, v) { 39 39 //setup defaults 40 var i d = v.id ? v.id: '';40 var item = v.item ? v.item : ''; 41 41 var picwidth = v.picwidth ? v.picwidth : ''; 42 42 … … 46 46 { 47 47 type: 'textbox', 48 name: 'i d',48 name: 'item', 49 49 label: editor.getLang('fuEtsyStrings.itemIdLabel'), 50 value: i d,50 value: item, 51 51 tooltip: editor.getLang('fuEtsyStrings.itemIdToolTip'), 52 52 minWidth: 300, … … 67 67 onsubmit: function( e ) { 68 68 var shortcode_str = '[' + sh_tag; 69 // check for listing id70 if (typeof e.data.i d != 'undefined' && e.data.id.length)71 shortcode_str += ' i d="' + e.data.id+ '"';69 // check for item 70 if (typeof e.data.item != 'undefined' && e.data.item.length) 71 shortcode_str += ' item="' + e.data.item + '"'; 72 72 // check for picwidth 73 73 if (typeof e.data.picwidth != 'undefined' && e.data.picwidth.length) … … 94 94 //open popup on placeholder double click 95 95 editor.on('DblClick',function(e) { 96 var cls = e.target.className.indexOf('wp-' + sh_tag);97 96 if ( e.target.nodeName == 'IMG' && e.target.className.indexOf('wp-' + sh_tag) > -1 ) { 98 97 var data = e.target.attributes['data-sh-attr'].value; … … 100 99 //console.log(title); 101 100 editor.execCommand('etsy_listing_popup','',{ 102 i d : getAttr(data,'id'),101 item : getAttr(data,'item'), 103 102 picwidth : getAttr(data,'picwidth'), 104 103 }); -
fast-etsy-listings/trunk/readme.txt
r3334758 r3337265 8 8 Tested up to: 6.7 9 9 Requires PHP: 7.4 10 Stable tag: 1.2.1 010 Stable tag: 1.2.11 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 153 153 == Changelog == 154 154 155 = 1.2.11 = 156 Fixed bug with loading of single listing items: 'Item ID must be an integer' error. 157 155 158 = 1.2.10 = 156 159 Fixed transient PHP warning when loading subscription info. -
fast-etsy-listings/trunk/shortcode-listing.php
r3073400 r3337265 30 30 extract(shortcode_atts(array( 31 31 'id' => '', 32 'item' => '', 32 33 'picwidth' => -1, 33 34 'arrangement' => -1 34 35 ), $atts)); 35 36 36 $apicall = new fuEtsyItemApiCall($id); 37 if (empty($item)) $item = $id; 38 $apicall = new fuEtsyItemApiCall($item); 37 39 $apicall->picWidth = intval($picwidth); 38 40 if ($arrangement != -1) $apicall->arrangement = (int)$arrangement;
Note: See TracChangeset
for help on using the changeset viewer.