This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var identifier; | |
identifier = $("[data-onevalue=" + this.offers[index].TREE.PROP_35 + "]"); | |
identifier = identifier[0].innerText; | |
var regexp = /[0-9]{2,}/g; | |
regexp.lastIndex = 1; | |
var myRe = identifier.match(regexp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
CJSCore::Init(array('currency')); | |
$currencyFormat = CCurrencyLang::GetFormatDescription('RUB'); | |
?> | |
<script type="text/javascript"> | |
BX.Currency.setCurrencyFormat('RUB', <? echo CUtil::PhpToJSObject($currencyFormat, false, true); ?>); | |
var formatRub = BX.Currency.currencyFormat(121.50, 'RUB', true); | |
alert(formatRub); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$APPLICATION->SetAdditionalCSS("https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.1/jquery.fancybox.css"); | |
$APPLICATION->AddHeadScript('https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.1/jquery.fancybox.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mobro() | |
{ | |
$useragent = $_SERVER['HTTP_USER_AGENT']; | |
if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino |android|ipad|playbook|silk/i', $useragent) || preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var purl = "http://<?= SITE_SERVER_NAME . $arResult['DETAIL_PAGE_URL'] ?>"; | |
var ptitle = "<?= $arResult['NAME'] ?>"; | |
var pimg = "<?= SITE_SERVER_NAME . $file['src'] ?>"; | |
var text = "<?=$arResult['NAME']?>"; | |
Share = { | |
vkontakte: function (purl, ptitle, pimg, text) { | |
url = 'http://vk.com/share.php?'; | |
url += 'url=' + encodeURIComponent(purl); | |
url += '&title=' + encodeURIComponent(ptitle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
error_reporting(E_ALL & ~E_NOTICE); | |
if(version_compare(phpversion(), '5.0.0') == -1) | |
die('PHP 5.0.0 or higher is required!'); | |
require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); | |
header("Content-type: text/html; charset=cp1251"); | |
echo '<html><head><title>Конвертация сайта в UTF8</title></head><body>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CEventLog::Add(array( | |
"SEVERITY" => "DEBUG", | |
"AUDIT_TYPE_ID" => 'Запись в лог', | |
"MODULE_ID" => "iblock", | |
"ITEM_ID" => 0, | |
"DESCRIPTION" => json_encode($row, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT), | |
)); |