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
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); | |
// include_once('./phpHtmlWriter.php'); | |
global $APPLICATION; | |
if ($_GET['success'] != null) { | |
echo ' | |
<script> | |
$(function() { | |
$(".callback-form_success").find(".mf-ok-text").text("'.$arResult["OK_MESSAGE"]. '"); | |
$(".callback-form_success").css("display", "flex").show(); |
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
// /local/php_interface/init.php | |
// или | |
// /bitrix/php_interface/init.php | |
//После этого появляется макрос #PHONE# в шаблоне письма. | |
// Регистрируем обработчик | |
AddEventHandler("sale", "OnOrderNewSendEmail", "bxModifySaleMails"); | |
//-- Собственно обработчик события | |
function bxModifySaleMails($orderID, &$eventName, &$arFields) { | |
// получаем телефон (или еще что-нибудь) |
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
<? if (CSite::InDir('/rent/')) { ?> | |
<? include $_SERVER['DOCUMENT_ROOT'] . '/include/phone_sale.php' ?>"> | |
<? $APPLICATION->IncludeComponent( | |
"bitrix:main.include", | |
"", | |
Array( | |
"AREA_FILE_SHOW" => "file", | |
"AREA_FILE_SUFFIX" => "inc", |
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
<? | |
//https://www.php.net/manual/ru/function.number-format.php | |
$oldPrice = number_format($oldPrice, 0, '', ' '); 400999 -> 400 999 | |
$oldPrice = number_format($oldPrice, 2, ',', ' '); 400999 -> 400 999,00 | |
?> |
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
<a href="www.mypage.com" onclick="window.history.go(-1); return false;"> Link </a> |
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
.block_product .block__body { | |
display: -ms-grid; | |
display: grid; | |
-ms-grid-columns: 100%; /* для малых разрешений */ | |
grid-template-columns: 1fr; | |
grid-gap: 20px; | |
} | |
.productCard { | |
margin-bottom: 20px;/* вместно row gap для ie */ | |
} |
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 multiexplode ($delimiters,$string) { | |
$ready = str_replace($delimiters, $delimiters[0], $string); | |
$launch = explode($delimiters[0], $ready); | |
return $launch; | |
} | |
$text = "here is a sample: this text, and this will be exploded. this also | this one too :)"; | |
$exploded = multiexplode(array(",",".","|",":"),$text); |
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
<body> | |
<!-- Анимированный лоадер --> | |
<div id="preloaderWrapper"> | |
<div id="preloader"> | |
<video autoplay loop id="videoPlayer"> | |
<source src='<?=SITE_TEMPLATE_PATH."/assets/preloader.mp4"?>' type="video/mp4"> | |
<source src='<?=SITE_TEMPLATE_PATH."/assets/preloader.mov"?>' type="video/mp4"> | |
</video> |
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
<svg class="progress-bar" width="120" height="120"> | |
<circle class="progress-bar__circle" stroke="#ff6e00" stroke-width="4" cx="60" cy="60" r="52" fill="transparent"/> | |
</svg> | |
<input type="number" id="inputPercent" value="0"> |
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
initTimer(0, sectionStats3End, 2000, sectionStats3, '', ' лет'); | |
function initTimer(start, end, duration, objTarget, prefix = false, postfix = false) { | |
timer(); | |
function timer() { | |
let interval = Math.round(duration / Math.abs(start-end)); | |
let timerName = setInterval(function() { | |
if (start>end) { | |
if (start <= end) { | |
clearInterval(timerName); |