Plugin Directory

Changeset 2900851


Ignore:
Timestamp:
04/18/2023 05:49:16 PM (3 years ago)
Author:
wpweaver
Message:

Version 1.8

Location:
show-posts
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • show-posts/tags/1.8/atw-show-posts.php

    r2891911 r2900851  
    66Author: wpweaver
    77Author URI: http://weavertheme.com/about/
    8 Version: 1.7
     8Version: 1.8
    99
    1010License: GPL
     
    3131*/
    3232
    33 const WEAVER_SHOWPOSTS_VERSION = '1.7';
     33const WEAVER_SHOWPOSTS_VERSION = '1.8';
    3434const WEAVER_SHOWPOSTS_MINIFY = '.min';        // '' for dev, '.min' for production
    3535const WEAVER_SHOWPOSTS_TEMPLATE = false;      // future feature
     
    6868
    6969    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>';
    7171        add_action( 'admin_footer', 'atw_posts_select_slider_form' );
    7272    }
  • show-posts/tags/1.8/includes/atw-posts-admin-top.php

    r2891911 r2900851  
    428428        $img = WP_CONTENT_URL . '/plugins/show-posts/images/donate-button.png';
    429429    ?>
    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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a>
    431431</div>
    432432
  • show-posts/tags/1.8/includes/atw-posts-template.php

    r2891911 r2900851  
    266266    $val = ' <div class="atw-entry-meta"> <div class="atw-entry-meta-icons">';
    267267
    268     $val .= wp_kses_post(sprintf( __(
     268    $val .= sprintf( __(
    269269'   <span class="entry-date">
    270270    <a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a>
     
    280280        esc_html( get_the_date() ),
    281281        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    );
    285285
    286286    $val .= ' </div> </div>';
     
    331331
    332332function 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>';
    335335}
    336336
     
    373373    $val = '';
    374374
    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' );
    379379
    380380    $number = get_comments_number( $id );
     
    385385
    386386    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.');
    388388    }
    389389
  • show-posts/tags/1.8/includes/atw-showposts-sc.php

    r2891911 r2900851  
    173173    $col = 0;
    174174    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'));
    176176    }
    177177
     
    364364                        <?php
    365365
    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'),
    367367                            esc_url(get_permalink()),
    368368                            esc_attr(get_the_time()),
     
    370370                            esc_html(get_the_date()),
    371371                            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                        );
    375375
    376376                        if (atw_trans_get('show_avatar') != '' && atw_trans_get('show_avatar') != 'no') {
  • show-posts/tags/1.8/includes/posts-widgets.php

    r2891911 r2900851  
    88    function __construct() {
    99        $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*/));
    1111        $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);
    1313    }
    1414
  • show-posts/tags/1.8/readme.txt

    r2891911 r2900851  
    1010Requires at least: 5.4
    1111Tested up to: 6.2
    12 Stable tag: 1.7
     12Stable tag: 1.8
    1313
    1414== Description ==
     
    6060
    6161== Changelog ==
     62= 1.8 =
     63* Fix: string validation, translation name
     64
    6265= 1.7 =
    6366* Update: Wp 6.2 Compatibility
  • show-posts/trunk/atw-show-posts.php

    r2891911 r2900851  
    66Author: wpweaver
    77Author URI: http://weavertheme.com/about/
    8 Version: 1.7
     8Version: 1.8
    99
    1010License: GPL
     
    3131*/
    3232
    33 const WEAVER_SHOWPOSTS_VERSION = '1.7';
     33const WEAVER_SHOWPOSTS_VERSION = '1.8';
    3434const WEAVER_SHOWPOSTS_MINIFY = '.min';        // '' for dev, '.min' for production
    3535const WEAVER_SHOWPOSTS_TEMPLATE = false;      // future feature
     
    6868
    6969    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>';
    7171        add_action( 'admin_footer', 'atw_posts_select_slider_form' );
    7272    }
  • show-posts/trunk/includes/atw-posts-admin-top.php

    r2891911 r2900851  
    428428        $img = WP_CONTENT_URL . '/plugins/show-posts/images/donate-button.png';
    429429    ?>
    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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<a href='//weavertheme.com/donate' target='_blank' alt='Please Donate' ><img src="<?php echo $img; ?>" alt="donate" style="max-height:28px;"/></a>
    431431</div>
    432432
  • show-posts/trunk/includes/atw-posts-template.php

    r2891911 r2900851  
    266266    $val = ' <div class="atw-entry-meta"> <div class="atw-entry-meta-icons">';
    267267
    268     $val .= wp_kses_post(sprintf( __(
     268    $val .= sprintf( __(
    269269'   <span class="entry-date">
    270270    <a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a>
     
    280280        esc_html( get_the_date() ),
    281281        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    );
    285285
    286286    $val .= ' </div> </div>';
     
    331331
    332332function 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>';
    335335}
    336336
     
    373373    $val = '';
    374374
    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' );
    379379
    380380    $number = get_comments_number( $id );
     
    385385
    386386    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.');
    388388    }
    389389
  • show-posts/trunk/includes/atw-showposts-sc.php

    r2891911 r2900851  
    173173    $col = 0;
    174174    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'));
    176176    }
    177177
     
    364364                        <?php
    365365
    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'),
    367367                            esc_url(get_permalink()),
    368368                            esc_attr(get_the_time()),
     
    370370                            esc_html(get_the_date()),
    371371                            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                        );
    375375
    376376                        if (atw_trans_get('show_avatar') != '' && atw_trans_get('show_avatar') != 'no') {
  • show-posts/trunk/includes/posts-widgets.php

    r2891911 r2900851  
    88    function __construct() {
    99        $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*/));
    1111        $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);
    1313    }
    1414
  • show-posts/trunk/readme.txt

    r2891911 r2900851  
    1010Requires at least: 5.4
    1111Tested up to: 6.2
    12 Stable tag: 1.7
     12Stable tag: 1.8
    1313
    1414== Description ==
     
    6060
    6161== Changelog ==
     62= 1.8 =
     63* Fix: string validation, translation name
     64
    6265= 1.7 =
    6366* Update: Wp 6.2 Compatibility
Note: See TracChangeset for help on using the changeset viewer.