Blog Post

New Templates System: T3

A while back I have developed templates system for GD Star Rating plugin, called T2. It was good, but there are some limitations that made it not so easy to use. New version of the system is called T3 and it uses similar approach but with many new things.

First plugin to use T3 is GD aZon FUSION (currently in beta). Beta 0.7 version to be released next week will use T3. After that, GD Simple Widgets 3.0 will go into development, and will use T3. GD Star Rating 2.0 will also use T3. So, here is what T3 will bring and improve over T2.

Templates will be stored into files (T2 was using database). One of the problems with database approach was problems storing PHP code also and having templates combine HTML and PHP. This time T3 will have templates in files, and each template will be able to have PHP in it. This part is already done for GD aZon FUSION 0.6 and it works very well. Default templates will be stored in a folder, and there will be function and filter to add new templates from any location. In each template there will be some required elements to identify the template.

Special tags will be more powerful than in T2. Each template will allow for arguments to be passed. And there will be a special template for translations. This tag will allow for multi language templates display through default WP translation system.

Editor panel will be also created for editing templates from the control panel, with list of supported tags, similar to one used by T2.

If you have suggestion on what else to add to the system, please leave a comment.

Please wait...

About the author

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

Subscribe to Dev4Press Newsletter

Get the latest announcements, release digests, promotions and exclusive discounts, and general Dev4Press-related news straight into your mailbox.


This form collects your email (optionally your name) for the purpose of sending you newsletters. Check out our Privacy Policy for more information on how we store and manage your data. We will not send you any spam. Newsletters are sent 2 to 4 times every month.

Latest From The Blog

plugins relase corsecurity 1 9

coreSecurity Pro 1.9

coreSecurity Pro 1.9 brings several very important bug fixes (related to the file scanner), several new features related to antispam control, user session management, improvements to the file scanner, and more.
plugins relase dev4press updated 4 7

Dev4Press Updater 4.7

The new version of Dev4Press Updater, brings a regular set of updates to the plugin, including support for coreSecurity Pro plugin installation and updates, various fixes and tweaks, updated shared library.
plugins relase debugpress 3.9

DebugPress 3.9

It has been a while since the new DebugPress release was announced on Dev4Press, but the plugin has been getting regular updates almost every month, and today, it has reached version 3.9.

Grammarly - Number 1 Writing App
SiteGround - Managed WordPress Hosting
0
0
0
0
0
0