Changeset 1802163
- Timestamp:
- 01/13/2018 01:39:44 AM (7 years ago)
- Location:
- sumus/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sumus/trunk/readme.txt
r1701021 r1802163 3 3 Donate link: https://quaestio.org/ 4 4 Tags: shortcode, automation, metadata, excerpt 5 Requires at least: 3.0.06 Tested up to: 4. 85 Requires at least: 2.5.0 6 Tested up to: 4.9.1 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 reproduces the excerpt of pages or posts simply via: [sumus].11 It reproduces publication excerpts in pages or posts simply via: `[sumus]`. 12 12 == Description == 13 13 14 <strong>autometa's SUMUS</strong>is a simple plugin that uses the following shortcode:14 **autometa's SUMUS** is a simple plugin that uses the following shortcode: 15 15 16 16 * `[sumus]` = to reproduce the publication excerpt. 17 17 18 <strong>autometa's SUMUS</strong> is an element of [autometa](https://wordpress.org/plugins/autometa/) plugin set. 19 20 == Installation == 21 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: `[sumus]`. 18 **autometa's SUMUS** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack. 25 19 26 20 == Frequently Asked Questions == 27 21 28 = How does autometa's SUMUS work?=22 = Installation Instructions = 29 23 30 [autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, <strong>autometa's SUMUS</strong> reproduces the excerpt in special. 24 1. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder; 25 2. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*; 26 3. Write the following shortcode in text fields: `[sumus]`. 31 27 32 = What is needed to use autometa's SUMUS? = 28 = Plugin Features = 29 30 **[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's SUMUS** reproduces excerpt-related data in special. 31 32 = How To = 33 33 34 34 Just write the following shortcode inside a text field and between brackets as usual: `[sumus]`. 35 35 36 = Which functions are used by autometa's SUMUS?=36 = CSS Style Selectors = 37 37 38 These: [add_shortcode](https://codex.wordpress.org/Function_Reference/add_shortcode) and [get_the_excerpt](https://codex.wordpress.org/Function_Reference/get_the_excerpt). 38 * `#dated` = `[sumus]` ID; 39 * `.autometa` = **autometa** class. 40 41 = PHP Functions Reference = 42 43 * [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/) 44 * [`get_the_excerpt()`](https://developer.wordpress.org/reference/functions/get_the_excerpt/) -
sumus/trunk/sumus.php
r1505568 r1802163 2 2 /* 3 3 * Plugin Name: autometa's SUMUS 4 * Description: It reproduces the excerpt ofpages or posts simply via: [sumus].5 * Version: 1.14 * Description: It reproduces publication excerpts in pages or posts simply via: [sumus]. 5 * Version: 2.0 6 6 * Author: JorgeAmVF 7 7 * Author URI: https://profiles.wordpress.org/jorgeamvf/ … … 26 26 */ 27 27 28 // [sumus] = excerpt29 function pub_excerpt() {30 $pubexcerpt= get_the_excerpt();31 return $pubexcerpt;28 // [sumus] = publication excerpt 29 function autometa_publication_excerpt() { 30 $am_sumus = '<span id="sumus" class="autometa">' . get_the_excerpt() . '</span>'; 31 return $am_sumus; 32 32 } 33 add_shortcode( "sumus", "pub_excerpt");33 add_shortcode( "sumus", "autometa_publication_excerpt" ); 34 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.