1
What to do to use two addresses at the same time in this condition?
OBS.: I need this code not to load the HTML if one or another address is accessed
<?php
if ( !strpos( $_SERVER['REQUEST_URI'] , '/') ){
?>
<a id="seloEbit" href="http://www.ebit.com.br/90809" target="_blank" data-noop="redir(this.href);"> </a>
<script type="text/javascript" id="getSelo" src="https://imgs.ebit.com.br/ebitBR/selo-ebit/js/getSelo.js?90809"> </script>
<?php
}
?>
I didn’t get it well, you want to add this JS and this link if the page is accessed at home?
– Renato Tavares
No, I just didn’t put the address there and used the example "/". I need this html NOT to load if it is accessed 'checkout/librepag' or 'gerencianet/success&payment'
– Ciano Barbarossa
if (condition1 || condition2) { /* Code Here */ }
orpreg_grep()
, orswitch ($var) { /* Code Here */ }
??– Valdeir Psr
I tried to use if ( !strpos( $_SERVER['REQUEST_URI'] , 'gerencianet/success&payment') || !strpos( $_SERVER['REQUEST_URI'] , 'checkout/librepag')) and it didn’t work. That’s the way it is?
– Ciano Barbarossa