Changeset 439493
- Timestamp:
- 09/17/2011 07:56:18 PM (15 years ago)
- Location:
- php-to-page/trunk
- Files:
-
- 2 edited
-
php-to-page.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
php-to-page/trunk/php-to-page.php
r407312 r439493 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/php-to-page/ 5 5 Description: Keep your PHP and WordPress seperate, using the shortcode [php-to-page] you can include PHP files in your pages. 6 Version: 0. 16 Version: 0.2 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ 9 9 */ 10 10 11 function php_to_page_shortcode_handler( $args, $content = null ) 12 { 11 function php_to_page_shortcode_handler( $args, $content = null ){ 12 $output = ""; 13 13 if( is_feed() ) 14 14 return ''; … … 19 19 if($args["file"]){ 20 20 if(file_exists($args["file"])){ 21 ob_start(); 21 22 include $args["file"]; 23 $output = ob_get_contents(); 24 ob_end_clean(); 22 25 } 23 26 } 27 return $output; 24 28 } 25 29 -
php-to-page/trunk/readme.txt
r407312 r439493 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/php-to-page/ 5 5 Description: Keep your PHP and WordPress seperate, using the shortcode [php-to-page] you can include PHP files in your pages. 6 Version: 0. 16 Version: 0.2 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 28 28 3. Place [php-to-page] in your page to display PHP, eg. [php-to-page file=/path/to/you/include/file.php] 29 29 30 31 30 == Changelog == 31 = 0.2 = 32 * Fixed rendering issue 33 = 0.1 = 34 * Initial Release
Note: See TracChangeset
for help on using the changeset viewer.