The CSS/JS assets
If you go to the layout templates of the classic
theme, by following include
in the Smarty files, you will easily find that all the CSS and JavaScript file inclusions are managed in the /themes/classic/templates/_partials/head.tpl
file with the following:
{block name='stylesheets'} {include file="_partials/stylesheets.tpl" stylesheets=$stylesheets} {/block} {block name='javascript_head'} {include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars} {/block}
Those two blocks include templates managing the CSS and JavaScript embeddings. Let’s study the CSS part.
Embedding the CSS
Let’s go to the /themes/classic/templates/_partials/stylesheets.tpl
file, which contains the following code for the stylesheets
file embedding:
{foreach $stylesheets.external as $stylesheet} <link rel="stylesheet" href="{$stylesheet...