Plugin Directory

Changeset 2891912


Ignore:
Timestamp:
04/01/2023 06:05:42 PM (3 years ago)
Author:
wpweaver
Message:

Version 1.7

Location:
show-sliders
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • show-sliders/tags/1.7/atw-show-sliders.php

    r2853103 r2891912  
    66Author: wpweaver
    77Author URI: http://weavertheme.com/about/
    8 Version: 1.6
     8Version: 1.7
    99
    1010License: GPL3
     
    2828
    2929
    30 const WEAVER_SLIDER_PI_VERSION = '1.6';
     30const WEAVER_SLIDER_PI_VERSION = '1.7';
    3131const WEAVER_SLIDER_PI_PRO = true;            // change this and the Plugin Name above when building Pro version
    3232const WEAVER_SLIDER_PI_MINIFY = '.min';        // '' for dev, '.min' for production
     
    8585        function atw_slider_register_post_cpt()
    8686        {
    87             $singular_item = __('Weaver Slider Post', 'show-sliders');
    88             $plural_item = __('Weaver Slider Posts', 'show-sliders');
     87            $singular_item = esc_html__('Weaver Slider Post', 'show-sliders');
     88            $plural_item = esc_html__('Weaver Slider Posts', 'show-sliders');
    8989
    9090            $capabilities = array(
     
    101101                'name' => $singular_item,
    102102                'singular_name' => 'Slider',
    103                 'add_new' => __('New', 'show-sliders') . ' ' . $singular_item,
    104                 'add_new_item' => __('New', 'show-sliders') . ' ' . $singular_item,
    105                 'edit_item' => __('Edit', 'show-sliders') . ' ' . $singular_item,
    106                 'new_item' => __('New', 'show-sliders') . ' ' . $singular_item,
    107                 'all_items' => __('All', 'show-sliders') . ' ' . $plural_item,
    108                 'view_item' => __('View', 'show-sliders') . ' ' . $singular_item,
    109                 'search_items' => __('Search', 'show-sliders') . ' ' . $plural_item,
    110                 'not_found' => sprintf(__('No %s found', 'show-sliders'), $plural_item),
    111                 'not_found_in_trash' => sprintf(__('No %s found in trash', 'show-sliders'), $plural_item),
     103                'add_new' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     104                'add_new_item' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     105                'edit_item' =>esc_html__('Edit', 'show-sliders') . ' ' . $singular_item,
     106                'new_item' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     107                'all_items' => esc_html__('All', 'show-sliders') . ' ' . $plural_item,
     108                'view_item' => esc_html__('View', 'show-sliders') . ' ' . $singular_item,
     109                'search_items' => esc_html__('Search', 'show-sliders') . ' ' . $plural_item,
     110                'not_found' => esc_html(sprintf(__('No %s found', 'show-sliders'), $plural_item)),
     111                'not_found_in_trash' => esc_html(sprintf(__('No %s found in trash', 'show-sliders'), $plural_item)),
    112112                'parent_item_colon' => '',
    113113                'menu_name' => $plural_item,
     
    116116            $args = array(
    117117                'labels' => $labels,
    118                 'description' => __('Auxiliary Custom Post Type to use for defining sliders.', 'show-sliders'),
     118                'description' => esc_html__('Auxiliary Custom Post Type to use for defining sliders.', 'show-sliders'),
    119119                'exclude_from_search' => true,
    120120                'public' => true,
     
    138138
    139139            $tlabels = array(
    140                 'name' => _x('Slider Group', 'Taxonomy General Name', 'show-sliders'),
    141                 'singular_name' => _x('Slider Group', 'Taxonomy Singular Name', 'show-sliders'),
    142                 'menu_name' => __('Slider Groups', 'show-sliders'),
    143                 'all_items' => __('All Slider Groups', 'show-sliders'),
    144                 'parent_item' => __('Parent Slider Group', 'show-sliders'),
    145                 'parent_item_colon' => __('Parent Slider Group:', 'show-sliders'),
    146                 'new_item_name' => __('New Slider Group', 'show-sliders'),
    147                 'add_new_item' => __('Add New Slider Group', 'show-sliders'),
    148                 'edit_item' => __('Edit Slider Group', 'show-sliders'),
    149                 'update_item' => __('Update Slider Group', 'show-sliders'),
    150                 'separate_items_with_commas' => __('Separate Slider Groups with commas', 'show-sliders'),
    151                 'search_items' => __('Search Slider Groups', 'show-sliders'),
    152                 'add_or_remove_items' => __('Add or remove Groups', 'show-sliders'),
    153                 'choose_from_most_used' => __('Choose from the most used groups', 'show-sliders'),
     140                'name' => esc_html_x('Slider Group', 'Taxonomy General Name', 'show-sliders'),
     141                'singular_name' => esc_html_x('Slider Group', 'Taxonomy Singular Name', 'show-sliders'),
     142                'menu_name' => esc_html__('Slider Groups', 'show-sliders'),
     143                'all_items' => esc_html__('All Slider Groups', 'show-sliders'),
     144                'parent_item' => esc_html__('Parent Slider Group', 'show-sliders'),
     145                'parent_item_colon' => esc_html__('Parent Slider Group:', 'show-sliders'),
     146                'new_item_name' => esc_html__('New Slider Group', 'show-sliders'),
     147                'add_new_item' => esc_html__('Add New Slider Group', 'show-sliders'),
     148                'edit_item' => esc_html__('Edit Slider Group', 'show-sliders'),
     149                'update_item' => esc_html__('Update Slider Group', 'show-sliders'),
     150                'separate_items_with_commas' => esc_html__('Separate Slider Groups with commas', 'show-sliders'),
     151                'search_items' => esc_html__('Search Slider Groups', 'show-sliders'),
     152                'add_or_remove_items' => esc_html__('Add or remove Groups', 'show-sliders'),
     153                'choose_from_most_used' => esc_html__('Choose from the most used groups', 'show-sliders'),
    154154            );
    155155            $targs = array(
     
    216216            add_meta_box(
    217217                'atw_slider_intro',
    218                 __('Weaver Slider Post Introduction', 'show-sliders'),
     218                esc_html__('Weaver Slider Post Introduction', 'show-sliders'),
    219219                'atw_slider_render_meta_box_intro',
    220220                'atw_slider_post',
     
    426426                // get posts
    427427                if (!$qargs->have_posts()) {
    428                     $content .= '<em>' . __('No posts found.', 'show-sliders') . ' ' . __('Slider Post slug: `', 'show-sliders') . $qargs->query['name'] .
    429                         __('` - Slider: `', 'show-sliders') . $slider . '`.</em>';
     428                    $content .= '<em>' . esc_html__('No posts found.', 'show-sliders') . ' ' . esc_html__('Slider Post slug: `', 'show-sliders') . $qargs->query['name'] .
     429                        esc_html__('` - Slider: `', 'show-sliders') . $slider . '`.</em>';
    430430
    431431                }
     
    561561            if (strpos($src, 'GDML-Mapping') !== false) {        // hack for Google Drive Media Library
    562562                $full = image_downsize($attachment_id, 'thumbnail');
    563                 $src = $full[0];
     563                if (!$full) {
     564                    $src = '';
     565                } else {
     566                    $src = $full[0];
     567                }
    564568            }
    565569
     
    749753
    750754                //echo '<pre>'; print_r($thumbnail); echo '</pre>';
    751                 $img = $thumbnail[0];
     755                if (!$thumbnail)
     756                    $img = '';
     757                else
     758                    $img = $thumbnail[0];
    752759                if ($img == '') {     // not at the first level
    753760                    if (has_post_thumbnail()) {
     
    756763                            $attachment_id = $attachment_obj->ID;
    757764                            $thumbnail = image_downsize($attachment_id, 'thumbnail');
    758                             $img = $thumbnail[0];
     765                            if (!$thumbnail)
     766                                $img = '';
     767                            else
     768                                $img = $thumbnail[0];
    759769                        }
    760770                    }
     
    791801            $id = get_the_ID();
    792802            $thumbnail = image_downsize($id, 'thumbnail');
    793 
     803            if (!$thumbnail) {
     804                return; // nothing there...
     805            }
    794806            $img = $thumbnail[0];
     807
    795808            if ($img == '') {     // not at the first level
    796809                if (has_post_thumbnail()) {
     
    799812                        $attachment_id = $attachment_obj->ID;
    800813                        $thumbnail = image_downsize($attachment_id, 'thumbnail');
    801                         $img = $thumbnail[0];
     814                        if (!$thumbnail)
     815                            $img = '';
     816                        else
     817                            $img = $thumbnail[0];
    802818                    }
    803819                }
  • show-sliders/tags/1.7/includes/atw-activate-show-posts.php

    r2428756 r2891912  
    3737        'message'          => '<p>The following plugin is REQUIRED for Weaver Show Sliders to work. Weaver Show Posts provides the admin interface to select posts to display using the Slider.</p>', // Message to output right before the plugins table
    3838        'strings'          => array(
    39         'page_title'                      => __( 'Weaver Show Slider Required Plugin', 'show_sliders' ),
    40         'menu_title'                      => __( 'Show Slider Plugin', 'show_sliders' ),
    41         'installing'                      => __( 'Installing Plugin: %s', 'show_sliders' ), // %1$s = plugin name
    42         'oops'                            => __( 'Something went wrong with the plugin API.', 'show_sliders' ),
    43         'notice_can_install_required'     => _n_noop( 'Weaver Show Sliders <em>requires</em> the following plugin: %1$s.', 'Weaver Show Sliders <em>requires</em> the following plugins: %1$s.' ), // %1$s = plugin name(s)
    44         'notice_can_install_recommended'  => _n_noop( 'Weaver Show Sliders recommends this plugin, %1$s.', 'Weaver Show Sliders recommends these plugins, %1$s.' ), // %1$s = plugin name(s)
    45         'notice_cannot_install'           => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)
    46         'notice_can_activate_required'    => _n_noop( 'The following plugin <em>required</em> by Weaver Show Sliders is currently inactive: %1$s.', 'The following plugins <em>required</em> by Weaver Show Sliders are currently inactive: %1$s.' ), // %1$s = plugin name(s)
     39        'page_title'                      => esc_html__( 'Weaver Show Slider Required Plugin', 'show_sliders' ),
     40        'menu_title'                      => esc_html__( 'Show Slider Plugin', 'show_sliders' ),
     41        'installing'                      => esc_html__( 'Installing Plugin: %s', 'show_sliders' ), // %1$s = plugin name
     42        'oops'                            => esc_html__( 'Something went wrong with the plugin API.', 'show_sliders' ),
     43        'notice_can_install_required'     => esc_html(_n_noop( 'Weaver Show Sliders <em>requires</em> the following plugin: %1$s.', 'Weaver Show Sliders <em>requires</em> the following plugins: %1$s.' )),    // %1$s = plugin name(s)
     44        'notice_can_install_recommended'  => esc_html(_n_noop( 'Weaver Show Sliders recommends this plugin, %1$s.', 'Weaver Show Sliders recommends these plugins, %1$s.' )), // %1$s = plugin name(s)
     45        'notice_cannot_install'           => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' )), // %1$s = plugin name(s)
     46        'notice_can_activate_required'    => esc_html(_n_noop( 'The following plugin <em>required</em> by Weaver Show Sliders is currently inactive: %1$s.', 'The following plugins <em>required</em> by Weaver Show Sliders are currently inactive: %1$s.' )), // %1$s = plugin name(s)
    4747
    48         'notice_can_activate_recommended' => _n_noop( 'Please activate this recommended plugin, %1$s.', 'Please activate these recommended plugins, %1$s.' ), // %1$s = plugin name(s)
     48        'notice_can_activate_recommended' => esc_html(_n_noop( 'Please activate this recommended plugin, %1$s.', 'Please activate these recommended plugins, %1$s.' )), // %1$s = plugin name(s)
    4949
    50         'notice_cannot_activate'          => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)
    51         'notice_ask_to_update'            => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with Weaver: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)
    52         'notice_cannot_update'            => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)
    53         'install_link'                    => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),
    54         'activate_link'                   => _n_noop( 'Open Plugins Admin Page to Activate', 'Open Plugins Admin Page to Activate' ),
    55         'return'                          => __( 'Return to Required Plugins Installer', 'show_sliders' ),
    56         'plugin_activated'                => __( 'Plugin activated successfully.', 'show_sliders' ),
    57         'complete'                        => __( 'All plugins installed and activated successfully. %s', 'show_sliders' ) // %1$s = dashboard link
     50        'notice_cannot_activate'          => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' )), // %1$s = plugin name(s)
     51        'notice_ask_to_update'            => esc_html(_n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with Weaver: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' )), // %1$s = plugin name(s)
     52        'notice_cannot_update'            => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' )), // %1$s = plugin name(s)
     53        'install_link'                    => esc_html(_n_noop( 'Begin installing plugin', 'Begin installing plugins' )),
     54        'activate_link'                   => esc_html(_n_noop( 'Open Plugins Admin Page to Activate', 'Open Plugins Admin Page to Activate' )),
     55        'return'                          => esc_html__( 'Return to Required Plugins Installer', 'show_sliders' ),
     56        'plugin_activated'                => esc_html__( 'Plugin activated successfully.', 'show_sliders' ),
     57        'complete'                        => esc_html__( 'All plugins installed and activated successfully. %s', 'show_sliders' ) // %1$s = dashboard link
    5858        )
    5959    );
  • show-sliders/tags/1.7/includes/class-tgm-plugin-activation.php

    r1319333 r2891912  
    333333            // Load class strings.
    334334            $this->strings = array(
    335                 'page_title'                      => __( 'Install Required Plugins', 'weaver-xtreme' ),
    336                 'menu_title'                      => __( 'Install Plugins', 'weaver-xtreme' ),
    337                 'installing'                      => __( 'Installing Plugin: %s', 'weaver-xtreme' ),
    338                 'oops'                            => __( 'Something went wrong with the plugin API.', 'weaver-xtreme' ),
    339                 'notice_can_install_required'     => _n_noop(
     335                'page_title'                      => esc_html__( 'Install Required Plugins', 'weaver-xtreme' ),
     336                'menu_title'                      => esc_html__( 'Install Plugins', 'weaver-xtreme' ),
     337                'installing'                      => esc_html__( 'Installing Plugin: %s', 'weaver-xtreme' ),
     338                'oops'                            => esc_html__( 'Something went wrong with the plugin API.', 'weaver-xtreme' ),
     339                'notice_can_install_required'     => esc_html(_n_noop(
    340340                    'This theme requires the following plugin: %1$s.',
    341341                    'This theme requires the following plugins: %1$s.',
    342342                    'weaver-xtreme'
    343                 ),
    344                 'notice_can_install_recommended'  => _n_noop(
     343                )),
     344                'notice_can_install_recommended'  => esc_html(_n_noop(
    345345                    'This theme recommends the following plugin: %1$s.',
    346346                    'This theme recommends the following plugins: %1$s.',
    347347                    'weaver-xtreme'
    348                 ),
    349                 'notice_cannot_install'           => _n_noop(
     348                )),
     349                'notice_cannot_install'           => esc_html(_n_noop(
    350350                    'Sorry, but you do not have the correct permissions to install the %1$s plugin.',
    351351                    'Sorry, but you do not have the correct permissions to install the %1$s plugins.',
    352352                    'weaver-xtreme'
    353                 ),
    354                 'notice_ask_to_update'            => _n_noop(
     353                )),
     354                'notice_ask_to_update'            => esc_html(_n_noop(
    355355                    'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
    356356                    'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
    357357                    'weaver-xtreme'
    358                 ),
    359                 'notice_ask_to_update_maybe'      => _n_noop(
     358                )),
     359                'notice_ask_to_update_maybe'      => esc_html(_n_noop(
    360360                    'There is an update available for: %1$s.',
    361361                    'There are updates available for the following plugins: %1$s.',
    362362                    'weaver-xtreme'
    363                 ),
    364                 'notice_cannot_update'            => _n_noop(
     363                )),
     364                'notice_cannot_update'            => esc_html(_n_noop(
    365365                    'Sorry, but you do not have the correct permissions to update the %1$s plugin.',
    366366                    'Sorry, but you do not have the correct permissions to update the %1$s plugins.',
    367367                    'weaver-xtreme'
    368                 ),
    369                 'notice_can_activate_required'    => _n_noop(
     368                )),
     369                'notice_can_activate_required'    => esc_html(_n_noop(
    370370                    'The following required plugin is currently inactive: %1$s.',
    371371                    'The following required plugins are currently inactive: %1$s.',
    372372                    'weaver-xtreme'
    373                 ),
    374                 'notice_can_activate_recommended' => _n_noop(
     373                )),
     374                'notice_can_activate_recommended' => esc_html(_n_noop(
    375375                    'The following recommended plugin is currently inactive: %1$s.',
    376376                    'The following recommended plugins are currently inactive: %1$s.',
    377377                    'weaver-xtreme'
    378                 ),
    379                 'notice_cannot_activate'          => _n_noop(
     378                )),
     379                'notice_cannot_activate'          => esc_html(_n_noop(
    380380                    'Sorry, but you do not have the correct permissions to activate the %1$s plugin.',
    381381                    'Sorry, but you do not have the correct permissions to activate the %1$s plugins.',
    382382                    'weaver-xtreme'
    383                 ),
    384                 'install_link'                    => _n_noop(
     383                )),
     384                'install_link'                    => esc_html(_n_noop(
    385385                    'Begin installing plugin',
    386386                    'Begin installing plugins',
    387387                    'weaver-xtreme'
    388                 ),
    389                 'update_link'                     => _n_noop(
     388                )),
     389                'update_link'                     => esc_html(_n_noop(
    390390                    'Begin updating plugin',
    391391                    'Begin updating plugins',
    392392                    'weaver-xtreme'
    393                 ),
    394                 'activate_link'                   => _n_noop(
     393                )),
     394                'activate_link'                   => esc_html(_n_noop(
    395395                    'Begin activating plugin',
    396396                    'Begin activating plugins',
    397397                    'weaver-xtreme'
    398                 ),
    399                 'return'                          => __( 'Return to Required Plugins Installer', 'weaver-xtreme' ),
    400                 'dashboard'                       => __( 'Return to the dashboard', 'weaver-xtreme' ),
    401                 'plugin_activated'                => __( 'Plugin activated successfully.', 'weaver-xtreme' ),
    402                 'activated_successfully'          => __( 'The following plugin was activated successfully:', 'weaver-xtreme' ),
    403                 'plugin_already_active'           => __( 'No action taken. Plugin %1$s was already active.', 'weaver-xtreme' ),
    404                 'plugin_needs_higher_version'     => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'weaver-xtreme' ),
    405                 'complete'                        => __( 'All plugins installed and activated successfully. %1$s', 'weaver-xtreme' ),
    406                 'dismiss'                         => __( 'Dismiss this notice', 'weaver-xtreme' ),
    407                 'contact_admin'                   => __( 'Please contact the administrator of this site for help.', 'weaver-xtreme' ),
     398                )),
     399                'return'                          => esc_html__( 'Return to Required Plugins Installer', 'weaver-xtreme' ),
     400                'dashboard'                       => esc_html__( 'Return to the dashboard', 'weaver-xtreme' ),
     401                'plugin_activated'                => esc_html__( 'Plugin activated successfully.', 'weaver-xtreme' ),
     402                'activated_successfully'          => esc_html__( 'The following plugin was activated successfully:', 'weaver-xtreme' ),
     403                'plugin_already_active'           => esc_html__( 'No action taken. Plugin %1$s was already active.', 'weaver-xtreme' ),
     404                'plugin_needs_higher_version'     => esc_html__( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'weaver-xtreme' ),
     405                'complete'                        => esc_html__( 'All plugins installed and activated successfully. %1$s', 'weaver-xtreme' ),
     406                'dismiss'                         => esc_html__( 'Dismiss this notice', 'weaver-xtreme' ),
     407                'contact_admin'                   => esc_html__( 'Please contact the administrator of this site for help.', 'weaver-xtreme' ),
    408408            );
    409409
     
    524524                '<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
    525525                esc_url( $this->get_tgmpa_status_url( 'update' ) ),
    526                 esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'weaver-xtreme' ),
     526                esc_html__( 'This plugin needs to be updated to be compatible with your theme.', 'weaver-xtreme' ),
    527527                esc_html__( 'Update Required', 'weaver-xtreme' )
    528528            );
     
    18861886        public function show_tgmpa_version() {
    18871887            echo '<p style="float: right; padding: 0em 1.5em 0.5em 0;"><strong><small>',
    1888                 esc_html( sprintf( _x( 'TGMPA v%s', '%s = version number', 'weaver-xtreme' ), self::TGMPA_VERSION ) ),
     1888                esc_html( sprintf( esc_html_x( 'TGMPA v%s', '%s = version number', 'weaver-xtreme' ), self::TGMPA_VERSION ) ),
    18891889                '</small></strong></p>';
    18901890        }
     
    21722172        protected function get_plugin_advise_type_text( $required ) {
    21732173            if ( true === $required ) {
    2174                 return __( 'Required', 'weaver-xtreme' );
    2175             }
    2176 
    2177             return __( 'Recommended', 'weaver-xtreme' );
     2174                return esc_html__( 'Required', 'weaver-xtreme' );
     2175            }
     2176
     2177            return esc_html__( 'Recommended', 'weaver-xtreme' );
    21782178        }
    21792179
     
    21912191            switch ( $type ) {
    21922192                case 'repo':
    2193                     $string = __( 'WordPress Repository', 'weaver-xtreme' );
     2193                    $string = esc_html__( 'WordPress Repository', 'weaver-xtreme' );
    21942194                    break;
    21952195                case 'external':
    2196                     $string = __( 'External Source', 'weaver-xtreme' );
     2196                    $string = esc_html__( 'External Source', 'weaver-xtreme' );
    21972197                    break;
    21982198                case 'bundled':
    2199                     $string = __( 'Pre-Packaged', 'weaver-xtreme' );
     2199                    $string = esc_html__( 'Pre-Packaged', 'weaver-xtreme' );
    22002200                    break;
    22012201            }
     
    22182218
    22192219            if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
    2220                 $install_status = __( 'Installed But Not Activated', 'weaver-xtreme' );
     2220                $install_status = esc_html__( 'Installed But Not Activated', 'weaver-xtreme' );
    22212221            } else {
    2222                 $install_status = __( 'Active', 'weaver-xtreme' );
     2222                $install_status = esc_html__( 'Active', 'weaver-xtreme' );
    22232223            }
    22242224
     
    22262226
    22272227            if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
    2228                 $update_status = __( 'Required Update not Available', 'weaver-xtreme' );
     2228                $update_status = esc_html__( 'Required Update not Available', 'weaver-xtreme' );
    22292229
    22302230            } elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
    2231                 $update_status = __( 'Requires Update', 'weaver-xtreme' );
     2231                $update_status = esc_html__( 'Requires Update', 'weaver-xtreme' );
    22322232
    22332233            } elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
    2234                 $update_status = __( 'Update recommended', 'weaver-xtreme' );
     2234                $update_status = esc_html__( 'Update recommended', 'weaver-xtreme' );
    22352235            }
    22362236
     
    22402240
    22412241            return sprintf(
    2242                 _x( '%1$s, %2$s', '%1$s = install status, %2$s = update status', 'weaver-xtreme' ),
     2242                esc_html_x( '%1$s, %2$s', '%1$s = install status, %2$s = update status', 'weaver-xtreme' ),
    22432243                $install_status,
    22442244                $update_status
     
    23762376
    23772377            if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
    2378                 $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'weaver-xtreme' );
     2378                $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : esc_html_x( 'unknown', 'as in: "version nr unknown"', 'weaver-xtreme' );
    23792379
    23802380                $color = '';
     
    23842384
    23852385                $output[] = sprintf(
    2386                     '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'weaver-xtreme' ) . '</p>',
     2386                    '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . esc_html__( 'Installed version:', 'weaver-xtreme' ) . '</p>',
    23872387                    $color,
    23882388                    $installed
     
    23922392            if ( ! empty( $item['minimum_version'] ) ) {
    23932393                $output[] = sprintf(
    2394                     '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'weaver-xtreme' ) . '</p>',
     2394                    '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . esc_html__( 'Minimum required version:', 'weaver-xtreme' ) . '</p>',
    23952395                    $item['minimum_version']
    23962396                );
     
    24042404
    24052405                $output[] = sprintf(
    2406                     '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'weaver-xtreme' ) . '</p>',
     2406                    '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . esc_html__( 'Available version:', 'weaver-xtreme' ) . '</p>',
    24072407                    $color,
    24082408                    $item['available_version']
     
    24412441            $columns = array(
    24422442                'cb'     => '<input type="checkbox" />',
    2443                 'plugin' => __( 'Plugin', 'weaver-xtreme' ),
    2444                 'source' => __( 'Source', 'weaver-xtreme' ),
    2445                 'type'   => __( 'Type', 'weaver-xtreme' ),
     2443                'plugin' => esc_html__( 'Plugin', 'weaver-xtreme' ),
     2444                'source' => esc_html__( 'Source', 'weaver-xtreme' ),
     2445                'type'   => esc_html__( 'Type', 'weaver-xtreme' ),
    24462446            );
    24472447
    24482448            if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
    2449                 $columns['version'] = __( 'Version', 'weaver-xtreme' );
    2450                 $columns['status']  = __( 'Status', 'weaver-xtreme' );
     2449                $columns['version'] = esc_html__( 'Version', 'weaver-xtreme' );
     2450                $columns['status']  = esc_html__( 'Status', 'weaver-xtreme' );
    24512451            }
    24522452
     
    24962496            // Display the 'Install' action link if the plugin is not yet available.
    24972497            if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
    2498                 $actions['install'] = _x( 'Install %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2498                $actions['install'] = esc_html_x( 'Install %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    24992499            } else {
    25002500                // Display the 'Update' action link if an update is available and WP complies with plugin minimum.
    25012501                if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
    2502                     $actions['update'] = _x( 'Update %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2502                    $actions['update'] = esc_html_x( 'Update %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    25032503                }
    25042504
    25052505                // Display the 'Activate' action link, but only if the plugin meets the minimum version.
    25062506                if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
    2507                     $actions['activate'] = _x( 'Activate %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2507                    $actions['activate'] = esc_html_x( 'Activate %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    25082508                }
    25092509            }
     
    26082608            if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
    26092609                if ( current_user_can( 'install_plugins' ) ) {
    2610                     $actions['tgmpa-bulk-install'] = __( 'Install', 'weaver-xtreme' );
     2610                    $actions['tgmpa-bulk-install'] = esc_html__( 'Install', 'weaver-xtreme' );
    26112611                }
    26122612            }
     
    26142614            if ( 'install' !== $this->view_context ) {
    26152615                if ( current_user_can( 'update_plugins' ) ) {
    2616                     $actions['tgmpa-bulk-update'] = __( 'Update', 'weaver-xtreme' );
     2616                    $actions['tgmpa-bulk-update'] = esc_html__( 'Update', 'weaver-xtreme' );
    26172617                }
    26182618                if ( current_user_can( 'activate_plugins' ) ) {
    2619                     $actions['tgmpa-bulk-activate'] = __( 'Activate', 'weaver-xtreme' );
     2619                    $actions['tgmpa-bulk-activate'] = esc_html__( 'Activate', 'weaver-xtreme' );
    26202620                }
    26212621            }
     
    26482648                if ( empty( $_POST['plugin'] ) ) {
    26492649                    if ( 'install' === $install_type ) {
    2650                         $message = __( 'No plugins were selected to be installed. No action taken.', 'weaver-xtreme' );
     2650                        $message = esc_html__( 'No plugins were selected to be installed. No action taken.', 'weaver-xtreme' );
    26512651                    } else {
    2652                         $message = __( 'No plugins were selected to be updated. No action taken.', 'weaver-xtreme' );
     2652                        $message = esc_html__( 'No plugins were selected to be updated. No action taken.', 'weaver-xtreme' );
    26532653                    }
    26542654
     
    26862686                if ( empty( $plugins_to_install ) ) {
    26872687                    if ( 'install' === $install_type ) {
    2688                         $message = __( 'No plugins are available to be installed at this time.', 'weaver-xtreme' );
     2688                        $message = esc_html__( 'No plugins are available to be installed at this time.', 'weaver-xtreme' );
    26892689                    } else {
    2690                         $message = __( 'No plugins are available to be updated at this time.', 'weaver-xtreme' );
     2690                        $message = esc_html__( 'No plugins are available to be updated at this time.', 'weaver-xtreme' );
    26912691                    }
    26922692
     
    30333033                     */
    30343034                    public function activate_strings() {
    3035                         $this->strings['activation_failed']  = __( 'Plugin activation failed.', 'weaver-xtreme' );
    3036                         $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'weaver-xtreme' );
     3035                        $this->strings['activation_failed']  = esc_html__( 'Plugin activation failed.', 'weaver-xtreme' );
     3036                        $this->strings['activation_success'] = esc_html__( 'Plugin activated successfully.', 'weaver-xtreme' );
    30373037                    }
    30383038
     
    33673367                        if ( 'update' === $this->options['install_type'] ) {
    33683368                            parent::add_strings();
    3369                             $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3369                            $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Updating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33703370                        } else {
    3371                             $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'weaver-xtreme' );
    3372                             $this->upgrader->strings['skin_update_failed']       = __( 'The installation of %1$s failed.', 'weaver-xtreme' );
     3371                            $this->upgrader->strings['skin_update_failed_error'] = esc_html__( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'weaver-xtreme' );
     3372                            $this->upgrader->strings['skin_update_failed']       = esc_html__( 'The installation of %1$s failed.', 'weaver-xtreme' );
    33733373
    33743374                            if ( $this->tgmpa->is_automatic ) {
    33753375                                // Automatic activation strings.
    3376                                 $this->upgrader->strings['skin_upgrade_start']        = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
    3377                                 $this->upgrader->strings['skin_update_successful']    = __( '%1$s installed and activated successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
    3378                                 $this->upgrader->strings['skin_upgrade_end']          = __( 'All installations and activations have been completed.', 'weaver-xtreme' );
    3379                                 $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3376                                $this->upgrader->strings['skin_upgrade_start']        = esc_html__( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
     3377                                $this->upgrader->strings['skin_update_successful']    = esc_html__( '%1$s installed and activated successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
     3378                                $this->upgrader->strings['skin_upgrade_end']          = esc_html__( 'All installations and activations have been completed.', 'weaver-xtreme' );
     3379                                $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33803380                            } else {
    33813381                                // Default installation strings.
    3382                                 $this->upgrader->strings['skin_upgrade_start']        = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
     3382                                $this->upgrader->strings['skin_upgrade_start']        = esc_html__( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
    33833383                                $this->upgrader->strings['skin_update_successful']    = esc_html__( '%1$s installed successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
    3384                                 $this->upgrader->strings['skin_upgrade_end']          = __( 'All installations have been completed.', 'weaver-xtreme' );
    3385                                 $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3384                                $this->upgrader->strings['skin_upgrade_end']          = esc_html__( 'All installations have been completed.', 'weaver-xtreme' );
     3385                                $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Installing Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33863386                            }
    33873387                        }
  • show-sliders/tags/1.7/includes/slider-widgets.php

    r2428756 r2891912  
    88    function __construct() {
    99        $widget_ops = array('classname' => 'WeaverSS_Widget_Slider',
    10          'description' => __('Show a Slider','show-sliders' /*adm*/));
     10         'description' => esc_html__('Show a Slider','show-sliders' /*adm*/));
    1111        $control_ops = array('width' => 400, 'height' => 350);
    12         parent::__construct('wvr_showslider', __('Weaver Show Slider','show-sliders' /*adm*/), $widget_ops, $control_ops);
     12        parent::__construct('wvr_showslider', esc_html__('Weaver Show Slider','show-sliders' /*adm*/), $widget_ops, $control_ops);
    1313    }
    1414
  • show-sliders/tags/1.7/readme.txt

    r2853103 r2891912  
    1010Requires at least: 5.4
    1111Tested up to: 6.1
    12 Stable tag: 1.6
     12Stable tag: 1.7
    1313
    1414== Description ==
  • show-sliders/trunk/atw-show-sliders.php

    r2853103 r2891912  
    66Author: wpweaver
    77Author URI: http://weavertheme.com/about/
    8 Version: 1.6
     8Version: 1.7
    99
    1010License: GPL3
     
    2828
    2929
    30 const WEAVER_SLIDER_PI_VERSION = '1.6';
     30const WEAVER_SLIDER_PI_VERSION = '1.7';
    3131const WEAVER_SLIDER_PI_PRO = true;            // change this and the Plugin Name above when building Pro version
    3232const WEAVER_SLIDER_PI_MINIFY = '.min';        // '' for dev, '.min' for production
     
    8585        function atw_slider_register_post_cpt()
    8686        {
    87             $singular_item = __('Weaver Slider Post', 'show-sliders');
    88             $plural_item = __('Weaver Slider Posts', 'show-sliders');
     87            $singular_item = esc_html__('Weaver Slider Post', 'show-sliders');
     88            $plural_item = esc_html__('Weaver Slider Posts', 'show-sliders');
    8989
    9090            $capabilities = array(
     
    101101                'name' => $singular_item,
    102102                'singular_name' => 'Slider',
    103                 'add_new' => __('New', 'show-sliders') . ' ' . $singular_item,
    104                 'add_new_item' => __('New', 'show-sliders') . ' ' . $singular_item,
    105                 'edit_item' => __('Edit', 'show-sliders') . ' ' . $singular_item,
    106                 'new_item' => __('New', 'show-sliders') . ' ' . $singular_item,
    107                 'all_items' => __('All', 'show-sliders') . ' ' . $plural_item,
    108                 'view_item' => __('View', 'show-sliders') . ' ' . $singular_item,
    109                 'search_items' => __('Search', 'show-sliders') . ' ' . $plural_item,
    110                 'not_found' => sprintf(__('No %s found', 'show-sliders'), $plural_item),
    111                 'not_found_in_trash' => sprintf(__('No %s found in trash', 'show-sliders'), $plural_item),
     103                'add_new' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     104                'add_new_item' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     105                'edit_item' =>esc_html__('Edit', 'show-sliders') . ' ' . $singular_item,
     106                'new_item' => esc_html__('New', 'show-sliders') . ' ' . $singular_item,
     107                'all_items' => esc_html__('All', 'show-sliders') . ' ' . $plural_item,
     108                'view_item' => esc_html__('View', 'show-sliders') . ' ' . $singular_item,
     109                'search_items' => esc_html__('Search', 'show-sliders') . ' ' . $plural_item,
     110                'not_found' => esc_html(sprintf(__('No %s found', 'show-sliders'), $plural_item)),
     111                'not_found_in_trash' => esc_html(sprintf(__('No %s found in trash', 'show-sliders'), $plural_item)),
    112112                'parent_item_colon' => '',
    113113                'menu_name' => $plural_item,
     
    116116            $args = array(
    117117                'labels' => $labels,
    118                 'description' => __('Auxiliary Custom Post Type to use for defining sliders.', 'show-sliders'),
     118                'description' => esc_html__('Auxiliary Custom Post Type to use for defining sliders.', 'show-sliders'),
    119119                'exclude_from_search' => true,
    120120                'public' => true,
     
    138138
    139139            $tlabels = array(
    140                 'name' => _x('Slider Group', 'Taxonomy General Name', 'show-sliders'),
    141                 'singular_name' => _x('Slider Group', 'Taxonomy Singular Name', 'show-sliders'),
    142                 'menu_name' => __('Slider Groups', 'show-sliders'),
    143                 'all_items' => __('All Slider Groups', 'show-sliders'),
    144                 'parent_item' => __('Parent Slider Group', 'show-sliders'),
    145                 'parent_item_colon' => __('Parent Slider Group:', 'show-sliders'),
    146                 'new_item_name' => __('New Slider Group', 'show-sliders'),
    147                 'add_new_item' => __('Add New Slider Group', 'show-sliders'),
    148                 'edit_item' => __('Edit Slider Group', 'show-sliders'),
    149                 'update_item' => __('Update Slider Group', 'show-sliders'),
    150                 'separate_items_with_commas' => __('Separate Slider Groups with commas', 'show-sliders'),
    151                 'search_items' => __('Search Slider Groups', 'show-sliders'),
    152                 'add_or_remove_items' => __('Add or remove Groups', 'show-sliders'),
    153                 'choose_from_most_used' => __('Choose from the most used groups', 'show-sliders'),
     140                'name' => esc_html_x('Slider Group', 'Taxonomy General Name', 'show-sliders'),
     141                'singular_name' => esc_html_x('Slider Group', 'Taxonomy Singular Name', 'show-sliders'),
     142                'menu_name' => esc_html__('Slider Groups', 'show-sliders'),
     143                'all_items' => esc_html__('All Slider Groups', 'show-sliders'),
     144                'parent_item' => esc_html__('Parent Slider Group', 'show-sliders'),
     145                'parent_item_colon' => esc_html__('Parent Slider Group:', 'show-sliders'),
     146                'new_item_name' => esc_html__('New Slider Group', 'show-sliders'),
     147                'add_new_item' => esc_html__('Add New Slider Group', 'show-sliders'),
     148                'edit_item' => esc_html__('Edit Slider Group', 'show-sliders'),
     149                'update_item' => esc_html__('Update Slider Group', 'show-sliders'),
     150                'separate_items_with_commas' => esc_html__('Separate Slider Groups with commas', 'show-sliders'),
     151                'search_items' => esc_html__('Search Slider Groups', 'show-sliders'),
     152                'add_or_remove_items' => esc_html__('Add or remove Groups', 'show-sliders'),
     153                'choose_from_most_used' => esc_html__('Choose from the most used groups', 'show-sliders'),
    154154            );
    155155            $targs = array(
     
    216216            add_meta_box(
    217217                'atw_slider_intro',
    218                 __('Weaver Slider Post Introduction', 'show-sliders'),
     218                esc_html__('Weaver Slider Post Introduction', 'show-sliders'),
    219219                'atw_slider_render_meta_box_intro',
    220220                'atw_slider_post',
     
    426426                // get posts
    427427                if (!$qargs->have_posts()) {
    428                     $content .= '<em>' . __('No posts found.', 'show-sliders') . ' ' . __('Slider Post slug: `', 'show-sliders') . $qargs->query['name'] .
    429                         __('` - Slider: `', 'show-sliders') . $slider . '`.</em>';
     428                    $content .= '<em>' . esc_html__('No posts found.', 'show-sliders') . ' ' . esc_html__('Slider Post slug: `', 'show-sliders') . $qargs->query['name'] .
     429                        esc_html__('` - Slider: `', 'show-sliders') . $slider . '`.</em>';
    430430
    431431                }
     
    561561            if (strpos($src, 'GDML-Mapping') !== false) {        // hack for Google Drive Media Library
    562562                $full = image_downsize($attachment_id, 'thumbnail');
    563                 $src = $full[0];
     563                if (!$full) {
     564                    $src = '';
     565                } else {
     566                    $src = $full[0];
     567                }
    564568            }
    565569
     
    749753
    750754                //echo '<pre>'; print_r($thumbnail); echo '</pre>';
    751                 $img = $thumbnail[0];
     755                if (!$thumbnail)
     756                    $img = '';
     757                else
     758                    $img = $thumbnail[0];
    752759                if ($img == '') {     // not at the first level
    753760                    if (has_post_thumbnail()) {
     
    756763                            $attachment_id = $attachment_obj->ID;
    757764                            $thumbnail = image_downsize($attachment_id, 'thumbnail');
    758                             $img = $thumbnail[0];
     765                            if (!$thumbnail)
     766                                $img = '';
     767                            else
     768                                $img = $thumbnail[0];
    759769                        }
    760770                    }
     
    791801            $id = get_the_ID();
    792802            $thumbnail = image_downsize($id, 'thumbnail');
    793 
     803            if (!$thumbnail) {
     804                return; // nothing there...
     805            }
    794806            $img = $thumbnail[0];
     807
    795808            if ($img == '') {     // not at the first level
    796809                if (has_post_thumbnail()) {
     
    799812                        $attachment_id = $attachment_obj->ID;
    800813                        $thumbnail = image_downsize($attachment_id, 'thumbnail');
    801                         $img = $thumbnail[0];
     814                        if (!$thumbnail)
     815                            $img = '';
     816                        else
     817                            $img = $thumbnail[0];
    802818                    }
    803819                }
  • show-sliders/trunk/includes/atw-activate-show-posts.php

    r2428756 r2891912  
    3737        'message'          => '<p>The following plugin is REQUIRED for Weaver Show Sliders to work. Weaver Show Posts provides the admin interface to select posts to display using the Slider.</p>', // Message to output right before the plugins table
    3838        'strings'          => array(
    39         'page_title'                      => __( 'Weaver Show Slider Required Plugin', 'show_sliders' ),
    40         'menu_title'                      => __( 'Show Slider Plugin', 'show_sliders' ),
    41         'installing'                      => __( 'Installing Plugin: %s', 'show_sliders' ), // %1$s = plugin name
    42         'oops'                            => __( 'Something went wrong with the plugin API.', 'show_sliders' ),
    43         'notice_can_install_required'     => _n_noop( 'Weaver Show Sliders <em>requires</em> the following plugin: %1$s.', 'Weaver Show Sliders <em>requires</em> the following plugins: %1$s.' ), // %1$s = plugin name(s)
    44         'notice_can_install_recommended'  => _n_noop( 'Weaver Show Sliders recommends this plugin, %1$s.', 'Weaver Show Sliders recommends these plugins, %1$s.' ), // %1$s = plugin name(s)
    45         'notice_cannot_install'           => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)
    46         'notice_can_activate_required'    => _n_noop( 'The following plugin <em>required</em> by Weaver Show Sliders is currently inactive: %1$s.', 'The following plugins <em>required</em> by Weaver Show Sliders are currently inactive: %1$s.' ), // %1$s = plugin name(s)
     39        'page_title'                      => esc_html__( 'Weaver Show Slider Required Plugin', 'show_sliders' ),
     40        'menu_title'                      => esc_html__( 'Show Slider Plugin', 'show_sliders' ),
     41        'installing'                      => esc_html__( 'Installing Plugin: %s', 'show_sliders' ), // %1$s = plugin name
     42        'oops'                            => esc_html__( 'Something went wrong with the plugin API.', 'show_sliders' ),
     43        'notice_can_install_required'     => esc_html(_n_noop( 'Weaver Show Sliders <em>requires</em> the following plugin: %1$s.', 'Weaver Show Sliders <em>requires</em> the following plugins: %1$s.' )),    // %1$s = plugin name(s)
     44        'notice_can_install_recommended'  => esc_html(_n_noop( 'Weaver Show Sliders recommends this plugin, %1$s.', 'Weaver Show Sliders recommends these plugins, %1$s.' )), // %1$s = plugin name(s)
     45        'notice_cannot_install'           => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' )), // %1$s = plugin name(s)
     46        'notice_can_activate_required'    => esc_html(_n_noop( 'The following plugin <em>required</em> by Weaver Show Sliders is currently inactive: %1$s.', 'The following plugins <em>required</em> by Weaver Show Sliders are currently inactive: %1$s.' )), // %1$s = plugin name(s)
    4747
    48         'notice_can_activate_recommended' => _n_noop( 'Please activate this recommended plugin, %1$s.', 'Please activate these recommended plugins, %1$s.' ), // %1$s = plugin name(s)
     48        'notice_can_activate_recommended' => esc_html(_n_noop( 'Please activate this recommended plugin, %1$s.', 'Please activate these recommended plugins, %1$s.' )), // %1$s = plugin name(s)
    4949
    50         'notice_cannot_activate'          => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)
    51         'notice_ask_to_update'            => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with Weaver: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)
    52         'notice_cannot_update'            => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)
    53         'install_link'                    => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),
    54         'activate_link'                   => _n_noop( 'Open Plugins Admin Page to Activate', 'Open Plugins Admin Page to Activate' ),
    55         'return'                          => __( 'Return to Required Plugins Installer', 'show_sliders' ),
    56         'plugin_activated'                => __( 'Plugin activated successfully.', 'show_sliders' ),
    57         'complete'                        => __( 'All plugins installed and activated successfully. %s', 'show_sliders' ) // %1$s = dashboard link
     50        'notice_cannot_activate'          => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' )), // %1$s = plugin name(s)
     51        'notice_ask_to_update'            => esc_html(_n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with Weaver: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' )), // %1$s = plugin name(s)
     52        'notice_cannot_update'            => esc_html(_n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' )), // %1$s = plugin name(s)
     53        'install_link'                    => esc_html(_n_noop( 'Begin installing plugin', 'Begin installing plugins' )),
     54        'activate_link'                   => esc_html(_n_noop( 'Open Plugins Admin Page to Activate', 'Open Plugins Admin Page to Activate' )),
     55        'return'                          => esc_html__( 'Return to Required Plugins Installer', 'show_sliders' ),
     56        'plugin_activated'                => esc_html__( 'Plugin activated successfully.', 'show_sliders' ),
     57        'complete'                        => esc_html__( 'All plugins installed and activated successfully. %s', 'show_sliders' ) // %1$s = dashboard link
    5858        )
    5959    );
  • show-sliders/trunk/includes/class-tgm-plugin-activation.php

    r1319333 r2891912  
    333333            // Load class strings.
    334334            $this->strings = array(
    335                 'page_title'                      => __( 'Install Required Plugins', 'weaver-xtreme' ),
    336                 'menu_title'                      => __( 'Install Plugins', 'weaver-xtreme' ),
    337                 'installing'                      => __( 'Installing Plugin: %s', 'weaver-xtreme' ),
    338                 'oops'                            => __( 'Something went wrong with the plugin API.', 'weaver-xtreme' ),
    339                 'notice_can_install_required'     => _n_noop(
     335                'page_title'                      => esc_html__( 'Install Required Plugins', 'weaver-xtreme' ),
     336                'menu_title'                      => esc_html__( 'Install Plugins', 'weaver-xtreme' ),
     337                'installing'                      => esc_html__( 'Installing Plugin: %s', 'weaver-xtreme' ),
     338                'oops'                            => esc_html__( 'Something went wrong with the plugin API.', 'weaver-xtreme' ),
     339                'notice_can_install_required'     => esc_html(_n_noop(
    340340                    'This theme requires the following plugin: %1$s.',
    341341                    'This theme requires the following plugins: %1$s.',
    342342                    'weaver-xtreme'
    343                 ),
    344                 'notice_can_install_recommended'  => _n_noop(
     343                )),
     344                'notice_can_install_recommended'  => esc_html(_n_noop(
    345345                    'This theme recommends the following plugin: %1$s.',
    346346                    'This theme recommends the following plugins: %1$s.',
    347347                    'weaver-xtreme'
    348                 ),
    349                 'notice_cannot_install'           => _n_noop(
     348                )),
     349                'notice_cannot_install'           => esc_html(_n_noop(
    350350                    'Sorry, but you do not have the correct permissions to install the %1$s plugin.',
    351351                    'Sorry, but you do not have the correct permissions to install the %1$s plugins.',
    352352                    'weaver-xtreme'
    353                 ),
    354                 'notice_ask_to_update'            => _n_noop(
     353                )),
     354                'notice_ask_to_update'            => esc_html(_n_noop(
    355355                    'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
    356356                    'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
    357357                    'weaver-xtreme'
    358                 ),
    359                 'notice_ask_to_update_maybe'      => _n_noop(
     358                )),
     359                'notice_ask_to_update_maybe'      => esc_html(_n_noop(
    360360                    'There is an update available for: %1$s.',
    361361                    'There are updates available for the following plugins: %1$s.',
    362362                    'weaver-xtreme'
    363                 ),
    364                 'notice_cannot_update'            => _n_noop(
     363                )),
     364                'notice_cannot_update'            => esc_html(_n_noop(
    365365                    'Sorry, but you do not have the correct permissions to update the %1$s plugin.',
    366366                    'Sorry, but you do not have the correct permissions to update the %1$s plugins.',
    367367                    'weaver-xtreme'
    368                 ),
    369                 'notice_can_activate_required'    => _n_noop(
     368                )),
     369                'notice_can_activate_required'    => esc_html(_n_noop(
    370370                    'The following required plugin is currently inactive: %1$s.',
    371371                    'The following required plugins are currently inactive: %1$s.',
    372372                    'weaver-xtreme'
    373                 ),
    374                 'notice_can_activate_recommended' => _n_noop(
     373                )),
     374                'notice_can_activate_recommended' => esc_html(_n_noop(
    375375                    'The following recommended plugin is currently inactive: %1$s.',
    376376                    'The following recommended plugins are currently inactive: %1$s.',
    377377                    'weaver-xtreme'
    378                 ),
    379                 'notice_cannot_activate'          => _n_noop(
     378                )),
     379                'notice_cannot_activate'          => esc_html(_n_noop(
    380380                    'Sorry, but you do not have the correct permissions to activate the %1$s plugin.',
    381381                    'Sorry, but you do not have the correct permissions to activate the %1$s plugins.',
    382382                    'weaver-xtreme'
    383                 ),
    384                 'install_link'                    => _n_noop(
     383                )),
     384                'install_link'                    => esc_html(_n_noop(
    385385                    'Begin installing plugin',
    386386                    'Begin installing plugins',
    387387                    'weaver-xtreme'
    388                 ),
    389                 'update_link'                     => _n_noop(
     388                )),
     389                'update_link'                     => esc_html(_n_noop(
    390390                    'Begin updating plugin',
    391391                    'Begin updating plugins',
    392392                    'weaver-xtreme'
    393                 ),
    394                 'activate_link'                   => _n_noop(
     393                )),
     394                'activate_link'                   => esc_html(_n_noop(
    395395                    'Begin activating plugin',
    396396                    'Begin activating plugins',
    397397                    'weaver-xtreme'
    398                 ),
    399                 'return'                          => __( 'Return to Required Plugins Installer', 'weaver-xtreme' ),
    400                 'dashboard'                       => __( 'Return to the dashboard', 'weaver-xtreme' ),
    401                 'plugin_activated'                => __( 'Plugin activated successfully.', 'weaver-xtreme' ),
    402                 'activated_successfully'          => __( 'The following plugin was activated successfully:', 'weaver-xtreme' ),
    403                 'plugin_already_active'           => __( 'No action taken. Plugin %1$s was already active.', 'weaver-xtreme' ),
    404                 'plugin_needs_higher_version'     => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'weaver-xtreme' ),
    405                 'complete'                        => __( 'All plugins installed and activated successfully. %1$s', 'weaver-xtreme' ),
    406                 'dismiss'                         => __( 'Dismiss this notice', 'weaver-xtreme' ),
    407                 'contact_admin'                   => __( 'Please contact the administrator of this site for help.', 'weaver-xtreme' ),
     398                )),
     399                'return'                          => esc_html__( 'Return to Required Plugins Installer', 'weaver-xtreme' ),
     400                'dashboard'                       => esc_html__( 'Return to the dashboard', 'weaver-xtreme' ),
     401                'plugin_activated'                => esc_html__( 'Plugin activated successfully.', 'weaver-xtreme' ),
     402                'activated_successfully'          => esc_html__( 'The following plugin was activated successfully:', 'weaver-xtreme' ),
     403                'plugin_already_active'           => esc_html__( 'No action taken. Plugin %1$s was already active.', 'weaver-xtreme' ),
     404                'plugin_needs_higher_version'     => esc_html__( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'weaver-xtreme' ),
     405                'complete'                        => esc_html__( 'All plugins installed and activated successfully. %1$s', 'weaver-xtreme' ),
     406                'dismiss'                         => esc_html__( 'Dismiss this notice', 'weaver-xtreme' ),
     407                'contact_admin'                   => esc_html__( 'Please contact the administrator of this site for help.', 'weaver-xtreme' ),
    408408            );
    409409
     
    524524                '<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
    525525                esc_url( $this->get_tgmpa_status_url( 'update' ) ),
    526                 esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'weaver-xtreme' ),
     526                esc_html__( 'This plugin needs to be updated to be compatible with your theme.', 'weaver-xtreme' ),
    527527                esc_html__( 'Update Required', 'weaver-xtreme' )
    528528            );
     
    18861886        public function show_tgmpa_version() {
    18871887            echo '<p style="float: right; padding: 0em 1.5em 0.5em 0;"><strong><small>',
    1888                 esc_html( sprintf( _x( 'TGMPA v%s', '%s = version number', 'weaver-xtreme' ), self::TGMPA_VERSION ) ),
     1888                esc_html( sprintf( esc_html_x( 'TGMPA v%s', '%s = version number', 'weaver-xtreme' ), self::TGMPA_VERSION ) ),
    18891889                '</small></strong></p>';
    18901890        }
     
    21722172        protected function get_plugin_advise_type_text( $required ) {
    21732173            if ( true === $required ) {
    2174                 return __( 'Required', 'weaver-xtreme' );
    2175             }
    2176 
    2177             return __( 'Recommended', 'weaver-xtreme' );
     2174                return esc_html__( 'Required', 'weaver-xtreme' );
     2175            }
     2176
     2177            return esc_html__( 'Recommended', 'weaver-xtreme' );
    21782178        }
    21792179
     
    21912191            switch ( $type ) {
    21922192                case 'repo':
    2193                     $string = __( 'WordPress Repository', 'weaver-xtreme' );
     2193                    $string = esc_html__( 'WordPress Repository', 'weaver-xtreme' );
    21942194                    break;
    21952195                case 'external':
    2196                     $string = __( 'External Source', 'weaver-xtreme' );
     2196                    $string = esc_html__( 'External Source', 'weaver-xtreme' );
    21972197                    break;
    21982198                case 'bundled':
    2199                     $string = __( 'Pre-Packaged', 'weaver-xtreme' );
     2199                    $string = esc_html__( 'Pre-Packaged', 'weaver-xtreme' );
    22002200                    break;
    22012201            }
     
    22182218
    22192219            if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
    2220                 $install_status = __( 'Installed But Not Activated', 'weaver-xtreme' );
     2220                $install_status = esc_html__( 'Installed But Not Activated', 'weaver-xtreme' );
    22212221            } else {
    2222                 $install_status = __( 'Active', 'weaver-xtreme' );
     2222                $install_status = esc_html__( 'Active', 'weaver-xtreme' );
    22232223            }
    22242224
     
    22262226
    22272227            if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
    2228                 $update_status = __( 'Required Update not Available', 'weaver-xtreme' );
     2228                $update_status = esc_html__( 'Required Update not Available', 'weaver-xtreme' );
    22292229
    22302230            } elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
    2231                 $update_status = __( 'Requires Update', 'weaver-xtreme' );
     2231                $update_status = esc_html__( 'Requires Update', 'weaver-xtreme' );
    22322232
    22332233            } elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
    2234                 $update_status = __( 'Update recommended', 'weaver-xtreme' );
     2234                $update_status = esc_html__( 'Update recommended', 'weaver-xtreme' );
    22352235            }
    22362236
     
    22402240
    22412241            return sprintf(
    2242                 _x( '%1$s, %2$s', '%1$s = install status, %2$s = update status', 'weaver-xtreme' ),
     2242                esc_html_x( '%1$s, %2$s', '%1$s = install status, %2$s = update status', 'weaver-xtreme' ),
    22432243                $install_status,
    22442244                $update_status
     
    23762376
    23772377            if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
    2378                 $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'weaver-xtreme' );
     2378                $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : esc_html_x( 'unknown', 'as in: "version nr unknown"', 'weaver-xtreme' );
    23792379
    23802380                $color = '';
     
    23842384
    23852385                $output[] = sprintf(
    2386                     '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'weaver-xtreme' ) . '</p>',
     2386                    '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . esc_html__( 'Installed version:', 'weaver-xtreme' ) . '</p>',
    23872387                    $color,
    23882388                    $installed
     
    23922392            if ( ! empty( $item['minimum_version'] ) ) {
    23932393                $output[] = sprintf(
    2394                     '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'weaver-xtreme' ) . '</p>',
     2394                    '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . esc_html__( 'Minimum required version:', 'weaver-xtreme' ) . '</p>',
    23952395                    $item['minimum_version']
    23962396                );
     
    24042404
    24052405                $output[] = sprintf(
    2406                     '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'weaver-xtreme' ) . '</p>',
     2406                    '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . esc_html__( 'Available version:', 'weaver-xtreme' ) . '</p>',
    24072407                    $color,
    24082408                    $item['available_version']
     
    24412441            $columns = array(
    24422442                'cb'     => '<input type="checkbox" />',
    2443                 'plugin' => __( 'Plugin', 'weaver-xtreme' ),
    2444                 'source' => __( 'Source', 'weaver-xtreme' ),
    2445                 'type'   => __( 'Type', 'weaver-xtreme' ),
     2443                'plugin' => esc_html__( 'Plugin', 'weaver-xtreme' ),
     2444                'source' => esc_html__( 'Source', 'weaver-xtreme' ),
     2445                'type'   => esc_html__( 'Type', 'weaver-xtreme' ),
    24462446            );
    24472447
    24482448            if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
    2449                 $columns['version'] = __( 'Version', 'weaver-xtreme' );
    2450                 $columns['status']  = __( 'Status', 'weaver-xtreme' );
     2449                $columns['version'] = esc_html__( 'Version', 'weaver-xtreme' );
     2450                $columns['status']  = esc_html__( 'Status', 'weaver-xtreme' );
    24512451            }
    24522452
     
    24962496            // Display the 'Install' action link if the plugin is not yet available.
    24972497            if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
    2498                 $actions['install'] = _x( 'Install %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2498                $actions['install'] = esc_html_x( 'Install %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    24992499            } else {
    25002500                // Display the 'Update' action link if an update is available and WP complies with plugin minimum.
    25012501                if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
    2502                     $actions['update'] = _x( 'Update %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2502                    $actions['update'] = esc_html_x( 'Update %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    25032503                }
    25042504
    25052505                // Display the 'Activate' action link, but only if the plugin meets the minimum version.
    25062506                if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
    2507                     $actions['activate'] = _x( 'Activate %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
     2507                    $actions['activate'] = esc_html_x( 'Activate %2$s', '%2$s = plugin name in screen reader markup', 'weaver-xtreme' );
    25082508                }
    25092509            }
     
    26082608            if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
    26092609                if ( current_user_can( 'install_plugins' ) ) {
    2610                     $actions['tgmpa-bulk-install'] = __( 'Install', 'weaver-xtreme' );
     2610                    $actions['tgmpa-bulk-install'] = esc_html__( 'Install', 'weaver-xtreme' );
    26112611                }
    26122612            }
     
    26142614            if ( 'install' !== $this->view_context ) {
    26152615                if ( current_user_can( 'update_plugins' ) ) {
    2616                     $actions['tgmpa-bulk-update'] = __( 'Update', 'weaver-xtreme' );
     2616                    $actions['tgmpa-bulk-update'] = esc_html__( 'Update', 'weaver-xtreme' );
    26172617                }
    26182618                if ( current_user_can( 'activate_plugins' ) ) {
    2619                     $actions['tgmpa-bulk-activate'] = __( 'Activate', 'weaver-xtreme' );
     2619                    $actions['tgmpa-bulk-activate'] = esc_html__( 'Activate', 'weaver-xtreme' );
    26202620                }
    26212621            }
     
    26482648                if ( empty( $_POST['plugin'] ) ) {
    26492649                    if ( 'install' === $install_type ) {
    2650                         $message = __( 'No plugins were selected to be installed. No action taken.', 'weaver-xtreme' );
     2650                        $message = esc_html__( 'No plugins were selected to be installed. No action taken.', 'weaver-xtreme' );
    26512651                    } else {
    2652                         $message = __( 'No plugins were selected to be updated. No action taken.', 'weaver-xtreme' );
     2652                        $message = esc_html__( 'No plugins were selected to be updated. No action taken.', 'weaver-xtreme' );
    26532653                    }
    26542654
     
    26862686                if ( empty( $plugins_to_install ) ) {
    26872687                    if ( 'install' === $install_type ) {
    2688                         $message = __( 'No plugins are available to be installed at this time.', 'weaver-xtreme' );
     2688                        $message = esc_html__( 'No plugins are available to be installed at this time.', 'weaver-xtreme' );
    26892689                    } else {
    2690                         $message = __( 'No plugins are available to be updated at this time.', 'weaver-xtreme' );
     2690                        $message = esc_html__( 'No plugins are available to be updated at this time.', 'weaver-xtreme' );
    26912691                    }
    26922692
     
    30333033                     */
    30343034                    public function activate_strings() {
    3035                         $this->strings['activation_failed']  = __( 'Plugin activation failed.', 'weaver-xtreme' );
    3036                         $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'weaver-xtreme' );
     3035                        $this->strings['activation_failed']  = esc_html__( 'Plugin activation failed.', 'weaver-xtreme' );
     3036                        $this->strings['activation_success'] = esc_html__( 'Plugin activated successfully.', 'weaver-xtreme' );
    30373037                    }
    30383038
     
    33673367                        if ( 'update' === $this->options['install_type'] ) {
    33683368                            parent::add_strings();
    3369                             $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3369                            $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Updating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33703370                        } else {
    3371                             $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'weaver-xtreme' );
    3372                             $this->upgrader->strings['skin_update_failed']       = __( 'The installation of %1$s failed.', 'weaver-xtreme' );
     3371                            $this->upgrader->strings['skin_update_failed_error'] = esc_html__( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'weaver-xtreme' );
     3372                            $this->upgrader->strings['skin_update_failed']       = esc_html__( 'The installation of %1$s failed.', 'weaver-xtreme' );
    33733373
    33743374                            if ( $this->tgmpa->is_automatic ) {
    33753375                                // Automatic activation strings.
    3376                                 $this->upgrader->strings['skin_upgrade_start']        = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
    3377                                 $this->upgrader->strings['skin_update_successful']    = __( '%1$s installed and activated successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
    3378                                 $this->upgrader->strings['skin_upgrade_end']          = __( 'All installations and activations have been completed.', 'weaver-xtreme' );
    3379                                 $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3376                                $this->upgrader->strings['skin_upgrade_start']        = esc_html__( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
     3377                                $this->upgrader->strings['skin_update_successful']    = esc_html__( '%1$s installed and activated successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
     3378                                $this->upgrader->strings['skin_upgrade_end']          = esc_html__( 'All installations and activations have been completed.', 'weaver-xtreme' );
     3379                                $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33803380                            } else {
    33813381                                // Default installation strings.
    3382                                 $this->upgrader->strings['skin_upgrade_start']        = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
     3382                                $this->upgrader->strings['skin_upgrade_start']        = esc_html__( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'weaver-xtreme' );
    33833383                                $this->upgrader->strings['skin_update_successful']    = esc_html__( '%1$s installed successfully.', 'weaver-xtreme' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'weaver-xtreme' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'weaver-xtreme' ) . '</span>.</a>';
    3384                                 $this->upgrader->strings['skin_upgrade_end']          = __( 'All installations have been completed.', 'weaver-xtreme' );
    3385                                 $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
     3384                                $this->upgrader->strings['skin_upgrade_end']          = esc_html__( 'All installations have been completed.', 'weaver-xtreme' );
     3385                                $this->upgrader->strings['skin_before_update_header'] = esc_html__( 'Installing Plugin %1$s (%2$d/%3$d)', 'weaver-xtreme' );
    33863386                            }
    33873387                        }
  • show-sliders/trunk/includes/slider-widgets.php

    r2428756 r2891912  
    88    function __construct() {
    99        $widget_ops = array('classname' => 'WeaverSS_Widget_Slider',
    10          'description' => __('Show a Slider','show-sliders' /*adm*/));
     10         'description' => esc_html__('Show a Slider','show-sliders' /*adm*/));
    1111        $control_ops = array('width' => 400, 'height' => 350);
    12         parent::__construct('wvr_showslider', __('Weaver Show Slider','show-sliders' /*adm*/), $widget_ops, $control_ops);
     12        parent::__construct('wvr_showslider', esc_html__('Weaver Show Slider','show-sliders' /*adm*/), $widget_ops, $control_ops);
    1313    }
    1414
  • show-sliders/trunk/readme.txt

    r2853103 r2891912  
    1010Requires at least: 5.4
    1111Tested up to: 6.1
    12 Stable tag: 1.6
     12Stable tag: 1.7
    1313
    1414== Description ==
Note: See TracChangeset for help on using the changeset viewer.