Changeset 175295
- Timestamp:
- 11/19/2009 06:11:01 PM (16 years ago)
- Location:
- feeds-in-theme
- Files:
-
- 3 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/feeds-in-theme.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/feeds-in-theme.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
feeds-in-theme/trunk/feeds-in-theme.php
r165445 r175295 4 4 * Plugin URI: # 5 5 * Description: Recreates the standard WordPress feeds to alow using theme templates in the feeds. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Eric Le Bail 8 8 * Author URI: # … … 29 29 */ 30 30 31 if (!defined('DIRECTORY_SEPARATOR')) 32 { 33 if (strpos(php_uname('s'), 'Win') !== false ) 34 define('DIRECTORY_SEPARATOR', '\\'); 35 else 36 define('DIRECTORY_SEPARATOR', '/'); 37 } 38 $pluginPath = ABSPATH.PLUGINDIR.DIRECTORY_SEPARATOR."wp-feeds-in-theme"; 39 $filePath = $pluginPath.DIRECTORY_SEPARATOR.basename(__FILE__); 40 // Plugin install 41 register_activation_hook($filePath,'fit_install'); 42 // plugin initialisation. 31 43 add_action('init', 'fit_add_feed'); 32 44 33 34 45 /** 35 * Function that creates the custom feeds and add a rewriterules to 36 * call the feeds. 46 * Function that creates the custom feeds. 37 47 * @return void. 38 48 */ 39 49 function fit_add_feed() { 40 global $wp_rewrite;41 50 add_feed('trdf', 'fit_do_feed_rdf'); 42 51 add_feed('trss', 'fit_do_feed_rss'); 43 52 add_feed('trss2', 'fit_do_feed_rss2'); 44 53 add_feed('tatom', 'fit_do_feed_atom'); 54 } 55 56 /** 57 * Function that add a rewriterules to call the feeds. 58 * @return void. 59 */ 60 function fit_install() { 61 global $wp_rewrite; 45 62 add_action('generate_rewrite_rules', 'fit_rewrite_rules'); 46 63 $wp_rewrite->flush_rules(); 47 64 } 65 48 66 49 67 /** -
feeds-in-theme/trunk/readme.txt
r165445 r175295 26 26 This plugin has been tested with WP2.6.5, WP2.8.4 and WPmu2.8.4 27 27 28 Updates:29 30 1.0.0 : Test under WP2.6.5, WP 2.8.4, WPmu2.8.431 28 32 29 == Update Log == 30 31 1.0.1 : Performance improovment. 33 32 34 33 1.0.0 : Test under WP2.6.5, WP 2.8.4, WPmu2.8.4
Note: See TracChangeset
for help on using the changeset viewer.