Y
Y
Yura Komarov2017-09-24 15:14:01
1C-Bitrix
Yura Komarov, 2017-09-24 15:14:01

Where is the data for the showhead function in bitrix?

Hello dear forum users.
There is a showhead function in header.php in bitrix, so the question is where to find the file from which it takes data.
bitrix version 17

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Nikolaev, 2017-09-25
@Yurajun

File: /bitrix/modules/main/classes/general/main.php
Lines: ~837 - ~847
Code excerpt:

public function ShowHead($bXhtmlStyle=true)
  {
    echo '<meta http-equiv="Content-Type" content="text/html; charset='.LANG_CHARSET.'"'.($bXhtmlStyle? ' /':'').'>'."\n";
    $this->ShowMeta("robots", false, $bXhtmlStyle);
    $this->ShowMeta("keywords", false, $bXhtmlStyle);
    $this->ShowMeta("description", false, $bXhtmlStyle);
    $this->ShowLink("canonical", null, $bXhtmlStyle);
    $this->ShowCSS(true, $bXhtmlStyle);
    $this->ShowHeadStrings();
    $this->ShowHeadScripts();
  }

PS At the very least, you can travel through the Bitrix core through the online documentation at the link: bxapi.ru/src/?id=166792

S
Sergey, 2017-09-25
@gangstarcj

Open in IDE, click on function and see code

A
Alexey Emelyanov, 2017-09-25
@babarun

Sergey , or drive in Yandex bxapi.ru/src/?module_id=main&name=CMain::ShowHead
+100 into karma for the creator of bxapi.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question