Plugin Directory

Changeset 2171825

Timestamp:
10/11/2019 02:57:01 PM (5 years ago)
Author:
sjregan
Message:

fix: old shortcode and plugins no longer work

Location:
instashop/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • instashop/trunk/includes/class-socialshop-admin-api.php

    r2170056 r2171825  
    2424     */
    2525    public function embed_screen () {
     26
     27
    2628    ?>
    2729
    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>
    2931        <script type="text/javascript">
    3032            jQuery(function ($) {
  • instashop/trunk/includes/class-socialshop-widget.php

    r2170056 r2171825  
    1010    public function __construct () {
    1111        parent::__construct( 'socialshop-gallery', __('SocialShop Gallery', 'socialshop' ), array(
    12             'description' => __( 'Display an SocialShop gallery.', 'socialshop' )
     12            'description' => __( 'Display a SocialShop gallery.', 'socialshop' )
    1313        ) );
    1414    }
  • instashop/trunk/includes/class-socialshop.php

    r2170056 r2171825  
    112112
    113113        // Add our shortcode
     114
    114115        add_shortcode( 'socialshop', array( $this, 'gallery_shortcode' ) );
    115116
     
    245246            }
    246247
    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'] );
    248250
    249251            if ( $attr['product-source-lang'] ) {
     
    256258        }
    257259
    258         $source = apply_filters( 'socialshop_gallery_source', '' );
    259        
     260        $source = apply_filters( 'instashop_gallery_source', '' );
     261        $source = apply_filters( 'socialshop_gallery_source', $source );
     262
    260263        if ( $source ) {
    261264            $data['source'] = $source;
     
    271274        wp_enqueue_script( $this->_token . '-gallery' );
    272275
    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 );
    274278        $output = apply_filters( 'socialshop_gallery_shortcode', $output, $attr );
    275279
     
    281285     */
    282286    public function register_widget () {
     287
    283288        register_widget( 'SocialShopGalleryWidget' );
    284289    }
     
    299304        $gallery_id = $this->settings->get( 'product_gallery_id' );
    300305        $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 );
    302308
    303309        if ( $gallery_id && $product_id ) {
     
    318324             * @param int    $product_id
    319325             */
    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 );
    321328
    322329            if ( $product_source_language ) {
     
    325332
    326333            $source = apply_filters( 'socialshop_gallery_source', '' );
     334
    327335
    328336            if ( $source ) {
     
    340348           
    341349            $output = str_replace( '{data}', $data_string, $template );
     350
    342351            echo apply_filters( 'socialshop_product_gallery', $output, $data );
    343352        }
     
    376385                }
    377386
     387
    378388                $priority = apply_filters( 'socialshop_product_gallery_display_priority', $priority, $location, $gallery_id );
     389
    379390                add_action( 'woocommerce_after_single_product_summary', array( $this, 'display_product_gallery' ), $priority );
    380391            }
     
    388399     */
    389400    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 );
    391404    }
    392405
     
    397410     */
    398411    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 );
    400415    }
    401416
  • instashop/trunk/readme.txt

    r2170176 r2171825  
    9292== Changelog ==
    9393
     94
     95
     96
    9497= 2.0.1 =
    9598* Chore: Version bump to force WordPress hosting to reprocess upload.
  • instashop/trunk/socialshop.php

    r2170176 r2171825  
    22/*
    33 * Plugin Name: SocialShop
    4  * Version: 2.0.1
     4 * Version: 2.0.
    55 * Plugin URI: https://instashopapp.com/wordpress/
    66 * Description: Easily embed and manage your SocialShop galleries.
     
    2525// Load plugin libraries
    2626require_once( 'includes/class-socialshop-admin-api.php' );
     27
    2728require_once( 'includes/class-socialshop-widget.php' );
    2829require_once( 'includes/class-socialshop-settings.php' );
     
    3536 */
    3637function SocialShop () {
    37     $instance = SocialShop::instance( __FILE__, '2.0.1' );
     38    $instance = SocialShop::instance( __FILE__, '2.0.' );
    3839
    3940    if ( is_null( $instance->settings ) ) {
Note: See TracChangeset for help on using the changeset viewer.