Plugin Directory

Changeset 2739803


Ignore:
Timestamp:
06/09/2022 09:35:38 AM (4 years ago)
Author:
aspexi
Message:

2.1.17

Location:
aspexi-facebook-like-box-sidebox
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • aspexi-facebook-like-box-sidebox/trunk/aspexi-facebook-side-box.php

    r2702875 r2739803  
    55Description: Plugin adds fancy Facebook Like Box Sidebox
    66Author: Aspexi
    7 Version: 2.1.16
     7Version: 2.1.17
    88Author URI: http://aspexi.com/
    99License: GPLv2 or later
     
    2727defined('ABSPATH') or exit();
    2828
    29 __( 'Plugin adds fancy Facebook Like Box Sidebox', 'aspexifbsidebox' );
     29esc_html__( 'Plugin adds fancy Facebook Like Box Sidebox', 'aspexifbsidebox' );
    3030
    3131if ( !class_exists( 'AspexiFBsidebox' ) ) {
     
    4949            add_action( 'admin_notices',        array( &$this, 'admin_notices'));
    5050            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 );
    5252            add_action( 'admin_enqueue_scripts',array( &$this, 'admin_scripts') );
    5353            add_action( 'wp_ajax_afbsb_hide_notice', array( &$this, 'admin_notices_handle') );
     
    101101                array_unshift( $action_links, $pro_link );
    102102
    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>';
    104104                array_unshift( $action_links, $settings_link );
    105105            }
     
    125125        }
    126126
    127         public function display_admin_notices( $echo = false ) {
     127        public function display_admin_notices( ) {
    128128            $ret = '';
    129129
    130130            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>';
    132132            }
    133133
    134134            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;
    142139        }
    143140
    144141        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') );
    146143        }
    147144
     
    149146
    150147            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.'));
    152149            }
    153150
     
    158155
    159156                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' ) );
    161158
    162159                if( !$this->has_errors() ) {
     
    170167                    update_option( 'aspexifbsidebox_options',  $this->cf, 'yes' );
    171168
    172                     $this->add_message( __( 'Settings saved.', 'aspexifbsidebox' ) );
     169                    $this->add_message( esc_html__( 'Settings saved.', 'aspexifbsidebox' ) );
    173170
    174171                    // Preview maybe
     
    303300            ?>
    304301            <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(); ?>
    307304                <div id="poststuff" class="metabox-holder">
    308305                    <div id="post-body">
     
    311308
    312309                                <input type="hidden" name="afbsb_form_submit" value="submit" />
    313                                 <?php $pro_link_main = $this->get_pro_link(); ?>
    314310                                <div class="postbox">
    315                                     <h3><span><?php _e('Settings', 'aspexifbsidebox'); ?></span></h3>
     311                                    <h3><span><?php esc_html_e('Settings', 'aspexifbsidebox'); ?></span></h3>
    316312                                    <div class="inside">
    317313                                        <table class="form-table">
    318314                                            <tbody>
    319315                                            <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>
    321317                                                <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>
    324320                                                    </select></td>
    325321                                            </tr>
    326322                                            <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>
    328324                                                <td>http://www.facebook.com/&nbsp;<input type="text" name="afbsb_url" value="<?php echo esc_html_e($this->cf['url']); ?>" />
    329325                                                </td>
    330326                                            </tr>
    331327                                            <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 />&nbsp;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 />&nbsp;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="afbsb_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 />&nbsp;px<?php echo '&nbsp;&nbsp;&nbsp;<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 />&nbsp;px<?php echo '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    350346                                            </tr>
    351347                                            <tr valign="top">
    352348                                                <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>
    355351                                                </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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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>
    368364                                                <td><?php echo $locales_input; ?></td>
    369365                                            </tr>
    370366                                            <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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    373369                                            </tr>
    374370                                            <tr valign="top">
    375371                                                <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>
    378374                                                </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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    380376                                            </tr>
    381377                                            <tr valign="top">
    382378                                                <th scope="row">
    383                                                     <?php _e('Tabs', 'aspexifbsidebox'); ?>
     379                                                    <?php esc_html_e('Tabs', 'aspexifbsidebox'); ?>
    384380                                                </th>
    385381                                                <td>
     
    393389                                                        <input type="checkbox" value="on" name="afbsb_tabs[messages]" disabled readonly /> Messages
    394390                                                    </label>
    395                                                     <p><?php echo $pro_link_main; ?></p>
     391                                                    <p><?php echo '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></p>
    396392                                                </td>
    397393                                            </tr>
     
    405401                                </div>
    406402
    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>
    409405                                <?php wp_nonce_field( plugin_basename( __FILE__ ), 'afbsb_nonce_name' ); ?>
    410406
    411407                                <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>
    413409                                    <div class="inside">
    414410                                        <table class="form-table">
    415411                                            <tbody>
    416412                                            <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 />&nbsp;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 />&nbsp;<?php _e('top of sidebox','aspexifbsidebox'); ?><br />
    423                                                     <input type="radio" name="afbsb_btvertical" value="middle" checked disabled readonly />&nbsp;<?php _e('middle of sidebox','aspexifbsidebox'); ?><br />
    424                                                     <input type="radio" name="afbsb_btvertical" value="bottom" disabled readonly />&nbsp;<?php _e('bottom of sidebox','aspexifbsidebox'); ?><br />
    425                                                     <input type="radio" name="afbsb_btvertical" value="fixed" disabled readonly />&nbsp;<?php _e('fixed','aspexifbsidebox'); ?>
    426                                                     <input type="text" name="afbsb_btvertical_val" value="" size="3" disabled readonly />&nbsp;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 />&nbsp;px<?php echo '&nbsp;&nbsp;&nbsp;<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 />&nbsp;<?php esc_html_e('top of sidebox','aspexifbsidebox'); ?><br />
     419                                                    <input type="radio" name="afbsb_btvertical" value="middle" checked disabled readonly />&nbsp;<?php esc_html_e('middle of sidebox','aspexifbsidebox'); ?><br />
     420                                                    <input type="radio" name="afbsb_btvertical" value="bottom" disabled readonly />&nbsp;<?php esc_html_e('bottom of sidebox','aspexifbsidebox'); ?><br />
     421                                                    <input type="radio" name="afbsb_btvertical" value="fixed" disabled readonly />&nbsp;<?php esc_html_e('fixed','aspexifbsidebox'); ?>
     422                                                    <input type="text" name="afbsb_btvertical_val" value="" size="3" disabled readonly />&nbsp;px <?php esc_html_e('from sidebox top','aspexifbsidebox'); ?><?php echo '&nbsp;&nbsp;&nbsp;<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>
    431427                                                <td><span><input type="radio" name="afbsb_btimage" value="fb1-right" checked disabled readonly />&nbsp;<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 />&nbsp;<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 />&nbsp;<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 />&nbsp;<img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/preview-buttons.jpg'; ?>" alt="" style="cursor:pointer;" /></span><?php echo '&nbsp;&nbsp;&nbsp;<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 />&nbsp;<img src="<?php echo ASPEXIFBSIDEBOX_URL.'images/svgonoff.png'; ?>" alt="" style="cursor:pointer;" /><?php echo '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    438434                                            </tr>
    439435                                            </tbody>
     
    442438                                </div>
    443439
    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>
    446442
    447443                                <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>
    449445                                    <div class="inside">
    450446                                        <table class="form-table">
    451447                                            <tbody>
    452448                                            <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>
    454450                                                <td>
    455451                                                    <input type="checkbox" value="on" name="afbsb_animate_on_page_load" disabled readonly />&nbsp
     
    457453                                            </tr>
    458454                                            <tr valign="top">
    459                                                 <th scope="row"><?php _e('Placement', 'aspexifbsidebox'); ?></th>
     455                                                <th scope="row"><?php esc_html_e('Placement', 'aspexifbsidebox'); ?></th>
    460456                                                <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 />&nbsp;<?php _e('middle','aspexifbsidebox'); ?><br />
    468                                                     <input type="radio" name="afbsb_vertical" value="fixed" disabled readonly />&nbsp;<?php _e('fixed','aspexifbsidebox'); ?>
    469                                                     <input type="text" name="afbsb_vertical_val" value="" size="3" disabled readonly />&nbsp;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 />&nbsp;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 '&nbsp;&nbsp;&nbsp;<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 />&nbsp;<?php esc_html_e('middle','aspexifbsidebox'); ?><br />
     464                                                    <input type="radio" name="afbsb_vertical" value="fixed" disabled readonly />&nbsp;<?php esc_html_e('fixed','aspexifbsidebox'); ?>
     465                                                    <input type="text" name="afbsb_vertical_val" value="" size="3" disabled readonly />&nbsp;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 '&nbsp;&nbsp;&nbsp;<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 />&nbsp;px<?php echo '&nbsp;&nbsp;&nbsp;<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>
    482478                                                <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 />&nbsp;<?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 '&nbsp;&nbsp;&nbsp;<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 />&nbsp;<?php esc_html_e('milliseconds', 'aspexifbsidebox'); ?><?php echo '&nbsp;&nbsp;&nbsp;<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>
    493489                                                <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'); ?>&nbsp;<input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly />&nbsp;<?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 '&nbsp;&nbsp;&nbsp;<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'); ?>&nbsp;<input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly />&nbsp;<?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>
    500496                                                <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'); ?>&nbsp;<input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly />&nbsp;<?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 '&nbsp;&nbsp;&nbsp;<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'); ?>&nbsp;<input type="text" name="afbsb_autoopentime" value="400" size="3" disabled readonly />&nbsp;<?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 '&nbsp;&nbsp;&nbsp;<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>
    511507                                                <td>
    512508                                                    <input type="checkbox" value="on" name="afbsb_autoopenonposition" disabled readonly /><br>
    513                                                     <?php echo __( 'Auto open when user is', 'aspexifbsidebox' ); ?>:&nbsp;<input type="text" disabled readonly name="afbsb_autoopenonposition_px" size="5">px&nbsp;from:
     509                                                    <?php echo esc_html__( 'Auto open when user is', 'aspexifbsidebox' ); ?>:&nbsp;<input type="text" disabled readonly name="afbsb_autoopenonposition_px" size="5">px&nbsp;from:
    514510                                                    <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>
    517513                                                    </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 '&nbsp;&nbsp;&nbsp;<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>
    523519                                                <td>
    524520                                                    <input type="checkbox" value="on" name="afbsb_autoopenonelement" disabled readonly /><br>
    525                                                     <?php echo __( 'Auto open when user reaches', 'aspexifbsidebox' ); ?>:&nbsp;<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'); ?>:&nbsp;<input type="text" name="afbsb_disableparam" value="" size="6" disabled readonly /><br />
    536                                                     <?php _e('Value', 'aspexifbsidebox'); ?>:&nbsp;<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' ); ?>:&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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'); ?>:&nbsp;<input type="text" name="afbsb_disableparam" value="" size="6" disabled readonly /><br />
     532                                                    <?php esc_html_e('Value', 'aspexifbsidebox'); ?>:&nbsp;<input type="text" name="afbsb_disableval" value="" size="6" disabled readonly /><?php echo '&nbsp;&nbsp;&nbsp;<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>
    541537                                                <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 '&nbsp;&nbsp;&nbsp;<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>
    547543                                                <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 '&nbsp;&nbsp;&nbsp;<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>
    553549                                                <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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?>
    555551                                                </td>
    556552                                            </tr>
     
    566562                                            unset($types['oembed_cache']);
    567563                                            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 '&nbsp;&nbsp;&nbsp;<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>
    571579                                                <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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    590586                                            </tr>
    591587                                            </tbody>
     
    594590                                </div>
    595591
    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>
    598594
    599595                                <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>
    601597                                    <div class="inside">
    602598                                        <table class="form-table">
    603599                                            <tbody>
    604600                                            <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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<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 '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>'; ?></td>
    619615                                            </tr>
    620616                                            </tbody>
     
    623619                                </div>
    624620
    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>
    627623                            </form>
    628624                            <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>
    630626                                <div class="inside">
    631627                                    <div style="width: 170px; margin: 0 auto;">
     
    635631                            </div>
    636632                            <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>
    638634                                <div class="inside">
    639635                                    <div style="width: 170px; margin: 0 auto;">
    640636                                        <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>
    641637                                    </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>
    643644                                </div>
    644645                            </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">&#9733;&#9733;&#9733;&#9733;&#9733</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">&#9733;&#9733;&#9733;&#9733;&#9733</a>') ?></div>
    646647                            <script type="text/javascript">
    647648                                jQuery(document).ready(function(){
     
    668669            $ret = '';
    669670
    670             $ret .= '&nbsp;&nbsp;&nbsp;<a href="'.$this->get_pro_url().'" target="_blank">'.__( 'Get PRO version', 'aspexifbsidebox' ).'</a>';
     671            $ret .= '&nbsp;&nbsp;&nbsp;<a href="'.esc_url($this->get_pro_url()).'" target="_blank">'.esc_html__( 'Get PRO version', 'aspexifbsidebox' ).'</a>';
    671672
    672673            return $ret;
    673674        }
    674675
     676        /**
     677         * @return get_html
     678         */
     679        public function get_footer_html()     {
     680            echo $this->get_html();
     681        }
     682
    675683        public function get_html( $preview = false ) {
    676684
    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']));
    679687
    680688            // Disable maybe
     
    683691
    684692            // Options
    685             $locale         = apply_filters( 'aspexifbsidebox_locale', $this->cf['locale'] );
     693            $locale         = apply_filters( 'aspexifbsidebox_locale', esc_attr($this->cf['locale']));
    686694            $height         = 218;
    687695            $width          = 296;
     
    742750                if (d.getElementById(id)) return;
    743751                js = d.createElement(s); js.id = id;
    744                 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v13.0&appId=1548213832159053";
     752                js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v14.0&appId=1548213832159053";
    745753                fjs.parentNode.insertBefore(js, fjs);
    746754            }(document, \'script\', \'facebook - jssdk\'));</script>
     
    806814                <div class="aspexi_facebook_button"></div>
    807815                <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>
    809817                </div>
    810818            </div>';
     
    812820            $output = apply_filters( 'aspexifbsidebox_output', $output );
    813821
    814             echo $output;
     822            return $output;
    815823        }
    816824
     
    819827            $placement  = 'right';
    820828            $slideon    = 'hover';
    821             $ismobile   = wp_is_mobile();
     829            $ismobile   = wp_is_mobile();
    822830
    823831            wp_enqueue_script( 'aspexi-facebook-side-box', ASPEXIFBSIDEBOX_URL . 'js/afsb.js', array( 'jquery' ), false, true );
     
    826834                'placement' => $placement,
    827835                'width'     => (int)$width,
    828                 'ismobile'  => $ismobile
     836                'ismobile'  => $ismobile
    829837            ) );
    830838        }
     
    839847
    840848            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" )
    842850            ) );
    843851            return;
     
    860868            if( $qtranslate_locale ) {
    861869                $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>
    863871    <td><input type="checkbox" value="on" name="afbsb_qtranslate" disabled readonly />'.$this->get_pro_link().'</td>
    864872</tr>';
     
    872880            if(function_exists('pll_current_language')) {
    873881                $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>
    875883    <td><input type="checkbox" value="on" name="afbsb_polylang" disabled readonly />'.$this->get_pro_link().'</td>
    876884</tr>';
     
    883891
    884892            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                        ?>
    888900                    <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" />
    891903                    </div>
    892                 </p>
    893             </div>
    894         <?php
     904                    </p>
     905                </div>
     906                <?php
    895907            }
    896908        }
  • aspexi-facebook-like-box-sidebox/trunk/readme.txt

    r2695279 r2739803  
    66Tags: 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
    77Requires at least: 3.0
    8 Tested up to: 5.9.2
    9 Stable tag: 2.1.16
     8Tested up to: 6.0
     9Stable tag: 2.1.17
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    125125== Changelog ==
    126126
     127= 2.1.17 =
     128* Deprecated data-show-posts
     129* Add browser's lazy-loading mechanism
     130* Facebook API update
     131
    127132= 2.1.16 =
    128133* Plugin's updates to match Facebook Developer Submission Guidelines
Note: See TracChangeset for help on using the changeset viewer.