Plugin Directory

Changeset 1802163


Ignore:
Timestamp:
01/13/2018 01:39:44 AM (7 years ago)
Author:
JorgeAmVF
Message:

better-formed readme.txt file provided and CSS selectors added to sumus.php

Location:
sumus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sumus/trunk/readme.txt

    r1701021 r1802163  
    33Donate link: https://quaestio.org/
    44Tags: shortcode, automation, metadata, excerpt
    5 Requires at least: 3.0.0
    6 Tested up to: 4.8
     5Requires at least: 2.5.0
     6Tested up to: 4.9.1
    77Stable Tag: trunk
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 It reproduces the excerpt of pages or posts simply via: [sumus].
     11It reproduces publication excerpts in pages or posts simply via: `[sumus]`.
    1212== Description ==
    1313
    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:
    1515
    1616* `[sumus]` = to reproduce the publication excerpt.
    1717
    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.
    2519
    2620== Frequently Asked Questions ==
    2721
    28 = How does autometa's SUMUS work? =
     22= Installation Instructions =
    2923
    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.
     241. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder;
     252. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*;
     263. Write the following shortcode in text fields: `[sumus]`.
    3127
    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 =
    3333
    3434Just write the following shortcode inside a text field and between brackets as usual: `[sumus]`.
    3535
    36 = Which functions are used by autometa's SUMUS? =
     36= CSS Style Selectors =
    3737
    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  
    22/*
    33* Plugin Name: autometa's SUMUS
    4 * Description: It reproduces the excerpt of pages or posts simply via: [sumus].
    5 * Version: 1.1
     4* Description: It reproduces publication excerpts in pages or posts simply via: [sumus].
     5* Version: 2.0
    66* Author: JorgeAmVF
    77* Author URI: https://profiles.wordpress.org/jorgeamvf/
     
    2626*/
    2727
    28 // [sumus] = excerpt
    29 function pub_excerpt() {
    30 $pubexcerpt= get_the_excerpt();
    31  return $pubexcerpt;
     28// [sumus] = publication excerpt
     29function autometa_publication_excerpt() {
     30    $am_sumus = '<span id="sumus" class="autometa">' . get_the_excerpt() . '</span>';
     31        return $am_sumus;
    3232}
    33 add_shortcode("sumus", "pub_excerpt");
     33add_shortcode( "sumus", "autometa_publication_excerpt" );
    3434?>
Note: See TracChangeset for help on using the changeset viewer.