Changeset 2900851
- Timestamp:
- 04/18/2023 05:49:16 PM (3 years ago)
- Location:
- show-posts
- Files:
-
- 12 edited
- 1 copied
-
tags/1.8 (copied) (copied from show-posts/trunk)
-
tags/1.8/atw-show-posts.php (modified) (3 diffs)
-
tags/1.8/includes/atw-posts-admin-top.php (modified) (1 diff)
-
tags/1.8/includes/atw-posts-template.php (modified) (5 diffs)
-
tags/1.8/includes/atw-showposts-sc.php (modified) (3 diffs)
-
tags/1.8/includes/posts-widgets.php (modified) (1 diff)
-
tags/1.8/readme.txt (modified) (2 diffs)
-
trunk/atw-show-posts.php (modified) (3 diffs)
-
trunk/includes/atw-posts-admin-top.php (modified) (1 diff)
-
trunk/includes/atw-posts-template.php (modified) (5 diffs)
-
trunk/includes/atw-showposts-sc.php (modified) (3 diffs)
-
trunk/includes/posts-widgets.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
show-posts/tags/1.8/atw-show-posts.php
r2891911 r2900851 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 1. 78 Version: 1.8 9 9 10 10 License: GPL … … 31 31 */ 32 32 33 const WEAVER_SHOWPOSTS_VERSION = '1. 7';33 const WEAVER_SHOWPOSTS_VERSION = '1.8'; 34 34 const WEAVER_SHOWPOSTS_MINIFY = '.min'; // '' for dev, '.min' for production 35 35 const WEAVER_SHOWPOSTS_TEMPLATE = false; // future feature … … 68 68 69 69 if ( function_exists( 'atw_slider_installed') && isset($page) && $page->id != 'atw_slider_post' ) { 70 echo '<a href="#TB_inline?width=400&height=300&inlineId=select-show-sliders-dialog" class="thickbox button" id="add_atw_slider_slidrs" title="' . esc_html__("Add [show_slider]", ' show-posts') . '"><span class="dashicons dashicons-images-alt"></span></span> ' . __("Add [show_slider]", 'show-posts') . '</a>';70 echo '<a href="#TB_inline?width=400&height=300&inlineId=select-show-sliders-dialog" class="thickbox button" id="add_atw_slider_slidrs" title="' . esc_html__("Add [show_slider]", 'atw-slider') . '"><span class="dashicons dashicons-images-alt"></span></span> ' . __("Add [show_slider]", 'show-posts') . '</a>'; 71 71 add_action( 'admin_footer', 'atw_posts_select_slider_form' ); 72 72 } -
show-posts/tags/1.8/includes/atw-posts-admin-top.php
r2891911 r2900851 428 428 $img = WP_CONTENT_URL . '/plugins/show-posts/images/donate-button.png'; 429 429 ?> 430 <div style="float:right;padding-right:30px;display:inline-block;"><div style="font-size:14px;font-weight:bold;display:inline-block;vertical-align: top;"><?php wp_kses_post(__('Like <em>Weaver Show Posts</em>? Please', ' show-posts' /*adm*/)); ?></div> <a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a>430 <div style="float:right;padding-right:30px;display:inline-block;"><div style="font-size:14px;font-weight:bold;display:inline-block;vertical-align: top;"><?php wp_kses_post(__('Like <em>Weaver Show Posts</em>? Please', 'weaver-xtreme' /*adm*/)); ?></div> <a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a> 431 431 </div> 432 432 -
show-posts/tags/1.8/includes/atw-posts-template.php
r2891911 r2900851 266 266 $val = ' <div class="atw-entry-meta"> <div class="atw-entry-meta-icons">'; 267 267 268 $val .= wp_kses_post(sprintf( __(268 $val .= sprintf( __( 269 269 ' <span class="entry-date"> 270 270 <a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a> … … 280 280 esc_html( get_the_date() ), 281 281 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 282 esc_html(sprintf( __( 'View all posts by %s','show-posts'), esc_attr(get_the_author() ))),283 esc_ attr( get_the_author() )284 ) );282 sprintf( esc_attr(__( 'View all posts by %s','show-posts')), get_the_author() ), 283 esc_html( get_the_author() ) 284 ); 285 285 286 286 $val .= ' </div> </div>'; … … 331 331 332 332 function atw_posts_post_title_link() { 333 return '<a href="' . esc_url(get_permalink()) . '" title="' . sprintf( esc_html(__( 'Permalink to %s','show-posts')),334 esc_attr(the_title_attribute( 'echo=0' ) )) . '" rel="bookmark">' . esc_html(get_the_title()) . '</a>';333 return '<a href="' . esc_url(get_permalink()) . '" title="' . esc_attr(sprintf( __( 'Permalink to %s','show-posts'), 334 the_title_attribute( 'echo=0' ) )) . '" rel="bookmark">' . get_the_title() . '</a>'; 335 335 } 336 336 … … 373 373 $val = ''; 374 374 375 if ( false === $zero ) $zero = esc_html__( 'No Comments' , 'show-posts');376 if ( false === $one ) $one = esc_html__( '1 Comment' , 'show-posts');377 if ( false === $more ) $more = esc_html__( '% Comments' , 'show-posts');378 if ( false === $none ) $none = esc_html__( 'Comments Off' , 'show-posts');375 if ( false === $zero ) $zero = esc_html__( 'No Comments' ); 376 if ( false === $one ) $one = esc_html__( '1 Comment' ); 377 if ( false === $more ) $more = esc_html__( '% Comments' ); 378 if ( false === $none ) $none = esc_html__( 'Comments Off' ); 379 379 380 380 $number = get_comments_number( $id ); … … 385 385 386 386 if ( post_password_required() ) { 387 return esc_html__('Enter your password to view comments.' , 'show-posts');387 return esc_html__('Enter your password to view comments.'); 388 388 } 389 389 -
show-posts/tags/1.8/includes/atw-showposts-sc.php
r2891911 r2900851 173 173 $col = 0; 174 174 if (!$ourposts->have_posts()) { 175 echo apply_filters('wvr_show_posts_no_posts', esc_html__('No posts found.', ' show-posts'));175 echo apply_filters('wvr_show_posts_no_posts', esc_html__('No posts found.', 'atw_showposts')); 176 176 } 177 177 … … 364 364 <?php 365 365 366 wp_kses_post(sprintf(__('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a></span> <span class="by-author"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'show-posts'),366 printf(__('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a></span> <span class="by-author"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'show-posts'), 367 367 esc_url(get_permalink()), 368 368 esc_attr(get_the_time()), … … 370 370 esc_html(get_the_date()), 371 371 esc_url(get_author_posts_url(get_the_author_meta('ID'))), 372 esc_ html(sprintf(__('View all posts by %s', 'show-posts'), esc_attr(get_the_author()))),373 esc_ attr(get_the_author())374 ) );372 esc_attr(sprintf(__('View all posts by %s', 'show-posts'), get_the_author())), 373 esc_html(get_the_author()) 374 ); 375 375 376 376 if (atw_trans_get('show_avatar') != '' && atw_trans_get('show_avatar') != 'no') { -
show-posts/tags/1.8/includes/posts-widgets.php
r2891911 r2900851 8 8 function __construct() { 9 9 $widget_ops = array('classname' => 'WeaverSS_Widget_Slider', 10 'description' => esc_html__('Show Posts in a widget', 'show-posts' /*adm*/));10 'description' => esc_html__('Show Posts in a widget','show-posts' /*adm*/)); 11 11 $control_ops = array('width' => 400, 'height' => 350); 12 parent::__construct('wvr_showposts', esc_html__('Weaver Show Posts', 'show-posts' /*adm*/), $widget_ops, $control_ops);12 parent::__construct('wvr_showposts', esc_html__('Weaver Show Posts','show-posts' /*adm*/), $widget_ops, $control_ops); 13 13 } 14 14 -
show-posts/tags/1.8/readme.txt
r2891911 r2900851 10 10 Requires at least: 5.4 11 11 Tested up to: 6.2 12 Stable tag: 1. 712 Stable tag: 1.8 13 13 14 14 == Description == … … 60 60 61 61 == Changelog == 62 = 1.8 = 63 * Fix: string validation, translation name 64 62 65 = 1.7 = 63 66 * Update: Wp 6.2 Compatibility -
show-posts/trunk/atw-show-posts.php
r2891911 r2900851 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 1. 78 Version: 1.8 9 9 10 10 License: GPL … … 31 31 */ 32 32 33 const WEAVER_SHOWPOSTS_VERSION = '1. 7';33 const WEAVER_SHOWPOSTS_VERSION = '1.8'; 34 34 const WEAVER_SHOWPOSTS_MINIFY = '.min'; // '' for dev, '.min' for production 35 35 const WEAVER_SHOWPOSTS_TEMPLATE = false; // future feature … … 68 68 69 69 if ( function_exists( 'atw_slider_installed') && isset($page) && $page->id != 'atw_slider_post' ) { 70 echo '<a href="#TB_inline?width=400&height=300&inlineId=select-show-sliders-dialog" class="thickbox button" id="add_atw_slider_slidrs" title="' . esc_html__("Add [show_slider]", ' show-posts') . '"><span class="dashicons dashicons-images-alt"></span></span> ' . __("Add [show_slider]", 'show-posts') . '</a>';70 echo '<a href="#TB_inline?width=400&height=300&inlineId=select-show-sliders-dialog" class="thickbox button" id="add_atw_slider_slidrs" title="' . esc_html__("Add [show_slider]", 'atw-slider') . '"><span class="dashicons dashicons-images-alt"></span></span> ' . __("Add [show_slider]", 'show-posts') . '</a>'; 71 71 add_action( 'admin_footer', 'atw_posts_select_slider_form' ); 72 72 } -
show-posts/trunk/includes/atw-posts-admin-top.php
r2891911 r2900851 428 428 $img = WP_CONTENT_URL . '/plugins/show-posts/images/donate-button.png'; 429 429 ?> 430 <div style="float:right;padding-right:30px;display:inline-block;"><div style="font-size:14px;font-weight:bold;display:inline-block;vertical-align: top;"><?php wp_kses_post(__('Like <em>Weaver Show Posts</em>? Please', ' show-posts' /*adm*/)); ?></div> <a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a>430 <div style="float:right;padding-right:30px;display:inline-block;"><div style="font-size:14px;font-weight:bold;display:inline-block;vertical-align: top;"><?php wp_kses_post(__('Like <em>Weaver Show Posts</em>? Please', 'weaver-xtreme' /*adm*/)); ?></div> <a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a> 431 431 </div> 432 432 -
show-posts/trunk/includes/atw-posts-template.php
r2891911 r2900851 266 266 $val = ' <div class="atw-entry-meta"> <div class="atw-entry-meta-icons">'; 267 267 268 $val .= wp_kses_post(sprintf( __(268 $val .= sprintf( __( 269 269 ' <span class="entry-date"> 270 270 <a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a> … … 280 280 esc_html( get_the_date() ), 281 281 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 282 esc_html(sprintf( __( 'View all posts by %s','show-posts'), esc_attr(get_the_author() ))),283 esc_ attr( get_the_author() )284 ) );282 sprintf( esc_attr(__( 'View all posts by %s','show-posts')), get_the_author() ), 283 esc_html( get_the_author() ) 284 ); 285 285 286 286 $val .= ' </div> </div>'; … … 331 331 332 332 function atw_posts_post_title_link() { 333 return '<a href="' . esc_url(get_permalink()) . '" title="' . sprintf( esc_html(__( 'Permalink to %s','show-posts')),334 esc_attr(the_title_attribute( 'echo=0' ) )) . '" rel="bookmark">' . esc_html(get_the_title()) . '</a>';333 return '<a href="' . esc_url(get_permalink()) . '" title="' . esc_attr(sprintf( __( 'Permalink to %s','show-posts'), 334 the_title_attribute( 'echo=0' ) )) . '" rel="bookmark">' . get_the_title() . '</a>'; 335 335 } 336 336 … … 373 373 $val = ''; 374 374 375 if ( false === $zero ) $zero = esc_html__( 'No Comments' , 'show-posts');376 if ( false === $one ) $one = esc_html__( '1 Comment' , 'show-posts');377 if ( false === $more ) $more = esc_html__( '% Comments' , 'show-posts');378 if ( false === $none ) $none = esc_html__( 'Comments Off' , 'show-posts');375 if ( false === $zero ) $zero = esc_html__( 'No Comments' ); 376 if ( false === $one ) $one = esc_html__( '1 Comment' ); 377 if ( false === $more ) $more = esc_html__( '% Comments' ); 378 if ( false === $none ) $none = esc_html__( 'Comments Off' ); 379 379 380 380 $number = get_comments_number( $id ); … … 385 385 386 386 if ( post_password_required() ) { 387 return esc_html__('Enter your password to view comments.' , 'show-posts');387 return esc_html__('Enter your password to view comments.'); 388 388 } 389 389 -
show-posts/trunk/includes/atw-showposts-sc.php
r2891911 r2900851 173 173 $col = 0; 174 174 if (!$ourposts->have_posts()) { 175 echo apply_filters('wvr_show_posts_no_posts', esc_html__('No posts found.', ' show-posts'));175 echo apply_filters('wvr_show_posts_no_posts', esc_html__('No posts found.', 'atw_showposts')); 176 176 } 177 177 … … 364 364 <?php 365 365 366 wp_kses_post(sprintf(__('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a></span> <span class="by-author"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'show-posts'),366 printf(__('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a></span> <span class="by-author"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'show-posts'), 367 367 esc_url(get_permalink()), 368 368 esc_attr(get_the_time()), … … 370 370 esc_html(get_the_date()), 371 371 esc_url(get_author_posts_url(get_the_author_meta('ID'))), 372 esc_ html(sprintf(__('View all posts by %s', 'show-posts'), esc_attr(get_the_author()))),373 esc_ attr(get_the_author())374 ) );372 esc_attr(sprintf(__('View all posts by %s', 'show-posts'), get_the_author())), 373 esc_html(get_the_author()) 374 ); 375 375 376 376 if (atw_trans_get('show_avatar') != '' && atw_trans_get('show_avatar') != 'no') { -
show-posts/trunk/includes/posts-widgets.php
r2891911 r2900851 8 8 function __construct() { 9 9 $widget_ops = array('classname' => 'WeaverSS_Widget_Slider', 10 'description' => esc_html__('Show Posts in a widget', 'show-posts' /*adm*/));10 'description' => esc_html__('Show Posts in a widget','show-posts' /*adm*/)); 11 11 $control_ops = array('width' => 400, 'height' => 350); 12 parent::__construct('wvr_showposts', esc_html__('Weaver Show Posts', 'show-posts' /*adm*/), $widget_ops, $control_ops);12 parent::__construct('wvr_showposts', esc_html__('Weaver Show Posts','show-posts' /*adm*/), $widget_ops, $control_ops); 13 13 } 14 14 -
show-posts/trunk/readme.txt
r2891911 r2900851 10 10 Requires at least: 5.4 11 11 Tested up to: 6.2 12 Stable tag: 1. 712 Stable tag: 1.8 13 13 14 14 == Description == … … 60 60 61 61 == Changelog == 62 = 1.8 = 63 * Fix: string validation, translation name 64 62 65 = 1.7 = 63 66 * Update: Wp 6.2 Compatibility
Note: See TracChangeset
for help on using the changeset viewer.