Plugin Directory

Changeset 439493


Ignore:
Timestamp:
09/17/2011 07:56:18 PM (15 years ago)
Author:
Bloafer
Message:

Version 0.2 rendering issue fix

Location:
php-to-page/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php-to-page/trunk/php-to-page.php

    r407312 r439493  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/php-to-page/
    55Description: Keep your PHP and WordPress seperate, using the shortcode [php-to-page] you can include PHP files in your pages.
    6 Version: 0.1
     6Version: 0.2
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
    99*/
    1010
    11 function php_to_page_shortcode_handler( $args, $content = null )
    12 {
     11function php_to_page_shortcode_handler( $args, $content = null ){
     12    $output = "";
    1313    if( is_feed() )
    1414        return '';
     
    1919    if($args["file"]){ 
    2020        if(file_exists($args["file"])){
     21            ob_start();
    2122            include $args["file"];
     23            $output = ob_get_contents();
     24            ob_end_clean();
    2225        }
    2326    }
     27    return $output;
    2428}
    2529
  • php-to-page/trunk/readme.txt

    r407312 r439493  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/php-to-page/
    55Description: Keep your PHP and WordPress seperate, using the shortcode [php-to-page] you can include PHP files in your pages.
    6 Version: 0.1
     6Version: 0.2
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    28283. Place [php-to-page] in your page to display PHP, eg. [php-to-page file=/path/to/you/include/file.php]
    2929
    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.