PHP Classes

File: templates/menu.tpl.php

Recommend this page to a friend!
  Classes of Victor V. Nabatov   PHP Template Compiler   templates/menu.tpl.php   Download  
File: templates/menu.tpl.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Template Compiler
Template engine that compiles logic into PHP code
Author: By
Last change:
Date: 7 years ago
Size: 617 bytes


Class file image Download
# PHP Template Compiler v2.0
# Copyright (c) 2016 Victor Nabatov
# Menu template

<div class="main-menu center">
    <ul class="menu">
    <!-- FOREACH $menu -->
            <a href="$">__$menu.name__</a>
            <!-- IF !empty($menu.sections) -->
                <!-- FOREACH $menu.sections -->
                    <li><a href="$" style="width:[$sections.width]px">__$sections.title__</a></li>
                <!-- END -->
            <!-- END -->
    <!-- END -->