Plugin Directory

Changeset 360335


Ignore:
Timestamp:
03/15/2011 02:41:01 PM (15 years ago)
Author:
jernst
Message:

Added some feature suggestions from a user

Location:
simple-quotes
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-quotes/tags/1.04/index.php

    r355777 r360335  
    44 * Plugin URI: http://www.jasonernst.com/projects/quotes/
    55 * Description: Creates a custom post type for quotes which will show up in the administrative interface within wordpress. The quotes are then return randomly in an associative array using the function 'quote_random()'. Extremely simple plugin takes only a quote and the quote author. Note: The author icon is taken from the famfamfam icon pack (http://www.famfamfam.com/)
    6  * Version: 1.03
     6 * Version: 1.04
    77 * Author: Jason B. Ernst
    88 * Author URI: http://www.jasonernst.com/
     
    6464        'hierarchical' => false,
    6565        'menu_position' => null,
    66         'supports' => array('title'),
     66        'supports' => array('title', 'editor'),
    6767    );
    6868   
     
    141141/*
    142142 * Returns a random quote using an associative array
     143 * quote["title"] is the title of the quote
    143144 * quote["content"] is the quote itself
    144145 * quote["author"] is the author
     
    152153        the_post();
    153154        global $post;
    154         $quote["content"] = the_title("", "", false);
     155        $quote["title"] = get_the_title($post_>ID);
     156        $quote["content"] = get_the_content();
     157        if($quote["content"] == "")
     158            $quote["content"] = $quote["title"];
    155159        $quote["author"] = get_post_meta($post->ID, 'quote_author', true );
    156160        $quote["date"] = get_post_meta($post->ID, 'quote_date', true );
     
    164168 * Use quote_random() if you would like to style the
    165169 * quote yourself
     170 * Note: in the default style, the title is not used
    166171 */
    167172function quote_display_random()
  • simple-quotes/tags/1.04/readme.txt

    r355777 r360335  
    55Requires at least: 3.0
    66Tested up to: 3.1
    7 Stable tag: 1.03
     7Stable tag: 1.04
    88
    99Just a simple project that flexibly prints random quotes anywhere on a wordpress page.
     
    2828== Changelog ==
    2929
     30= 1.04 =
     31* Added quote title so that the content can be placed inside a normal content field (as suggested by Tim - http://www.jasonernst.com/projects/quotes/comment-page-1/#comment-5045)
     32* Now quotes may contain links, bold, italic and other markup just the same as any other post
     33* Titles are often shorter than the quote itself resulting in shorter URLs in the case where pretty permalinks are enabled
     34* NOTE: You can now either enter the quote in the title field or in the content field, if the content is empty it will use the title
     35
    3036= 1.03 =
    3137* Fixed a problem where the date was not being saved correctly
  • simple-quotes/trunk/index.php

    r355777 r360335  
    44 * Plugin URI: http://www.jasonernst.com/projects/quotes/
    55 * Description: Creates a custom post type for quotes which will show up in the administrative interface within wordpress. The quotes are then return randomly in an associative array using the function 'quote_random()'. Extremely simple plugin takes only a quote and the quote author. Note: The author icon is taken from the famfamfam icon pack (http://www.famfamfam.com/)
    6  * Version: 1.03
     6 * Version: 1.04
    77 * Author: Jason B. Ernst
    88 * Author URI: http://www.jasonernst.com/
     
    6464        'hierarchical' => false,
    6565        'menu_position' => null,
    66         'supports' => array('title'),
     66        'supports' => array('title', 'editor'),
    6767    );
    6868   
     
    141141/*
    142142 * Returns a random quote using an associative array
     143 * quote["title"] is the title of the quote
    143144 * quote["content"] is the quote itself
    144145 * quote["author"] is the author
     
    152153        the_post();
    153154        global $post;
    154         $quote["content"] = the_title("", "", false);
     155        $quote["title"] = get_the_title($post_>ID);
     156        $quote["content"] = get_the_content();
     157        if($quote["content"] == "")
     158            $quote["content"] = $quote["title"];
    155159        $quote["author"] = get_post_meta($post->ID, 'quote_author', true );
    156160        $quote["date"] = get_post_meta($post->ID, 'quote_date', true );
     
    164168 * Use quote_random() if you would like to style the
    165169 * quote yourself
     170 * Note: in the default style, the title is not used
    166171 */
    167172function quote_display_random()
  • simple-quotes/trunk/readme.txt

    r355777 r360335  
    55Requires at least: 3.0
    66Tested up to: 3.1
    7 Stable tag: 1.03
     7Stable tag: 1.04
    88
    99Just a simple project that flexibly prints random quotes anywhere on a wordpress page.
     
    2828== Changelog ==
    2929
     30= 1.04 =
     31* Added quote title so that the content can be placed inside a normal content field (as suggested by Tim - http://www.jasonernst.com/projects/quotes/comment-page-1/#comment-5045)
     32* Now quotes may contain links, bold, italic and other markup just the same as any other post
     33* Titles are often shorter than the quote itself resulting in shorter URLs in the case where pretty permalinks are enabled
     34* NOTE: You can now either enter the quote in the title field or in the content field, if the content is empty it will use the title
     35
    3036= 1.03 =
    3137* Fixed a problem where the date was not being saved correctly
Note: See TracChangeset for help on using the changeset viewer.