php - how to exclude the running of cycle when one template is loading. -


hello trying configure 1 cms, inside index.php have 1 code run on pages not run on 1 template, here code:

if(is_array($array)) { foreach($array $row) {     if($row[photos] == 1) {          if($ismobile) {             include($basepath.'/templates/mobile.content_item_photo.php');         }         else {             include($basepath.'/templates/template.content_item_photo.php');         }     }     else {         if($ismobile) {             include($basepath.'/templates/mobile.content_item.php');         }         else {             include($basepath.'/templates/template.content_item.php');         }     } } 

}

so don't want code loading if page requested following template:

($basepath.'/templates/template.overall_header.php'); 

hi used cycle bypass next cycle:

if($thisfile == 'index' xor !$_get[mode] xor $_get[mode] != 'toprated' ) 

but if have condition toprated not working. here navigation menu

<li <? if($thisfile == 'index' && !$_get[mode]) { ?>class="current"<? } ?>><a href="<? echo $basehttp; ?>/">homepage</a></li> 

class="current">/most-recent/">newest updates class="current">/page1.html">all videos

for rest working toprated since url not working.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -