Home / Premium Pro Plugins / PHP Template Class

PHP Template Class

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...



[GET] DOWNLOAD

With PHP template class you’ll be able to utterly separate your PHP code out of your HTML with out sacrificing efficiency or coping with dozens of extra information to take action.

Options:

  • Straightforward to put in
  • Light-weight single PHP file (12kb)
  • PHP 5 OOP makes it straightforward to increase
  • Caches compiled templates till they’re modified
  • Combines css and javascript information into single information
  • Compresses css and javascript information utilizing YUI Compressor
  • Helps if, elseif, else, and embody from inside template
  • Helps looped information inside template

Necessities

  • Helps PHP 5 .x or later.
  • Capability to execute .jar information by way of PHP ’s exec() operate is required for compressing css and javascript information.

Updates

11/04/11 v1.5

  • Up to date the code by which the cache file’s validity is checked.

10/21/11 v1.four

  • Added one other non-compulsory parameter to the show() operate that permits you to mix css and js information right into a single file. (Caches mixed file till any of the person information are modified).


    // Will mix css and javascript information to 'mixed.css' and 'mixed.js'



    $css = array('world.css', 'type.css');



    $template->show('Web page Title', 'template-file.html', $css, 'jquery.js', 'mixed');
  • Added the choice to compress css and js information utilizing the YUI Compressor when the above parameter is used. (Falls again to uncompressed model if compression fails).

6/29/11 v1.three

  • Added potential to go css and javascript information via the template class by way of the show() operate by both string or array.


    $css = array('world.css', 'type.css');



    $template->show('Web page Title', 'template-file.html', $css, 'jquery.js');



    <!-- EMBED CSS -->



    <!-- EMBED JS -->

08/13/10 v1.2

  • Cache folder is now created if it doesn’t exist

08/08/10 v1.1

  • Configuration settings can now be handed to class when referred to as:


    $config = array('root' => 'template/', 'cache' => 'cache/');



    $template = new template($config);

DOWNLOAD

Check Also

big_preview_envato.jpg

LightPost WordPress – Lightbox for WordPress Post

DOWNLOAD LightPost WordPress is a instrument for displaying posts or some part of posts in ...

inline_preview_image.jpg

GIF Live Wallpaper with AdMob

DOWNLOAD GIF Stay Wallpaper is a prepared supply code to create your individual Stay Wallpaper ...