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
 

Contents

Class file image Download
<?php
# PHP Template Compiler v2.0
# Copyright (c) 2016 Victor Nabatov greenray.spb@gmail.com
# Menu template
die();?>

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