|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ihabzy Smarty Rookie
Joined: 27 Jul 2012 Posts: 9
|
Posted: Sun Jul 29, 2012 2:06 am Post subject: Smarty If .tpl for CSS classes |
|
|
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 |
|
|
|
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
|