Changeset 1804156
- Timestamp:
- 01/17/2018 01:49:07 AM (8 years ago)
- Location:
- forma/trunk
- Files:
-
- 2 edited
-
forma.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
forma/trunk/forma.php
r1731444 r1804156 2 2 /* 3 3 * 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.04 * Description: It generates comment forms in posts simply via: [forma]. 5 * Version: 2.0 6 6 * Author: JorgeAmVF 7 7 * Author URI: https://profiles.wordpress.org/jorgeamvf/ … … 26 26 */ 27 27 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 29 function 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; 32 33 } 33 add_shortcode( "forma","autometa_forma");34 add_shortcode( "forma", "autometa_comment_form" ); 34 35 ?> -
forma/trunk/readme.txt
r1731444 r1804156 2 2 Contributors: JorgeAmVF 3 3 Donate link: https://quaestio.org/ 4 Tags: shortcode, automation, metadata, taxonomy, cloud, category, tag4 Tags: shortcode, automation, comment, comment form, form 5 5 Requires at least: 3.0.0 6 Tested up to: 4. 8.16 Tested up to: 4.9.2 7 7 Stable Tag: trunk 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 It generates a comment form on pages posts portfolios simply via: [forma].11 It generates comment forms in posts simply via: `[forma]`. 12 12 == Description == 13 13 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: 15 15 16 16 * `[forma]` = to generate a comment form on pages posts portfolios. 17 17 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. 19 19 20 20 == Installation == 21 21 22 1. Download it or installit to your plugin folder;23 2. Activate it from the plugin tab inside your dashboard;22 1. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder; 23 2. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*; 24 24 3. Write the following shortcode in text fields: `[forma]`. 25 25 26 26 == Frequently Asked Questions == 27 27 28 = How does autometa's FORMA work?=28 = Plugin Features = 29 29 30 [autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, <strong>autometa's FORMA</strong> generates a comment formin 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. 31 31 32 = What is needed to use autometa's FORMA?=32 = How To = 33 33 34 Just write the following shortcode sinside a text field and between brackets as usual: `[forma]`.34 Just write the following shortcode inside a text field and between brackets as usual: `[forma]`. 35 35 36 = Which functions are used by autometa's FORMA?=36 = CSS Style Selectors = 37 37 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.