Changeset 3424828
- Timestamp:
- 12/21/2025 04:47:10 PM (3 weeks ago)
- Location:
- decent-comments/trunk
- Files:
-
- 24 added
- 1 deleted
- 9 edited
-
. (modified) (1 prop)
-
blocks (added)
-
blocks/class-decent-comments-blocks.php (added)
-
blocks/decent-comments (added)
-
blocks/decent-comments/build (added)
-
blocks/decent-comments/build/block.json (added)
-
blocks/decent-comments/build/commentsUtils.asset.php (added)
-
blocks/decent-comments/build/commentsUtils.js (added)
-
blocks/decent-comments/build/index-rtl.css (added)
-
blocks/decent-comments/build/index.asset.php (added)
-
blocks/decent-comments/build/index.css (added)
-
blocks/decent-comments/build/index.js (added)
-
blocks/decent-comments/build/view.asset.php (added)
-
blocks/decent-comments/build/view.js (added)
-
blocks/decent-comments/package.json (added)
-
blocks/decent-comments/src (added)
-
blocks/decent-comments/src/block.json (added)
-
blocks/decent-comments/src/commentsUtils.js (added)
-
blocks/decent-comments/src/editor.css (added)
-
blocks/decent-comments/src/index.js (added)
-
blocks/decent-comments/src/styles.css (added)
-
blocks/decent-comments/src/view.js (added)
-
changelog.txt (modified) (1 diff)
-
class-decent-comments-renderer.php (modified) (6 diffs)
-
class-decent-comments-rest.php (added)
-
class-decent-comments-widget.php (modified) (24 diffs)
-
class-decent-comments.php (added)
-
css (modified) (1 prop)
-
css/decent-comments-widget.css (deleted)
-
css/decent-comments.css (added)
-
decent-comments.php (modified) (4 diffs)
-
languages (modified) (1 prop)
-
languages/decent-comments.pot (modified) (7 diffs)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
decent-comments/trunk
- Property svn:ignore
-
old new 1 .git 2 .gitignore 3 makepot 1 blocks/decent-comments/node_modules
-
- Property svn:ignore
-
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. 2 14 3 15 = 2.0.0 = -
decent-comments/trunk/class-decent-comments-renderer.php
r3248556 r3424828 100 100 public static function init() { 101 101 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' ) 108 108 ); 109 109 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' ) 112 112 ); 113 113 } … … 460 460 461 461 $output .= '<div class="decent-comments">'; 462 $output .= '<ul >';462 $output .= '<ul class="decent-comments-list">'; 463 463 464 464 foreach ( $comments as $comment) { 465 465 466 $output .= '<li >';467 468 $output .= '<div class="comment ">';466 $output .= '<li class="comment-entry">'; 467 468 $output .= '<div class="comment-content">'; 469 469 470 470 if ( $show_avatar ) { 471 $output .= '< spanclass="comment-avatar">';471 $output .= '<div class="comment-avatar">'; 472 472 $comment_author_url = get_comment_author_url( $comment->comment_ID ); 473 473 if ( !empty( $comment_author_url ) && $link_author ) { … … 478 478 $output .= '</a>'; 479 479 } 480 $output .= '</ span>'; // .comment-avatar480 $output .= '</div>'; // .comment-avatar 481 481 } 482 482 483 483 if ( $show_author ) { 484 $output .= '< spanclass="comment-author">';484 $output .= '<div class="comment-author">'; 485 485 if ( $link_author ) { 486 486 $output .= get_comment_author_link( $comment->comment_ID ); … … 488 488 $output .= get_comment_author( $comment->comment_ID ); 489 489 } 490 $output .= '</ span>'; // .comment-author490 $output .= '</div>'; // .comment-author 491 491 } 492 492 493 493 if ( $show_date ) { 494 $output .= '< spanclass="comment-date">';494 $output .= '<div class="comment-date">'; 495 495 $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 time496 _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 497 497 mysql2date( get_option( 'date_format' ), $comment->comment_date ), 498 498 mysql2date( get_option( 'time_format' ), $comment->comment_date, true ) 499 499 ); 500 $output .= '</ span>'; // .comment-date500 $output .= '</div>'; // .comment-date 501 501 } 502 502 503 503 if ( $show_link ) { 504 $output .= '< spanclass="comment-link">';504 $output .= '<div class="comment-link">'; 505 505 $output .= sprintf( 506 _x( ' on %s', 'comment-link', DC_PLUGIN_DOMAIN),506 _x( 'on %s', 'comment-link', 'decent-comments' ), 507 507 '<a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '">' . get_the_title( $comment->comment_post_ID ) . '</a>' 508 508 ); 509 $output .= '</ span>'; // .comment-link509 $output .= '</div>'; // .comment-link 510 510 } 511 511 512 512 if ( $show_comment ) { 513 $output .= '< spanclass="comment-' . ( $excerpt ? "excerpt" : "body" ) . '">';513 $output .= '<div class="comment-' . ( $excerpt ? "excerpt" : "body" ) . '">'; 514 514 $output .= self::get_comment( 515 515 $comment, … … 522 522 ) 523 523 ); 524 $output .= '</ span>'; // .comment-body or .comment-excerpt524 $output .= '</div>'; // .comment-body or .comment-excerpt 525 525 } 526 526 … … 532 532 $output .= '</ul>'; 533 533 $output .= '</div>'; // .decent-comments 534 }534 } 535 535 return apply_filters( 'decent_comments_comments_output', $output, $comments, $options ); 536 536 } -
decent-comments/trunk/class-decent-comments-widget.php
r2807026 r3424828 53 53 */ 54 54 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' ) ); 57 57 } 58 58 if ( !has_action( 'comment_post', array( __CLASS__, 'comment_post' ) ) ) { … … 227 227 * Enqueue styles if at least one widget is used. 228 228 */ 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; 231 231 foreach ( $wp_registered_widgets as $widget ) { 232 232 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 ); 234 234 break; 235 235 } … … 446 446 $title = isset( $instance['title'] ) ? $instance['title'] : ""; 447 447 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>'; 449 449 echo '<input class="widefat" id="' . $this->get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" type="text" value="' . esc_attr( $title ) . '" />'; 450 450 echo '</p>'; … … 453 453 $number = isset( $instance['number'] ) ? intval( $instance['number'] ) : ''; 454 454 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>'; 456 456 echo '<input class="widefat" id="' . $this->get_field_id( 'number' ) . '" name="' . $this->get_field_name( 'number' ) . '" type="text" value="' . esc_attr( $number ) . '" />'; 457 457 echo '</p>'; … … 460 460 $orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : ''; 461 461 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>'; 463 463 echo '<select class="widefat" name="' . $this->get_field_name( 'orderby' ) . '">'; 464 464 foreach ( Decent_Comments_Renderer::$orderby_options as $orderby_option_key => $orderby_option_name ) { … … 472 472 $order = isset( $instance['order'] ) ? $instance['order'] : ''; 473 473 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>'; 475 475 echo '<select class="widefat" name="' . $this->get_field_name( 'order' ) . '">'; 476 476 foreach ( Decent_Comments_Renderer::$order_options as $order_option_key => $order_option_name ) { … … 491 491 } 492 492 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>'; 494 494 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 ) . '" />'; 495 495 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>'; 497 497 if ( !empty( $post_id ) && ( $post_title = get_the_title( $post_id ) ) ) { 498 498 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>'; 500 500 } 501 501 echo '</p>'; … … 511 511 '<label class="title" title="%s" for="%s">%s</label>', 512 512 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' ) . 514 514 ' ' . 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' ) 516 516 ), 517 517 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' ) ) 519 519 ); 520 520 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 ) . '" />'; 521 521 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>'; 523 523 echo '</p>'; 524 524 … … 530 530 echo '<p>'; 531 531 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>'; 533 533 echo '</p>'; 534 534 … … 537 537 echo '<p>'; 538 538 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>'; 540 540 echo '</p>'; 541 541 … … 543 543 $max_excerpt_words = !empty( $instance['max_excerpt_words'] ) ? intval( $instance['max_excerpt_words'] ) : ''; 544 544 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>'; 546 546 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 ) . '" />'; 547 547 echo '</p>'; … … 550 550 $max_excerpt_characters = !empty( $instance['max_excerpt_characters'] ) ? intval( $instance['max_excerpt_characters'] ) : ''; 551 551 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>'; 553 553 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 ) . '" />'; 554 554 echo '</p>'; … … 557 557 $ellipsis = isset( $instance['ellipsis'] ) ? $instance['ellipsis'] : ''; 558 558 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>'; 560 560 echo '<input class="widefat" id="' . $this->get_field_id( 'ellipsis' ) . '" name="' . $this->get_field_name( 'ellipsis' ) . '" type="text" value="' . esc_attr( $ellipsis ) . '" />'; 561 561 echo '</p>'; … … 565 565 echo '<p>'; 566 566 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>'; 568 568 echo '</p>'; 569 569 … … 572 572 echo '<p>'; 573 573 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>'; 575 575 echo '</p>'; 576 576 … … 579 579 echo '<p>'; 580 580 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>'; 582 582 echo '</p>'; 583 583 … … 586 586 echo '<p>'; 587 587 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>'; 589 589 echo '</p>'; 590 590 … … 592 592 $avatar_size = isset( $instance['avatar_size'] ) ? intval( $instance['avatar_size'] ) : ''; 593 593 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>'; 595 595 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 ) . '" />'; 596 596 echo '</p>'; … … 600 600 echo '<p>'; 601 601 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>'; 603 603 echo '</p>'; 604 604 … … 607 607 echo '<p>'; 608 608 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>'; 610 610 echo '</p>'; 611 611 … … 613 613 $taxonomy = isset( $instance['taxonomy'] ) ? $instance['taxonomy'] : ''; 614 614 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>'; 616 616 echo '<input class="widefat" id="' . $this->get_field_id( 'taxonomy' ) . '" name="' . $this->get_field_name( 'taxonomy' ) . '" type="text" value="' . esc_attr( $taxonomy ) . '" />'; 617 617 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>'; 619 619 echo '</p>'; 620 620 … … 628 628 } 629 629 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>'; 631 631 echo '<input class="widefat" id="' . $this->get_field_id( 'terms' ) . '" name="' . $this->get_field_name( 'terms' ) . '" type="text" value="' . esc_attr( $terms ) . '" />'; 632 632 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>'; 634 634 echo '</p>'; 635 635 … … 638 638 echo '<p>'; 639 639 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>'; 641 641 echo '</p>'; 642 642 … … 645 645 echo '<p>'; 646 646 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>'; 648 648 echo '</p>'; 649 649 } -
decent-comments/trunk/css
-
Property
svn:ignore
set to
package-lock.json
-
Property
svn:ignore
set to
-
decent-comments/trunk/decent-comments.php
r3248556 r3424828 4 4 * Plugin URI: https://www.itthinx.com/plugins/decent-comments 5 5 * 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.07 * Requires at least: 6. 06 * Version: 3.0.0 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 9 9 * Author: itthinx … … 60 60 61 61 /** 62 * Plugin version. 63 * 64 * @since 3.0.0 65 * 66 * @var string 67 */ 68 define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0.0' ); 69 70 /** 62 71 * @var string plugin url 63 72 */ … … 85 94 */ 86 95 function DC_get_settings() { 87 global $DC_settings , $DC_version;96 global $DC_settings; 88 97 if ( !isset( $DC_settings ) ) { 89 98 $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 }98 99 } 99 100 return $DC_settings; … … 157 158 } 158 159 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' ); 160 require_once dirname( __FILE__ ) . '/class-decent-comments.php'; -
decent-comments/trunk/languages
-
Property
svn:ignore
set to
package-lock.json
-
Property
svn:ignore
set to
-
decent-comments/trunk/languages/decent-comments.pot
r2279190 r3424828 8 8 msgstr "Project-Id-Version: PACKAGE VERSION\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 0-04-08 12:32+0200\n"10 "POT-Creation-Date: 2025-07-23 12:15+0200\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "Content-Transfer-Encoding: 8bit\n" 18 18 19 #: class-decent-comments-renderer.php:4 0919 #: class-decent-comments-renderer.php:496 20 20 #, php-format 21 21 msgctxt "comment-date" … … 23 23 msgstr "" 24 24 25 #: class-decent-comments-renderer.php: 41925 #: class-decent-comments-renderer.php:506 26 26 #, php-format 27 27 msgctxt "comment-link" … … 29 29 msgstr "" 30 30 31 #: class-decent-comments-widget.php: 44831 #: class-decent-comments-widget.php:615 32 32 msgid "A taxonomy, e.g. category or post_tag" 33 33 msgstr "" 34 34 35 #: decent-comments.php:17335 #: class-decent-comments.php:140 36 36 msgid "Access denied." 37 37 msgstr "" 38 38 39 #: class-decent-comments-renderer.php:110 40 msgid "Ascending" 41 msgstr "" 42 43 #: class-decent-comments-renderer.php:102 44 msgid "Author Email" 45 msgstr "" 46 39 47 #: class-decent-comments-renderer.php:103 40 msgid "Ascending"41 msgstr ""42 43 #: class-decent-comments-renderer.php:9544 msgid "Author Email"45 msgstr ""46 47 #: class-decent-comments-renderer.php:9648 48 msgid "Author URL" 49 49 msgstr "" 50 50 51 #: class-decent-comments-widget.php: 35551 #: class-decent-comments-widget.php:522 52 52 #, php-format 53 53 msgid "Available post types: %s" 54 54 msgstr "" 55 55 56 #: class-decent-comments-widget.php: 42756 #: class-decent-comments-widget.php:594 57 57 msgid "Avatar size" 58 58 msgstr "" 59 59 60 #: class-decent-comments-renderer.php: 9760 #: class-decent-comments-renderer.php:104 61 61 msgid "Content" 62 62 msgstr "" 63 63 64 #: class-decent-comments-renderer.php: 9864 #: class-decent-comments-renderer.php:105 65 65 msgid "Date" 66 66 msgstr "" 67 67 68 #: decent-comments.php:16368 #: class-decent-comments.php:126 69 69 msgid "Decent Comments" 70 70 msgstr "" 71 71 72 #: decent-comments.php:163 decent-comments.php:17972 #: class-decent-comments.php:125 class-decent-comments.php:161 73 73 msgid "Decent Comments Options" 74 74 msgstr "" 75 75 76 #: decent-comments.php:20576 #: class-decent-comments.php:172 77 77 msgid "Delete settings when the plugin is deactivated" 78 78 msgstr "" 79 79 80 #: class-decent-comments-renderer.php:1 0480 #: class-decent-comments-renderer.php:111 81 81 msgid "Descending" 82 82 msgstr "" 83 83 84 #: class-decent-comments-widget.php: 39284 #: class-decent-comments-widget.php:559 85 85 msgid "Ellipsis" 86 86 msgstr "" 87 87 88 #: class-decent-comments-widget.php: 36588 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114 89 89 msgid "Exclude comments from post authors" 90 90 msgstr "" 91 91 92 #: class-decent-comments-widget.php:463 92 #: class-decent-comments-rest.php:58 93 msgid "ID of the post to get comments for (0 for all posts)" 94 msgstr "" 95 96 #: class-decent-comments-widget.php:630 93 97 msgid "If a taxonomy is given , indicate terms in that taxonomy separated " 94 98 "by comma to show comments for all posts related to these terms. To " … … 98 102 msgstr "" 99 103 100 #: class-decent-comments-widget.php: 365104 #: class-decent-comments-widget.php:532 101 105 msgid "If checked, excludes comments from post authors on their own posts." 102 106 msgstr "" 103 107 104 #: class-decent-comments-widget.php: 372108 #: class-decent-comments-widget.php:539 105 109 msgid "If checked, shows an excerpt of the comment. Otherwise the full text " 106 110 "of the comment is displayed." 107 111 msgstr "" 108 112 109 #: class-decent-comments-widget.php: 473113 #: class-decent-comments-widget.php:640 110 114 msgid "Include pingbacks." 111 115 msgstr "" 112 116 113 #: class-decent-comments-widget.php: 480117 #: class-decent-comments-widget.php:647 114 118 msgid "Include trackbacks." 115 119 msgstr "" 116 120 117 #: class-decent-comments-widget.php: 451121 #: class-decent-comments-widget.php:618 118 122 msgid "Indicate <strong>category</strong> if you would like to show " 119 123 "comments on posts in certain categories. Give the desired " … … 123 127 msgstr "" 124 128 125 #: class-decent-comments-renderer.php: 99129 #: class-decent-comments-renderer.php:106 126 130 msgid "Karma" 127 131 msgstr "" 128 132 129 #: class-decent-comments-widget.php: 346133 #: class-decent-comments-widget.php:513 130 134 msgid "Leave empty to show comments for all post types. To show comments " 131 135 "for a specific post type only, indicate the post type." 132 136 msgstr "" 133 137 134 #: class-decent-comments-widget.php: 326138 #: class-decent-comments-widget.php:493 135 139 msgid "Leave empty to show comments for all posts. To show comments for a " 136 140 "specific post only, indicate either part of the title or the post " … … 138 142 msgstr "" 139 143 140 #: class-decent-comments-widget.php: 414144 #: class-decent-comments-widget.php:581 141 145 msgid "Link authors" 142 146 msgstr "" 143 147 144 #: class-decent-comments-widget.php: 385148 #: class-decent-comments-widget.php:552 145 149 msgid "Number of characters in excerpts" 146 150 msgstr "" 147 151 148 #: class-decent-comments-widget.php: 288152 #: class-decent-comments-widget.php:455 149 153 msgid "Number of comments" 150 154 msgstr "" 151 155 152 #: class-decent-comments-widget.php:378 156 #: class-decent-comments-rest.php:41 157 msgid "Number of comments to return" 158 msgstr "" 159 160 #: class-decent-comments-widget.php:545 153 161 msgid "Number of words in excerpts" 154 162 msgstr "" 155 163 156 #: decent-comments.php:226164 #: class-decent-comments.php:58 157 165 msgid "Options" 158 166 msgstr "" 159 167 160 #: class-decent-comments-widget.php: 295168 #: class-decent-comments-widget.php:462 161 169 msgid "Order by ..." 162 170 msgstr "" 163 171 164 #: class-decent-comments-widget.php: 473172 #: class-decent-comments-widget.php:640 165 173 msgid "Pingbacks" 166 174 msgstr "" 167 175 168 #: class-decent-comments-renderer.php:10 0176 #: class-decent-comments-renderer.php:107 169 177 msgid "Post" 170 178 msgstr "" 171 179 172 #: class-decent-comments-widget.php: 326180 #: class-decent-comments-widget.php:493 173 181 msgid "Post ID" 174 182 msgstr "" 175 183 176 #: class-decent-comments-widget.php: 351184 #: class-decent-comments-widget.php:518 177 185 msgid "Post Type" 178 186 msgstr "" 179 187 180 #: decent-comments.php:209 188 #: class-decent-comments-rest.php:99 189 msgid "Post category or tag" 190 msgstr "" 191 192 #: class-decent-comments.php:176 181 193 msgid "Save" 182 194 msgstr "" 183 195 184 #: class-decent-comments-widget.php: 332196 #: class-decent-comments-widget.php:499 185 197 #, php-format 186 198 msgid "Selected post: <em>%s</em>" 187 199 msgstr "" 188 200 189 #: decent-comments.php:202201 #: class-decent-comments.php:169 190 202 msgid "Settings" 191 203 msgstr "" 192 204 193 #: class-decent-comments-widget.php: 435205 #: class-decent-comments-widget.php:602 194 206 msgid "Show a link to the post that the comment applies to." 195 207 msgstr "" 196 208 209 #: class-decent-comments-widget.php:609 210 msgid "Show an excerpt of the comment or the full comment." 211 msgstr "" 212 213 #: class-decent-comments-widget.php:567 214 msgid "Show author" 215 msgstr "" 216 217 #: class-decent-comments-widget.php:588 218 msgid "Show avatar" 219 msgstr "" 220 221 #: class-decent-comments-widget.php:539 222 msgid "Show comment excerpt" 223 msgstr "" 224 225 #: class-decent-comments-widget.php:574 226 msgid "Show date" 227 msgstr "" 228 229 #: class-decent-comments-widget.php:602 230 msgid "Show link to post" 231 msgstr "" 232 233 #: class-decent-comments-widget.php:588 234 msgid "Show the avatar of the author." 235 msgstr "" 236 237 #: class-decent-comments-widget.php:609 238 msgid "Show the comment" 239 msgstr "" 240 241 #: class-decent-comments-widget.php:574 242 msgid "Show the date and time when the comment was posted." 243 msgstr "" 244 245 #: class-decent-comments-rest.php:50 246 msgid "Size of author avatars in pixels" 247 msgstr "" 248 249 #: class-decent-comments-rest.php:74 250 msgid "Sort comments by: date, author_email, author_url, content, karma, " 251 "post" 252 msgstr "" 253 254 #: class-decent-comments-widget.php:474 255 msgid "Sort order" 256 msgstr "" 257 258 #: class-decent-comments-widget.php:474 259 msgid "Sort order." 260 msgstr "" 261 262 #: class-decent-comments-rest.php:90 263 msgid "Sort order: asc or desc" 264 msgstr "" 265 266 #: class-decent-comments-widget.php:462 267 msgid "Sorting criteria." 268 msgstr "" 269 270 #: class-decent-comments-widget.php:615 271 msgid "Taxonomy" 272 msgstr "" 273 274 #: class-decent-comments-rest.php:107 275 msgid "Term ids or slugs" 276 msgstr "" 277 278 #: class-decent-comments-widget.php:630 279 msgid "Terms" 280 msgstr "" 281 282 #: class-decent-comments-widget.php:633 283 msgid "Terms or {current}. A <strong>Taxonomy</strong> must be given." 284 msgstr "" 285 197 286 #: 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 288 msgid "Thanks for supporting our work with a purchase in our %sShop%s!" 289 msgstr "" 290 291 #: class-decent-comments-widget.php:559 292 msgid "The ellipsis is shown after the excerpt when there is more content." 293 msgstr "" 294 295 #: class-decent-comments-widget.php:552 296 msgid "The maximum number of characters shown in excerpts." 297 msgstr "" 298 299 #: class-decent-comments-widget.php:545 300 msgid "The maximum number of words shown in excerpts." 301 msgstr "" 302 303 #: class-decent-comments-widget.php:455 304 msgid "The number of comments to show." 305 msgstr "" 306 307 #: class-decent-comments-widget.php:594 308 msgid "The size of the avatar in pixels." 243 309 msgstr "" 244 310 245 311 #: class-decent-comments-widget.php:448 246 msgid "Taxonomy"247 msgstr ""248 249 #: class-decent-comments-widget.php:463250 msgid "Terms"251 msgstr ""252 253 #: class-decent-comments-widget.php:466254 msgid "Terms or {current}. A <strong>Taxonomy</strong> must be given."255 msgstr ""256 257 #: class-decent-comments-widget.php:392258 msgid "The ellipsis is shown after the excerpt when there is more content."259 msgstr ""260 261 #: class-decent-comments-widget.php:385262 msgid "The maximum number of characters shown in excerpts."263 msgstr ""264 265 #: class-decent-comments-widget.php:378266 msgid "The maximum number of words shown in excerpts."267 msgstr ""268 269 #: class-decent-comments-widget.php:288270 msgid "The number of comments to show."271 msgstr ""272 273 #: class-decent-comments-widget.php:427274 msgid "The size of the avatar in pixels."275 msgstr ""276 277 #: class-decent-comments-widget.php:281278 312 msgid "Title" 279 313 msgstr "" 280 314 281 #: class-decent-comments-widget.php: 329315 #: class-decent-comments-widget.php:496 282 316 msgid "Title, empty, post ID or [current]" 283 317 msgstr "" 284 318 285 #: class-decent-comments-widget.php: 480319 #: class-decent-comments-widget.php:647 286 320 msgid "Trackbacks" 287 321 msgstr "" 288 322 289 #: class-decent-comments-widget.php:414 323 #: class-decent-comments-rest.php:122 324 msgid "Whether to include Pingbacks" 325 msgstr "" 326 327 #: class-decent-comments-rest.php:130 328 msgid "Whether to include Trackbacks" 329 msgstr "" 330 331 #: class-decent-comments-widget.php:581 290 332 msgid "Whether to link comment authors to their website." 291 333 msgstr "" 292 334 293 #: class-decent-comments-widget.php: 400335 #: class-decent-comments-widget.php:567 294 336 msgid "Whether to show the author of each comment." 295 337 msgstr "" 296 338 297 #: class-decent-comments-widget.php: 348339 #: class-decent-comments-widget.php:515 298 340 msgid "You can indicate one ore more post types separated by comma." 299 341 msgstr "" -
decent-comments/trunk/readme.txt
r3248556 r3424828 3 3 Donate link: https://www.itthinx.com/shop/ 4 4 Tags: comment, comments, shortcode, discussion, feedback 5 Requires at least: 6. 06 Tested up to: 6. 75 Requires at least: 6.5 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 2.0.08 Stable tag: 3.0.0 9 9 License: GPLv3 10 10 11 Decent Comments shows what people say. Provides widgets, shortcodes and API to display comments including author avatars, links, comment excerpts.11 Decent Comments shows what people say. A more engaging way to show comments. 12 12 13 13 == Description == … … 15 15 __Decent Comments shows what people say.__ 16 16 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.17 The 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. 18 18 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 ...19 If 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. 20 20 21 Anywhere you place comments, by means of a widget, a shortcode or an API call, you can: 21 The plugin provides configurable blocks, widgets, shortcodes and an API to display comments in sensible ways. This includes author avatars, links, comment excerpts ... 22 23 Anywhere you place comments, by means of its block, widget, shortcode or by using its API, you can: 22 24 23 25 - Show an excerpt or the full comment. You can choose to not show the comment as well. … … 33 35 - and more to come ... got suggestions? 34 36 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). 37 Visit the [Documentation](https://docs.itthinx.com/document/decent-comments) pages for details. 38 39 Feedback 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. 37 40 38 41 Please 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! 39 42 40 Follow [@itthinx ](https://twitter.com/itthinx) for updates on this and other plugins.43 Follow [@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. 41 44 42 45 __Translations__ … … 59 62 2. Enable the plugin from the *Plugins* menu in WordPress. 60 63 61 Please also visit the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments) for the latest info. 64 == Frequently Asked Questions == 62 65 63 == Frequently Asked Questions == 66 = Does it have a block? = 67 68 Yes. Look for the "Decent Comments" block in the block browser. 64 69 65 70 = Can this plugin show excerpts of comments or even full comments? = … … 79 84 Yes. 80 85 81 = Can I place more than one comment widgetwith different settings? =86 = Can I place more than one comment block, widget, shortcode ... with different settings? = 82 87 83 88 Yes. … … 93 98 = What else does it do? = 94 99 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! 100 Visit the [Documentation](https://docs.itthinx.com/document/decent-comments). 100 101 101 102 = Help! = 102 103 103 Get help at the [Decent Comments plugin page](https://www.itthinx.com/plugins/decent-comments).104 Get 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/). 104 105 105 106 = I really appreciate this, how can I contribute? = 106 107 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. 108 Visit the [Decent Comments](https://www.itthinx.com/plugins/decent-comments) page to provide feedback and ideas. 109 110 Visit the [Shop](https://www.itthinx.com/shop/) to purchase our tools and support our work. 108 111 109 112 Translations are also welcome!
Note: See TracChangeset
for help on using the changeset viewer.