Changeset 360335
- Timestamp:
- 03/15/2011 02:41:01 PM (15 years ago)
- Location:
- simple-quotes
- Files:
-
- 4 edited
- 1 copied
-
tags/1.04 (copied) (copied from simple-quotes/trunk)
-
tags/1.04/index.php (modified) (5 diffs)
-
tags/1.04/readme.txt (modified) (2 diffs)
-
trunk/index.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-quotes/tags/1.04/index.php
r355777 r360335 4 4 * Plugin URI: http://www.jasonernst.com/projects/quotes/ 5 5 * 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.0 36 * Version: 1.04 7 7 * Author: Jason B. Ernst 8 8 * Author URI: http://www.jasonernst.com/ … … 64 64 'hierarchical' => false, 65 65 'menu_position' => null, 66 'supports' => array('title' ),66 'supports' => array('title', 'editor'), 67 67 ); 68 68 … … 141 141 /* 142 142 * Returns a random quote using an associative array 143 * quote["title"] is the title of the quote 143 144 * quote["content"] is the quote itself 144 145 * quote["author"] is the author … … 152 153 the_post(); 153 154 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"]; 155 159 $quote["author"] = get_post_meta($post->ID, 'quote_author', true ); 156 160 $quote["date"] = get_post_meta($post->ID, 'quote_date', true ); … … 164 168 * Use quote_random() if you would like to style the 165 169 * quote yourself 170 * Note: in the default style, the title is not used 166 171 */ 167 172 function quote_display_random() -
simple-quotes/tags/1.04/readme.txt
r355777 r360335 5 5 Requires at least: 3.0 6 6 Tested up to: 3.1 7 Stable tag: 1.0 37 Stable tag: 1.04 8 8 9 9 Just a simple project that flexibly prints random quotes anywhere on a wordpress page. … … 28 28 == Changelog == 29 29 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 30 36 = 1.03 = 31 37 * Fixed a problem where the date was not being saved correctly -
simple-quotes/trunk/index.php
r355777 r360335 4 4 * Plugin URI: http://www.jasonernst.com/projects/quotes/ 5 5 * 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.0 36 * Version: 1.04 7 7 * Author: Jason B. Ernst 8 8 * Author URI: http://www.jasonernst.com/ … … 64 64 'hierarchical' => false, 65 65 'menu_position' => null, 66 'supports' => array('title' ),66 'supports' => array('title', 'editor'), 67 67 ); 68 68 … … 141 141 /* 142 142 * Returns a random quote using an associative array 143 * quote["title"] is the title of the quote 143 144 * quote["content"] is the quote itself 144 145 * quote["author"] is the author … … 152 153 the_post(); 153 154 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"]; 155 159 $quote["author"] = get_post_meta($post->ID, 'quote_author', true ); 156 160 $quote["date"] = get_post_meta($post->ID, 'quote_date', true ); … … 164 168 * Use quote_random() if you would like to style the 165 169 * quote yourself 170 * Note: in the default style, the title is not used 166 171 */ 167 172 function quote_display_random() -
simple-quotes/trunk/readme.txt
r355777 r360335 5 5 Requires at least: 3.0 6 6 Tested up to: 3.1 7 Stable tag: 1.0 37 Stable tag: 1.04 8 8 9 9 Just a simple project that flexibly prints random quotes anywhere on a wordpress page. … … 28 28 == Changelog == 29 29 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 30 36 = 1.03 = 31 37 * Fixed a problem where the date was not being saved correctly
Note: See TracChangeset
for help on using the changeset viewer.