En un script tengo el siguiente código que sirve para mostrar un enlace en determindas páginas:
Código PHP:
<?php $pagename=$_SERVER['REQUEST_URI'];?>
<?php if(($_SERVER['REQUEST_URI']=="/index.php/") or ($_SERVER['REQUEST_URI']=="/") or (strpos($pagename,"empleos/")>0)) { ?>
<a href="<?php echo $_offer->getofferUrl() ?>" >
<img src="<?php echo $this->getSkinUrl('images/link1.gif') ?>" class="" alt="ir a la oferta" align="right"/>
</a>
<?php } ?>
Gracias y un saludo.