<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
// echo '<script>var log_php_object = '.json_encode($arResult).';</script>';
if (count($arResult["TABS"])):?>
<section class="course-schedule">
<div class="course-schedule-wrap container">
<div class="course-schedule-title text-center">
<p class="course-schedule-title__title base-title">
<?if (!strlen($arParams["NO_TITLE_BLOCK"])):?>
<?=$arResult["~NAME"];?><span class="title-coursive"><?=$arResult["~DESCRIPTION"];?></span>
<?endif;?>
</p>
</div>
<div class="tabs">
<div class="course-schedule-month wow fadeIn">
<div class="tabs__caption">
<?foreach($arResult["TABS"] as $name => $arItems):?>
<a href="" class="course-schedule-month__link<?if ($name == $arResult["ACTIVE_TAB"]):?> active<?endif;?>"><?=$name;?></a>
<?endforeach;?>
</div>
</div>
<?foreach($arResult["TABS"] as $name => $arItems):?>
<div class="course-schedule-blocks wow fadeIn row tabs__content<?if ($name == $arResult["ACTIVE_TAB"]):?> active<?endif;?>">
<?foreach($arItems as $arItem):?>
<div class="course-schedule-block col-sm-4">
<div class="row">
<div class="col-sm-6 col-xs-5">
<img src="<?=$arItem["PREVIEW_PICTURE"]["SRC"];?>" alt="<?=$arItem["NAME"];?>" class="course-schedule__img">
</div>
<div class="col-sm-6 col-xs-7">
<p class="course-schedule__title"><a href="<?=$arItem["DETAIL_PAGE_URL"];?>"><?=$arItem["~NAME"];?></a></p>
<p class="course-schedule-date"><?=$arItem["DATE_RANGE"];?></p>
<p class="course-schedule-time"><?=$arItem["DISPLAY_PROPERTIES"]["TIME"]["~VALUE"];?></p>
<p class="course-schedule-price"><?=number_format($arItem["DISPLAY_PROPERTIES"]["PRICE"]["VALUE"], 0, "", ",");?> р</p>
<a href="#schedule_popup_<?=$arItem["ID"];?>" class="course-schedule-btn btn btn-primary popupbutton">Записаться</a>
<?$APPLICATION->IncludeComponent("bitrix:form.popup", "popup",
Array(
"ID" => "schedule_popup_".$arItem["ID"],
"TITLE" => "Записаться на занятие:<br>\"".$arItem["~NAME"].'"',
"ONSUBMIT" => ""
)
);?>
<a href="#schedule_popup_trial_<?=$arItem["ID"];?>" class="course-schedule-btn2 btn btn-default popupbutton">Пробное занятие</a>
<?$APPLICATION->IncludeComponent("bitrix:form.popup", "popup",
Array(
"ID" => "schedule_popup_trial_".$arItem["ID"],
"TITLE" => "Пробное занятие:<br>\"".$arItem["~NAME"].'"',
"ONSUBMIT" => ""
)
);?>
</div>
</div>
</div>
<?endforeach;?>
</div>
<?endforeach;?>
</div>
</div>
</section>
<?endif;?>
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
// echo '<script>var log_php_object = '.json_encode($arResult).';</script>';
?>
<div class="callback-popup" id="<?=$arParams["ID"];?>">
<h3 class="callback-title"><?=$arParams["~TITLE"];?></h3>
<?$APPLICATION->IncludeComponent("bitrix:form.result.new", "feedback_popup",
Array(
"SEF_MODE" => "N",
"WEB_FORM_ID" => "2",
"LIST_URL" => "",
"EDIT_URL" => "",
"SUCCESS_URL" => "",
"CHAIN_ITEM_TEXT" => "",
"CHAIN_ITEM_LINK" => "",
"IGNORE_CUSTOM_TEMPLATE" => "Y",
"USE_EXTENDED_ERRORS" => "Y",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
"SEF_FOLDER" => "/",
"VARIABLE_ALIASES" => Array(
),
"AJAX_MODE" => "Y",
"AJAX_OPTION_SHADOW" => "N",
"AJAX_OPTION_JUMP" => "Y",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"ONSUBMIT" => $arParams["ONSUBMIT"],
"TITLE" => $arParams["~TITLE"]
),
false
, Array("HIDE_ICONS" => "Y")
);?>
<center>
Отправляя заявку вы соглашаетесь с <a href="#">нашими условиями</a>.
</center>
</div>
<?$APPLICATION->IncludeComponent(
"bitrix:news.detail",
"schedule",
Array(
"ACTIVE_DATE_FORMAT" => "j F Y",
"ADD_ELEMENT_CHAIN" => "Y",
"ADD_SECTIONS_CHAIN" => "N",
"AJAX_MODE" => "N",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"BROWSER_TITLE" => "-",
"CACHE_GROUPS" => "Y",
"CACHE_TIME" => "36000",
"CACHE_TYPE" => "A",
"CHECK_DATES" => "N",
"DETAIL_URL" => "",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_TOP_PAGER" => "Y",
"ELEMENT_CODE" => $_REQUEST["CODE"],
"ELEMENT_ID" => "",
"FIELD_CODE" => Array(),
"GROUP_PERMISSIONS" => Array("1"),
"IBLOCK_ID" => "4",
"IBLOCK_TYPE" => "block",
"IBLOCK_URL" => "",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"MESSAGE_404" => "",
"META_DESCRIPTION" => "-",
"META_KEYWORDS" => "-",
"PAGER_BASE_LINK" => "",
"PAGER_BASE_LINK_ENABLE" => "Y",
"PAGER_PARAMS_NAME" => "arrPager",
"PAGER_SHOW_ALL" => "Y",
"PAGER_TEMPLATE" => "",
"PAGER_TITLE" => "Страница",
"PROPERTY_CODE" => Array("SHORT_DESCRIPTION"),
"SET_BROWSER_TITLE" => "Y",
"SET_CANONICAL_URL" => "N",
"SET_LAST_MODIFIED" => "Y",
"SET_META_DESCRIPTION" => "Y",
"SET_META_KEYWORDS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => "Y",
"SHARE_HANDLERS" => array("delicious"),
"SHARE_HIDE" => "Y",
"SHARE_SHORTEN_URL_KEY" => "",
"SHARE_SHORTEN_URL_LOGIN" => "",
"SHARE_TEMPLATE" => "",
"SHOW_404" => "Y",
"STRICT_SECTION_CHECK" => "Y",
"USE_PERMISSIONS" => "N",
"USE_SHARE" => "N"
)
);?><br>
<br>
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
// echo '<script>var log_php_object = '.json_encode($arResult).';</script>';
?>
<div class="full-content-flex">
<div class="full-content-content">
<?if (strlen($arResult["DISPLAY_PROPERTIES"]["SHORT_DESCRIPTION"]["~VALUE"]["TEXT"])):?>
<div class="full-content__short-description">
<p><?=$arResult["DISPLAY_PROPERTIES"]["SHORT_DESCRIPTION"]["~VALUE"]["TEXT"];?></p>
</div>
<?endif;?>
<?if (strlen($arResult["DETAIL_PICTURE"]["SRC"])):?>
<div class="full-content__content-image">
<figure>
<img src="<?=$arResult["DETAIL_PICTURE"]["SRC"];?>" alt="<?=$arResult["DETAIL_PICTURE"]["ALT"];?>" class="full-img" title="<?=$arResult["DETAIL_PICTURE"]["TITLE"];?>">
<figcaption><?=$arResult["DETAIL_PICTURE"]["DESCRIPTION"];?></figcaption>
</figure>
</div>
<?endif;?>
<?=$arResult["~DETAIL_TEXT"];?>
</div>
<div class="full-content-sidebar">
<?$APPLICATION->IncludeComponent("bitrix:subscribe.popup", "subscribe",
Array(
)
);?>
<div class="full-content-sidebar__block share">
<p class="full-content-sidebar__block-date"><?=mb_strtolower($arResult["DISPLAY_ACTIVE_FROM"]);?></p>
<?$APPLICATION->IncludeComponent("bitrix:share", "sidebar",
Array(
"TITLE" => $arResult["NAME"]
, "DESCRIPTION" => $arResult["PREVIEW_TEXT"]
, "IMAGE" => $arResult["DETAIL_PICTURE"]["SRC"]
)
);?>
</div>
<?$APPLICATION->IncludeComponent("bitrix:banner.sidebar", "sidebar",
Array(
"TITLE" => "Записаться <br>на бесплатное",
"SUB_TITLE" => "Пробное занятие",
)
);?>
</div>
</div>