Changeset 2171825
- Timestamp:
- 10/11/2019 02:57:01 PM (5 years ago)
- Location:
- instashop/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
instashop/trunk/includes/class-socialshop-admin-api.php
r2170056 r2171825 24 24 */ 25 25 public function embed_screen () { 26 27 26 28 ?> 27 29 28 <iframe src="<?php echo apply_filters( 'socialshop_embed_url', self::EMBED_URL ); ?>" style="width: 100%; height: 100px; background-color: transparent;" id="socialshop-embed"></iframe>30 <iframe src="<?php echo ; ?>" style="width: 100%; height: 100px; background-color: transparent;" id="socialshop-embed"></iframe> 29 31 <script type="text/javascript"> 30 32 jQuery(function ($) { -
instashop/trunk/includes/class-socialshop-widget.php
r2170056 r2171825 10 10 public function __construct () { 11 11 parent::__construct( 'socialshop-gallery', __('SocialShop Gallery', 'socialshop' ), array( 12 'description' => __( 'Display a nSocialShop gallery.', 'socialshop' )12 'description' => __( 'Display a SocialShop gallery.', 'socialshop' ) 13 13 ) ); 14 14 } -
instashop/trunk/includes/class-socialshop.php
r2170056 r2171825 112 112 113 113 // Add our shortcode 114 114 115 add_shortcode( 'socialshop', array( $this, 'gallery_shortcode' ) ); 115 116 … … 245 246 } 246 247 247 $product_source_language = apply_filters( 'socialshop_gallery_product_source_lang', null, $attr['gallery'], $data['product-id'] ); 248 $product_source_language = apply_filters( 'instashop_gallery_product_source_lang', null, $attr['gallery'], $data['product-id'] ); 249 $product_source_language = apply_filters( 'socialshop_gallery_product_source_lang', $product_source_language, $attr['gallery'], $data['product-id'] ); 248 250 249 251 if ( $attr['product-source-lang'] ) { … … 256 258 } 257 259 258 $source = apply_filters( 'socialshop_gallery_source', '' ); 259 260 $source = apply_filters( 'instashop_gallery_source', '' ); 261 $source = apply_filters( 'socialshop_gallery_source', $source ); 262 260 263 if ( $source ) { 261 264 $data['source'] = $source; … … 271 274 wp_enqueue_script( $this->_token . '-gallery' ); 272 275 273 $output = sprintf('<div class="instashop-gallery%s" %s></div>', $attr['class'] ? ' ' .$attr['class'] : '', $data_string ); 276 $output = sprintf('<div class="socialshop-gallery instashop-gallery%s" %s></div>', $attr['class'] ? ' ' .$attr['class'] : '', $data_string ); 277 $output = apply_filters( 'instashop_gallery_shortcode', $output, $attr ); 274 278 $output = apply_filters( 'socialshop_gallery_shortcode', $output, $attr ); 275 279 … … 281 285 */ 282 286 public function register_widget () { 287 283 288 register_widget( 'SocialShopGalleryWidget' ); 284 289 } … … 299 304 $gallery_id = $this->settings->get( 'product_gallery_id' ); 300 305 $product_id = get_the_ID(); 301 $template = apply_filters( 'socialshop_gallery_template', $this->settings->get( 'product_gallery_template' ) ); 306 $template = apply_filters( 'instashop_gallery_template', $this->settings->get( 'product_gallery_template' ) ); 307 $template = apply_filters( 'socialshop_gallery_template', $template ); 302 308 303 309 if ( $gallery_id && $product_id ) { … … 318 324 * @param int $product_id 319 325 */ 320 $product_source_language = apply_filters( 'socialshop_gallery_product_source_lang', null, $gallery_id, $product_id ); 326 $product_source_language = apply_filters( 'instashop_gallery_product_source_lang', null, $gallery_id, $product_id ); 327 $product_source_language = apply_filters( 'socialshop_gallery_product_source_lang', $product_source_language, $gallery_id, $product_id ); 321 328 322 329 if ( $product_source_language ) { … … 325 332 326 333 $source = apply_filters( 'socialshop_gallery_source', '' ); 334 327 335 328 336 if ( $source ) { … … 340 348 341 349 $output = str_replace( '{data}', $data_string, $template ); 350 342 351 echo apply_filters( 'socialshop_product_gallery', $output, $data ); 343 352 } … … 376 385 } 377 386 387 378 388 $priority = apply_filters( 'socialshop_product_gallery_display_priority', $priority, $location, $gallery_id ); 389 379 390 add_action( 'woocommerce_after_single_product_summary', array( $this, 'display_product_gallery' ), $priority ); 380 391 } … … 388 399 */ 389 400 public static function get_js_gallery_url () { 390 return apply_filters( 'socialshop_js_gallery_url', self::JS_GALLERY_URL, self::JS_GALLERY_VERSION ); 401 $url = apply_filters( 'instashop_js_gallery_url', self::JS_GALLERY_URL, self::JS_GALLERY_VERSION ); 402 403 return apply_filters( 'socialshop_js_gallery_url', $url, self::JS_GALLERY_VERSION ); 391 404 } 392 405 … … 397 410 */ 398 411 public static function get_js_gallery_version () { 399 return apply_filters( 'socialshop_js_gallery_version', self::JS_GALLERY_VERSION, self::JS_GALLERY_URL ); 412 $url = apply_filters( 'instashop_js_gallery_version', self::JS_GALLERY_VERSION, self::JS_GALLERY_URL ); 413 414 return apply_filters( 'socialshop_js_gallery_version', $url, self::JS_GALLERY_URL ); 400 415 } 401 416 -
instashop/trunk/readme.txt
r2170176 r2171825 92 92 == Changelog == 93 93 94 95 96 94 97 = 2.0.1 = 95 98 * Chore: Version bump to force WordPress hosting to reprocess upload. -
instashop/trunk/socialshop.php
r2170176 r2171825 2 2 /* 3 3 * Plugin Name: SocialShop 4 * Version: 2.0. 14 * Version: 2.0. 5 5 * Plugin URI: https://instashopapp.com/wordpress/ 6 6 * Description: Easily embed and manage your SocialShop galleries. … … 25 25 // Load plugin libraries 26 26 require_once( 'includes/class-socialshop-admin-api.php' ); 27 27 28 require_once( 'includes/class-socialshop-widget.php' ); 28 29 require_once( 'includes/class-socialshop-settings.php' ); … … 35 36 */ 36 37 function SocialShop () { 37 $instance = SocialShop::instance( __FILE__, '2.0. 1' );38 $instance = SocialShop::instance( __FILE__, '2.0.' ); 38 39 39 40 if ( is_null( $instance->settings ) ) {
Note: See TracChangeset
for help on using the changeset viewer.