Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty If .tpl for CSS classes

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
ihabzy
Smarty Rookie


Joined: 27 Jul 2012
Posts: 9

PostPosted: Sun Jul 29, 2012 2:06 am    Post subject: Smarty If .tpl for CSS classes Reply with quote

I am working on a template using Smarty and i would like to give a certain class for the navigation menu according to the active .tpl file. Any help ??

Code:

 <ul>
    <li class="current-menu-item"><a href="http://localhost/dbk/index.php">Home</a> </li>
    <li><a href="#">Company</a>
      <ul class="sub-menu">
        <li><a href="http://localhost/dbk/about.php">About Company</a></li>
        <li><a href="http://localhost/dbk/team.php">Excuslive Team</a></li>
        <li><a href="http://localhost/dbk/global-business.php">Global Business</a></li>
        <li><a href="http://localhost/dbk/contract-manufacturing.php">Contract Manufacturing</a></li>
      </ul>
    </li>
    <li><a href="#">Our Products</a>
      <ul class="sub-menu">
        <li><a href="http://localhost/dbk/pharmaceutical-products.php">Pharmaceutical Products</a></li>
        <li><a href="http://localhost/dbk/products/herbal-and-food.php">Herbal & Food Supplements</a></li>
        <li><a href="http://localhost/dbk/products/cosmetics.php">Cosmetics</a></li>
        <li><a href="http://localhost/dbk/products/veterinary-products.php">Veterinary Products</a></li>
      </ul>
    </li>
    <li><a href="http://localhost/dbk/blog">News Room</a></li>
    <li><a href="http://localhost/dbk/careers.php">Careers</a> </li>
    <li><a href="http://localhost/dbk/contacts.php">Contacts</a></li>
  </ul>
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP