G
G
glodev2019-07-18 10:19:56
1C-Bitrix
glodev, 2019-07-18 10:19:56

How to use Bitrix include areas correctly?

Good afternoon, I have a question, there is a phone number in the header of the site and in the footer, we are implementing an included area

<a href="tel:#" class="tel"><?$APPLICATION->IncludeFile(SITE_DIR.'include/telefon.php',array(),array('MODE' => 'text'))?></a>

at the same time, we connected to the header, but the link is not active . How to properly implement so that the area is edited in one place, but displayed in several places?
<a href="tel:#" class="tel">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2019-07-18
@megafax

It can be implemented in several ways:
1. Move the entire link to the include area. And we are already making it.
2. We take it to the COption settings (in our module, for example) and pull from them (they are cached
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question