D
D
Darklt2018-03-05 13:44:04
PHP
Darklt, 2018-03-05 13:44:04

How to show php code on a specific section?

$print.='<div id="tel" class="tel tel2" style="clear: both;
max-width: 800px;
float: right;
margin-top: -5px;">
<div class="feeds2"><a  href="#" id="go2" style="color:#FFF; text-decoration:none;">Заказать звонок сервисного специалиста</a></div>


  <a class="zzz" href="mailto:' . $lang->lang('header-email') . '">' . $lang->lang('Написать письмо') . '</a>
    
  </div>';
        $print.='</div>';

This is in the template, how to make this block show only on a certain section, this code does not work:
<?php if ( ($_SERVER["REQUEST_URI"] == "/copy/") ) :  ?>
ТЕСТ
<?php endif; ?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question