Changeset 140179
- Timestamp:
- 07/28/2009 06:50:52 PM (17 years ago)
- Location:
- charted-archives/trunk
- Files:
-
- 2 edited
-
ChartedArchives.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
charted-archives/trunk/ChartedArchives.php
r140073 r140179 4 4 Plugin URI: http://www.bos89.nl/wordpress-charted-archives-plugin/ 5 5 Description: Show your archives by month in a bar chart, after an idea from John Nunemaker. 6 Version: 1. 06 Version: 1.2 7 7 Author: M. Stegink 8 8 Author URI: http://www.bos89.nl/ … … 77 77 } 78 78 79 // Shortcode, has number of months as argument 80 81 function chartedarchive_shortcode($attr) { 82 return Charted_Archives($attr['months']); 83 } 84 add_shortcode('chartedarchive', 'chartedarchive_shortcode'); 85 79 86 // register Charted_Archives widget and add CSS 80 87 add_action('wp_head', 'Charted_Archives_CSS'); -
charted-archives/trunk/readme.txt
r140073 r140179 14 14 == Installation == 15 15 16 You can use this in three ways 17 18 = 1. As a widget = 19 16 20 1. Upload the plugin to your blog an Activate it 17 21 2. Go to Themes > Widgets and add the widget 18 22 19 You can also insert it in a page using the tag 20 <?php Charted_Archives($number_of_months_to_show) ?> 23 = 2. As a php tag in a template = 24 25 Just insert it the tag 26 Charted_Archives($number_of_months_to_show); 27 28 = 3. With the shortcode in a page = 29 If you do not want to add php to your page you can use a shortcode 30 31 [chartedarchive] (defaults to 7 months) 32 [chartedarchive months="12"] (where 12 can be any number of months) 21 33 22 34 == Screenshots == … … 34 46 * Fixed CSS file link error 35 47 * Updated readme to reflect php tag 48 49 = 1.2 = 50 51 * Added a shortcode on user request
Note: See TracChangeset
for help on using the changeset viewer.