Plugin Directory

Changeset 2041728


Ignore:
Timestamp:
02/28/2019 08:45:20 PM (7 years ago)
Author:
buntisoft
Message:

thumbnail size updated

Location:
insta-gallery/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • insta-gallery/trunk/app/views/edit.php

    r2034239 r2041728  
    214214                <th scope="row"><?php _e('Images thumbnail size','insta-gallery'); ?>:</th>
    215215                <td><select name="insta_thumb-size">
    216                         <option value="medium"><?php _e('Medium','insta-gallery'); ?>(640,320 x auto)</option>
     216                        <option value="standard"><?php _e('Standard','insta-gallery'); ?> (640 x auto)</option>
     217                        <option value="medium" <?php echo (isset($InstaGalleryItem['insta_thumb-size']) && ($InstaGalleryItem['insta_thumb-size'] == 'medium')) ? 'selected' : ''; ?>><?php _e('Medium','insta-gallery'); ?> (320 x auto)</option>
    217218                        <option value="small"
    218                             <?php echo (isset($InstaGalleryItem['insta_thumb-size']) && ($InstaGalleryItem['insta_thumb-size'] == 'small')) ? 'selected' : ''; ?>><?php _e('Small','insta-gallery'); ?>(150
     219                            <?php echo (isset($InstaGalleryItem['insta_thumb-size']) && ($InstaGalleryItem['insta_thumb-size'] == 'small')) ? 'selected' : ''; ?>><?php _e('Small','insta-gallery'); ?> (150
    219220                    x 150)</option>
    220221                </select></td>
  • insta-gallery/trunk/insta-gallery.php

    r2040919 r2041728  
    1010 * Text Domain: insta-gallery
    1111 * Domain Path: /languages/
    12  * Version: 2.1.3
     12 * Version: 2.1.4
    1313 */
    1414
     
    2525
    2626// global constants
    27 define('INSGALLERY_VER', '2.1.3');
     27define('INSGALLERY_VER', '2.1.4');
    2828define('INSGALLERY_PRODUCTION', true);
    2929
  • insta-gallery/trunk/readme.txt

    r2040919 r2041728  
    55Requires PHP: 5.3
    66Tested up to: 5.0
    7 Stable tag: 2.1.3
     7Stable tag: 2.1.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1717Display pictures from your Instagram account as Gallery or as Carousel Slider. just paste your Instagram Access Token, configure gallery settings and your pictures will be on the website.
    1818
    19 **Note:** plugin version 2.x is a major update and it requires Instagram access token to display user media, please backup plugin files before update (if you are using version 1.x). it will help you downgrade if there is any issue with latest update.
     19**Note:** plugin version 2.x is a major update and it requires Instagram access token to display user media, if you are using version 1.x then please backup plugin files before update, it will help you downgrade if there is any issue with latest update.
    2020
    2121**Demo:** you can see demo [Here](https://www.karansingh.ml/public/demo/insta-gallery/) or check 'screenshots' section below.
     
    5656= Why there are two popups on image click? =
    5757
    58 there may be some other plugins(like: fancybox) which also uses image links to open popup. try to disable popup images option in the setting panel of this plugin, which will allow other plugins to work.
     58there may be some other plugins(like: fancybox, elementor) which also uses image links to open popup. try to disable popup images option in the setting panel of this plugin, which will allow other plugins to work.
    5959
    6060= Error: No working transports found =
     
    7171
    7272== Changelog ==
     73= 2.1.4 =
     74* thumbnail sizes updated
     75
    7376= 2.1.3 =
    7477* small content update
     
    224227
    225228== Upgrade Notice ==
     229= 2.1.4 =
     230updated thumbnail sizes
     231
    226232= 2.1.3 =
    227233plugin info updated
  • insta-gallery/trunk/templates/carousel.php

    r1968010 r2041728  
    4242foreach ($instaItems as $item) {
    4343    if (! empty($item['img_low']) && ! empty($item['img_standard']) && ! empty($item['img_thumb'])) {
    44         $img_src = ($IGItem['insta_car-slidespv'] == 1) ? $item['img_standard'] : ((($IGItem['insta_car-slidespv'] > 10) || ($IGItem['insta_thumb-size'] == 'small')) ? $item['img_thumb'] : $item['img_low']);
     44        $img_src = $item['img_standard'];
     45        if($IGItem['insta_thumb-size'] == 'small'){
     46            $img_src = $item['img_thumb'];
     47        }
     48        if($IGItem['insta_thumb-size'] == 'medium'){
     49            $img_src = $item['img_low'];
     50        }
    4551        $link = $iplink = 'https://www.instagram.com/p/' . $item['code'] . '/';
    4652        if ($IGItem['insta_gal-popup']) {
  • insta-gallery/trunk/templates/gallery.php

    r2032907 r2041728  
    3636foreach ($instaItems as $item) {
    3737   
    38     $img_src = ($IGItem['insta_gal-cols'] == 1) ? $item['img_standard'] : ((($IGItem['insta_gal-cols'] > 9) || ($IGItem['insta_thumb-size'] == 'small')) ? $item['img_thumb'] : $item['img_low']);
     38    $img_src = $item['img_standard'];
     39    if($IGItem['insta_thumb-size'] == 'small'){
     40            $img_src = $item['img_thumb'];
     41    }
     42    if($IGItem['insta_thumb-size'] == 'medium'){
     43            $img_src = $item['img_low'];
     44    }       
    3945    $hovered = $IGItem['insta_gal-hover'] ? 'ighover' : '';
    4046    $spacing = $IGItem['insta_gal-spacing'] ? '' : 'no-spacing';
Note: See TracChangeset for help on using the changeset viewer.