Plugin Directory

Changeset 1922297

Timestamp:
08/09/2018 01:55:12 PM (6 years ago)
Author:
sjregan
Message:

Adds WooCommerce product gallery, widget, developer filters

Location:
instashop/trunk
Files:
1 added
5 edited

Legend:

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

    r1753921 r1922297  
    2525    ?>
    2626
    27         <iframe src="<?php echo self::EMBED_URL; ?>" style="width: 100%; height: 100px; background-color: transparent;" id="instashop-embed"></iframe>
     27        <iframe src="<?php echo ; ?>" style="width: 100%; height: 100px; background-color: transparent;" id="instashop-embed"></iframe>
    2828        <script type="text/javascript">
    2929            jQuery(function ($) {
     
    3434    <?php
    3535    }
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
     238
     239
    36240}
  • instashop/trunk/includes/class-instashop-widget.php

    r1752557 r1922297  
    4040            $instashop = InstaShop();
    4141
    42             wp_register_script( $instashop->_token . '-gallery', InstaShop::JS_GALLERY_URL, InstaShop::JS_GALLERY_VERSION );
     42            wp_register_script( $instashop->_token . '-gallery', InstaShop:: );
    4343            wp_enqueue_script( $instashop->_token . '-gallery' );
    4444        }
  • instashop/trunk/includes/class-instashop.php

    r1862213 r1922297  
    1313     */
    1414    private static $_instance = null;
     15
     16
     17
     18
     19
     20
     21
     22
    1523
    1624    /**
     
    226234        if ( $attr['pin-type'] !== false ) $data['pin-type'] = $attr['pin-type'];
    227235
     236
     237
     238
     239
     240
     241
    228242        $data_string = '';
    229243
     
    232246        }
    233247
    234         wp_register_script( $this->_token . '-gallery', self::JS_GALLERY_URL, self::JS_GALLERY_VERSION );
     248        wp_register_script( $this->_token . '-gallery', self:: );
    235249        wp_enqueue_script( $this->_token . '-gallery' );
    236250
    237251        $output = sprintf('<div class="instashop-gallery%s" %s></div>', $attr['class'] ? ' ' .$attr['class'] : '', $data_string );
    238         $output = apply_filters( 'instashop_gallery_shortcode', $output, $attr);
     252        $output = apply_filters( 'instashop_gallery_shortcode', $output, $attr);
    239253
    240254        return $output;
     
    255269        remove_filter( 'posts_request', 'relevanssi_prevent_default_request' );
    256270        remove_filter( 'the_posts', 'relevanssi_query', 99 );
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
     341
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
    257361    }
    258362
  • instashop/trunk/instashop.php

    r1862213 r1922297  
    22/*
    33 * Plugin Name: InstaShop
    4  * Version: 1.1.2
     4 * Version: 1.
    55 * Plugin URI: https://instashopapp.com/wordpress/
    66 * Description: Easily embed and manage your InstaShop galleries.
     
    88 * Author URI: https://wearezipline.com/
    99 * Requires at least: 4.0
    10  * Tested up to: 4.9.5
     10 * Tested up to: 4.9.
    1111 *
    1212 * Text Domain: instashop
     
    2626require_once( 'includes/class-instashop-admin-api.php' );
    2727require_once( 'includes/class-instashop-widget.php' );
     28
    2829
    2930/**
     
    3435 */
    3536function InstaShop () {
    36     $instance = InstaShop::instance( __FILE__, '1.1' );
     37    $instance = InstaShop::instance( __FILE__, '1.2.0' );
     38
     39    if ( is_null( $instance->settings ) ) {
     40        $instance->set_settings( InstaShop_Settings::instance( $instance ) );
     41    }
     42
    3743    return $instance;
    3844}
  • instashop/trunk/readme.txt

    r1862213 r1922297  
    33Tags: instashop, instagram, gallery, shopping, woocommerce, social media, embed instagram, hashtag, product gallery
    44Requires at least: 4.0
    5 Tested up to: 4.9.5
     5Tested up to: 4.9.
    66Requires PHP: 5.2.4
    77Stable tag: trunk
     
    9292== Changelog ==
    9393
     94
     95
     96
     97
     98
    9499= 1.1.2 =
    95100* 2018-04-21
Note: See TracChangeset for help on using the changeset viewer.