Changeset 1864036
- Timestamp:
- 04/25/2018 09:04:16 AM (8 years ago)
- Location:
- aspexi-facebook-like-box-sidebox
- Files:
-
- 20 added
- 2 edited
-
tags/2.1.12 (added)
-
tags/2.1.12/aspexi-facebook-side-box.php (added)
-
tags/2.1.12/images (added)
-
tags/2.1.12/images/aspexi300.png (added)
-
tags/2.1.12/images/be250.png (added)
-
tags/2.1.12/images/fb1-right.png (added)
-
tags/2.1.12/images/load.gif (added)
-
tags/2.1.12/images/preview-buttons.jpg (added)
-
tags/2.1.12/images/svgonoff.png (added)
-
tags/2.1.12/index.php (added)
-
tags/2.1.12/js (added)
-
tags/2.1.12/js/afbsb-admin.js (added)
-
tags/2.1.12/js/afsb.js (added)
-
tags/2.1.12/languages (added)
-
tags/2.1.12/languages/aspexifbsidebox-pl_PL.mo (added)
-
tags/2.1.12/languages/aspexifbsidebox-pl_PL.po (added)
-
tags/2.1.12/languages/aspexifbsidebox.pot (added)
-
tags/2.1.12/readme.txt (added)
-
trunk/aspexi-facebook-side-box.php (modified) (8 diffs)
-
trunk/images/be250.png (added)
-
trunk/js/afbsb-admin.js (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aspexi-facebook-like-box-sidebox/trunk/aspexi-facebook-side-box.php
r1797197 r1864036 5 5 Description: Plugin adds fancy Facebook Like Box Sidebox 6 6 Author: Aspexi 7 Version: 2.1.1 17 Version: 2.1.12 8 8 Author URI: http://aspexi.com/ 9 9 License: GPLv2 or later … … 31 31 if ( !class_exists( 'AspexiFBsidebox' ) ) { 32 32 33 define('ASPEXIFBSIDEBOX_VERSION', '2.1.1 1');33 define('ASPEXIFBSIDEBOX_VERSION', '2.1.12'); 34 34 define('ASPEXIFBSIDEBOX_URL', plugin_dir_url( __FILE__ ) ); 35 35 define('aspexifbsidebox_ADMIN_URL', 'themes.php?page=' . basename( __FILE__ ) ); … … 47 47 48 48 add_action( 'admin_menu', array( &$this, 'admin_menu')); 49 add_action( 'admin_notices', array( &$this, 'admin_notices')); 49 50 add_action( 'init', array( &$this, 'init' ), 10 ); 50 51 add_action( 'wp_footer', array( &$this, 'get_html' ), 21 ); 51 52 add_action( 'admin_enqueue_scripts',array( &$this, 'admin_scripts') ); 53 add_action( 'wp_ajax_afbsb_hide_notice', array( &$this, 'admin_notices_handle') ); 52 54 add_action( 'wp_enqueue_scripts', array( &$this, 'init_scripts') ); 53 55 add_filter( 'plugin_action_links', array( &$this, 'settings_link' ), 10, 2); … … 74 76 'locale' => 'en_GB', 75 77 'status' => 'enabled', 78 'hide_notice' => '0' 76 79 ); 77 80 … … 631 634 </div> 632 635 </div> 636 <div class="postbox"> 637 <h3><span><?php _e('Security Services with ASecure.me', 'aspexifbsidebox'); ?></span></h3> 638 <div class="inside"> 639 <div style="width: 170px; margin: 0 auto;"> 640 <a href="https://asecure.me/?utm_source=slideboxfree" target="_blank"><img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/be250.png'; ?>" alt="" border="0" width="170" /></a> 641 </div> 642 <p style="text-align: center;"><?php _e('We offer security services, backups and more. <a href="https://asecure.me/?utm_source=slideboxfree" target="_blank">Check out now</a>.'); ?></p> 643 </div> 644 </div> 633 645 <div id="aspexifbsidebox-footer" style="text-align:left;text-shadow:0 1px 0 #fff;margin:0 0 10px;color:#888;"><?php echo sprintf(__('If you like %s please leave us a %s rating. A huge thank you in advance!'), '<strong>Aspexi Facebook Like Box Sidebox HD</strong>', '<a href="https://wordpress.org/plugins/aspexi-facebook-like-box-sidebox/reviews/#new-post" target="_blank">★★★★★</a>') ?></div> 634 646 <script type="text/javascript"> … … 730 742 if (d.getElementById(id)) return; 731 743 js = d.createElement(s); js.id = id; 732 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v2.1 1&appId=1548213832159053";744 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v2.12&appId=1548213832159053"; 733 745 fjs.parentNode.insertBefore(js, fjs); 734 746 }(document, \'script\', \'facebook - jssdk\'));</script> … … 822 834 823 835 public function admin_scripts() { 824 // premium only 836 wp_enqueue_script( 'aspexi-facebook-side-box-admin', ASPEXIFBSIDEBOX_URL . 'js/afbsb-admin.js', array( 'jquery' ), false, true ); 837 838 wp_localize_script( 'aspexi-facebook-side-box-admin', 'aflb_admin', array( 839 'nonce' => wp_create_nonce( "afbsbhidenotice-nonce" ) 840 ) ); 825 841 return; 826 842 } … … 861 877 return $extra_admin_content; 862 878 } 879 880 public function admin_notices() { 881 882 if( !isset($this->cf['hide_notice']) || @$this->cf['hide_notice'] != '1' ) { 883 ?> 884 <div class="notice notice-success" id="afbsbnotice" style="display: flex;flex-wrap: wrap;"> 885 <p><?php _e( 'Is your site secure? Check out how can you protect your website with <a href="https://asecure.me/?utm_source=sideboxfree" target="_blank">ASecure.me</a> services.', 'aspexifblikebox' ); ?> 886 <div style="flex: 1 300px;margin: .5em 0;text-align: right;"> 887 <input type="button" id="afbsbhidenotice" value="<?php _e( 'Hide this notice', 'aspexifbsidebox' ); ?>" class="button" /> 888 <input type="button" value="<?php _e( 'Visit ASecure.me', 'aspexifbsidebox' ); ?>" onclick="window.open('https://asecure.me/?utm_source=sideboxfree');" class="button-primary" /> 889 </div> 890 </p> 891 </div> 892 <?php 893 } 894 } 895 896 public function admin_notices_handle() { 897 898 check_ajax_referer( 'afbsbhidenotice-nonce', 'nonce' ); 899 900 $this->cf['hide_notice'] = '1'; 901 902 update_option( 'aspexifbsidebox_options', $this->cf, '', 'yes' ); 903 904 die(); 905 } 863 906 } 864 907 -
aspexi-facebook-like-box-sidebox/trunk/readme.txt
r1797197 r1864036 6 6 Tags: facebook, likebox, like box, floating, button, slider, facebook likebox, facebook like box, facebook slider, facebook buttons, sidebox, facebook sidebox, like box sidebox, likebox sidebox, side box, like box side box 7 7 Requires at least: 3.0 8 Tested up to: 4.9 9 Stable tag: 2.1.1 18 Tested up to: 4.9.5 9 Stable tag: 2.1.12 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 125 125 == Changelog == 126 126 127 = 2.1.12 = 128 * Facebook API update 129 127 130 = 2.1.11 = 128 131 * (premium) Disable on pages fix for some IDs
Note: See TracChangeset
for help on using the changeset viewer.