Plugin Directory

Changeset 2253444


Ignore:
Timestamp:
03/03/2020 08:19:30 AM (6 years ago)
Author:
creativemotion
Message:

bugfix

Location:
instagram-slider-widget/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • instagram-slider-widget/trunk/admin/assets/css/jr-insta-admin.css

    r2253396 r2253444  
    3131.jr-container .donate-button-link { cursor: pointer }
    3232
    33 .wis-btn-instagram-account
     33.wis-btn-instagram-account, .wis-btn-instagram-account-disabled
     34{
     35    padding: 0 24px 0 120px;
     36    height: 44px;
     37    line-height: 44px;
     38    text-transform: uppercase;
     39    color: rgba(255,255,255,0.8)!important;
     40    text-decoration: none;
     41    border-radius: 5px;
     42    transition: all .5s ease-in-out;
     43    font-weight: 600;
     44    display: inline-block;
     45    background: #4267B2 url(../img/instagram_bg.png) no-repeat 16px 13.5px !important;
     46    background-size: auto 20px !important;
     47}
     48
    3449{
    3550    padding: 0 24px 0 120px;
  • instagram-slider-widget/trunk/admin/views/instagram.php

    r2253396 r2253444  
    1818$accounts          = WIS_Plugin::app()->getPopulateOption( 'account_profiles', array() );
    1919$accounts_business = WIS_Plugin::app()->getPopulateOption( 'account_profiles_new', array() );
     20$count_accounts    = count($accounts) + count( $accounts_business );
    2021?>
    2122<div class="factory-bootstrap-424 factory-fontawesome-000">
     
    2627                    <div id="wis-add-account-button" class="">
    2728                        <?php
    28                         if ( count( $accounts ) && !WIS_Plugin::app()->is_premium()) : ?>
    29                             <span class="wis-btn-instagram-account btn-instagram-account-disabled">
     29                        if ( $count_accounts >= 1 && !WIS_Plugin::app()->is_premium()) : ?>
     30                            <span class="wis-btn-instagram-account-disabled btn-instagram-account-disabled">
    3031                                <?php _e('Add Account','instagram-slider-widget')?></span>
    3132                            <span class="instagram-account-pro"><?php echo sprintf( __( "More accounts in <a href='%s'>PRO version</a>", 'instagram-slider-widget' ), WIS_Plugin::app()->get_support()->get_pricing_url(true, "wis_settings") );?></span>
  • instagram-slider-widget/trunk/includes/class-wis_instagram_slider.php

    r2253396 r2253444  
    19401940                $user_profile = apply_filters( 'wis/account/profiles', $user_profile, true );
    19411941
     1942                if ( !WIS_Plugin::app()->is_premium() && $this->count_accounts() >= 1) {
     1943                    wp_die( '' );
     1944                }
     1945
    19421946                $user_profile[ $account['username'] ] = $account;
    19431947                WIS_Plugin::app()->updateOption( 'account_profiles_new', $user_profile );
     
    23192323                $user_profile = apply_filters( 'wis/account/profiles', $user_profile );
    23202324
     2325                if ( !WIS_Plugin::app()->is_premium() && $this->count_accounts() >= 1) {
     2326                    return array();
     2327                }
     2328
    23212329                $user_profile[ $user['username'] ] = $user;
    2322                 WIS_Plugin::app()->updateOption( 'account_profiles', $user_profile );
     2330                WIS_Plugin::app()->updateOption( 'account_profiles', $user_profile );
    23232331
    23242332                return $user;
     
    23862394    }
    23872395
     2396    /**
     2397     * Get count of accounts
     2398     *
     2399     * @return int
     2400     */
     2401    public function count_accounts()
     2402    {
     2403        $account = WIS_Plugin::app()->getOption( 'account_profiles');
     2404        $accont_b = WIS_Plugin::app()->getOption( 'account_profiles_new');
     2405        return count($account) + count($accont_b);
     2406    }
     2407
    23882408} // end of class WIS_InstagramSlider
    23892409?>
  • instagram-slider-widget/trunk/instaram_slider.php

    r2253396 r2253444  
    33Plugin Name: Social Slider Widget
    44Plugin URI: https://cm-wp.com/instagram-slider-widget
    5 Version: 1.7.0
     5Version: 1.7.1
    66Description: Social Slider Widget is a responsive slider widget that shows 12 latest images from a public Instagram user and up to 18 images from a hashtag.
    77Author: creativemotion
  • instagram-slider-widget/trunk/readme.txt

    r2253396 r2253444  
    105105== Changelog ==
    106106= 1.7.0 =
     107* Bug Fixes
     108
     109= 1.7.0 =
    107110* The plugin now works on the new Instagram Basic Display API. To make your widgets work again, reconnect your instagram accounts in the plugin settings. [Read more about the changes](https://cm-wp.com/important-update-social-slider-widget)
    108111* ADDED: Ability to add a Business Instagram Account. This gives you more options for displaying information.
Note: See TracChangeset for help on using the changeset viewer.