Changeset 167341
- Timestamp:
- 10/26/2009 08:31:05 PM (16 years ago)
- Location:
- randomtext/trunk
- Files:
-
- 2 edited
-
randomtext.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
randomtext/trunk/randomtext.php
r156974 r167341 5 5 Plugin URI: http://www.pantsonhead.com/wordpress/randomtext/ 6 6 Description: A widget to display randomized text on your site 7 Version: 0.2. 37 Version: 0.2.4 8 8 Author: Greg Jackson 9 9 Author URI: http://www.pantsonhead.com … … 184 184 if(is_admin()) 185 185 include 'randomtext_admin.php'; 186 187 188 // Shortcode implementation 189 function randomtext_shortcode($attribs) { 190 extract(shortcode_atts(array('category' => '', 'random' => FALSE, ), $attribs)); 191 $randomtext = new randomtext; 192 return $randomtext->get_randomtext($category,$random); 193 } 194 195 add_shortcode('randomtext', 'randomtext_shortcode'); 186 196 187 197 ?> -
randomtext/trunk/readme.txt
r156974 r167341 29 29 2. Text management page 30 30 31 == Frequently Asked Questions == 32 33 = Can I use shortcodes? = 34 35 Yes, you can use [randomtext] or [randomtext category="funny"] or even [randomtext category="funny" random="1"]. 36 37 31 38 == Changelog == 39 40 = v0.2.4 2009-09-22 = 41 42 * Added shortcode support 32 43 33 44 = v0.2.3 2009-09-22 =
Note: See TracChangeset
for help on using the changeset viewer.