01-05-2019, 12:01 PM
It nice to hear that you separate back-end (admin panel) from user's front-end in versions.
I hope in feature it will be more separated and site templates will not be affected from admin templates. For example, admin panel built on Bootstrap 3 and main site on Bootstrap 4 and it works fine together.
I think now it's time to talk about theme engine. For example, if we using Smarty than navbar file may have a such structure:
So we can design our menu as we want without editing core files. I'm not sure that Smarty is a good engine, but many CMS using it (Prestashop, DLE). Here is the list of theme engines:
http://acmeextension.com/best-templating-engine/
I hope in feature it will be more separated and site templates will not be affected from admin templates. For example, admin panel built on Bootstrap 3 and main site on Bootstrap 4 and it works fine together.
I think now it's time to talk about theme engine. For example, if we using Smarty than navbar file may have a such structure:
PHP Code:
<ul>
{foreach from=$menus item="menu"}
<li><a href="index.php?p={$menu.link}">{$menu.name} - {$menu.subMenu.link}</a>
{if $menu.subMenus != ""}
<ul>
{foreach from=$menu.subMenus item="subMenu"}
<li><a href="index.php?p={$subMenu.link}">{$subMenu.name}</a></li>
{/foreach}
</ul>
{/if}</li>
{/foreach}
<ul>
So we can design our menu as we want without editing core files. I'm not sure that Smarty is a good engine, but many CMS using it (Prestashop, DLE). Here is the list of theme engines:
http://acmeextension.com/best-templating-engine/