Changeset 2891912
- Timestamp:
- 04/01/2023 06:05:42 PM (3 years ago)
- Location:
- show-sliders
- Files:
-
- 10 edited
- 1 copied
-
tags/1.7 (copied) (copied from show-sliders/trunk)
-
tags/1.7/atw-show-sliders.php (modified) (13 diffs)
-
tags/1.7/includes/atw-activate-show-posts.php (modified) (1 diff)
-
tags/1.7/includes/class-tgm-plugin-activation.php (modified) (20 diffs)
-
tags/1.7/includes/slider-widgets.php (modified) (1 diff)
-
tags/1.7/readme.txt (modified) (1 diff)
-
trunk/atw-show-sliders.php (modified) (13 diffs)
-
trunk/includes/atw-activate-show-posts.php (modified) (1 diff)
-
trunk/includes/class-tgm-plugin-activation.php (modified) (20 diffs)
-
trunk/includes/slider-widgets.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
show-sliders/tags/1.7/atw-show-sliders.php
r2853103 r2891912 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 1. 68 Version: 1.7 9 9 10 10 License: GPL3 … … 28 28 29 29 30 const WEAVER_SLIDER_PI_VERSION = '1. 6';30 const WEAVER_SLIDER_PI_VERSION = '1.7'; 31 31 const WEAVER_SLIDER_PI_PRO = true; // change this and the Plugin Name above when building Pro version 32 32 const WEAVER_SLIDER_PI_MINIFY = '.min'; // '' for dev, '.min' for production … … 85 85 function atw_slider_register_post_cpt() 86 86 { 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'); 89 89 90 90 $capabilities = array( … … 101 101 'name' => $singular_item, 102 102 '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)), 112 112 'parent_item_colon' => '', 113 113 'menu_name' => $plural_item, … … 116 116 $args = array( 117 117 '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'), 119 119 'exclude_from_search' => true, 120 120 'public' => true, … … 138 138 139 139 $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'), 154 154 ); 155 155 $targs = array( … … 216 216 add_meta_box( 217 217 'atw_slider_intro', 218 __('Weaver Slider Post Introduction', 'show-sliders'),218 esc_html__('Weaver Slider Post Introduction', 'show-sliders'), 219 219 'atw_slider_render_meta_box_intro', 220 220 'atw_slider_post', … … 426 426 // get posts 427 427 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>'; 430 430 431 431 } … … 561 561 if (strpos($src, 'GDML-Mapping') !== false) { // hack for Google Drive Media Library 562 562 $full = image_downsize($attachment_id, 'thumbnail'); 563 $src = $full[0]; 563 if (!$full) { 564 $src = ''; 565 } else { 566 $src = $full[0]; 567 } 564 568 } 565 569 … … 749 753 750 754 //echo '<pre>'; print_r($thumbnail); echo '</pre>'; 751 $img = $thumbnail[0]; 755 if (!$thumbnail) 756 $img = ''; 757 else 758 $img = $thumbnail[0]; 752 759 if ($img == '') { // not at the first level 753 760 if (has_post_thumbnail()) { … … 756 763 $attachment_id = $attachment_obj->ID; 757 764 $thumbnail = image_downsize($attachment_id, 'thumbnail'); 758 $img = $thumbnail[0]; 765 if (!$thumbnail) 766 $img = ''; 767 else 768 $img = $thumbnail[0]; 759 769 } 760 770 } … … 791 801 $id = get_the_ID(); 792 802 $thumbnail = image_downsize($id, 'thumbnail'); 793 803 if (!$thumbnail) { 804 return; // nothing there... 805 } 794 806 $img = $thumbnail[0]; 807 795 808 if ($img == '') { // not at the first level 796 809 if (has_post_thumbnail()) { … … 799 812 $attachment_id = $attachment_obj->ID; 800 813 $thumbnail = image_downsize($attachment_id, 'thumbnail'); 801 $img = $thumbnail[0]; 814 if (!$thumbnail) 815 $img = ''; 816 else 817 $img = $thumbnail[0]; 802 818 } 803 819 } -
show-sliders/tags/1.7/includes/atw-activate-show-posts.php
r2428756 r2891912 37 37 '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 38 38 '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 name42 '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) 47 47 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) 49 49 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 link50 '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 58 58 ) 59 59 ); -
show-sliders/tags/1.7/includes/class-tgm-plugin-activation.php
r1319333 r2891912 333 333 // Load class strings. 334 334 $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( 340 340 'This theme requires the following plugin: %1$s.', 341 341 'This theme requires the following plugins: %1$s.', 342 342 'weaver-xtreme' 343 ) ,344 'notice_can_install_recommended' => _n_noop(343 )), 344 'notice_can_install_recommended' => esc_html(_n_noop( 345 345 'This theme recommends the following plugin: %1$s.', 346 346 'This theme recommends the following plugins: %1$s.', 347 347 'weaver-xtreme' 348 ) ,349 'notice_cannot_install' => _n_noop(348 )), 349 'notice_cannot_install' => esc_html(_n_noop( 350 350 'Sorry, but you do not have the correct permissions to install the %1$s plugin.', 351 351 'Sorry, but you do not have the correct permissions to install the %1$s plugins.', 352 352 'weaver-xtreme' 353 ) ,354 'notice_ask_to_update' => _n_noop(353 )), 354 'notice_ask_to_update' => esc_html(_n_noop( 355 355 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 356 356 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 357 357 'weaver-xtreme' 358 ) ,359 'notice_ask_to_update_maybe' => _n_noop(358 )), 359 'notice_ask_to_update_maybe' => esc_html(_n_noop( 360 360 'There is an update available for: %1$s.', 361 361 'There are updates available for the following plugins: %1$s.', 362 362 'weaver-xtreme' 363 ) ,364 'notice_cannot_update' => _n_noop(363 )), 364 'notice_cannot_update' => esc_html(_n_noop( 365 365 'Sorry, but you do not have the correct permissions to update the %1$s plugin.', 366 366 'Sorry, but you do not have the correct permissions to update the %1$s plugins.', 367 367 'weaver-xtreme' 368 ) ,369 'notice_can_activate_required' => _n_noop(368 )), 369 'notice_can_activate_required' => esc_html(_n_noop( 370 370 'The following required plugin is currently inactive: %1$s.', 371 371 'The following required plugins are currently inactive: %1$s.', 372 372 'weaver-xtreme' 373 ) ,374 'notice_can_activate_recommended' => _n_noop(373 )), 374 'notice_can_activate_recommended' => esc_html(_n_noop( 375 375 'The following recommended plugin is currently inactive: %1$s.', 376 376 'The following recommended plugins are currently inactive: %1$s.', 377 377 'weaver-xtreme' 378 ) ,379 'notice_cannot_activate' => _n_noop(378 )), 379 'notice_cannot_activate' => esc_html(_n_noop( 380 380 'Sorry, but you do not have the correct permissions to activate the %1$s plugin.', 381 381 'Sorry, but you do not have the correct permissions to activate the %1$s plugins.', 382 382 'weaver-xtreme' 383 ) ,384 'install_link' => _n_noop(383 )), 384 'install_link' => esc_html(_n_noop( 385 385 'Begin installing plugin', 386 386 'Begin installing plugins', 387 387 'weaver-xtreme' 388 ) ,389 'update_link' => _n_noop(388 )), 389 'update_link' => esc_html(_n_noop( 390 390 'Begin updating plugin', 391 391 'Begin updating plugins', 392 392 'weaver-xtreme' 393 ) ,394 'activate_link' => _n_noop(393 )), 394 'activate_link' => esc_html(_n_noop( 395 395 'Begin activating plugin', 396 396 'Begin activating plugins', 397 397 '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' ), 408 408 ); 409 409 … … 524 524 '<a href="%1$s" title="%2$s" class="edit">%3$s</a>', 525 525 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' ), 527 527 esc_html__( 'Update Required', 'weaver-xtreme' ) 528 528 ); … … 1886 1886 public function show_tgmpa_version() { 1887 1887 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 ) ), 1889 1889 '</small></strong></p>'; 1890 1890 } … … 2172 2172 protected function get_plugin_advise_type_text( $required ) { 2173 2173 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' ); 2178 2178 } 2179 2179 … … 2191 2191 switch ( $type ) { 2192 2192 case 'repo': 2193 $string = __( 'WordPress Repository', 'weaver-xtreme' );2193 $string = esc_html__( 'WordPress Repository', 'weaver-xtreme' ); 2194 2194 break; 2195 2195 case 'external': 2196 $string = __( 'External Source', 'weaver-xtreme' );2196 $string = esc_html__( 'External Source', 'weaver-xtreme' ); 2197 2197 break; 2198 2198 case 'bundled': 2199 $string = __( 'Pre-Packaged', 'weaver-xtreme' );2199 $string = esc_html__( 'Pre-Packaged', 'weaver-xtreme' ); 2200 2200 break; 2201 2201 } … … 2218 2218 2219 2219 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' ); 2221 2221 } else { 2222 $install_status = __( 'Active', 'weaver-xtreme' );2222 $install_status = esc_html__( 'Active', 'weaver-xtreme' ); 2223 2223 } 2224 2224 … … 2226 2226 2227 2227 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' ); 2229 2229 2230 2230 } elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) { 2231 $update_status = __( 'Requires Update', 'weaver-xtreme' );2231 $update_status = esc_html__( 'Requires Update', 'weaver-xtreme' ); 2232 2232 2233 2233 } 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' ); 2235 2235 } 2236 2236 … … 2240 2240 2241 2241 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' ), 2243 2243 $install_status, 2244 2244 $update_status … … 2376 2376 2377 2377 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' ); 2379 2379 2380 2380 $color = ''; … … 2384 2384 2385 2385 $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>', 2387 2387 $color, 2388 2388 $installed … … 2392 2392 if ( ! empty( $item['minimum_version'] ) ) { 2393 2393 $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>', 2395 2395 $item['minimum_version'] 2396 2396 ); … … 2404 2404 2405 2405 $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>', 2407 2407 $color, 2408 2408 $item['available_version'] … … 2441 2441 $columns = array( 2442 2442 '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' ), 2446 2446 ); 2447 2447 2448 2448 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' ); 2451 2451 } 2452 2452 … … 2496 2496 // Display the 'Install' action link if the plugin is not yet available. 2497 2497 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' ); 2499 2499 } else { 2500 2500 // Display the 'Update' action link if an update is available and WP complies with plugin minimum. 2501 2501 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' ); 2503 2503 } 2504 2504 2505 2505 // Display the 'Activate' action link, but only if the plugin meets the minimum version. 2506 2506 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' ); 2508 2508 } 2509 2509 } … … 2608 2608 if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) { 2609 2609 if ( current_user_can( 'install_plugins' ) ) { 2610 $actions['tgmpa-bulk-install'] = __( 'Install', 'weaver-xtreme' );2610 $actions['tgmpa-bulk-install'] = esc_html__( 'Install', 'weaver-xtreme' ); 2611 2611 } 2612 2612 } … … 2614 2614 if ( 'install' !== $this->view_context ) { 2615 2615 if ( current_user_can( 'update_plugins' ) ) { 2616 $actions['tgmpa-bulk-update'] = __( 'Update', 'weaver-xtreme' );2616 $actions['tgmpa-bulk-update'] = esc_html__( 'Update', 'weaver-xtreme' ); 2617 2617 } 2618 2618 if ( current_user_can( 'activate_plugins' ) ) { 2619 $actions['tgmpa-bulk-activate'] = __( 'Activate', 'weaver-xtreme' );2619 $actions['tgmpa-bulk-activate'] = esc_html__( 'Activate', 'weaver-xtreme' ); 2620 2620 } 2621 2621 } … … 2648 2648 if ( empty( $_POST['plugin'] ) ) { 2649 2649 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' ); 2651 2651 } 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' ); 2653 2653 } 2654 2654 … … 2686 2686 if ( empty( $plugins_to_install ) ) { 2687 2687 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' ); 2689 2689 } 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' ); 2691 2691 } 2692 2692 … … 3033 3033 */ 3034 3034 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' ); 3037 3037 } 3038 3038 … … 3367 3367 if ( 'update' === $this->options['install_type'] ) { 3368 3368 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' ); 3370 3370 } 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' ); 3373 3373 3374 3374 if ( $this->tgmpa->is_automatic ) { 3375 3375 // 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' ); 3380 3380 } else { 3381 3381 // 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' ); 3383 3383 $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' ); 3386 3386 } 3387 3387 } -
show-sliders/tags/1.7/includes/slider-widgets.php
r2428756 r2891912 8 8 function __construct() { 9 9 $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*/)); 11 11 $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); 13 13 } 14 14 -
show-sliders/tags/1.7/readme.txt
r2853103 r2891912 10 10 Requires at least: 5.4 11 11 Tested up to: 6.1 12 Stable tag: 1. 612 Stable tag: 1.7 13 13 14 14 == Description == -
show-sliders/trunk/atw-show-sliders.php
r2853103 r2891912 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 1. 68 Version: 1.7 9 9 10 10 License: GPL3 … … 28 28 29 29 30 const WEAVER_SLIDER_PI_VERSION = '1. 6';30 const WEAVER_SLIDER_PI_VERSION = '1.7'; 31 31 const WEAVER_SLIDER_PI_PRO = true; // change this and the Plugin Name above when building Pro version 32 32 const WEAVER_SLIDER_PI_MINIFY = '.min'; // '' for dev, '.min' for production … … 85 85 function atw_slider_register_post_cpt() 86 86 { 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'); 89 89 90 90 $capabilities = array( … … 101 101 'name' => $singular_item, 102 102 '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)), 112 112 'parent_item_colon' => '', 113 113 'menu_name' => $plural_item, … … 116 116 $args = array( 117 117 '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'), 119 119 'exclude_from_search' => true, 120 120 'public' => true, … … 138 138 139 139 $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'), 154 154 ); 155 155 $targs = array( … … 216 216 add_meta_box( 217 217 'atw_slider_intro', 218 __('Weaver Slider Post Introduction', 'show-sliders'),218 esc_html__('Weaver Slider Post Introduction', 'show-sliders'), 219 219 'atw_slider_render_meta_box_intro', 220 220 'atw_slider_post', … … 426 426 // get posts 427 427 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>'; 430 430 431 431 } … … 561 561 if (strpos($src, 'GDML-Mapping') !== false) { // hack for Google Drive Media Library 562 562 $full = image_downsize($attachment_id, 'thumbnail'); 563 $src = $full[0]; 563 if (!$full) { 564 $src = ''; 565 } else { 566 $src = $full[0]; 567 } 564 568 } 565 569 … … 749 753 750 754 //echo '<pre>'; print_r($thumbnail); echo '</pre>'; 751 $img = $thumbnail[0]; 755 if (!$thumbnail) 756 $img = ''; 757 else 758 $img = $thumbnail[0]; 752 759 if ($img == '') { // not at the first level 753 760 if (has_post_thumbnail()) { … … 756 763 $attachment_id = $attachment_obj->ID; 757 764 $thumbnail = image_downsize($attachment_id, 'thumbnail'); 758 $img = $thumbnail[0]; 765 if (!$thumbnail) 766 $img = ''; 767 else 768 $img = $thumbnail[0]; 759 769 } 760 770 } … … 791 801 $id = get_the_ID(); 792 802 $thumbnail = image_downsize($id, 'thumbnail'); 793 803 if (!$thumbnail) { 804 return; // nothing there... 805 } 794 806 $img = $thumbnail[0]; 807 795 808 if ($img == '') { // not at the first level 796 809 if (has_post_thumbnail()) { … … 799 812 $attachment_id = $attachment_obj->ID; 800 813 $thumbnail = image_downsize($attachment_id, 'thumbnail'); 801 $img = $thumbnail[0]; 814 if (!$thumbnail) 815 $img = ''; 816 else 817 $img = $thumbnail[0]; 802 818 } 803 819 } -
show-sliders/trunk/includes/atw-activate-show-posts.php
r2428756 r2891912 37 37 '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 38 38 '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 name42 '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) 47 47 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) 49 49 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 link50 '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 58 58 ) 59 59 ); -
show-sliders/trunk/includes/class-tgm-plugin-activation.php
r1319333 r2891912 333 333 // Load class strings. 334 334 $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( 340 340 'This theme requires the following plugin: %1$s.', 341 341 'This theme requires the following plugins: %1$s.', 342 342 'weaver-xtreme' 343 ) ,344 'notice_can_install_recommended' => _n_noop(343 )), 344 'notice_can_install_recommended' => esc_html(_n_noop( 345 345 'This theme recommends the following plugin: %1$s.', 346 346 'This theme recommends the following plugins: %1$s.', 347 347 'weaver-xtreme' 348 ) ,349 'notice_cannot_install' => _n_noop(348 )), 349 'notice_cannot_install' => esc_html(_n_noop( 350 350 'Sorry, but you do not have the correct permissions to install the %1$s plugin.', 351 351 'Sorry, but you do not have the correct permissions to install the %1$s plugins.', 352 352 'weaver-xtreme' 353 ) ,354 'notice_ask_to_update' => _n_noop(353 )), 354 'notice_ask_to_update' => esc_html(_n_noop( 355 355 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 356 356 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 357 357 'weaver-xtreme' 358 ) ,359 'notice_ask_to_update_maybe' => _n_noop(358 )), 359 'notice_ask_to_update_maybe' => esc_html(_n_noop( 360 360 'There is an update available for: %1$s.', 361 361 'There are updates available for the following plugins: %1$s.', 362 362 'weaver-xtreme' 363 ) ,364 'notice_cannot_update' => _n_noop(363 )), 364 'notice_cannot_update' => esc_html(_n_noop( 365 365 'Sorry, but you do not have the correct permissions to update the %1$s plugin.', 366 366 'Sorry, but you do not have the correct permissions to update the %1$s plugins.', 367 367 'weaver-xtreme' 368 ) ,369 'notice_can_activate_required' => _n_noop(368 )), 369 'notice_can_activate_required' => esc_html(_n_noop( 370 370 'The following required plugin is currently inactive: %1$s.', 371 371 'The following required plugins are currently inactive: %1$s.', 372 372 'weaver-xtreme' 373 ) ,374 'notice_can_activate_recommended' => _n_noop(373 )), 374 'notice_can_activate_recommended' => esc_html(_n_noop( 375 375 'The following recommended plugin is currently inactive: %1$s.', 376 376 'The following recommended plugins are currently inactive: %1$s.', 377 377 'weaver-xtreme' 378 ) ,379 'notice_cannot_activate' => _n_noop(378 )), 379 'notice_cannot_activate' => esc_html(_n_noop( 380 380 'Sorry, but you do not have the correct permissions to activate the %1$s plugin.', 381 381 'Sorry, but you do not have the correct permissions to activate the %1$s plugins.', 382 382 'weaver-xtreme' 383 ) ,384 'install_link' => _n_noop(383 )), 384 'install_link' => esc_html(_n_noop( 385 385 'Begin installing plugin', 386 386 'Begin installing plugins', 387 387 'weaver-xtreme' 388 ) ,389 'update_link' => _n_noop(388 )), 389 'update_link' => esc_html(_n_noop( 390 390 'Begin updating plugin', 391 391 'Begin updating plugins', 392 392 'weaver-xtreme' 393 ) ,394 'activate_link' => _n_noop(393 )), 394 'activate_link' => esc_html(_n_noop( 395 395 'Begin activating plugin', 396 396 'Begin activating plugins', 397 397 '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' ), 408 408 ); 409 409 … … 524 524 '<a href="%1$s" title="%2$s" class="edit">%3$s</a>', 525 525 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' ), 527 527 esc_html__( 'Update Required', 'weaver-xtreme' ) 528 528 ); … … 1886 1886 public function show_tgmpa_version() { 1887 1887 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 ) ), 1889 1889 '</small></strong></p>'; 1890 1890 } … … 2172 2172 protected function get_plugin_advise_type_text( $required ) { 2173 2173 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' ); 2178 2178 } 2179 2179 … … 2191 2191 switch ( $type ) { 2192 2192 case 'repo': 2193 $string = __( 'WordPress Repository', 'weaver-xtreme' );2193 $string = esc_html__( 'WordPress Repository', 'weaver-xtreme' ); 2194 2194 break; 2195 2195 case 'external': 2196 $string = __( 'External Source', 'weaver-xtreme' );2196 $string = esc_html__( 'External Source', 'weaver-xtreme' ); 2197 2197 break; 2198 2198 case 'bundled': 2199 $string = __( 'Pre-Packaged', 'weaver-xtreme' );2199 $string = esc_html__( 'Pre-Packaged', 'weaver-xtreme' ); 2200 2200 break; 2201 2201 } … … 2218 2218 2219 2219 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' ); 2221 2221 } else { 2222 $install_status = __( 'Active', 'weaver-xtreme' );2222 $install_status = esc_html__( 'Active', 'weaver-xtreme' ); 2223 2223 } 2224 2224 … … 2226 2226 2227 2227 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' ); 2229 2229 2230 2230 } elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) { 2231 $update_status = __( 'Requires Update', 'weaver-xtreme' );2231 $update_status = esc_html__( 'Requires Update', 'weaver-xtreme' ); 2232 2232 2233 2233 } 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' ); 2235 2235 } 2236 2236 … … 2240 2240 2241 2241 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' ), 2243 2243 $install_status, 2244 2244 $update_status … … 2376 2376 2377 2377 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' ); 2379 2379 2380 2380 $color = ''; … … 2384 2384 2385 2385 $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>', 2387 2387 $color, 2388 2388 $installed … … 2392 2392 if ( ! empty( $item['minimum_version'] ) ) { 2393 2393 $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>', 2395 2395 $item['minimum_version'] 2396 2396 ); … … 2404 2404 2405 2405 $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>', 2407 2407 $color, 2408 2408 $item['available_version'] … … 2441 2441 $columns = array( 2442 2442 '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' ), 2446 2446 ); 2447 2447 2448 2448 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' ); 2451 2451 } 2452 2452 … … 2496 2496 // Display the 'Install' action link if the plugin is not yet available. 2497 2497 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' ); 2499 2499 } else { 2500 2500 // Display the 'Update' action link if an update is available and WP complies with plugin minimum. 2501 2501 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' ); 2503 2503 } 2504 2504 2505 2505 // Display the 'Activate' action link, but only if the plugin meets the minimum version. 2506 2506 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' ); 2508 2508 } 2509 2509 } … … 2608 2608 if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) { 2609 2609 if ( current_user_can( 'install_plugins' ) ) { 2610 $actions['tgmpa-bulk-install'] = __( 'Install', 'weaver-xtreme' );2610 $actions['tgmpa-bulk-install'] = esc_html__( 'Install', 'weaver-xtreme' ); 2611 2611 } 2612 2612 } … … 2614 2614 if ( 'install' !== $this->view_context ) { 2615 2615 if ( current_user_can( 'update_plugins' ) ) { 2616 $actions['tgmpa-bulk-update'] = __( 'Update', 'weaver-xtreme' );2616 $actions['tgmpa-bulk-update'] = esc_html__( 'Update', 'weaver-xtreme' ); 2617 2617 } 2618 2618 if ( current_user_can( 'activate_plugins' ) ) { 2619 $actions['tgmpa-bulk-activate'] = __( 'Activate', 'weaver-xtreme' );2619 $actions['tgmpa-bulk-activate'] = esc_html__( 'Activate', 'weaver-xtreme' ); 2620 2620 } 2621 2621 } … … 2648 2648 if ( empty( $_POST['plugin'] ) ) { 2649 2649 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' ); 2651 2651 } 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' ); 2653 2653 } 2654 2654 … … 2686 2686 if ( empty( $plugins_to_install ) ) { 2687 2687 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' ); 2689 2689 } 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' ); 2691 2691 } 2692 2692 … … 3033 3033 */ 3034 3034 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' ); 3037 3037 } 3038 3038 … … 3367 3367 if ( 'update' === $this->options['install_type'] ) { 3368 3368 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' ); 3370 3370 } 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' ); 3373 3373 3374 3374 if ( $this->tgmpa->is_automatic ) { 3375 3375 // 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' ); 3380 3380 } else { 3381 3381 // 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' ); 3383 3383 $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' ); 3386 3386 } 3387 3387 } -
show-sliders/trunk/includes/slider-widgets.php
r2428756 r2891912 8 8 function __construct() { 9 9 $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*/)); 11 11 $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); 13 13 } 14 14 -
show-sliders/trunk/readme.txt
r2853103 r2891912 10 10 Requires at least: 5.4 11 11 Tested up to: 6.1 12 Stable tag: 1. 612 Stable tag: 1.7 13 13 14 14 == Description ==
Note: See TracChangeset
for help on using the changeset viewer.