Plugin Directory

Changeset 1804181


Ignore:
Timestamp:
01/17/2018 02:52:31 AM (7 years ago)
Author:
JorgeAmVF
Message:

better-formed readme.txt file provided and update

Location:
ments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ments/trunk/ments.php

    r1731420 r1804181  
    22/*
    33* Plugin Name: autometa's MENTS
    4 * Description: It reproduces a comment list on pages or posts or portfolios or products simply via: [ments].
    5 * Version: 1.0
     4* Description: It reproduces comment lists in pages, posts, portfolios or products simply via: [ments] and [recents].
     5* Version: 2.0
    66* Author: JorgeAmVF
    77* Author URI: https://profiles.wordpress.org/jorgeamvf/
     
    2626*/
    2727
    28 // [ments] = comment lists
    29 function autometa_ments($args, $comments){
    30 $comments = get_comments(array('order' => 'ASC', 'status' => 'approve'));
    31 wp_list_comments(array('walker' => new autometa_ments_Walker_Comment(), 'echo' => 1, 'per_page' => 0, 'type' => 'comment'), $comments);
    32  return wp_list_comments();
     28// [ments] = comment list
     29function autometa_comment_list( $args, $comments ) {
     30    $comments = get_comments( array(
     31        'order' => 'ASC',
     32        'status' => 'approve'
     33    ) );
     34    $am_ments = '<span id="ments" class="autometa">' . wp_list_comments( array(
     35        'walker' => new autometa_ments_Walker_Comment(),
     36        'echo' => 1,
     37        'per_page' => 0,
     38        'type' => 'comment'
     39    ),
     40        $comments
     41    ) . '</span>';
     42    return wp_list_comments();
    3343}
    34 add_shortcode("ments","autometa_ments");
     44add_shortcode( "ments", "autometa_comment_list" );
     45
     46// [recents] = recent list
     47function autometa_recent_list( $args, $comments ) {
     48    $comments = get_comments( array(
     49        'order' => 'DESC',
     50        'status' => 'approve'
     51    ) );
     52    $am_recents = '<span id="recents" class="autometa">' . wp_list_comments( array(
     53        'walker' => new autometa_ments_Walker_Comment(),
     54        'echo' => 1,
     55        'per_page' => 3,
     56        'reverse_top_level' => 0,
     57        'type' => 'comment'),
     58         $comments
     59    ) . '</span>' ;
     60    return $am_recents;
     61}
     62add_shortcode( "recents", "autometa_recent_list" );
    3563
    3664/**
  • ments/trunk/readme.txt

    r1732373 r1804181  
    22Contributors: JorgeAmVF
    33Donate link: https://quaestio.org/
    4 Tags: shortcode, automation, metadata, taxonomy, cloud, category, tag
     4Tags: shortcode, automation, comment, comment list, list, recent comments, recent
    55Requires at least: 2.8.0
    6 Tested up to: 4.8.1
     6Tested up to: 4.9.2
    77Stable Tag: trunk
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 It reproduces a list with all comments on pages, posts, portfolios and products simply via: [cats] and [tags] and [catag].
     11It reproduces comment lists in pages, posts, portfolios or products simply via: `[ments]` and `[recents]`.
    1212== Description ==
    1313 
    1414**autometa's MENTS** is a simple plugin that uses the following shortcodes:
    1515
    16 * *[ments]* = to reproduce a comment list mixing all comments from pages, posts, portfolios and products.
     16* `[ments]`   = to reproduce all comments;
     17* `[recents]` = to reproduce recents comments.
    1718
    18 **autometa's MENTS** is an element of **[autometa](https://wordpress.org/plugins/autometa/)** plugin set.
     19**autometa's MENTS** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack.
    1920
    2021== Installation ==
    2122
    22 1. Download it or install it to your plugin folder;
    23 2. Activate it from the plugin tab inside your dashboard;
    24 3. Write the following shortcode in text fields: **[ments]**.
     231. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder;
     242. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*;
     253. Write the following shortcodes in text fields: `[ments]`, `[recents]`.
    2526
    2627== Frequently Asked Questions ==
    2728
    28 = How does autometa's MENTS work? =
     29= Plugin Features =
    2930
    30 **[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's MENTS** reproduces a comments list in special.
     31**[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's MENTS** generates comment lists in special.
    3132
    32 = What is needed to use autometa's MENTS? =
     33= How To =
    3334
    34 Just write the following shortcodes inside a text field and between brackets as usual: *[ments]*.
     35Just write one or more of the following shortcodes inside a text field and between brackets as usual: `[ments]` and/or `[recents]`.
    3536
    36 = Which functions are used by autometa's MENTS? =
     37= CSS Style Selectors =
    3738
    38 These: [`add_shortcode()`](https://codex.wordpress.org/Function_Reference/add_shortcode) and [`get_comments()`](https://codex.wordpress.org/Function_Reference/get_comments) and [`wp_list_comments()`](https://codex.wordpress.org/Function_Reference/wp_list_comments) and [`Walker`](https://codex.wordpress.org/Class_Reference/Walker) and [`get_comment_author_link()`](https://developer.wordpress.org/reference/functions/get_comment_author_link/) and [`get_comment_link()`](https://developer.wordpress.org/reference/functions/get_comment_link/) and [`get_the_title()`](https://developer.wordpress.org/reference/functions/get_the_title/).
     39* `#ments`    = `[ments]` ID;
     40* `#recents`  = `[recents]` ID;
     41* `.autometa` = **autometa** class.
     42
     43= PHP Functions Reference =
     44
     45* [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/)
     46* [`get_comment_author_link()`](https://developer.wordpress.org/reference/functions/get_comment_author_link/)
     47* [`get_comment_link()`](https://developer.wordpress.org/reference/functions/get_comment_link/)
     48* [`get_comments()`](https://developer.wordpress.org/reference/functions/get_comments/)
     49* [`get_the_title()`](https://developer.wordpress.org/reference/functions/get_the_title/)
     50* [`Walker`](https://developer.wordpress.org/reference/classes/walker/)
     51* [`wp_list_comments()`](https://developer.wordpress.org/reference/functions/wp_list_comments/)
Note: See TracChangeset for help on using the changeset viewer.