Skip to content

Instantly share code, notes, and snippets.

<!-- После открытого тега body -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Facebook Badge START --><a href="https://www.facebook.com/people/Pegas-Touristik-Volgograd/100008434776683" title="Pegas Touristik Volgograd" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" target="_TOP">Pegas Touristik Volgograd</a><br /><a href="https://www.facebook.com/people/Pegas-Touristik-Volgograd/100008434776683" title="Pegas Touristik Volgograd" target="_TOP"><img class="img" src="https://badge.facebook.com/badge/100008434776683.16.1862307508.png" style="border: 0px;" alt="" /></a><br /><a href="https://www.facebook.com/badges/" title="&#x421;&#x43e;&#x437;&#x434;&#x430;&#x439;&#x442;&#x435; &#x441;&#x432;&#x43e;&#x44e; &#x441;&#x43e;&#x431;&#x441;&#x442;&#x432;&#x435;&#x43d;&#x43d;&#x443;&#x44e; &#x432;&#x438;&#x437;&#x438;&#x442;&#x43a;&#x443;!" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-
/* КОНФИГИ ДЛЯ ПРИЛОЖЕНИЯ */
GLOBAL $CONGIG_BX24_INTERVOLGA;
$CONGIG_BX24_INTERVOLGA = array(
'client_id' => 'bc5f97fab2d24d39724faef110c7b10a',
'secret' => '32aa9879cf1a4e2b6d6c7db5c2a65f26',
'domain' => 'example.bitrix24.ru',
'redirect_uri' => 'http://127.0.0.1/company/index.php/',
'scope' => array('user', 'task')
);
///
/*
* code -- название товара
*/
function parseExtraFieldsCode($code){
$arSelect = Array("ID", "IBLOCK_ID", "PROPERTY_extra_fields");
$arFilter = Array("IBLOCK_ID"=>8, "ACTIVE"=>"Y", "CODE"=>$code);
$res = CIBlockElement::GetList(Array(), $arFilter, array("PROPERTY_extra_fields"), Array("nPageSize"=>50), $arSelect);
$data = $res->NavStart(1);
$ob = $res->GetNextElement();
$arFields = $ob->GetFields();
function setCookie(name, value, options) {
options = options || {};
var expires = options.expires;
if (typeof expires == "number" && expires) {
var d = new Date();
d.setTime(d.getTime() + expires * 1000);
expires = options.expires = d;
}
function setCookie(name, value, options) {
options = options || {};
var expires = options.expires;
if (typeof expires == "number" && expires) {
var d = new Date();
d.setTime(d.getTime() + expires * 1000);
expires = options.expires = d;
}
var options = {
'name_cookie': 'ivphone',
'default': ['+7&nbsp;(8442)&nbsp;33-27-45',"+7&nbsp;(927)&nbsp;510-43-50"], // телефон по-умолчанию
'selector': ['div.phones', '#iv-contacts'], // селектор для телефона по-умолчанию
// параметры
'parameters': {
'google': { // название для набора get параметров и телефонов
'get': {
'utm_source': 'GoogleAdwords' // get параметры (ключ и значение)
},
<div style="min-height: 60px;" class="tours">
<div class="tourItem">
<a class="showTour" href="#">Подробнее</a>
<div class="tour_descr" style="min-height: 170px;">
</div>
</div>
</div>