Introduction
In it’s most basic form, PHP Template Preprocessor can replace tags with values set in PHP , but it also has an advanced sort of “syntax” that you can use.
How to use
echo Element("template.html", Array( "something" => "something" ));
Features
Optionals/Defaults
You can specify the defaults for a variable, which are used when the value isn’t specified by the PHP script.
Conditionals
These are basically “if” statements.
Iteration
You can parse an Array to the template, and make it iterate through it.
Arrays
You can use arrays, infinitely, like so:
“{something[something]}”
PHP Variables
If you enable this, you can access global PHP variables by using “{$something}”.
Speed
This script is optimized for performance. An average template shouldn’t take more than 0.001 seconds to process. That’s one millisecond! That time generally increases (slightly) as more tags and layers are added, but you will probably never see it go over 0.005 seconds (5 milliseconds).
Infinite recursion
You can add as many layers of tags as you want.
For example, you could use…
“{test={test={test={test={test={test={test={test={test={test={test}}}}}}}}}}”
… And it would still be processed accordingly. There is no limit to recursion.
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = Advanced PHP Template Preprocessor
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/advanced-php-template-preprocessor/130962″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy Advanced PHP Template Preprocessor from the The Developer ( Savetheinternet ) website. Thank you.
Download = Advanced PHP Template Preprocessor-[Updated].zip