Changeset 2253444
- Timestamp:
- 03/03/2020 08:19:30 AM (6 years ago)
- Location:
- instagram-slider-widget/trunk
- Files:
-
- 5 edited
-
admin/assets/css/jr-insta-admin.css (modified) (1 diff)
-
admin/views/instagram.php (modified) (2 diffs)
-
includes/class-wis_instagram_slider.php (modified) (3 diffs)
-
instaram_slider.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
instagram-slider-widget/trunk/admin/assets/css/jr-insta-admin.css
r2253396 r2253444 31 31 .jr-container .donate-button-link { cursor: pointer } 32 32 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 34 49 { 35 50 padding: 0 24px 0 120px; -
instagram-slider-widget/trunk/admin/views/instagram.php
r2253396 r2253444 18 18 $accounts = WIS_Plugin::app()->getPopulateOption( 'account_profiles', array() ); 19 19 $accounts_business = WIS_Plugin::app()->getPopulateOption( 'account_profiles_new', array() ); 20 $count_accounts = count($accounts) + count( $accounts_business ); 20 21 ?> 21 22 <div class="factory-bootstrap-424 factory-fontawesome-000"> … … 26 27 <div id="wis-add-account-button" class=""> 27 28 <?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"> 30 31 <?php _e('Add Account','instagram-slider-widget')?></span> 31 32 <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 1940 1940 $user_profile = apply_filters( 'wis/account/profiles', $user_profile, true ); 1941 1941 1942 if ( !WIS_Plugin::app()->is_premium() && $this->count_accounts() >= 1) { 1943 wp_die( '' ); 1944 } 1945 1942 1946 $user_profile[ $account['username'] ] = $account; 1943 1947 WIS_Plugin::app()->updateOption( 'account_profiles_new', $user_profile ); … … 2319 2323 $user_profile = apply_filters( 'wis/account/profiles', $user_profile ); 2320 2324 2325 if ( !WIS_Plugin::app()->is_premium() && $this->count_accounts() >= 1) { 2326 return array(); 2327 } 2328 2321 2329 $user_profile[ $user['username'] ] = $user; 2322 WIS_Plugin::app()->updateOption( 'account_profiles', $user_profile );2330 WIS_Plugin::app()->updateOption( 'account_profiles', $user_profile ); 2323 2331 2324 2332 return $user; … … 2386 2394 } 2387 2395 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 2388 2408 } // end of class WIS_InstagramSlider 2389 2409 ?> -
instagram-slider-widget/trunk/instaram_slider.php
r2253396 r2253444 3 3 Plugin Name: Social Slider Widget 4 4 Plugin URI: https://cm-wp.com/instagram-slider-widget 5 Version: 1.7. 05 Version: 1.7.1 6 6 Description: 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. 7 7 Author: creativemotion -
instagram-slider-widget/trunk/readme.txt
r2253396 r2253444 105 105 == Changelog == 106 106 = 1.7.0 = 107 * Bug Fixes 108 109 = 1.7.0 = 107 110 * 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) 108 111 * 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.