Plugin Directory

Changeset 1804074


Ignore:
Timestamp:
01/16/2018 10:30:11 PM (7 years ago)
Author:
JorgeAmVF
Message:

better-formed readme.txt file provided

Location:
woodo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woodo/trunk/readme.txt

    r1701025 r1804074  
    44Tags: shortcode, automation, metadata, taxonomy, cloud, category, tag, woocommerce
    55Requires at least: 2.5.0
    6 Tested up to: 4.8
     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 categories and tags and it generates a cloud mixing categories and tags of products simply via: [woocats] and [wootags] and [woodo].
     11It reproduces product categories and tags in products and it generates a cloud mixing categories and tags of products simply via: `[woocats]` and `[wootags]` and `[woodo]`.
    1212== Description ==
    1313
    14 <strong>autometa's WOODO</strong> is a simple plugin that uses the following shortcodes:
     14**autometa's WOODO** is a simple plugin that uses the following shortcodes:
    1515
    16 * `[woocats]` = to reproduce the categories of a product;
    17 * `[wootags]` = to reproduce the tags of a product;
    18 * `[woodo]`   = to generate a taxonomy cloud mixing categories and tags of products.
     16* `[woocats]` = to reproduce product categories;
     17* `[wootags]` = to reproduce product tags;
     18* `[woodo]`   = to generate a product taxonomies cloud.
    1919
    20 <strong>autometa's WOODO</strong> is an element of [autometa](https://wordpress.org/plugins/autometa/) plugin set.
    21 
    22 == Installation ==
    23 
    24 1. Download it or install it to your plugin folder;
    25 2. Activate it from the plugin tab inside your dashboard;
    26 3. Write the following shortcodes in text fields: `[woocats]`, `[wootags]`, `[woodo]`.
     20**autometa's WOODO** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack.
    2721
    2822== Frequently Asked Questions ==
    2923
    30 = How does autometa's WOODO work? =
     24= Installation Instructions =
    3125
    32 [autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, <strong>autometa's WOODO</strong> reproduces categories and tags of products in special.
     261. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder;
     272. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*;
     283. Write the following shortcodes in text fields: `[woocats]`, `[wootags]`, `[woodo]`.
    3329
    34 = What is needed to use autometa's WOODO? =
     30= Plugin Features =
     31
     32[autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, **autometa's WOODO** reproduces product taxonomy-related data in special
     33
     34= How To =
    3535
    3636Just write one or more of the following shortcodes inside a text field and between brackets as usual: `[woocats]` and/or `[wootags]` and/or `[woodo]`.
    3737
    38 = Which functions are used by autometa's WOODO? =
     38= CSS Style Selectors =
    3939
    40 These: [add_shortcode](https://codex.wordpress.org/Function_Reference/add_shortcode) and [get_the_term_list](https://codex.wordpress.org/Function_Reference/get_the_term_list) and [wp_tag_cloud](https://codex.wordpress.org/Function_Reference/wp_tag_cloud).
     40* `#pfcats`   = `[pfcats]` ID;
     41* `#pfatts`   = `[pfatts]` ID;
     42* `#folio`    = `[folio]` ID;
     43* `.autometa` = **autometa** class.
     44
     45= PHP Functions Reference =
     46
     47* [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/)
     48* [`get_the_term_list()`](https://developer.wordpress.org/reference/functions/get_the_term_list/)
     49* [`wp_tag_cloud()`](https://developer.wordpress.org/reference/functions/wp_tag_cloud/)
  • woodo/trunk/woodo.php

    r1505568 r1804074  
    22/*
    33* Plugin Name: autometa's WOODO
    4 * Description: It reproduces categories and tags and it generates a cloud mixing categories and tags of products simply via: [woocats] and [wootags] and [woodo].
    5 * Version: 1.1
     4* Description: It reproduces product categories and tags in products and it generates a cloud mixing categories and tags of products simply via: [woocats] and [wootags] and [woodo].
     5* Version: 2.0
    66* Author: JorgeAmVF
    77* Author URI: https://profiles.wordpress.org/jorgeamvf/
     
    2626*/
    2727
    28 // [woocats] = categories
    29 function woo_pub_categories ( $atts, $content = null ) {
    30 global $post;
    31 $woopubcategories = get_the_term_list( $post->ID, 'product_cat', $separator = ' ' );
    32  return '<div id="woocats" class="autometa">' . $woopubcategories . '</div>';
     28// [woocats] = (product) categories
     29function autometa_product_categories( $atts, $content = null ) {
     30    global $post;
     31    $am_woocats = '<span id="woocats" class="autometa">' . get_the_term_list( $post->ID, 'product_cat', $separator = ' ' ) . '</span>';
     32        return $am_woocats;
    3333}
    34 add_shortcode( "woocats", "woo_pub_categories" );
     34add_shortcode( "woocats", "autometa_product_categories" );
    3535
    36 // [wootags] = tags
    37 function woo_pub_tags ( $atts, $content = null ) {
    38 global $post;
    39 $woopubtags = get_the_term_list( $post->ID, 'product_tag', $separator = ' ' );
    40  return '<div id="wootags" class="autometa">' . $woopubtags . '</div>';
     36// [wootags] = (product) tags
     37function autometa_product_tags( $atts, $content = null ) {
     38    global $post;
     39    $am_wootags = '<span id="woocats" class="autometa">' . get_the_term_list( $post->ID, 'product_tag', $separator = ' ' ) . '</span>';
     40        return $am_wootags;
    4141}
    42 add_shortcode( "wootags", "woo_pub_tags" );
     42add_shortcode( "wootags", "autometa_product_tags" );
    4343
    44 // [woodo] = categories & tags
    45 function woodoing ( $echo = false ) {
    46  if (function_exists('wp_tag_cloud'))
    47   return wp_tag_cloud( array( 'number' => 0, 'orderby' => 'count', 'order' => 'RAND', 'taxonomy' => array( 'product_tag', 'product_cat' ), ) );
     44// [woodo] = (product) categories & tags
     45function autometa_product_taxonomies( $echo = false ) {
     46    if ( function_exists( 'wp_tag_cloud' ) )
     47         $am_woodoo = '<span id="woodo" class="autometa">' . wp_tag_cloud( array(
     48            'number' => 0,
     49            'orderby' => 'count',
     50            'order' => 'RAND',
     51            'taxonomy' => array(
     52                'product_tag',
     53                'product_cat'
     54            ),
     55        ) );
     56            return $am_woodo. '</span>';
    4857}
    49 add_shortcode("woodo", "woodoing");
     58add_shortcode( "woodo", "autometa_product_taxonomies" );
    5059?>
Note: See TracChangeset for help on using the changeset viewer.