Plugin Directory

Changeset 1804156


Ignore:
Timestamp:
01/17/2018 01:49:07 AM (8 years ago)
Author:
JorgeAmVF
Message:

update

Location:
forma/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • forma/trunk/forma.php

    r1731444 r1804156  
    22/*
    33* Plugin Name: autometa's FORMA
    4 * Description: It generates comment forms on pages or posts or portfolios or products simply via: [forma].
    5 * Version: 1.0
     4* Description: It generates comment forms in posts simply via: [forma].
     5* Version: 2.0
    66* Author: JorgeAmVF
    77* Author URI: https://profiles.wordpress.org/jorgeamvf/
     
    2626*/
    2727
    28 // [forma] comment form
    29 function autometa_forma( $args, $post_id ) {
    30 $post_id = get_the_ID();
    31 return comment_form();
     28// [forma] = comment form
     29function autometa_comment_form( $args, $post_id ) {
     30    $post_id = get_the_ID();
     31    $am_forma = '<span id="forma" class="autometa">' . comment_form() . '</span>';
     32        return $am_forma;
    3233}
    33 add_shortcode("forma","autometa_forma");
     34add_shortcode( "forma", "autometa_comment_form" );
    3435?>
  • forma/trunk/readme.txt

    r1731444 r1804156  
    22Contributors: JorgeAmVF
    33Donate link: https://quaestio.org/
    4 Tags: shortcode, automation, metadata, taxonomy, cloud, category, tag
     4Tags: shortcode, automation, comment, comment form, form
    55Requires at least: 3.0.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 generates a comment form on pages posts portfolios simply via: [forma].
     11It generates comment forms in posts simply via: `[forma]`.
    1212== Description ==
    1313 
    14 <strong>autometa's FORMA</strong> is a simple plugin that uses the following shortcodes:
     14**autometa's FORMA** is a simple plugin that uses the following shortcode:
    1515
    1616* `[forma]` = to generate a comment form on pages posts portfolios.
    1717
    18 <strong>autometa's FORMA</strong> is an element of [autometa](https://wordpress.org/plugins/autometa/) plugin set.
     18**autometa's FORMA** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack.
    1919
    2020== Installation ==
    2121
    22 1. Download it or install it to your plugin folder;
    23 2. Activate it from the plugin tab inside your dashboard;
     221. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder;
     232. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*;
    24243. Write the following shortcode in text fields: `[forma]`.
    2525
    2626== Frequently Asked Questions ==
    2727
    28 = How does autometa's FORMA work? =
     28= Plugin Features =
    2929
    30 [autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, <strong>autometa's FORMA</strong> generates a comment form in special.
     30**[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's FORMA reproduces product taxonomy-related data in special.
    3131
    32 = What is needed to use autometa's FORMA? =
     32= How To =
    3333
    34 Just write the following shortcodes inside a text field and between brackets as usual: `[forma]`.
     34Just write the following shortcode inside a text field and between brackets as usual: `[forma]`.
    3535
    36 = Which functions are used by autometa's FORMA? =
     36= CSS Style Selectors =
    3737
    38 These: [add_shortcode](https://codex.wordpress.org/Function_Reference/add_shortcode) and [comment_form](https://developer.wordpress.org/reference/functions/comment_form/).
     38* `#forma`   = `[forma]` ID;
     39* `.autometa` = **autometa** class.
     40
     41= PHP Functions Reference =
     42
     43* [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/)
     44* [`comment_form()`](https://developer.wordpress.org/reference/functions/comment_form/)
Note: See TracChangeset for help on using the changeset viewer.