firstname.lastname@example.org +1 400 3113 11
PURE theme developed based on object-oriented programming. Structure of PURE theme is unique in WordPress world. PURE has one interested element – template. Template renders some content. It can be anything: thumbnail of post, comment or activity, progress bar or dialog window. Take a look on next scheme.
Here is a simple example. Thumbnail of post can be rendered via several templates (A and B in scheme), but template’s controller attaches resources of only active template (template, which used on current page).
Such method allows to add unlimited count of templates in your code. And this does not degrade performance, because controller attaches resources of only used templates.
Also, such structure of code allows you to do what all prohibited – add your code into theme. You can add your own templates and do not be worry about conflicts or updating of theme.
But this is not all. New template, which is used in plugins will be automatically integrated into such plugin. For example, if you create a new template for post thumbnail, link (option) to your template will be added to settings of widget automatically.