C
C
CeBePHblY2015-08-05 06:02:47
Joomla
CeBePHblY, 2015-08-05 06:02:47

Wordpress and Joomla template engines. How does it look on the "fingers"?

Help me understand how template engines work in these CMS? How do different modules have the same look? Those. the template has standard blanks for menus, content, and other blocks, and the module just takes and uses them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2015-08-05
@CeBePHblY

WordPress does not have a templating engine in its conventional sense - like Smarty, Twig, Dwoo, Savant, etc. There is a set of templates (templates) that WP includes / uses depending on what was requested. There is a clear logic behind the use of these templates.
These templates themselves are html files in which all dynamic data (page/post content, links, menus, avatars, comments, page titles, media files, etc.) are inserted using Template Tags . You can also create your own. Basically, Template Tags are php functions that display or return specific values.
Another important point is that there are plugins and a functions.php file - these parts are designed to be responsible for the functionality. For example, a function in functions.php receives some data from the database, processes it and returns the result. This result can be displayed in a template.
Also, one of the most important components (and the secret of WordPress flexibility) are hooks - filters and actions ( filters and actions ). By the way, you can also create your own.
Documentation, aka Theme Developer Handbook . https://codex.wordpress.org/Plugin_API
And also:
https://codex.wordpress.org/Theme_Development
https://codex.wordpress.org/Function_Reference

S
Sanes, 2015-08-05
@Sanes

Each module, plugin, component has its own template. Read the documentation. In general, making up for these CMS is trash)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question