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 $section_of_form = $("#fixed_scroll_form").closest('section'), | |
fixed_scroll_form = $section_of_form.offset().top - 50; | |
//Выставляем текущую ширину | |
$section_of_form.css('width', $section_of_form.css('width')); | |
$(window).bind("scroll", function() { | |
var offset = $(this).scrollTop(); | |
if (offset >= fixed_scroll_form && !$section_of_form.hasClass("fixed_scroll_form")) { | |
$section_of_form.addClass('fixed_scroll_form'); |
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($("#fixed_scroll_form").length) { | |
//Фиксируем форму обратной связи | |
var $section_of_form = $("#fixed_scroll_form").closest('section'); | |
//Выставляем текущую ширину | |
$section_of_form.css('width', $section_of_form.css('width')); | |
var top = $section_of_form.offset().top-50; | |
var height = parseInt($section_of_form.css('height'), 10); | |
var winHeight = height;//$(window).height()+300; | |
var footerTop = $('.page-footer').offset().top+300; | |
var gap = 7; |
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
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> | |
<div id="content"> | |
<?php $APPLICATION->ShowViewContent('content'); ?> | |
</div> |
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
<form method="post" action="<?php echo POST_FORM_ACTION_URI?>"> | |
<?php echo bitrix_sessid_post()?> | |
<input type="submit" name="submit" value="Submit"> | |
</form> |
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
<?php | |
define('NO_AGENT_CHECK', true); | |
define("STOP_STATISTICS", true); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
//ajax | |
/*if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || empty($_SERVER['HTTP_X_REQUESTED_WITH']) | |
|| strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') return;*/ |
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
Options -Indexes | |
ErrorDocument 404 /404.php | |
<IfModule mod_php5.c> | |
php_flag session.use_trans_sid off | |
php_value display_errors 1 | |
php_value mbstring.internal_encoding UTF-8 | |
</IfModule> | |
<IfModule mod_rewrite.c> |
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
$arTemplateParameters = Array( | |
... | |
"TEXT_INTRO" => Array( | |
"PARENT" => "DATA_SOURSE", | |
"NAME" => "Вступительный текст", | |
"TYPE" => "CUSTOM", | |
"JS_FILE" => "/путь/к/файлу/settings.js", | |
"JS_EVENT" => "OnTextAreaConstruct", | |
"DEFAULT" => null, | |
), |
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(); | |
/** @var array $arParams */ | |
/** @var array $arResult */ | |
/** @global CMain $APPLICATION */ | |
/** @global CUser $USER */ | |
/** @global CDatabase $DB */ | |
/** @var CBitrixComponentTemplate $this */ | |
/** @var string $templateName */ | |
/** @var string $templateFile */ | |
/** @var string $templateFolder */ |
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
<?$GLOBALS['arrrFilter'] = array('!CODE' => $arResult["CODE"]); //это наш фильтр, который исключает товар, на странице которого мы находимся?> | |
<?$APPLICATION->IncludeComponent( | |
"bitrix:catalog.section", | |
$catalog_section_template, | |
array( | |
"IBLOCK_TYPE" => "1c_catalog", | |
"IBLOCK_ID" => "174", | |
"SECTION_ID" => $arResult["IBLOCK_SECTION_ID"], | |
"SECTION_CODE" => "", | |
"SECTION_USER_FIELDS" => array( |