The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template Engine (Theming)
#8
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:

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/
  Reply


Messages In This Thread
Template Engine (Theming) - by Bogdan - 04-16-2018, 07:25 AM
RE: Template Engine (Theming) - by Bogdan - 08-26-2018, 08:09 AM
RE: Template Engine (Theming) - by Rob360 - 11-29-2018, 02:11 AM
RE: Template Engine (Theming) - by Bogdan - 01-05-2019, 11:23 AM
RE: Template Engine (Theming) - by mudmin - 01-05-2019, 11:25 AM
RE: Template Engine (Theming) - by Bogdan - 01-05-2019, 12:01 PM
RE: Template Engine (Theming) - by mudmin - 01-05-2019, 12:05 PM
RE: Template Engine (Theming) - by Bogdan - 04-20-2019, 04:46 PM
Template Engine (Theming) - by mudmin - 05-09-2018, 11:26 AM
Template Engine (Theming) - by Jamezs - 05-11-2018, 10:41 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)