Changeset 2616450
- Timestamp:
- 10/19/2021 11:38:52 AM (3 years ago)
- Location:
- instashop/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
instashop/trunk/includes/class-socialshop.php
r2325653 r2616450 3 3 4 4 class SocialShop { 5 const JS_GALLERY_URL = 'https:// instashop.s3.amazonaws.com/js-gz/embed/embed-1.6.7.js';6 const JS_GALLERY_VERSION = '1.6. 7';5 const JS_GALLERY_URL = 'https://.js'; 6 const JS_GALLERY_VERSION = '1.6.'; 7 7 8 8 /** … … 139 139 /** 140 140 * Load admin Javascript. 141 * 141 * 142 142 * @access public 143 143 * @since 1.0.0 … … 154 154 /** 155 155 * Load plugin localisation 156 * 156 * 157 157 * @access public 158 158 * @since 1.0.0 … … 164 164 /** 165 165 * Load plugin textdomain 166 * 166 * 167 167 * @access public 168 168 * @since 1.0.0 … … 179 179 /** 180 180 * Do gallery shortcode, render gallery placeholder and enqueue javascript 181 * 181 * 182 182 * @param array $attr { 183 183 * An array of attributes for the generated div placeholder. All are optional except must have either valid domain or gallery. 184 * 184 * 185 185 * @type string $class Additional CSS classes to add to div 186 186 * @type string $source Fully qualified URL (including trailing slash) indicating location of remote JS (for testing purposes only) … … 220 220 'pin-type' => false, 221 221 'product-source-lang' => null, 222 222 223 ), $attr, 'socialshop' ); 223 224 … … 238 239 if ( $attr['overlay-label'] !== false ) $data['overlay-label'] = $attr['overlay-label']; 239 240 if ( $attr['pin-type'] !== false ) $data['pin-type'] = $attr['pin-type']; 241 240 242 241 243 if ( $attr['gallery'] !== 'default' && $product ) { … … 339 341 340 342 $data_string = ''; 341 343 342 344 foreach ( $data as $name => $value ) { 343 345 $data_string .= sprintf(' data-%s="%s"', $name, esc_attr( $value ) ); 344 346 } 345 347 346 348 wp_register_script( $this->_token . '-gallery', self::get_js_gallery_url(), self::get_js_gallery_version() ); 347 349 wp_enqueue_script( $this->_token . '-gallery' ); 348 350 349 351 $output = str_replace( '{data}', $data_string, $template ); 350 352 $output = apply_filters( 'instashop_product_gallery', $output, $data ); … … 452 454 /** 453 455 * Installation. Runs on activation. 454 * 456 * 455 457 * @access public 456 458 * @since 1.0.0 … … 462 464 /** 463 465 * Log the plugin version number. 464 * 466 * 465 467 * @access private 466 468 * @since 1.0.0 -
instashop/trunk/readme.txt
r2325653 r2616450 92 92 == Changelog == 93 93 94 = 2.0.5 = 95 * Feat: use v1.6.7 of embed script (broken image detection). 94 = 2.1.0 = 95 * Feature: use v1.6.8 of embed script (additional setting for specifying number of columns). 96 * Feature: additional shortcode attribute for specifying number of columns. 96 97 97 98 = 2.0.4 = -
instashop/trunk/socialshop.php
r2325657 r2616450 2 2 /* 3 3 * Plugin Name: SocialShop 4 * Version: 2. 0.54 * Version: 2. 5 5 * Plugin URI: https://instashopapp.com/wordpress/ 6 6 * Description: Easily embed and manage your SocialShop galleries. … … 36 36 */ 37 37 function SocialShop () { 38 $instance = SocialShop::instance( __FILE__, '2. 0.5' );38 $instance = SocialShop::instance( __FILE__, '2.' ); 39 39 40 40 if ( is_null( $instance->settings ) ) {
Note: See TracChangeset
for help on using the changeset viewer.