Plugin Directory

Changeset 3424828


Ignore:
Timestamp:
12/21/2025 04:47:10 PM (3 weeks ago)
Author:
itthinx
Message:

version 3.0.0

Location:
decent-comments/trunk
Files:
24 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • decent-comments/trunk

    • Property svn:ignore
      •  

        old new  
        1 .git
        2 .gitignore
        3 makepot
         1blocks/decent-comments/node_modules
  • decent-comments/trunk/changelog.txt

    r3248556 r3424828  
    1 Decent Comments by itthinx                                           Changelog
     1== Decent Comments by itthinx - changelog.txt ==
     2
     3= 3.0.0 =
     4* WordPress 6.9 compatible.
     5* Requires at least WordPress 6.5.
     6* Added Decent Comments Block widget with the same functionality and features as the existing widget and shortcode.
     7* Added REST API endpoint for requesting comments.
     8* Fixed warning related to translations rendered too early.
     9* Replaced occurrences of the language domain constant with the corresponding string literal.
     10* Refactored parts of the plugin initialization.
     11* Updated the translation template.
     12* Added the plugin version constant and removed the global that was used to hold the version number.
     13* Revamped HTML structure and styling.
    214
    315= 2.0.0 =
  • decent-comments/trunk/class-decent-comments-renderer.php

    r3248556 r3424828  
    100100    public static function init() {
    101101        self::$orderby_options = array(
    102             'comment_author_email' => esc_html__( 'Author Email', DC_PLUGIN_DOMAIN ),
    103             'comment_author_url'   => esc_html__( 'Author URL', DC_PLUGIN_DOMAIN ),
    104             'comment_content'      => esc_html__( 'Content', DC_PLUGIN_DOMAIN ),
    105             'comment_date_gmt'     => esc_html__( 'Date', DC_PLUGIN_DOMAIN ),
    106             'comment_karma'        => esc_html__( 'Karma', DC_PLUGIN_DOMAIN ),
    107             'comment_post_ID'      => esc_html__( 'Post', DC_PLUGIN_DOMAIN )
     102            'comment_author_email' => esc_html__( 'Author Email', 'decent-comments' ),
     103            'comment_author_url'   => esc_html__( 'Author URL', 'decent-comments' ),
     104            'comment_content'      => esc_html__( 'Content', 'decent-comments' ),
     105            'comment_date_gmt'     => esc_html__( 'Date', 'decent-comments' ),
     106            'comment_karma'        => esc_html__( 'Karma', 'decent-comments' ),
     107            'comment_post_ID'      => esc_html__( 'Post', 'decent-comments' )
    108108        );
    109109        self::$order_options = array(
    110             'ASC'  => esc_html__( 'Ascending', DC_PLUGIN_DOMAIN ),
    111             'DESC' => esc_html__( 'Descending', DC_PLUGIN_DOMAIN )
     110            'ASC'  => esc_html__( 'Ascending', 'decent-comments' ),
     111            'DESC' => esc_html__( 'Descending', 'decent-comments' )
    112112        );
    113113    }
     
    460460
    461461            $output .= '<div class="decent-comments">';
    462             $output .= '<ul>';
     462            $output .= '<ul class="decent-comments-list">';
    463463
    464464            foreach ( $comments as $comment) {
    465465
    466                 $output .= '<li>';
    467 
    468                 $output .= '<div class="comment">';
     466                $output .= '<li class="comment-entry">';
     467
     468                $output .= '<div class="comment-content">';
    469469
    470470                if ( $show_avatar ) {
    471                     $output .= '<span class="comment-avatar">';
     471                    $output .= '<div class="comment-avatar">';
    472472                    $comment_author_url = get_comment_author_url( $comment->comment_ID );
    473473                    if ( !empty( $comment_author_url ) && $link_author ) {
     
    478478                        $output .= '</a>';
    479479                    }
    480                     $output .= '</span>'; // .comment-avatar
     480                    $output .= '</div>'; // .comment-avatar
    481481                }
    482482
    483483                if ( $show_author ) {
    484                     $output .= '<span class="comment-author">';
     484                    $output .= '<div class="comment-author">';
    485485                    if ( $link_author ) {
    486486                        $output .= get_comment_author_link( $comment->comment_ID );
     
    488488                        $output .= get_comment_author( $comment->comment_ID );
    489489                    }
    490                     $output .= '</span>'; // .comment-author
     490                    $output .= '</div>'; // .comment-author
    491491                }
    492492
    493493                if ( $show_date ) {
    494                     $output .= '<span class="comment-date">';
     494                    $output .= '<div class="comment-date">';
    495495                    $output .= sprintf(
    496                         _x( ' %1$s at %2$s', 'comment-date', DC_PLUGIN_DOMAIN ), // translators : the first argument is the date of the comment, the second is the time
     496                        _x( '%1$s at %2$s', 'comment-date', 'decent-comments' ), // translators : the first argument is the date of the comment, the second is the time
    497497                        mysql2date( get_option( 'date_format' ), $comment->comment_date ),
    498498                        mysql2date( get_option( 'time_format' ), $comment->comment_date, true )
    499499                    );
    500                     $output .= '</span>'; // .comment-date
     500                    $output .= '</div>'; // .comment-date
    501501                }
    502502
    503503                if ( $show_link ) {
    504                     $output .= '<span class="comment-link">';
     504                    $output .= '<div class="comment-link">';
    505505                    $output .= sprintf(
    506                         _x( ' on %s', 'comment-link', DC_PLUGIN_DOMAIN ),
     506                        _x( 'on %s', 'comment-link', 'decent-comments' ),
    507507                        '<a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '">' . get_the_title( $comment->comment_post_ID ) . '</a>'
    508508                    );
    509                     $output .= '</span>'; // .comment-link
     509                    $output .= '</div>'; // .comment-link
    510510                }
    511511
    512512                if ( $show_comment ) {
    513                     $output .= '<span class="comment-' . ( $excerpt ? "excerpt" : "body" ) . '">';
     513                    $output .= '<div class="comment-' . ( $excerpt ? "excerpt" : "body" ) . '">';
    514514                    $output .= self::get_comment(
    515515                        $comment,
     
    522522                        )
    523523                    );
    524                     $output .= '</span>'; // .comment-body or .comment-excerpt
     524                    $output .= '</div>'; // .comment-body or .comment-excerpt
    525525                }
    526526
     
    532532            $output .= '</ul>';
    533533            $output .= '</div>'; // .decent-comments
    534         }
     534        }
    535535        return apply_filters( 'decent_comments_comments_output', $output, $comments, $options );
    536536    }
  • decent-comments/trunk/class-decent-comments-widget.php

    r2807026 r3424828  
    5353     */
    5454    public static function init() {
    55         if ( !has_action( 'wp_print_styles', array( __CLASS__, '_wp_print_styles' ) ) ) {
    56             add_action( 'wp_print_styles', array( __CLASS__, '_wp_print_styles' ) );
     55        if ( !has_action( 'wp_print_styles', array( __CLASS__, 'wp_print_styles' ) ) ) {
     56            add_action( 'wp_print_styles', array( __CLASS__, 'wp_print_styles' ) );
    5757        }
    5858        if ( !has_action( 'comment_post', array( __CLASS__, 'comment_post' ) ) ) {
     
    227227     * Enqueue styles if at least one widget is used.
    228228     */
    229     public static function _wp_print_styles() {
    230         global $wp_registered_widgets, $DC_version;
     229    public static function wp_print_styles() {
     230        global $wp_registered_widgets;
    231231        foreach ( $wp_registered_widgets as $widget ) {
    232232            if ( $widget['name'] === self::DECENT_COMMENTS_WIDGET_NAME ) {
    233                 wp_enqueue_style( 'decent-comments-widget', DC_PLUGIN_URL . 'css/decent-comments-widget.css', array(), $DC_version );
     233                wp_enqueue_style( 'decent-comments', DC_PLUGIN_URL . 'css/decent-comments.css', array(), DECENT_COMMENTS_PLUGIN_VERSION );
    234234                break;
    235235            }
     
    446446        $title = isset( $instance['title'] ) ? $instance['title'] : "";
    447447        echo "<p>";
    448         echo '<label for="' .$this->get_field_id( 'title' ) . '">' . esc_html__( 'Title', DC_PLUGIN_DOMAIN ) . '</label>';
     448        echo '<label for="' .$this->get_field_id( 'title' ) . '">' . esc_html__( 'Title', 'decent-comments' ) . '</label>';
    449449        echo '<input class="widefat" id="' . $this->get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" type="text" value="' . esc_attr( $title ) . '" />';
    450450        echo '</p>';
     
    453453        $number = isset( $instance['number'] ) ? intval( $instance['number'] ) : '';
    454454        echo "<p>";
    455         echo '<label class="title" title="' . esc_html__( "The number of comments to show.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'number' ) . '">' . esc_html__( 'Number of comments', DC_PLUGIN_DOMAIN ) . '</label>';
     455        echo '<label class="title" title="' . esc_html__( "The number of comments to show.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'number' ) . '">' . esc_html__( 'Number of comments', 'decent-comments' ) . '</label>';
    456456        echo '<input class="widefat" id="' . $this->get_field_id( 'number' ) . '" name="' . $this->get_field_name( 'number' ) . '" type="text" value="' . esc_attr( $number ) . '" />';
    457457        echo '</p>';
     
    460460        $orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : '';
    461461        echo '<p>';
    462         echo '<label class="title" title="' . esc_html__( "Sorting criteria.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'orderby' ) . '">' . esc_html__( 'Order by ...', DC_PLUGIN_DOMAIN ) . '</label>';
     462        echo '<label class="title" title="' . esc_html__( "Sorting criteria.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'orderby' ) . '">' . esc_html__( 'Order by ...', 'decent-comments' ) . '</label>';
    463463        echo '<select class="widefat" name="' . $this->get_field_name( 'orderby' ) . '">';
    464464        foreach ( Decent_Comments_Renderer::$orderby_options as $orderby_option_key => $orderby_option_name ) {
     
    472472        $order = isset( $instance['order'] ) ? $instance['order'] : '';
    473473        echo '<p>';
    474         echo '<label class="title" title="' . esc_html__( "Sort order.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'order' ) . '">' . esc_html__( 'Sort order', DC_PLUGIN_DOMAIN ) . '</label>';
     474        echo '<label class="title" title="' . esc_html__( "Sort order.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'order' ) . '">' . esc_html__( 'Sort order', 'decent-comments' ) . '</label>';
    475475        echo '<select class="widefat" name="' . $this->get_field_name( 'order' ) . '">';
    476476        foreach ( Decent_Comments_Renderer::$order_options as $order_option_key => $order_option_name ) {
     
    491491        }
    492492        echo "<p>";
    493         echo '<label class="title" title="' . esc_html__( "Leave empty to show comments for all posts. To show comments for a specific post only, indicate either part of the title or the post ID. To show posts for the current post, indicate: [current]", DC_PLUGIN_DOMAIN ) . '" for="' .$this->get_field_id( 'post_id' ) . '">' . esc_html__( 'Post ID', DC_PLUGIN_DOMAIN ) . '</label>';
     493        echo '<label class="title" title="' . esc_html__( "Leave empty to show comments for all posts. To show comments for a specific post only, indicate either part of the title or the post ID. To show posts for the current post, indicate: [current]", 'decent-comments' ) . '" for="' .$this->get_field_id( 'post_id' ) . '">' . esc_html__( 'Post ID', 'decent-comments' ) . '</label>';
    494494        echo '<input class="widefat" id="' . $this->get_field_id( 'post_id' ) . '" name="' . $this->get_field_name( 'post_id' ) . '" type="text" value="' . esc_attr( $post_id ) . '" />';
    495495        echo '<br/>';
    496         echo '<span class="description">' . esc_html__( "Title, empty, post ID or [current]", DC_PLUGIN_DOMAIN ) . '</span>';
     496        echo '<span class="description">' . esc_html__( "Title, empty, post ID or [current]", 'decent-comments' ) . '</span>';
    497497        if ( !empty( $post_id ) && ( $post_title = get_the_title( $post_id ) ) ) {
    498498            echo '<br/>';
    499             echo '<span class="description"> ' . sprintf( esc_html__( 'Selected post: <em>%s</em>', DC_PLUGIN_DOMAIN ) , $post_title ) . '</span>';
     499            echo '<span class="description"> ' . sprintf( esc_html__( 'Selected post: <em>%s</em>', 'decent-comments' ) , $post_title ) . '</span>';
    500500        }
    501501        echo '</p>';
     
    511511            '<label class="title" title="%s" for="%s">%s</label>',
    512512            esc_attr(
    513                 esc_html__( 'Leave empty to show comments for all post types. To show comments for a specific post type only, indicate the post type.', DC_PLUGIN_DOMAIN ) .
     513                esc_html__( 'Leave empty to show comments for all post types. To show comments for a specific post type only, indicate the post type.', 'decent-comments' ) .
    514514                ' ' .
    515                 esc_html__( 'You can indicate one ore more post types separated by comma.', DC_PLUGIN_DOMAIN )
     515                esc_html__( 'You can indicate one ore more post types separated by comma.', 'decent-comments' )
    516516            ),
    517517            esc_attr( $this->get_field_id( 'post_type' ) ),
    518             esc_html( esc_html__( 'Post Type', DC_PLUGIN_DOMAIN ) )
     518            esc_html( esc_html__( 'Post Type', 'decent-comments' ) )
    519519        );
    520520        echo '<input class="widefat" id="' . $this->get_field_id( 'post_type' ) . '" name="' . $this->get_field_name( 'post_type' ) . '" type="text" value="' . esc_attr( $post_type ) . '" />';
    521521        echo '<br/>';
    522         echo '<span class="description">' . sprintf( esc_html__( "Available post types: %s", DC_PLUGIN_DOMAIN ), implode( ', ', $post_types ) ) . '</span>';
     522        echo '<span class="description">' . sprintf( esc_html__( "Available post types: %s", 'decent-comments' ), implode( ', ', $post_types ) ) . '</span>';
    523523        echo '</p>';
    524524
     
    530530        echo '<p>';
    531531        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'exclude_post_author' ) . '" />';
    532         echo '<label class="title" title="' . esc_html__( "If checked, excludes comments from post authors on their own posts.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'exclude_post_author' ) . '">' . esc_html__( 'Exclude comments from post authors', DC_PLUGIN_DOMAIN ) . '</label>';
     532        echo '<label class="title" title="' . esc_html__( "If checked, excludes comments from post authors on their own posts.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'exclude_post_author' ) . '">' . esc_html__( 'Exclude comments from post authors', 'decent-comments' ) . '</label>';
    533533        echo '</p>';
    534534
     
    537537        echo '<p>';
    538538        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'excerpt' ) . '" />';
    539         echo '<label class="title" title="' . esc_html__( "If checked, shows an excerpt of the comment. Otherwise the full text of the comment is displayed.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'excerpt' ) . '">' . esc_html__( 'Show comment excerpt', DC_PLUGIN_DOMAIN ) . '</label>';
     539        echo '<label class="title" title="' . esc_html__( "If checked, shows an excerpt of the comment. Otherwise the full text of the comment is displayed.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'excerpt' ) . '">' . esc_html__( 'Show comment excerpt', 'decent-comments' ) . '</label>';
    540540        echo '</p>';
    541541
     
    543543        $max_excerpt_words = !empty( $instance['max_excerpt_words'] ) ? intval( $instance['max_excerpt_words'] ) : '';
    544544        echo "<p>";
    545         echo '<label class="title" title="' . esc_html__( "The maximum number of words shown in excerpts.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'max_excerpt_words' ) . '">' . esc_html__( 'Number of words in excerpts', DC_PLUGIN_DOMAIN ) . '</label>';
     545        echo '<label class="title" title="' . esc_html__( "The maximum number of words shown in excerpts.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'max_excerpt_words' ) . '">' . esc_html__( 'Number of words in excerpts', 'decent-comments' ) . '</label>';
    546546        echo '<input class="widefat" id="' . $this->get_field_id( 'max_excerpt_words' ) . '" name="' . $this->get_field_name( 'max_excerpt_words' ) . '" type="text" value="' . esc_attr( $max_excerpt_words ) . '" />';
    547547        echo '</p>';
     
    550550        $max_excerpt_characters = !empty( $instance['max_excerpt_characters'] ) ? intval( $instance['max_excerpt_characters'] ) : '';
    551551        echo "<p>";
    552         echo '<label class="title" title="' . esc_html__( "The maximum number of characters shown in excerpts.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'max_excerpt_characters' ) . '">' . esc_html__( 'Number of characters in excerpts', DC_PLUGIN_DOMAIN ) . '</label>';
     552        echo '<label class="title" title="' . esc_html__( "The maximum number of characters shown in excerpts.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'max_excerpt_characters' ) . '">' . esc_html__( 'Number of characters in excerpts', 'decent-comments' ) . '</label>';
    553553        echo '<input class="widefat" id="' . $this->get_field_id( 'max_excerpt_characters' ) . '" name="' . $this->get_field_name( 'max_excerpt_characters' ) . '" type="text" value="' . esc_attr( $max_excerpt_characters ) . '" />';
    554554        echo '</p>';
     
    557557        $ellipsis = isset( $instance['ellipsis'] ) ? $instance['ellipsis'] : '';
    558558        echo "<p>";
    559         echo '<label class="title" title="' . esc_html__( "The ellipsis is shown after the excerpt when there is more content.", DC_PLUGIN_DOMAIN ) . '" for="' .$this->get_field_id( 'ellipsis' ) . '">' . esc_html__( 'Ellipsis', DC_PLUGIN_DOMAIN ) . '</label>';
     559        echo '<label class="title" title="' . esc_html__( "The ellipsis is shown after the excerpt when there is more content.", 'decent-comments' ) . '" for="' .$this->get_field_id( 'ellipsis' ) . '">' . esc_html__( 'Ellipsis', 'decent-comments' ) . '</label>';
    560560        echo '<input class="widefat" id="' . $this->get_field_id( 'ellipsis' ) . '" name="' . $this->get_field_name( 'ellipsis' ) . '" type="text" value="' . esc_attr( $ellipsis ) . '" />';
    561561        echo '</p>';
     
    565565        echo '<p>';
    566566        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'show_author' ) . '" />';
    567         echo '<label class="title" title="' . esc_html__( "Whether to show the author of each comment.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'show_author' ) . '">' . esc_html__( 'Show author', DC_PLUGIN_DOMAIN ) . '</label>';
     567        echo '<label class="title" title="' . esc_html__( "Whether to show the author of each comment.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'show_author' ) . '">' . esc_html__( 'Show author', 'decent-comments' ) . '</label>';
    568568        echo '</p>';
    569569
     
    572572        echo '<p>';
    573573        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'show_date' ) . '" />';
    574         echo '<label class="title" title="' . esc_html__( "Show the date and time when the comment was posted.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'show_date' ) . '">' . esc_html__( 'Show date', DC_PLUGIN_DOMAIN ) . '</label>';
     574        echo '<label class="title" title="' . esc_html__( "Show the date and time when the comment was posted.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'show_date' ) . '">' . esc_html__( 'Show date', 'decent-comments' ) . '</label>';
    575575        echo '</p>';
    576576
     
    579579        echo '<p>';
    580580        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'link_author' ) . '" />';
    581         echo '<label class="title" title="' . esc_html__( "Whether to link comment authors to their website.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'link_author' ) . '">' . esc_html__( 'Link authors', DC_PLUGIN_DOMAIN ) . '</label>';
     581        echo '<label class="title" title="' . esc_html__( "Whether to link comment authors to their website.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'link_author' ) . '">' . esc_html__( 'Link authors', 'decent-comments' ) . '</label>';
    582582        echo '</p>';
    583583
     
    586586        echo '<p>';
    587587        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'show_avatar' ) . '" />';
    588         echo '<label class="title" title="' . esc_html__( "Show the avatar of the author.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'show_avatar' ) . '">' . esc_html__( 'Show avatar', DC_PLUGIN_DOMAIN ) . '</label>';
     588        echo '<label class="title" title="' . esc_html__( "Show the avatar of the author.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'show_avatar' ) . '">' . esc_html__( 'Show avatar', 'decent-comments' ) . '</label>';
    589589        echo '</p>';
    590590
     
    592592        $avatar_size = isset( $instance['avatar_size'] ) ? intval( $instance['avatar_size'] ) : '';
    593593        echo "<p>";
    594         echo '<label class="title" title="' . esc_html__( "The size of the avatar in pixels.", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'avatar_size' ) . '">' . esc_html__( 'Avatar size', DC_PLUGIN_DOMAIN ) . '</label>';
     594        echo '<label class="title" title="' . esc_html__( "The size of the avatar in pixels.", 'decent-comments' ) .'" for="' .$this->get_field_id( 'avatar_size' ) . '">' . esc_html__( 'Avatar size', 'decent-comments' ) . '</label>';
    595595        echo '<input class="widefat" id="' . $this->get_field_id( 'avatar_size' ) . '" name="' . $this->get_field_name( 'avatar_size' ) . '" type="text" value="' . esc_attr( $avatar_size ) . '" />';
    596596        echo '</p>';
     
    600600        echo '<p>';
    601601        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'show_link' ) . '" />';
    602         echo '<label class="title" title="' . esc_html__( "Show a link to the post that the comment applies to.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'show_link' ) . '">' . esc_html__( 'Show link to post', DC_PLUGIN_DOMAIN ) . '</label>';
     602        echo '<label class="title" title="' . esc_html__( "Show a link to the post that the comment applies to.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'show_link' ) . '">' . esc_html__( 'Show link to post', 'decent-comments' ) . '</label>';
    603603        echo '</p>';
    604604
     
    607607        echo '<p>';
    608608        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'show_comment' ) . '" />';
    609         echo '<label class="title" title="' . esc_html__( "Show an excerpt of the comment or the full comment.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'show_comment' ) . '">' . esc_html__( 'Show the comment', DC_PLUGIN_DOMAIN ) . '</label>';
     609        echo '<label class="title" title="' . esc_html__( "Show an excerpt of the comment or the full comment.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'show_comment' ) . '">' . esc_html__( 'Show the comment', 'decent-comments' ) . '</label>';
    610610        echo '</p>';
    611611
     
    613613        $taxonomy = isset( $instance['taxonomy'] ) ? $instance['taxonomy'] : '';
    614614        echo "<p>";
    615         echo '<label class="title" title="' . esc_html__( "A taxonomy, e.g. category or post_tag", DC_PLUGIN_DOMAIN ) .'" for="' .$this->get_field_id( 'taxonomy' ) . '">' . esc_html__( 'Taxonomy', DC_PLUGIN_DOMAIN ) . '</label>';
     615        echo '<label class="title" title="' . esc_html__( "A taxonomy, e.g. category or post_tag", 'decent-comments' ) .'" for="' .$this->get_field_id( 'taxonomy' ) . '">' . esc_html__( 'Taxonomy', 'decent-comments' ) . '</label>';
    616616        echo '<input class="widefat" id="' . $this->get_field_id( 'taxonomy' ) . '" name="' . $this->get_field_name( 'taxonomy' ) . '" type="text" value="' . esc_attr( $taxonomy ) . '" />';
    617617        echo '<br/>';
    618         echo '<span class="description">' . wp_kses_post( __( "Indicate <strong>category</strong> if you would like to show comments on posts in certain categories. Give the desired categories' slugs in <strong>Terms</strong>. For tags use <strong>post_tag</strong> and give the tags' slugs in <strong>Terms</strong>.", DC_PLUGIN_DOMAIN ) ) . '</span>';
     618        echo '<span class="description">' . wp_kses_post( __( "Indicate <strong>category</strong> if you would like to show comments on posts in certain categories. Give the desired categories' slugs in <strong>Terms</strong>. For tags use <strong>post_tag</strong> and give the tags' slugs in <strong>Terms</strong>.", 'decent-comments' ) ) . '</span>';
    619619        echo '</p>';
    620620
     
    628628        }
    629629        echo "<p>";
    630         echo '<label class="title" title="' . esc_html__( "If a taxonomy is given , indicate terms in that taxonomy separated by comma to show comments for all posts related to these terms. To show comments on posts related to the same terms as the current post, indicate: {current}. If a taxonomy is given and terms is empty, no comments will be shown.", DC_PLUGIN_DOMAIN ) . '" for="' .$this->get_field_id( 'terms' ) . '">' . esc_html__( 'Terms', DC_PLUGIN_DOMAIN ) . '</label>';
     630        echo '<label class="title" title="' . esc_html__( "If a taxonomy is given , indicate terms in that taxonomy separated by comma to show comments for all posts related to these terms. To show comments on posts related to the same terms as the current post, indicate: {current}. If a taxonomy is given and terms is empty, no comments will be shown.", 'decent-comments' ) . '" for="' .$this->get_field_id( 'terms' ) . '">' . esc_html__( 'Terms', 'decent-comments' ) . '</label>';
    631631        echo '<input class="widefat" id="' . $this->get_field_id( 'terms' ) . '" name="' . $this->get_field_name( 'terms' ) . '" type="text" value="' . esc_attr( $terms ) . '" />';
    632632        echo '<br/>';
    633         echo '<span class="description">' . wp_kses_post( __( "Terms or {current}. A <strong>Taxonomy</strong> must be given.", DC_PLUGIN_DOMAIN ) ) . '</span>';
     633        echo '<span class="description">' . wp_kses_post( __( "Terms or {current}. A <strong>Taxonomy</strong> must be given.", 'decent-comments' ) ) . '</span>';
    634634        echo '</p>';
    635635
     
    638638        echo '<p>';
    639639        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'pingback' ) . '" />';
    640         echo '<label class="title" title="' . esc_html__( "Include pingbacks.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'pingback' ) . '">' . esc_html__( 'Pingbacks', DC_PLUGIN_DOMAIN ) . '</label>';
     640        echo '<label class="title" title="' . esc_html__( "Include pingbacks.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'pingback' ) . '">' . esc_html__( 'Pingbacks', 'decent-comments' ) . '</label>';
    641641        echo '</p>';
    642642
     
    645645        echo '<p>';
    646646        echo '<input type="checkbox" ' . $checked . ' value="1" name="' . $this->get_field_name( 'trackback' ) . '" />';
    647         echo '<label class="title" title="' . esc_html__( "Include trackbacks.", DC_PLUGIN_DOMAIN ) .'" for="' . $this->get_field_id( 'trackback' ) . '">' . esc_html__( 'Trackbacks', DC_PLUGIN_DOMAIN ) . '</label>';
     647        echo '<label class="title" title="' . esc_html__( "Include trackbacks.", 'decent-comments' ) .'" for="' . $this->get_field_id( 'trackback' ) . '">' . esc_html__( 'Trackbacks', 'decent-comments' ) . '</label>';
    648648        echo '</p>';
    649649    }
  • decent-comments/trunk/css

    • Property svn:ignore set to
      package-lock.json
  • decent-comments/trunk/decent-comments.php

    r3248556 r3424828  
    44 * Plugin URI: https://www.itthinx.com/plugins/decent-comments
    55 * Description: Provides configurable means to display comments that include author's avatars, author link, link to post and most importantly an excerpt of each comment. Thanks for supporting our work with a purchase in our <a href="https://www.itthinx.com/shop/">Shop</a>!
    6  * Version: 2.0.0
    7  * Requires at least: 6.0
     6 * Version: 3.0.0
     7 * Requires at least: 6.5
    88 * Requires PHP: 7.4
    99 * Author: itthinx
     
    6060
    6161/**
     62 * Plugin version.
     63 *
     64 * @since 3.0.0
     65 *
     66 * @var string
     67 */
     68define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0.0' );
     69
     70/**
    6271 * @var string plugin url
    6372 */
     
    8594 */
    8695function DC_get_settings() {
    87     global $DC_settings, $DC_version;
     96    global $DC_settings;
    8897    if ( !isset( $DC_settings ) ) {
    8998        $DC_settings = _DC_get_settings();
    90         $DC_version = 'current';
    91         include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    92         if ( function_exists( 'get_plugin_data' ) ) {
    93             $plugin_data = get_plugin_data( __FILE__ );
    94             if ( !empty( $plugin_data ) ) {
    95                 $DC_version = $plugin_data['Version'];
    96             }
    97         }
    9899    }
    99100    return $DC_settings;
     
    157158}
    158159
    159 add_action( 'admin_menu', 'DC_admin_menu' );
    160 /**
    161  * Add administration options.
    162  */
    163 function DC_admin_menu() {
    164     if ( function_exists( 'add_submenu_page' ) ) {
    165         add_submenu_page( 'plugins.php', esc_html__( 'Decent Comments Options', DC_PLUGIN_DOMAIN ), esc_html__( 'Decent Comments', DC_PLUGIN_DOMAIN ), 'manage_options', 'decent-comments-options', 'DC_options');
    166     }
    167 }
    168 
    169 /**
    170  * Renders options screen and handles settings submission.
    171  */
    172 function DC_options() {
    173 
    174     if ( !current_user_can( 'manage_options' ) ) {
    175         wp_die( esc_html__( 'Access denied.', DC_PLUGIN_DOMAIN ) );
    176     }
    177 
    178     echo
    179         '<div>' .
    180             '<h2>' .
    181                 esc_html__( 'Decent Comments Options', DC_PLUGIN_DOMAIN ) .
    182             '</h2>' .
    183         '</div>';
    184 
    185     // handle form submission
    186     if ( isset( $_POST['submit'] ) ) {
    187         if ( wp_verify_nonce( $_POST[DC_OPTIONS_NONCE], plugin_basename( __FILE__ ) ) ) {
    188             $settings = _DC_get_settings();
    189             if ( !empty( $_POST['delete-data'] ) ) {
    190                 $settings['delete_data'] = true;
    191             } else {
    192                 $settings['delete_data'] = false;
    193             }
    194             _DC_update_settings( $settings );
    195         }
    196     }
    197 
    198     $delete_data = DC_get_setting( 'delete_data', false );
    199 
    200     // render options form
    201     echo
    202         '<form action="" name="options" method="post">' .
    203             '<div>' .
    204                 '<h3>' . esc_html__( 'Settings', DC_PLUGIN_DOMAIN ) . '</h3>' .
    205                 '<p>' .
    206                     '<input name="delete-data" type="checkbox" ' . ( $delete_data ? 'checked="checked"' : '' ) . '/>' .
    207                     '<label for="delete-data">' . esc_html__( 'Delete settings when the plugin is deactivated', DC_PLUGIN_DOMAIN ) . '</label>' .
    208                 '</p>' .
    209                 '<p>' .
    210                     wp_nonce_field( plugin_basename( __FILE__ ), DC_OPTIONS_NONCE, true, false ) .
    211                     '<input type="submit" name="submit" class="button button-primary" value="' . esc_html__( 'Save', DC_PLUGIN_DOMAIN ) . '"/>' .
    212                 '</p>' .
    213             '</div>' .
    214         '</form>';
    215 }
    216 
    217 add_filter( 'plugin_action_links', 'DC_plugin_action_links', 10, 2 );
    218 /**
    219  * Adds an administrative link.
    220  *
    221  * @param array $links
    222  * @param string $file
    223  *
    224  * @return array
    225  */
    226 function DC_plugin_action_links( $links, $file ) {
    227     if ( $file == plugin_basename( dirname( __FILE__ ) . '/decent-comments.php' ) ) {
    228         $links[] = '<a href="plugins.php?page=decent-comments-options">' . esc_html__( 'Options', DC_PLUGIN_DOMAIN ) . '</a>';
    229     }
    230     return $links;
    231 }
    232 
    233 // @todo enable when needed
    234 //add_action( 'wp_print_scripts', 'DC_print_scripts' );
    235 /**
    236  * Enqueues scripts for non-admin pages.
    237  */
    238 function DC_print_scripts() {
    239     global $DC_version;
    240     if ( !is_admin() ) {
    241         wp_enqueue_script( 'decent-comments', DC_PLUGIN_URL . 'js/decent-comments.js', array( 'jquery' ), $DC_version, true );
    242     }
    243 }
    244 
    245 // @todo enable when needed
    246 //add_action( 'wp_print_styles', 'DC_wp_print_styles' );
    247 /**
    248  * Enqueues styles for non-admin pages.
    249  */
    250 function DC_wp_print_styles() {
    251     global $DC_version;
    252     if ( !is_admin() ) {
    253         wp_enqueue_style( 'decent-comments', DC_PLUGIN_URL . 'css/decent-comments.css', array(), $DC_version );
    254     }
    255 }
    256 
    257 // @todo enable when needed
    258 //add_action( 'admin_print_styles', 'DC_admin_print_styles' );
    259 /**
    260  * Enqueues scripts for admin pages.
    261  */
    262 function DC_admin_print_styles() {
    263     global $DC_version;
    264     if ( is_admin() ) {
    265         wp_enqueue_style( 'decent-comments-admin', DC_PLUGIN_URL . 'css/decent-comments-admin.css', array(), $DC_version );
    266     }
    267 }
    268 
    269 // @todo enable when needed
    270 //add_action( 'admin_print_scripts', 'DC_admin_print_scripts' );
    271 function DC_admin_print_scripts() {
    272     global $DC_version;
    273     wp_enqueue_script( 'decent-comments-admin', DC_PLUGIN_URL . 'js/decent-comments-admin.js', array( 'jquery' ), $DC_version );
    274 }
    275 
    276 require_once( dirname( __FILE__ ) . '/class-decent-comments-helper.php' );
    277 require_once( dirname( __FILE__ ) . '/class-decent-comments-renderer.php' );
    278 
    279 add_action( 'widgets_init', 'DC_widgets_init' );
    280 /**
    281  * Register widgets
    282  */
    283 function DC_widgets_init() {
    284     require_once( dirname( __FILE__ ) . '/class-decent-comments-widget.php' );
    285 }
    286 
    287 add_action( 'init', 'DC_init' );
    288 
    289 /**
    290  * Initialization.
    291  * - Loads the plugin's translations.
    292  */
    293 function DC_init() {
    294     load_plugin_textdomain( DC_PLUGIN_DOMAIN, null, 'decent-comments/languages' );
    295 }
    296 
    297 require_once( dirname( __FILE__ ) . '/class-decent-comments-shortcode.php' );
     160require_once dirname( __FILE__ ) . '/class-decent-comments.php';
  • decent-comments/trunk/languages

    • Property svn:ignore set to
      package-lock.json
  • decent-comments/trunk/languages/decent-comments.pot

    r2279190 r3424828  
    88msgstr  "Project-Id-Version: PACKAGE VERSION\n"
    99        "Report-Msgid-Bugs-To: \n"
    10         "POT-Creation-Date: 2020-04-08 12:32+0200\n"
     10        "POT-Creation-Date: 2025-07-23 12:15+0200\n"
    1111        "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1212        "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717        "Content-Transfer-Encoding: 8bit\n"
    1818
    19 #: class-decent-comments-renderer.php:409
     19#: class-decent-comments-renderer.php:496
    2020#, php-format
    2121msgctxt "comment-date"
     
    2323msgstr  ""
    2424
    25 #: class-decent-comments-renderer.php:419
     25#: class-decent-comments-renderer.php:506
    2626#, php-format
    2727msgctxt "comment-link"
     
    2929msgstr  ""
    3030
    31 #: class-decent-comments-widget.php:448
     31#: class-decent-comments-widget.php:615
    3232msgid   "A taxonomy, e.g. category or post_tag"
    3333msgstr  ""
    3434
    35 #: decent-comments.php:173
     35#: class-decent-comments.php:140
    3636msgid   "Access denied."
    3737msgstr  ""
    3838
     39#: class-decent-comments-renderer.php:110
     40msgid   "Ascending"
     41msgstr  ""
     42
     43#: class-decent-comments-renderer.php:102
     44msgid   "Author Email"
     45msgstr  ""
     46
    3947#: class-decent-comments-renderer.php:103
    40 msgid   "Ascending"
    41 msgstr  ""
    42 
    43 #: class-decent-comments-renderer.php:95
    44 msgid   "Author Email"
    45 msgstr  ""
    46 
    47 #: class-decent-comments-renderer.php:96
    4848msgid   "Author URL"
    4949msgstr  ""
    5050
    51 #: class-decent-comments-widget.php:355
     51#: class-decent-comments-widget.php:522
    5252#, php-format
    5353msgid   "Available post types: %s"
    5454msgstr  ""
    5555
    56 #: class-decent-comments-widget.php:427
     56#: class-decent-comments-widget.php:594
    5757msgid   "Avatar size"
    5858msgstr  ""
    5959
    60 #: class-decent-comments-renderer.php:97
     60#: class-decent-comments-renderer.php:104
    6161msgid   "Content"
    6262msgstr  ""
    6363
    64 #: class-decent-comments-renderer.php:98
     64#: class-decent-comments-renderer.php:105
    6565msgid   "Date"
    6666msgstr  ""
    6767
    68 #: decent-comments.php:163
     68#: class-decent-comments.php:126
    6969msgid   "Decent Comments"
    7070msgstr  ""
    7171
    72 #: decent-comments.php:163 decent-comments.php:179
     72#: class-decent-comments.php:125 class-decent-comments.php:161
    7373msgid   "Decent Comments Options"
    7474msgstr  ""
    7575
    76 #: decent-comments.php:205
     76#: class-decent-comments.php:172
    7777msgid   "Delete settings when the plugin is deactivated"
    7878msgstr  ""
    7979
    80 #: class-decent-comments-renderer.php:104
     80#: class-decent-comments-renderer.php:111
    8181msgid   "Descending"
    8282msgstr  ""
    8383
    84 #: class-decent-comments-widget.php:392
     84#: class-decent-comments-widget.php:559
    8585msgid   "Ellipsis"
    8686msgstr  ""
    8787
    88 #: class-decent-comments-widget.php:365
     88#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
    8989msgid   "Exclude comments from post authors"
    9090msgstr  ""
    9191
    92 #: class-decent-comments-widget.php:463
     92#: class-decent-comments-rest.php:58
     93msgid   "ID of the post to get comments for (0 for all posts)"
     94msgstr  ""
     95
     96#: class-decent-comments-widget.php:630
    9397msgid   "If a taxonomy is given , indicate terms in that taxonomy separated "
    9498        "by comma to show comments for all posts related to these terms. To "
     
    98102msgstr  ""
    99103
    100 #: class-decent-comments-widget.php:365
     104#: class-decent-comments-widget.php:532
    101105msgid   "If checked, excludes comments from post authors on their own posts."
    102106msgstr  ""
    103107
    104 #: class-decent-comments-widget.php:372
     108#: class-decent-comments-widget.php:539
    105109msgid   "If checked, shows an excerpt of the comment. Otherwise the full text "
    106110        "of the comment is displayed."
    107111msgstr  ""
    108112
    109 #: class-decent-comments-widget.php:473
     113#: class-decent-comments-widget.php:640
    110114msgid   "Include pingbacks."
    111115msgstr  ""
    112116
    113 #: class-decent-comments-widget.php:480
     117#: class-decent-comments-widget.php:647
    114118msgid   "Include trackbacks."
    115119msgstr  ""
    116120
    117 #: class-decent-comments-widget.php:451
     121#: class-decent-comments-widget.php:618
    118122msgid   "Indicate <strong>category</strong> if you would like to show "
    119123        "comments on posts in certain categories. Give the desired "
     
    123127msgstr  ""
    124128
    125 #: class-decent-comments-renderer.php:99
     129#: class-decent-comments-renderer.php:106
    126130msgid   "Karma"
    127131msgstr  ""
    128132
    129 #: class-decent-comments-widget.php:346
     133#: class-decent-comments-widget.php:513
    130134msgid   "Leave empty to show comments for all post types. To show comments "
    131135        "for a specific post type only, indicate the post type."
    132136msgstr  ""
    133137
    134 #: class-decent-comments-widget.php:326
     138#: class-decent-comments-widget.php:493
    135139msgid   "Leave empty to show comments for all posts. To show comments for a "
    136140        "specific post only, indicate either part of the title or the post "
     
    138142msgstr  ""
    139143
    140 #: class-decent-comments-widget.php:414
     144#: class-decent-comments-widget.php:581
    141145msgid   "Link authors"
    142146msgstr  ""
    143147
    144 #: class-decent-comments-widget.php:385
     148#: class-decent-comments-widget.php:552
    145149msgid   "Number of characters in excerpts"
    146150msgstr  ""
    147151
    148 #: class-decent-comments-widget.php:288
     152#: class-decent-comments-widget.php:455
    149153msgid   "Number of comments"
    150154msgstr  ""
    151155
    152 #: class-decent-comments-widget.php:378
     156#: class-decent-comments-rest.php:41
     157msgid   "Number of comments to return"
     158msgstr  ""
     159
     160#: class-decent-comments-widget.php:545
    153161msgid   "Number of words in excerpts"
    154162msgstr  ""
    155163
    156 #: decent-comments.php:226
     164#: class-decent-comments.php:58
    157165msgid   "Options"
    158166msgstr  ""
    159167
    160 #: class-decent-comments-widget.php:295
     168#: class-decent-comments-widget.php:462
    161169msgid   "Order by ..."
    162170msgstr  ""
    163171
    164 #: class-decent-comments-widget.php:473
     172#: class-decent-comments-widget.php:640
    165173msgid   "Pingbacks"
    166174msgstr  ""
    167175
    168 #: class-decent-comments-renderer.php:100
     176#: class-decent-comments-renderer.php:107
    169177msgid   "Post"
    170178msgstr  ""
    171179
    172 #: class-decent-comments-widget.php:326
     180#: class-decent-comments-widget.php:493
    173181msgid   "Post ID"
    174182msgstr  ""
    175183
    176 #: class-decent-comments-widget.php:351
     184#: class-decent-comments-widget.php:518
    177185msgid   "Post Type"
    178186msgstr  ""
    179187
    180 #: decent-comments.php:209
     188#: class-decent-comments-rest.php:99
     189msgid   "Post category or tag"
     190msgstr  ""
     191
     192#: class-decent-comments.php:176
    181193msgid   "Save"
    182194msgstr  ""
    183195
    184 #: class-decent-comments-widget.php:332
     196#: class-decent-comments-widget.php:499
    185197#, php-format
    186198msgid   "Selected post: <em>%s</em>"
    187199msgstr  ""
    188200
    189 #: decent-comments.php:202
     201#: class-decent-comments.php:169
    190202msgid   "Settings"
    191203msgstr  ""
    192204
    193 #: class-decent-comments-widget.php:435
     205#: class-decent-comments-widget.php:602
    194206msgid   "Show a link to the post that the comment applies to."
    195207msgstr  ""
    196208
     209#: class-decent-comments-widget.php:609
     210msgid   "Show an excerpt of the comment or the full comment."
     211msgstr  ""
     212
     213#: class-decent-comments-widget.php:567
     214msgid   "Show author"
     215msgstr  ""
     216
     217#: class-decent-comments-widget.php:588
     218msgid   "Show avatar"
     219msgstr  ""
     220
     221#: class-decent-comments-widget.php:539
     222msgid   "Show comment excerpt"
     223msgstr  ""
     224
     225#: class-decent-comments-widget.php:574
     226msgid   "Show date"
     227msgstr  ""
     228
     229#: class-decent-comments-widget.php:602
     230msgid   "Show link to post"
     231msgstr  ""
     232
     233#: class-decent-comments-widget.php:588
     234msgid   "Show the avatar of the author."
     235msgstr  ""
     236
     237#: class-decent-comments-widget.php:609
     238msgid   "Show the comment"
     239msgstr  ""
     240
     241#: class-decent-comments-widget.php:574
     242msgid   "Show the date and time when the comment was posted."
     243msgstr  ""
     244
     245#: class-decent-comments-rest.php:50
     246msgid   "Size of author avatars in pixels"
     247msgstr  ""
     248
     249#: class-decent-comments-rest.php:74
     250msgid   "Sort comments by: date, author_email, author_url, content, karma, "
     251        "post"
     252msgstr  ""
     253
     254#: class-decent-comments-widget.php:474
     255msgid   "Sort order"
     256msgstr  ""
     257
     258#: class-decent-comments-widget.php:474
     259msgid   "Sort order."
     260msgstr  ""
     261
     262#: class-decent-comments-rest.php:90
     263msgid   "Sort order: asc or desc"
     264msgstr  ""
     265
     266#: class-decent-comments-widget.php:462
     267msgid   "Sorting criteria."
     268msgstr  ""
     269
     270#: class-decent-comments-widget.php:615
     271msgid   "Taxonomy"
     272msgstr  ""
     273
     274#: class-decent-comments-rest.php:107
     275msgid   "Term ids or slugs"
     276msgstr  ""
     277
     278#: class-decent-comments-widget.php:630
     279msgid   "Terms"
     280msgstr  ""
     281
     282#: class-decent-comments-widget.php:633
     283msgid   "Terms or {current}. A <strong>Taxonomy</strong> must be given."
     284msgstr  ""
     285
    197286#: class-decent-comments-widget.php:442
    198 msgid   "Show an excerpt of the comment or the full comment."
    199 msgstr  ""
    200 
    201 #: class-decent-comments-widget.php:400
    202 msgid   "Show author"
    203 msgstr  ""
    204 
    205 #: class-decent-comments-widget.php:421
    206 msgid   "Show avatar"
    207 msgstr  ""
    208 
    209 #: class-decent-comments-widget.php:372
    210 msgid   "Show comment excerpt"
    211 msgstr  ""
    212 
    213 #: class-decent-comments-widget.php:407
    214 msgid   "Show date"
    215 msgstr  ""
    216 
    217 #: class-decent-comments-widget.php:435
    218 msgid   "Show link to post"
    219 msgstr  ""
    220 
    221 #: class-decent-comments-widget.php:421
    222 msgid   "Show the avatar of the author."
    223 msgstr  ""
    224 
    225 #: class-decent-comments-widget.php:442
    226 msgid   "Show the comment"
    227 msgstr  ""
    228 
    229 #: class-decent-comments-widget.php:407
    230 msgid   "Show the date and time when the comment was posted."
    231 msgstr  ""
    232 
    233 #: class-decent-comments-widget.php:307
    234 msgid   "Sort order"
    235 msgstr  ""
    236 
    237 #: class-decent-comments-widget.php:307
    238 msgid   "Sort order."
    239 msgstr  ""
    240 
    241 #: class-decent-comments-widget.php:295
    242 msgid   "Sorting criteria."
     287#, php-format
     288msgid   "Thanks for supporting our work with a purchase in our %sShop%s!"
     289msgstr  ""
     290
     291#: class-decent-comments-widget.php:559
     292msgid   "The ellipsis is shown after the excerpt when there is more content."
     293msgstr  ""
     294
     295#: class-decent-comments-widget.php:552
     296msgid   "The maximum number of characters shown in excerpts."
     297msgstr  ""
     298
     299#: class-decent-comments-widget.php:545
     300msgid   "The maximum number of words shown in excerpts."
     301msgstr  ""
     302
     303#: class-decent-comments-widget.php:455
     304msgid   "The number of comments to show."
     305msgstr  ""
     306
     307#: class-decent-comments-widget.php:594
     308msgid   "The size of the avatar in pixels."
    243309msgstr  ""
    244310
    245311#: class-decent-comments-widget.php:448
    246 msgid   "Taxonomy"
    247 msgstr  ""
    248 
    249 #: class-decent-comments-widget.php:463
    250 msgid   "Terms"
    251 msgstr  ""
    252 
    253 #: class-decent-comments-widget.php:466
    254 msgid   "Terms or {current}. A <strong>Taxonomy</strong> must be given."
    255 msgstr  ""
    256 
    257 #: class-decent-comments-widget.php:392
    258 msgid   "The ellipsis is shown after the excerpt when there is more content."
    259 msgstr  ""
    260 
    261 #: class-decent-comments-widget.php:385
    262 msgid   "The maximum number of characters shown in excerpts."
    263 msgstr  ""
    264 
    265 #: class-decent-comments-widget.php:378
    266 msgid   "The maximum number of words shown in excerpts."
    267 msgstr  ""
    268 
    269 #: class-decent-comments-widget.php:288
    270 msgid   "The number of comments to show."
    271 msgstr  ""
    272 
    273 #: class-decent-comments-widget.php:427
    274 msgid   "The size of the avatar in pixels."
    275 msgstr  ""
    276 
    277 #: class-decent-comments-widget.php:281
    278312msgid   "Title"
    279313msgstr  ""
    280314
    281 #: class-decent-comments-widget.php:329
     315#: class-decent-comments-widget.php:496
    282316msgid   "Title, empty, post ID or [current]"
    283317msgstr  ""
    284318
    285 #: class-decent-comments-widget.php:480
     319#: class-decent-comments-widget.php:647
    286320msgid   "Trackbacks"
    287321msgstr  ""
    288322
    289 #: class-decent-comments-widget.php:414
     323#: class-decent-comments-rest.php:122
     324msgid   "Whether to include Pingbacks"
     325msgstr  ""
     326
     327#: class-decent-comments-rest.php:130
     328msgid   "Whether to include Trackbacks"
     329msgstr  ""
     330
     331#: class-decent-comments-widget.php:581
    290332msgid   "Whether to link comment authors to their website."
    291333msgstr  ""
    292334
    293 #: class-decent-comments-widget.php:400
     335#: class-decent-comments-widget.php:567
    294336msgid   "Whether to show the author of each comment."
    295337msgstr  ""
    296338
    297 #: class-decent-comments-widget.php:348
     339#: class-decent-comments-widget.php:515
    298340msgid   "You can indicate one ore more post types separated by comma."
    299341msgstr  ""
  • decent-comments/trunk/readme.txt

    r3248556 r3424828  
    33Donate link: https://www.itthinx.com/shop/
    44Tags: comment, comments, shortcode, discussion, feedback
    5 Requires at least: 6.0
    6 Tested up to: 6.7
     5Requires at least: 6.5
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 2.0.0
     8Stable tag: 3.0.0
    99License: GPLv3
    1010
    11 Decent Comments shows what people say. Provides widgets, shortcodes and API to display comments including author avatars, links, comment excerpts.
     11Decent Comments shows what people say. A more engaging way to show comments.
    1212
    1313== Description ==
     
    1515__Decent Comments shows what people say.__
    1616
    17 If you want to show comments along with their author's avatars _and_ an excerpt of their comment, then this is the right plugin for you.
     17The Decent Comments plugin helps you show comments on your site in a neat way. It lets you display comments along with avatars of the people who wrote them and previews of what they said. This makes your site more engaging for visitors.
    1818
    19 And it's not limited to just a widget showing recent comments: The plugin provides configurable widgets, shortcodes and an API to display comments in sensible ways, including author avatars, links, comment excerpts ...
     19If you want to show comments along with their author's avatars _and_ an excerpt of their comment, recent comments on any of your posts, posts from certain categories and other criteria ... then this might just be the right plugin for you.
    2020
    21 Anywhere you place comments, by means of a widget, a shortcode or an API call, you can:
     21The plugin provides configurable blocks, widgets, shortcodes and an API to display comments in sensible ways. This includes author avatars, links, comment excerpts ...
     22
     23Anywhere you place comments, by means of its block, widget, shortcode or by using its API, you can:
    2224
    2325- Show an excerpt or the full comment. You can choose to not show the comment as well.
     
    3335- and more to come ... got suggestions?
    3436
    35 __Feedback__ is welcome!
    36 If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so here at the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments).
     37Visit the [Documentation](https://docs.itthinx.com/document/decent-comments) pages for details.
     38
     39Feedback is welcome. If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so at the [Decent Comments](https://www.itthinx.com/plugins/decent-comments) plugin page.
    3740
    3841Please try to solve problems there before you rate this plugin or say it doesn't work. There goes a _lot_ of work into providing you with free quality plugins! Please appreciate that and help with your feedback. Thanks!
    3942
    40 Follow [@itthinx](https://twitter.com/itthinx) for updates on this and other plugins.
     43Follow [@itthinx on X](https://x.com/itthinx), [@itthinx on Mastodon](https://mastodon.social/@itthinx), [@itthinx on Reddit](https://www.reddit.com/r/itthinx/) for news and updates on this and other plugins and tools.
    4144
    4245__Translations__
     
    59622. Enable the plugin from the *Plugins* menu in WordPress.
    6063
    61 Please also visit the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments) for the latest info.
     64== Frequently Asked Questions ==
    6265
    63 == Frequently Asked Questions ==
     66= Does it have a block? =
     67
     68Yes. Look for the "Decent Comments" block in the block browser.
    6469
    6570= Can this plugin show excerpts of comments or even full comments? =
     
    7984Yes.
    8085
    81 = Can I place more than one comment widget with different settings? =
     86= Can I place more than one comment block, widget, shortcode ... with different settings? =
    8287
    8388Yes.
     
    9398= What else does it do? =
    9499
    95 It's highly configurable!
    96 
    97 Please visit the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments) for the latest info.
    98 
    99 If you need something that is not available yet, get in touch. Feedback is welcome!
     100Visit the [Documentation](https://docs.itthinx.com/document/decent-comments).
    100101
    101102= Help! =
    102103
    103 Get help at the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments).
     104Get help by posting a comment on the [Decent Comments](https://www.itthinx.com/plugins/decent-comments) page or post on the [Support Forum](https://wordpress.org/support/plugin/decent-comments/).
    104105
    105106= I really appreciate this, how can I contribute? =
    106107
    107 Please visit the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments) and you should find a way to donate or contribute with feedback and ideas.
     108Visit the [Decent Comments](https://www.itthinx.com/plugins/decent-comments) page to provide feedback and ideas.
     109
     110Visit the [Shop](https://www.itthinx.com/shop/) to purchase our tools and support our work.
    108111
    109112Translations are also welcome!
Note: See TracChangeset for help on using the changeset viewer.