php - how to hide div or particular area in smarty -
dear friends have problem want show div when user in home page
{if $smarty.server.query_string == 'p=home'} <div class="dt_banner" style="float:left !important;"> <div class="dt_content_wrap"> <div class="dt_slider"> <script src="images/jquery.cycle2.js"></script> <div class="cycle-slideshow" data-cycle-timeout=5000 style="height: 318px; overflow: hidden; width: 675px;"> <!-- empty element overlay --> <div class="cycle-overlay custom" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5); color: #ffffff; font-size: 20px; margin-top: -269px; padding: 15px; position: relative; text-transform: uppercase; z-index: 9999;"></div> <img src="images/adv1.png" width="675px"> <img src="images/adv2.png" width="675px"> <img src="images/adv3.png" width="675px"> <img src="images/adv4.png" width="675px"> <img src="images/adv5.png" width="675px"> <img src="images/adv6.png" width="675px"> <img src="images/adv7.png" width="675px"> <img src="images/adv8.png" width="675px"> <img src="images/adv9.png" width="675px"> </div> </div> <div class="dt_vdo_box"> <iframe width="350" height="295" src="//www.youtube.com/embed/llhrvr5eyhm?rel=0" frameborder="0" allowfullscreen></iframe> </div> </div> </div> {/if} <br clear="all">
maybe instead of first if line?
{if $smarty.request.p == 'home'}
Comments
Post a Comment