Changeset 2739803
- Timestamp:
- 06/09/2022 09:35:38 AM (4 years ago)
- Location:
- aspexi-facebook-like-box-sidebox
- Files:
-
- 18 added
- 2 edited
-
tags/2.1.17 (added)
-
tags/2.1.17/aspexi-facebook-side-box.php (added)
-
tags/2.1.17/images (added)
-
tags/2.1.17/images/aspexi300.png (added)
-
tags/2.1.17/images/be250.png (added)
-
tags/2.1.17/images/fb1-right.png (added)
-
tags/2.1.17/images/load.gif (added)
-
tags/2.1.17/images/preview-buttons.jpg (added)
-
tags/2.1.17/images/svgonoff.png (added)
-
tags/2.1.17/index.php (added)
-
tags/2.1.17/js (added)
-
tags/2.1.17/js/afbsb-admin.js (added)
-
tags/2.1.17/js/afsb.js (added)
-
tags/2.1.17/languages (added)
-
tags/2.1.17/languages/aspexifbsidebox-pl_PL.mo (added)
-
tags/2.1.17/languages/aspexifbsidebox-pl_PL.po (added)
-
tags/2.1.17/languages/aspexifbsidebox.pot (added)
-
tags/2.1.17/readme.txt (added)
-
trunk/aspexi-facebook-side-box.php (modified) (29 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aspexi-facebook-like-box-sidebox/trunk/aspexi-facebook-side-box.php
r2702875 r2739803 5 5 Description: Plugin adds fancy Facebook Like Box Sidebox 6 6 Author: Aspexi 7 Version: 2.1.1 67 Version: 2.1.17 8 8 Author URI: http://aspexi.com/ 9 9 License: GPLv2 or later … … 27 27 defined('ABSPATH') or exit(); 28 28 29 __( 'Plugin adds fancy Facebook Like Box Sidebox', 'aspexifbsidebox' );29 esc_html__( 'Plugin adds fancy Facebook Like Box Sidebox', 'aspexifbsidebox' ); 30 30 31 31 if ( !class_exists( 'AspexiFBsidebox' ) ) { … … 49 49 add_action( 'admin_notices', array( &$this, 'admin_notices')); 50 50 add_action( 'init', array( &$this, 'init' ), 10 ); 51 add_action( 'wp_footer', array( &$this, 'get_ html' ), 21 );51 add_action( 'wp_footer', array( &$this, 'get_footer_html' ), 21 ); 52 52 add_action( 'admin_enqueue_scripts',array( &$this, 'admin_scripts') ); 53 53 add_action( 'wp_ajax_afbsb_hide_notice', array( &$this, 'admin_notices_handle') ); … … 101 101 array_unshift( $action_links, $pro_link ); 102 102 103 $settings_link = '<a href="themes.php?page=' . basename( __FILE__ ) . '">' . __("Settings") . '</a>';103 $settings_link = '<a href="themes.php?page=' . basename( __FILE__ ) . '">' . esc_html__("Settings") . '</a>'; 104 104 array_unshift( $action_links, $settings_link ); 105 105 } … … 125 125 } 126 126 127 public function display_admin_notices( $echo = false) {127 public function display_admin_notices( ) { 128 128 $ret = ''; 129 129 130 130 foreach( (array)$this->errors as $error ) { 131 $ret .= '<div class="error fade"><p><strong>'. $error.'</strong></p></div>';131 $ret .= '<div class="error fade"><p><strong>'.esc_html($error).'</strong></p></div>'; 132 132 } 133 133 134 134 foreach( (array)$this->messages as $message ) { 135 $ret .= '<div class="updated fade"><p><strong>'.$message.'</strong></p></div>'; 136 } 137 138 if( $echo ) 139 echo $ret; 140 else 141 return $ret; 135 $ret .= '<div class="updated fade"><p><strong>'.esc_html($message).'</strong></p></div>'; 136 } 137 138 return $ret; 142 139 } 143 140 144 141 public function admin_menu() { 145 add_submenu_page( 'themes.php', __( 'Aspexi Social Media Sidebox', 'aspexifbsidebox' ),__( 'Aspexi Social Media Sidebox', 'aspexifbsidebox' ), 'manage_options', basename(__FILE__), array( &$this, 'admin_page') );142 add_submenu_page( 'themes.php', esc_html__( 'Aspexi Social Media Sidebox', 'aspexifbsidebox' ), esc_html__( 'Aspexi Social Media Sidebox', 'aspexifbsidebox' ), 'manage_options', basename(__FILE__), array( &$this, 'admin_page') ); 146 143 } 147 144 … … 149 146 150 147 if (!current_user_can('manage_options')) { 151 wp_die( __('You do not have sufficient permissions to access this page.'));148 wp_die(esc_html__('You do not have sufficient permissions to access this page.')); 152 149 } 153 150 … … 158 155 159 156 if( !in_array( sanitize_text_field( $_REQUEST['afbsb_status'] ), array('enabled','disabled') ) ) 160 $this->add_error( __( 'Wrong or missing status. Available statuses: enabled and disabled. Settings not saved.', 'aspexifbsidebox' ) );157 $this->add_error( esc_html__( 'Wrong or missing status. Available statuses: enabled and disabled. Settings not saved.', 'aspexifbsidebox' ) ); 161 158 162 159 if( !$this->has_errors() ) { … … 170 167 update_option( 'aspexifbsidebox_options', $this->cf, 'yes' ); 171 168 172 $this->add_message( __( 'Settings saved.', 'aspexifbsidebox' ) );169 $this->add_message( esc_html__( 'Settings saved.', 'aspexifbsidebox' ) ); 173 170 174 171 // Preview maybe … … 303 300 ?> 304 301 <div class="wrap"> 305 <div id="icon-link" class="icon32"></div><h2><?php _e( 'Aspexi Social Media Sidebox Settings', 'aspexifbsidebox' ); ?></h2>306 <?php $this->display_admin_notices( true); ?>302 <div id="icon-link" class="icon32"></div><h2><?php esc_html_e( 'Aspexi Social Media Sidebox Settings', 'aspexifbsidebox' ); ?></h2> 303 <?php echo $this->display_admin_notices(); ?> 307 304 <div id="poststuff" class="metabox-holder"> 308 305 <div id="post-body"> … … 311 308 312 309 <input type="hidden" name="afbsb_form_submit" value="submit" /> 313 <?php $pro_link_main = $this->get_pro_link(); ?>314 310 <div class="postbox"> 315 <h3><span><?php _e('Settings', 'aspexifbsidebox'); ?></span></h3>311 <h3><span><?php esc_html_e('Settings', 'aspexifbsidebox'); ?></span></h3> 316 312 <div class="inside"> 317 313 <table class="form-table"> 318 314 <tbody> 319 315 <tr valign="top"> 320 <th scope="row"><?php _e('Page Plugin', 'aspexifbsidebox'); ?></th>316 <th scope="row"><?php esc_html_e('Page Plugin', 'aspexifbsidebox'); ?></th> 321 317 <td><select name="afbsb_status"> 322 <option value="enabled"<?php if( 'enabled' == esc_html($this->cf['status'] )) echo ' selected="selected"'; ?>><?php _e('enabled', 'aspexifbsidebox'); ?></option>323 <option value="disabled"<?php if( 'disabled' == esc_html($this->cf['status'] )) echo ' selected="selected"'; ?>><?php _e('disabled', 'aspexifbsidebox'); ?></option>318 <option value="enabled"<?php if( 'enabled' == esc_html($this->cf['status'] )) echo ' selected="selected"'; ?>><?php esc_html_e('enabled', 'aspexifbsidebox'); ?></option> 319 <option value="disabled"<?php if( 'disabled' == esc_html($this->cf['status'] )) echo ' selected="selected"'; ?>><?php esc_html_e('disabled', 'aspexifbsidebox'); ?></option> 324 320 </select></td> 325 321 </tr> 326 322 <tr valign="top"> 327 <th scope="row"><?php _e('Facebook Page URL', 'aspexifbsidebox'); ?></th>323 <th scope="row"><?php esc_html_e('Facebook Page URL', 'aspexifbsidebox'); ?></th> 328 324 <td>http://www.facebook.com/ <input type="text" name="afbsb_url" value="<?php echo esc_html_e($this->cf['url']); ?>" /> 329 325 </td> 330 326 </tr> 331 327 <tr valign="top"> 332 <th scope="row"><?php _e('Page Plugin Height', 'aspexifbsidebox'); ?></th>333 <td><input type="text" name="afbsb_height" value="258" size="3" disabled readonly /> px<?php echo $pro_link_main; ?></td>334 </tr> 335 <tr valign="top"> 336 <th scope="row"><?php _e('Page Plugin Width', 'aspexifbsidebox'); ?></th>337 <td><input type="text" name="afbsb_width" value="296" size="3" disabled readonly /> px<?php echo $pro_link_main; ?></td>338 </tr> 339 <tr valign="top"> 340 <th scope="row"><?php _e('Adaptive Width', 'aspexifbsidebox'); ?></th>341 <td><input type="checkbox" value="on" name="afbsb_adaptive_width" disabled readonly/><?php echo $pro_link_main; ?></td></td>342 </tr> 343 <tr valign="top"> 344 <th scope="row"><?php _e('Show Friends\' Faces', 'aspexifbsidebox'); ?></th>345 <td><input type="checkbox" value="on" name="afbsb_faces" checked disabled readonly /><?php echo $pro_link_main; ?></td>346 </tr> 347 <tr valign="top">348 <th scope="row"><?php _e('Show Posts (Stream)', 'aspexifbsidebox'); ?></th>349 <td><input type="checkbox" value="on" name="afb sb_stream" disabled readonly /><?php echo $pro_link_main; ?></td>328 <th scope="row"><?php esc_html_e('Page Plugin Height', 'aspexifbsidebox'); ?></th> 329 <td><input type="text" name="afbsb_height" value="258" size="3" disabled readonly /> px<?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 330 </tr> 331 <tr valign="top"> 332 <th scope="row"><?php esc_html_e('Page Plugin Width', 'aspexifbsidebox'); ?></th> 333 <td><input type="text" name="afbsb_width" value="296" size="3" disabled readonly /> px<?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 334 </tr> 335 <tr valign="top"> 336 <th scope="row"><?php esc_html_e('Adaptive Width', 'aspexifbsidebox'); ?></th> 337 <td><input type="checkbox" value="on" name="afbsb_adaptive_width" disabled readonly/><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td></td> 338 </tr> 339 <tr valign="top"> 340 <th scope="row"><?php esc_html_e('Show Friends\' Faces', 'aspexifbsidebox'); ?></th> 341 <td><input type="checkbox" value="on" name="afbsb_faces" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 342 </tr> 343 <tr style="vertical-align:top"> 344 <th scope="row"><?php esc_html_e('Browser\'s Lazy Loading', 'aspexifblikebox'); ?></th> 345 <td><input type="checkbox" value="on" name="afblb_lazy_loading" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 350 346 </tr> 351 347 <tr valign="top"> 352 348 <th scope="row"> 353 <?php _e( 'Hide CTA', 'aspexifbsidebox'); ?><br>354 <span style="font-size: 10px;"><?php _e( 'Hide the custom call to action button (if available)', 'aspexifbsidebox' ); ?></span>349 <?php esc_html_e( 'Hide CTA', 'aspexifbsidebox'); ?><br> 350 <span style="font-size: 10px;"><?php esc_html_e( 'Hide the custom call to action button (if available)', 'aspexifbsidebox' ); ?></span> 355 351 </th> 356 <td><input type="checkbox" value="on" name="afbsb_cta" disabled readonly><?php echo $pro_link_main; ?></td>357 </tr> 358 <tr valign="top"> 359 <th scope="row"><?php _e('Hide Cover', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Hide cover photo in the header.', 'aspexifbsidebox'); ?></span></th>360 <td><input type="checkbox" value="on" name="afbsb_header" disabled readonly /><?php echo $pro_link_main; ?></td>361 </tr> 362 <tr valign="top"> 363 <th scope="row"><?php _e('Small Header', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Use the small header instead.', 'aspexifbsidebox'); ?></span></th>364 <td><input type="checkbox" value="on" name="afbsb_small_header" disabled readonly /><?php echo $pro_link_main; ?></td>365 </tr> 366 <tr valign="top"> 367 <th scope="row"><?php _e('Localization', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Change might not be visible immediately due to Facebook / browser cache', 'aspexifbsidebox'); ?></span></th>352 <td><input type="checkbox" value="on" name="afbsb_cta" disabled readonly><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 353 </tr> 354 <tr valign="top"> 355 <th scope="row"><?php esc_html_e('Hide Cover', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Hide cover photo in the header.', 'aspexifbsidebox'); ?></span></th> 356 <td><input type="checkbox" value="on" name="afbsb_header" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 357 </tr> 358 <tr valign="top"> 359 <th scope="row"><?php esc_html_e('Small Header', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Use the small header instead.', 'aspexifbsidebox'); ?></span></th> 360 <td><input type="checkbox" value="on" name="afbsb_small_header" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 361 </tr> 362 <tr valign="top"> 363 <th scope="row"><?php esc_html_e('Localization', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Change might not be visible immediately due to Facebook / browser cache', 'aspexifbsidebox'); ?></span></th> 368 364 <td><?php echo $locales_input; ?></td> 369 365 </tr> 370 366 <tr valign="top"> 371 <th scope="row"><?php _e('Don\'t show again', 'aspexifbsidebox'); ?></th>372 <td><input type="checkbox" value="on" name="afbsb_dont_show_again" disabled readonly /><?php echo $pro_link_main; ?></td>367 <th scope="row"><?php esc_html_e('Don\'t show again', 'aspexifbsidebox'); ?></th> 368 <td><input type="checkbox" value="on" name="afbsb_dont_show_again" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 373 369 </tr> 374 370 <tr valign="top"> 375 371 <th scope="row"> 376 <?php _e('Slide out for unique users only', 'aspexifbsidebox'); ?>377 <div style="font-size: 10px"><?php _e('If you select this checkbox and enable auto slide out, this will happen only once for user', 'aspexifbsidebox'); ?></div>372 <?php esc_html_e('Slide out for unique users only', 'aspexifbsidebox'); ?> 373 <div style="font-size: 10px"><?php esc_html_e('If you select this checkbox and enable auto slide out, this will happen only once for user', 'aspexifbsidebox'); ?></div> 378 374 </th> 379 <td><input type="checkbox" value="on" name="afbsb_slide_out_unique" disabled readonly /><?php echo $pro_link_main; ?></td>375 <td><input type="checkbox" value="on" name="afbsb_slide_out_unique" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 380 376 </tr> 381 377 <tr valign="top"> 382 378 <th scope="row"> 383 <?php _e('Tabs', 'aspexifbsidebox'); ?>379 <?php esc_html_e('Tabs', 'aspexifbsidebox'); ?> 384 380 </th> 385 381 <td> … … 393 389 <input type="checkbox" value="on" name="afbsb_tabs[messages]" disabled readonly /> Messages 394 390 </label> 395 <p><?php echo $pro_link_main; ?></p>391 <p><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></p> 396 392 </td> 397 393 </tr> … … 405 401 </div> 406 402 407 <p><input class="button-primary" type="submit" name="send" value="<?php _e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" />408 <input class="button-secondary" type="submit" name="preview" value="<?php _e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p>403 <p><input class="button-primary" type="submit" name="send" value="<?php esc_html_e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" /> 404 <input class="button-secondary" type="submit" name="preview" value="<?php esc_html_e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p> 409 405 <?php wp_nonce_field( plugin_basename( __FILE__ ), 'afbsb_nonce_name' ); ?> 410 406 411 407 <div class="postbox"> 412 <h3><span><?php _e('Button Settings', 'aspexifbsidebox'); ?></span></h3>408 <h3><span><?php esc_html_e('Button Settings', 'aspexifbsidebox'); ?></span></h3> 413 409 <div class="inside"> 414 410 <table class="form-table"> 415 411 <tbody> 416 412 <tr valign="top"> 417 <th scope="row"><?php _e('Button Space', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Space between button and page edge', 'aspexifbsidebox'); ?></span></th>418 <td><input type="text" name="afbsb_btspace" value="0" size="3" disabled readonly /> px<?php echo $pro_link_main; ?></td>419 </tr> 420 <tr valign="top"> 421 <th scope="row"><?php _e('Button Placement', 'aspexifbsidebox'); ?></th>422 <td><input type="radio" name="afbsb_btvertical" value="top" disabled readonly /> <?php _e('top of sidebox','aspexifbsidebox'); ?><br />423 <input type="radio" name="afbsb_btvertical" value="middle" checked disabled readonly /> <?php _e('middle of sidebox','aspexifbsidebox'); ?><br />424 <input type="radio" name="afbsb_btvertical" value="bottom" disabled readonly /> <?php _e('bottom of sidebox','aspexifbsidebox'); ?><br />425 <input type="radio" name="afbsb_btvertical" value="fixed" disabled readonly /> <?php _e('fixed','aspexifbsidebox'); ?>426 <input type="text" name="afbsb_btvertical_val" value="" size="3" disabled readonly /> px <?php _e('from sidebox top','aspexifbsidebox'); ?><?php echo $pro_link_main; ?>427 </td> 428 </tr> 429 <tr valign="top"> 430 <th scope="row"><?php _e('Button Image', 'aspexifbsidebox'); ?></th>413 <th scope="row"><?php esc_html_e('Button Space', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Space between button and page edge', 'aspexifbsidebox'); ?></span></th> 414 <td><input type="text" name="afbsb_btspace" value="0" size="3" disabled readonly /> px<?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 415 </tr> 416 <tr valign="top"> 417 <th scope="row"><?php esc_html_e('Button Placement', 'aspexifbsidebox'); ?></th> 418 <td><input type="radio" name="afbsb_btvertical" value="top" disabled readonly /> <?php esc_html_e('top of sidebox','aspexifbsidebox'); ?><br /> 419 <input type="radio" name="afbsb_btvertical" value="middle" checked disabled readonly /> <?php esc_html_e('middle of sidebox','aspexifbsidebox'); ?><br /> 420 <input type="radio" name="afbsb_btvertical" value="bottom" disabled readonly /> <?php esc_html_e('bottom of sidebox','aspexifbsidebox'); ?><br /> 421 <input type="radio" name="afbsb_btvertical" value="fixed" disabled readonly /> <?php esc_html_e('fixed','aspexifbsidebox'); ?> 422 <input type="text" name="afbsb_btvertical_val" value="" size="3" disabled readonly /> px <?php esc_html_e('from sidebox top','aspexifbsidebox'); ?><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 423 </td> 424 </tr> 425 <tr valign="top"> 426 <th scope="row"><?php esc_html_e('Button Image', 'aspexifbsidebox'); ?></th> 431 427 <td><span><input type="radio" name="afbsb_btimage" value="fb1-right" checked disabled readonly /> <img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/fb1-right.png'; ?>" alt="" style="cursor:pointer;" /></span> 432 <span><input type="radio" name="afbsb_btimage" value="" disabled readonly /> <img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/preview-buttons.jpg'; ?>" alt="" style="cursor:pointer;" /></span><?php echo $pro_link_main; ?>433 </td> 434 </tr> 435 <tr valign="top"> 436 <th scope="row"><?php _e('High Resolution', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Use SVG high quality images instead of PNG if possible. Recommended for Retina displays (iPhone, iPad, MacBook Pro).', 'aspexifbsidebox'); ?></span></th>437 <td><input type="checkbox" value="on" name="afbsb_bthq" disabled readonly /> <img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/svgonoff.png'; ?>" alt="" style="cursor:pointer;" /><?php echo $pro_link_main; ?></td>428 <span><input type="radio" name="afbsb_btimage" value="" disabled readonly /> <img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/preview-buttons.jpg'; ?>" alt="" style="cursor:pointer;" /></span><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 429 </td> 430 </tr> 431 <tr valign="top"> 432 <th scope="row"><?php esc_html_e('High Resolution', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Use SVG high quality images instead of PNG if possible. Recommended for Retina displays (iPhone, iPad, MacBook Pro).', 'aspexifbsidebox'); ?></span></th> 433 <td><input type="checkbox" value="on" name="afbsb_bthq" disabled readonly /> <img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/svgonoff.png'; ?>" alt="" style="cursor:pointer;" /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 438 434 </tr> 439 435 </tbody> … … 442 438 </div> 443 439 444 <p><input class="button-primary" type="submit" name="send" value="<?php _e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" />445 <input class="button-secondary" type="submit" name="preview" value="<?php _e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p>440 <p><input class="button-primary" type="submit" name="send" value="<?php esc_html_e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" /> 441 <input class="button-secondary" type="submit" name="preview" value="<?php esc_html_e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p> 446 442 447 443 <div class="postbox"> 448 <h3><span><?php _e('Advanced Look and Feel', 'aspexifbsidebox'); ?></span></h3>444 <h3><span><?php esc_html_e('Advanced Look and Feel', 'aspexifbsidebox'); ?></span></h3> 449 445 <div class="inside"> 450 446 <table class="form-table"> 451 447 <tbody> 452 448 <tr valign="top"> 453 <th scope="row"><?php _e('Animate on page load', 'aspexifbsidebox'); ?></th>449 <th scope="row"><?php esc_html_e('Animate on page load', 'aspexifbsidebox'); ?></th> 454 450 <td> 455 451 <input type="checkbox" value="on" name="afbsb_animate_on_page_load" disabled readonly />  … … 457 453 </tr> 458 454 <tr valign="top"> 459 <th scope="row"><?php _e('Placement', 'aspexifbsidebox'); ?></th>455 <th scope="row"><?php esc_html_e('Placement', 'aspexifbsidebox'); ?></th> 460 456 <td><select name="afbsb_placement" disabled readonly> 461 <option value="left"><?php _e('left', 'aspexifbsidebox'); ?></option>462 <option value="right" selected="selected"><?php _e('right', 'aspexifbsidebox'); ?></option>463 </select><?php echo $pro_link_main; ?></td>464 </tr> 465 <tr valign="top"> 466 <th scope="row"><?php _e('Vertical placement', 'aspexifbsidebox'); ?></th>467 <td><input type="radio" name="afbsb_vertical" value="middle" checked disabled readonly /> <?php _e('middle','aspexifbsidebox'); ?><br />468 <input type="radio" name="afbsb_vertical" value="fixed" disabled readonly /> <?php _e('fixed','aspexifbsidebox'); ?>469 <input type="text" name="afbsb_vertical_val" value="" size="3" disabled readonly /> px <?php _e('from page top','aspexifbsidebox'); ?><?php echo $this->get_pro_link(); ?><br />470 </td> 471 </tr> 472 <tr valign="top"> 473 <th scope="row"><?php _e('Border Color', 'aspexifbsidebox'); ?></th>474 <td><input type="text" name="afbsb_bordercolor" class="bordercolor-field" value="#3B5998" size="6" disabled readonly /><?php echo $pro_link_main; ?></td>475 </tr> 476 <tr valign="top"> 477 <th scope="row"><?php _e('Border Width', 'aspexifbsidebox'); ?></th>478 <td><input type="text" name="afbsb_borderwidth" value="2" size="3" disabled readonly /> px<?php echo $pro_link_main; ?></td>479 </tr> 480 <tr valign="top"> 481 <th scope="row"><?php _e('Slide on mouse...', 'aspexifbsidebox'); ?></th>457 <option value="left"><?php esc_html_e('left', 'aspexifbsidebox'); ?></option> 458 <option value="right" selected="selected"><?php esc_html_e('right', 'aspexifbsidebox'); ?></option> 459 </select><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 460 </tr> 461 <tr valign="top"> 462 <th scope="row"><?php esc_html_e('Vertical placement', 'aspexifbsidebox'); ?></th> 463 <td><input type="radio" name="afbsb_vertical" value="middle" checked disabled readonly /> <?php esc_html_e('middle','aspexifbsidebox'); ?><br /> 464 <input type="radio" name="afbsb_vertical" value="fixed" disabled readonly /> <?php esc_html_e('fixed','aspexifbsidebox'); ?> 465 <input type="text" name="afbsb_vertical_val" value="" size="3" disabled readonly /> px <?php esc_html_e('from page top','aspexifbsidebox'); ?><?php echo $this->get_pro_link(); ?><br /> 466 </td> 467 </tr> 468 <tr valign="top"> 469 <th scope="row"><?php esc_html_e('Border Color', 'aspexifbsidebox'); ?></th> 470 <td><input type="text" name="afbsb_bordercolor" class="bordercolor-field" value="#3B5998" size="6" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 471 </tr> 472 <tr valign="top"> 473 <th scope="row"><?php esc_html_e('Border Width', 'aspexifbsidebox'); ?></th> 474 <td><input type="text" name="afbsb_borderwidth" value="2" size="3" disabled readonly /> px<?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 475 </tr> 476 <tr valign="top"> 477 <th scope="row"><?php esc_html_e('Slide on mouse...', 'aspexifbsidebox'); ?></th> 482 478 <td><select name="afbsb_slideon" disabled readonly> 483 <option value="hover" selected="selected"><?php _e('hover', 'aspexifbsidebox'); ?></option>484 <option value="click"><?php _e('click', 'aspexifbsidebox'); ?></option>485 </select><?php echo $pro_link_main; ?></td>486 </tr> 487 <tr valign="top"> 488 <th scope="row"><?php _e('Slide Time', 'aspexifbsidebox'); ?></th>489 <td><input type="text" name="afbsb_slidetime" value="400" size="3" disabled readonly /> <?php _e('milliseconds', 'aspexifbsidebox'); ?><?php echo $pro_link_main; ?></td>490 </tr> 491 <tr valign="top"> 492 <th scope="row"><?php _e('Auto open', 'aspexifbsidebox'); ?></th>479 <option value="hover" selected="selected"><?php esc_html_e('hover', 'aspexifbsidebox'); ?></option> 480 <option value="click"><?php esc_html_e('click', 'aspexifbsidebox'); ?></option> 481 </select><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 482 </tr> 483 <tr valign="top"> 484 <th scope="row"><?php esc_html_e('Slide Time', 'aspexifbsidebox'); ?></th> 485 <td><input type="text" name="afbsb_slidetime" value="400" size="3" disabled readonly /> <?php esc_html_e('milliseconds', 'aspexifbsidebox'); ?><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 486 </tr> 487 <tr valign="top"> 488 <th scope="row"><?php esc_html_e('Auto open', 'aspexifbsidebox'); ?></th> 493 489 <td> 494 <input type="checkbox" value="on" name="afbsb_autoopen" disabled readonly /><?php echo $pro_link_main; ?><br>495 <?php _e('Auto open after', 'aspexifbsidebox'); ?> <input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly /> <?php_e('milliseconds', 'aspexifbsidebox'); ?> (1000 milliseconds = 1 second)496 </td> 497 </tr> 498 <tr valign="top"> 499 <th scope="row"><?php _e('Auto close', 'aspexifbsidebox'); ?></th>490 <input type="checkbox" value="on" name="afbsb_autoopen" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?><br> 491 <?php esc_html_e('Auto open after', 'aspexifbsidebox'); ?> <input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly /> <?php esc_html_e('milliseconds', 'aspexifbsidebox'); ?> (1000 milliseconds = 1 second) 492 </td> 493 </tr> 494 <tr valign="top"> 495 <th scope="row"><?php esc_html_e('Auto close', 'aspexifbsidebox'); ?></th> 500 496 <td> 501 <input type="checkbox" value="on" name="afbsb_autoopen" disabled readonly /><?php echo $pro_link_main; ?><br>502 <?php _e('Auto close after', 'aspexifbsidebox'); ?> <input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly /> <?php_e('milliseconds', 'aspexifbsidebox'); ?> (1000 milliseconds = 1 second)503 </td> 504 </tr> 505 <tr valign="top"> 506 <th scope="row"><?php _e('Auto open when user reaches bottom of the page', 'aspexifbsidebox'); ?></th>507 <td><input type="checkbox" value="on" name="afbsb_autoopenonbottom" disabled readonly /><?php echo $pro_link_main; ?></td>508 </tr> 509 <tr valign="top"> 510 <th scope="row"><?php _e('Auto open when user reaches position', 'aspexifbsidebox'); ?></th>497 <input type="checkbox" value="on" name="afbsb_autoopen" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?><br> 498 <?php esc_html_e('Auto close after', 'aspexifbsidebox'); ?> <input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly /> <?php esc_html_e('milliseconds', 'aspexifbsidebox'); ?> (1000 milliseconds = 1 second) 499 </td> 500 </tr> 501 <tr valign="top"> 502 <th scope="row"><?php esc_html_e('Auto open when user reaches bottom of the page', 'aspexifbsidebox'); ?></th> 503 <td><input type="checkbox" value="on" name="afbsb_autoopenonbottom" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 504 </tr> 505 <tr valign="top"> 506 <th scope="row"><?php esc_html_e('Auto open when user reaches position', 'aspexifbsidebox'); ?></th> 511 507 <td> 512 508 <input type="checkbox" value="on" name="afbsb_autoopenonposition" disabled readonly /><br> 513 <?php echo __( 'Auto open when user is', 'aspexifbsidebox' ); ?>: <input type="text" disabled readonly name="afbsb_autoopenonposition_px" size="5">px from:509 <?php echo esc_html__( 'Auto open when user is', 'aspexifbsidebox' ); ?>: <input type="text" disabled readonly name="afbsb_autoopenonposition_px" size="5">px from: 514 510 <select name="afbsb_autoopenonposition_name" disabled readonly> 515 <option value="top"><?php echo __( 'Top', 'aspexifbsidebox' ); ?></option>516 <option value="bottom"><?php echo __( 'Bottom', 'aspexifbsidebox' ); ?></option>511 <option value="top"><?php echo esc_html__( 'Top', 'aspexifbsidebox' ); ?></option> 512 <option value="bottom"><?php echo esc_html__( 'Bottom', 'aspexifbsidebox' ); ?></option> 517 513 </select><br> 518 <?php echo $pro_link_main; ?>519 </td> 520 </tr> 521 <tr valign="top"> 522 <th scope="row"><?php _e('Auto open when user reaches element', 'aspexifbsidebox'); ?></th>514 <?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 515 </td> 516 </tr> 517 <tr valign="top"> 518 <th scope="row"><?php esc_html_e('Auto open when user reaches element', 'aspexifbsidebox'); ?></th> 523 519 <td> 524 520 <input type="checkbox" value="on" name="afbsb_autoopenonelement" disabled readonly /><br> 525 <?php echo __( 'Auto open when user reaches', 'aspexifbsidebox' ); ?>: <input type="text" disabled readonly name="afbsb_autoopenonelement_name" size="10" value=""><small><?php echo__( '(jQuery selector for example #element_id, .some_class)', 'aspexifbsidebox' ); ?></small><br>526 <?php echo $pro_link_main; ?>527 </td> 528 </tr> 529 <tr valign="top"> 530 <th scope="row"><?php _e('Delay FB content load', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Checking this box will prevent from loading the facebook content while loading the whole page. With this box checked the page will load faster, but facebook content may appear a bit later while opening the box for the first time.', 'aspexifbsidebox'); ?></span></th>531 <td><input type="checkbox" value="on" name="afbsb_async" disabled readonly /><?php echo $pro_link_main; ?></td>532 </tr> 533 <tr valign="top"> 534 <th scope="row"><?php _e('Disable on GET', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php_e('Example: set Parameter=iframe and Value=true. Sidebox will be disabled on all URLs like yourwebsite.com/?iframe=true.', 'aspexifbsidebox'); ?></span></th>535 <td><?php _e('Parameter', 'aspexifbsidebox'); ?>: <input type="text" name="afbsb_disableparam" value="" size="6" disabled readonly /><br />536 <?php _e('Value', 'aspexifbsidebox'); ?>: <input type="text" name="afbsb_disableval" value="" size="6" disabled readonly /><?php echo $pro_link_main; ?>537 </td> 538 </tr> 539 <tr valign="top"> 540 <th scope="row"><?php _e('Disable on Posts / Pages (comma separated):', 'aspexifbsidebox'); ?></th>521 <?php echo esc_html__( 'Auto open when user reaches', 'aspexifbsidebox' ); ?>: <input type="text" disabled readonly name="afbsb_autoopenonelement_name" size="10" value=""><small><?php echo esc_html__( '(jQuery selector for example #element_id, .some_class)', 'aspexifbsidebox' ); ?></small><br> 522 <?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 523 </td> 524 </tr> 525 <tr valign="top"> 526 <th scope="row"><?php esc_html_e('Delay FB content load', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Checking this box will prevent from loading the facebook content while loading the whole page. With this box checked the page will load faster, but facebook content may appear a bit later while opening the box for the first time.', 'aspexifbsidebox'); ?></span></th> 527 <td><input type="checkbox" value="on" name="afbsb_async" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 528 </tr> 529 <tr valign="top"> 530 <th scope="row"><?php esc_html_e('Disable on GET', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Example: set Parameter=iframe and Value=true. Sidebox will be disabled on all URLs like yourwebsite.com/?iframe=true.', 'aspexifbsidebox'); ?></span></th> 531 <td><?php esc_html_e('Parameter', 'aspexifbsidebox'); ?>: <input type="text" name="afbsb_disableparam" value="" size="6" disabled readonly /><br /> 532 <?php esc_html_e('Value', 'aspexifbsidebox'); ?>: <input type="text" name="afbsb_disableval" value="" size="6" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 533 </td> 534 </tr> 535 <tr valign="top"> 536 <th scope="row"><?php esc_html_e('Disable on Posts / Pages (comma separated):', 'aspexifbsidebox'); ?></th> 541 537 <td> 542 <input type="text" name="afbsb_disabled_on_ids" value="" disabled readonly /><?php echo $pro_link_main; ?>543 </td> 544 </tr> 545 <tr valign="top"> 546 <th scope="row"><?php _e('Disable on Posts:', 'aspexifbsidebox'); ?></th>538 <input type="text" name="afbsb_disabled_on_ids" value="" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 539 </td> 540 </tr> 541 <tr valign="top"> 542 <th scope="row"><?php esc_html_e('Disable on Posts:', 'aspexifbsidebox'); ?></th> 547 543 <td> 548 <input type="checkbox" value="on" name="afbsb_disabled_on_posts" disabled readonly /><?php echo $pro_link_main; ?>549 </td> 550 </tr> 551 <tr valign="top"> 552 <th scope="row"><?php _e('Disable on all Pages:', 'aspexifbsidebox'); ?></th>544 <input type="checkbox" value="on" name="afbsb_disabled_on_posts" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 545 </td> 546 </tr> 547 <tr valign="top"> 548 <th scope="row"><?php esc_html_e('Disable on all Pages:', 'aspexifbsidebox'); ?></th> 553 549 <td> 554 <input type="checkbox" value="on" name="afbsb_disabled_on_pages" disabled readonly /><?php echo $pro_link_main; ?>550 <input type="checkbox" value="on" name="afbsb_disabled_on_pages" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 555 551 </td> 556 552 </tr> … … 566 562 unset($types['oembed_cache']); 567 563 if( count( $types ) > 0 ) : 568 ?> 569 <tr valign="top"> 570 <th scope="row"><?php _e('Disable on post types:', 'aspexifbsidebox'); ?></th> 564 ?> 565 <tr valign="top"> 566 <th scope="row"><?php esc_html_e('Disable on post types:', 'aspexifbsidebox'); ?></th> 567 <td> 568 <?php 569 foreach ($types as $post_type) { 570 echo '<input type="checkbox" value="' . esc_html($post_type) . '" name="afbsb_disabled_on_posttypes[]" disabled readonly /> ' . esc_html($post_type) . '<br>'; 571 } 572 ?> 573 <?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 574 </td> 575 </tr> 576 <?php endif; ?> 577 <tr valign="top"> 578 <th scope="row"><?php esc_html_e('Disable on Archives (listings):', 'aspexifbsidebox'); ?></th> 571 579 <td> 572 <?php 573 foreach ($types as $post_type) { 574 echo '<input type="checkbox" value="' . esc_html($post_type) . '" name="afbsb_disabled_on_posttypes[]" disabled readonly /> ' . esc_html($post_type) . '<br>'; 575 } 576 ?> 577 <?php echo $pro_link_main; ?> 578 </td> 579 </tr> 580 <?php endif; ?> 581 <tr valign="top"> 582 <th scope="row"><?php _e('Disable on Archives (listings):', 'aspexifbsidebox'); ?></th> 583 <td> 584 <input type="checkbox" value="on" name="afbsb_disabled_on_archives" disabled readonly /><?php echo $pro_link_main; ?> 585 </td> 586 </tr> 587 <tr valign="top"> 588 <th scope="row"><?php _e('Disable on Small Screens', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php _e('Dynamically hide the plugin if screen size is smaller than sidebox size (CSS media query)', 'aspexifbsidebox'); ?></span></th> 589 <td><input type="checkbox" value="on" name="afbsb_smallscreens" checked disabled readonly /><?php echo $pro_link_main; ?></td> 580 <input type="checkbox" value="on" name="afbsb_disabled_on_archives" disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?> 581 </td> 582 </tr> 583 <tr valign="top"> 584 <th scope="row"><?php esc_html_e('Disable on Small Screens', 'aspexifbsidebox'); ?><br /><span style="font-size: 10px"><?php esc_html_e('Dynamically hide the plugin if screen size is smaller than sidebox size (CSS media query)', 'aspexifbsidebox'); ?></span></th> 585 <td><input type="checkbox" value="on" name="afbsb_smallscreens" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 590 586 </tr> 591 587 </tbody> … … 594 590 </div> 595 591 596 <p><input class="button-primary" type="submit" name="send" value="<?php _e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" />597 <input class="button-secondary" type="submit" name="preview" value="<?php _e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p>592 <p><input class="button-primary" type="submit" name="send" value="<?php esc_html_e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" /> 593 <input class="button-secondary" type="submit" name="preview" value="<?php esc_html_e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p> 598 594 599 595 <div class="postbox"> 600 <h3><span><?php _e('Enable on Mobile', 'aspexifbsidebox'); ?></span></h3>596 <h3><span><?php esc_html_e('Enable on Mobile', 'aspexifbsidebox'); ?></span></h3> 601 597 <div class="inside"> 602 598 <table class="form-table"> 603 599 <tbody> 604 600 <tr valign="top"> 605 <th scope="row"><?php _e('iPad & iPod', 'aspexifbsidebox'); ?></th>606 <td><input type="checkbox" value="on" name="afbsb_edipad" checked disabled readonly /><?php echo $pro_link_main; ?></td>607 </tr> 608 <tr valign="top"> 609 <th scope="row"><?php _e('iPhone', 'aspexifbsidebox'); ?></th>610 <td><input type="checkbox" value="on" name="afbsb_ediphone" checked disabled readonly /><?php echo $pro_link_main; ?></td>611 </tr> 612 <tr valign="top"> 613 <th scope="row"><?php _e('Android', 'aspexifbsidebox'); ?></th>614 <td><input type="checkbox" value="on" name="afbsb_edandroid" checked disabled readonly /><?php echo $pro_link_main; ?></td>615 </tr> 616 <tr valign="top"> 617 <th scope="row"><?php _e('Other Mobile Devices', 'aspexifbsidebox'); ?></th>618 <td><input type="checkbox" value="on" name="afbsb_edothers" checked disabled readonly /><?php echo $pro_link_main; ?></td>601 <th scope="row"><?php esc_html_e('iPad & iPod', 'aspexifbsidebox'); ?></th> 602 <td><input type="checkbox" value="on" name="afbsb_edipad" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 603 </tr> 604 <tr valign="top"> 605 <th scope="row"><?php esc_html_e('iPhone', 'aspexifbsidebox'); ?></th> 606 <td><input type="checkbox" value="on" name="afbsb_ediphone" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 607 </tr> 608 <tr valign="top"> 609 <th scope="row"><?php esc_html_e('Android', 'aspexifbsidebox'); ?></th> 610 <td><input type="checkbox" value="on" name="afbsb_edandroid" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 611 </tr> 612 <tr valign="top"> 613 <th scope="row"><?php esc_html_e('Other Mobile Devices', 'aspexifbsidebox'); ?></th> 614 <td><input type="checkbox" value="on" name="afbsb_edothers" checked disabled readonly /><?php echo ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td> 619 615 </tr> 620 616 </tbody> … … 623 619 </div> 624 620 625 <p><input class="button-primary" type="submit" name="send" value="<?php _e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" />626 <input class="button-secondary" type="submit" name="preview" value="<?php _e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p>621 <p><input class="button-primary" type="submit" name="send" value="<?php esc_html_e('Save all settings', 'aspexifbsidebox'); ?>" id="submitbutton" /> 622 <input class="button-secondary" type="submit" name="preview" value="<?php esc_html_e('Save and preview', 'aspexifbsidebox'); ?>" id="previewbutton" /></p> 627 623 </form> 628 624 <div class="postbox"> 629 <h3><span><?php _e('Made by', 'aspexifbsidebox'); ?></span></h3>625 <h3><span><?php esc_html_e('Made by', 'aspexifbsidebox'); ?></span></h3> 630 626 <div class="inside"> 631 627 <div style="width: 170px; margin: 0 auto;"> … … 635 631 </div> 636 632 <div class="postbox"> 637 <h3><span><?php _e('Security Services with ASecure.me', 'aspexifbsidebox'); ?></span></h3>633 <h3><span><?php esc_html_e('Security Services with ASecure.me', 'aspexifbsidebox'); ?></span></h3> 638 634 <div class="inside"> 639 635 <div style="width: 170px; margin: 0 auto;"> 640 636 <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 637 </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> 638 <p style="text-align: center;"> 639 <?php 640 $asecure_me_link = '<a href="https://asecure.me/?utm_source=slideboxfree" target="_blank">Check out now</a>.'; 641 $asecure_me_text = esc_html__( 'We offer security services, backups and more. %s', 'aspexifblikebox' ); 642 echo sprintf($asecure_me_text, $asecure_me_link); 643 ?></p> 643 644 </div> 644 645 </div> 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 Social Media Sidebox HD</strong>', '<a href="https://wordpress.org/plugins/aspexi-facebook-like-box-sidebox/reviews/#new-post" target="_blank">★★★★★</a>') ?></div>646 <div id="aspexifbsidebox-footer" style="text-align:left;text-shadow:0 1px 0 #fff;margin:0 0 10px;color:#888;"><?php echo sprintf(esc_html__('If you like %s please leave us a %s rating. A huge thank you in advance!'), '<strong>Aspexi Social Media Sidebox HD</strong>', '<a href="https://wordpress.org/plugins/aspexi-facebook-like-box-sidebox/reviews/#new-post" target="_blank">★★★★★</a>') ?></div> 646 647 <script type="text/javascript"> 647 648 jQuery(document).ready(function(){ … … 668 669 $ret = ''; 669 670 670 $ret .= ' <a href="'. $this->get_pro_url().'" target="_blank">'.__( 'Get PRO version', 'aspexifbsidebox' ).'</a>';671 $ret .= ' <a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; 671 672 672 673 return $ret; 673 674 } 674 675 676 /** 677 * @return get_html 678 */ 679 public function get_footer_html() { 680 echo $this->get_html(); 681 } 682 675 683 public function get_html( $preview = false ) { 676 684 677 $url = apply_filters( 'aspexifbsidebox_url', $this->cf['url']);678 $status = apply_filters( 'aspexifbsidebox_status', $this->cf['status']);685 $url = apply_filters( 'aspexifbsidebox_url', esc_attr($this->cf['url'])); 686 $status = apply_filters( 'aspexifbsidebox_status', esc_attr($this->cf['status'])); 679 687 680 688 // Disable maybe … … 683 691 684 692 // Options 685 $locale = apply_filters( 'aspexifbsidebox_locale', $this->cf['locale']);693 $locale = apply_filters( 'aspexifbsidebox_locale', esc_attr($this->cf['locale'])); 686 694 $height = 218; 687 695 $width = 296; … … 742 750 if (d.getElementById(id)) return; 743 751 js = d.createElement(s); js.id = id; 744 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v1 3.0&appId=1548213832159053";752 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v14.0&appId=1548213832159053"; 745 753 fjs.parentNode.insertBefore(js, fjs); 746 754 }(document, \'script\', \'facebook - jssdk\'));</script> … … 806 814 <div class="aspexi_facebook_button"></div> 807 815 <div class="aspexi_facebook_iframe"> 808 <div class="fb-page" data-href="'.$page_url.'" data-width="'.($width - 4).'" data-height="'.($height - 4).'" data-hide-cover="false" data-show-facepile="true" data- show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="'.$page_url.'"><a href="'.$page_url.'"></a></blockquote></div></div>816 <div class="fb-page" data-href="'.$page_url.'" data-width="'.($width - 4).'" data-height="'.($height - 4).'" data-hide-cover="false" data-show-facepile="true" data-lazy="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="'.$page_url.'"><a href="'.$page_url.'"></a></blockquote></div></div> 809 817 </div> 810 818 </div>'; … … 812 820 $output = apply_filters( 'aspexifbsidebox_output', $output ); 813 821 814 echo$output;822 return $output; 815 823 } 816 824 … … 819 827 $placement = 'right'; 820 828 $slideon = 'hover'; 821 $ismobile = wp_is_mobile();829 $ismobile = wp_is_mobile(); 822 830 823 831 wp_enqueue_script( 'aspexi-facebook-side-box', ASPEXIFBSIDEBOX_URL . 'js/afsb.js', array( 'jquery' ), false, true ); … … 826 834 'placement' => $placement, 827 835 'width' => (int)$width, 828 'ismobile' => $ismobile836 'ismobile' => $ismobile 829 837 ) ); 830 838 } … … 839 847 840 848 wp_localize_script( 'aspexi-facebook-side-box-admin', 'aflb_admin', array( 841 'nonce' => wp_create_nonce( "afbsbhidenotice-nonce" )849 'nonce' => wp_create_nonce( "afbsbhidenotice-nonce" ) 842 850 ) ); 843 851 return; … … 860 868 if( $qtranslate_locale ) { 861 869 $extra_admin_content .= '<tr valign="top"> 862 <th scope="row">'. __('qTranslate/mqTranslate', 'aspexifbsidebox').'<br /><span style="font-size: 10px">'.__('Try to detect qTranslate/mqTranslate language and force it instead of language set in Localization.', 'aspexifbsidebox').'</span></th>870 <th scope="row">'.esc_html__('qTranslate/mqTranslate', 'aspexifbsidebox').'<br /><span style="font-size: 10px">'.esc_html__('Try to detect qTranslate/mqTranslate language and force it instead of language set in Localization.', 'aspexifbsidebox').'</span></th> 863 871 <td><input type="checkbox" value="on" name="afbsb_qtranslate" disabled readonly />'.$this->get_pro_link().'</td> 864 872 </tr>'; … … 872 880 if(function_exists('pll_current_language')) { 873 881 $extra_admin_content .= '<tr valign="top"> 874 <th scope="row">'. __('Polylang', 'aspexifbsidebox').'<br /><span style="font-size: 10px">'.__('Try to detect Polylang language and force it instead of language set in Localization.', 'aspexifbsidebox').'</span></th>882 <th scope="row">'.esc_html__('Polylang', 'aspexifbsidebox').'<br /><span style="font-size: 10px">'.esc_html__('Try to detect Polylang language and force it instead of language set in Localization.', 'aspexifbsidebox').'</span></th> 875 883 <td><input type="checkbox" value="on" name="afbsb_polylang" disabled readonly />'.$this->get_pro_link().'</td> 876 884 </tr>'; … … 883 891 884 892 if( !isset($this->cf['hide_notice']) || @$this->cf['hide_notice'] != '1' ) { 885 ?> 886 <div class="notice notice-success" id="afbsbnotice" style="display: flex;flex-wrap: wrap;"> 887 <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' ); ?> 893 ?> 894 <div class="notice notice-success" id="afbsbnotice" style="display: flex;flex-wrap: wrap;"> 895 <p> <?php 896 $asecure_me_link = '<a href="https://asecure.me/?utm_source=likeboxfree" target="_blank">ASecure.me</a>'; 897 $asecure_me_text = esc_html__( 'Is your site secure? Check out how can you protect your website with %s services.', 'aspexifblikebox' ); 898 echo sprintf($asecure_me_text, $asecure_me_link); 899 ?> 888 900 <div style="flex: 1 300px;margin: .5em 0;text-align: right;"> 889 <input type="button" id="afbsbhidenotice" value="<?php _e( 'Hide this notice', 'aspexifbsidebox' ); ?>" class="button" />890 <input type="button" value="<?php _e( 'Visit ASecure.me', 'aspexifbsidebox' ); ?>" onclick="window.open('https://asecure.me/?utm_source=sideboxfree');" class="button-primary" />901 <input type="button" id="afbsbhidenotice" value="<?php esc_html_e( 'Hide this notice', 'aspexifbsidebox' ); ?>" class="button" /> 902 <input type="button" value="<?php esc_html_e( 'Visit ASecure.me', 'aspexifbsidebox' ); ?>" onclick="window.open('https://asecure.me/?utm_source=sideboxfree');" class="button-primary" /> 891 903 </div> 892 </p>893 </div>894 <?php904 </p> 905 </div> 906 <?php 895 907 } 896 908 } -
aspexi-facebook-like-box-sidebox/trunk/readme.txt
r2695279 r2739803 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: 5.9.29 Stable tag: 2.1.1 68 Tested up to: 6.0 9 Stable tag: 2.1.17 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.17 = 128 * Deprecated data-show-posts 129 * Add browser's lazy-loading mechanism 130 * Facebook API update 131 127 132 = 2.1.16 = 128 133 * Plugin's updates to match Facebook Developer Submission Guidelines
Note: See TracChangeset
for help on using the changeset viewer.