-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Chechkin
committed
May 21, 2015
1 parent
f33137c
commit c58e193
Showing
10 changed files
with
297 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
bitrix/templates/.default/components/bitrix/news.detail/about/template.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?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 */ | ||
/** @var string $componentPath */ | ||
/** @var CBitrixComponent $component */ | ||
$this->setFrameMode(true);?> | ||
<div class="preview"><?=$arResult['PREVIEW_TEXT'];?></div> | ||
<img id="video" src="/upload/video.jpg"> | ||
<?=$arResult['DETAIL_TEXT'];?> | ||
<img src="<?=$arResult['DETAIL_PICTURE']['SRC'];?>"> |
34 changes: 34 additions & 0 deletions
34
bitrix/templates/.default/components/bitrix/news.list/contacts/template.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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 */ | ||
/** @var string $componentPath */ | ||
/** @var CBitrixComponent $component */ | ||
$this->setFrameMode(true);?> | ||
<?if(!empty($arResult['ITEMS'])){?> | ||
<?foreach($arResult['ITEMS'] as $arItem){?> | ||
<div class="contact-block content-block"> | ||
<div class="main-adress"> | ||
<h2><?=$arItem['NAME'];?></h2> | ||
<?=$arItem['PREVIEW_TEXT'];?> | ||
</div> | ||
<div class="main-telephone"> | ||
<ul> | ||
<li>Телефон: <?=$arItem['PROPERTIES']['ATT_TEL']['~VALUE']['TEXT']?></li> | ||
<li>Факс: <?=$arItem['PROPERTIES']['ATT_FAX']['VALUE']?></li> | ||
<li>E-mail: <a href="mailto:<?=$arItem['PROPERTIES']['ATT_MAIL']['VALUE']?>"><?=$arItem['PROPERTIES']['ATT_MAIL']['VALUE']?></a></li> | ||
</ul> | ||
</div> | ||
<div class="main-representatives"> | ||
<a href="#representatives">Наши представители</a> | ||
</div> | ||
</div> | ||
<section id="map" class="map"><?=$arItem['PROPERTIES']['ATT_MAP']['VALUE']?></section> | ||
<?}?> | ||
<?}?> |
34 changes: 34 additions & 0 deletions
34
bitrix/templates/.default/components/bitrix/news.list/representatives/template.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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 */ | ||
/** @var string $componentPath */ | ||
/** @var CBitrixComponent $component */ | ||
$this->setFrameMode(true);?> | ||
<?if(!empty($arResult['ITEMS'])){?> | ||
<section id="representatives" class="representatives"> | ||
<div class="content-block"> | ||
<h2>Наши представители</h2> | ||
<ul class="icon"> | ||
<li id="pointing"></li> | ||
<li id="adres"></li> | ||
<li id="tel"></li> | ||
</ul> | ||
<div class="inside"> | ||
<?foreach($arResult['ITEMS'] as $arItem){?> | ||
<ul> | ||
<li><?=$arItem['PROPERTIES']['ATT_CITY']['VALUE'];?></li> | ||
<li><?=$arItem['NAME'];?></li> | ||
<li><?=$arItem['PROPERTIES']['ATT_TEL']['VALUE'];?></li> | ||
</ul> | ||
<?}?> | ||
</div> | ||
</div> | ||
</section> | ||
<?}?> |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ | |
}//contact-block | ||
|
||
.map{ | ||
.bg('map.jpg', no-repeat 0 0); | ||
width: 100; | ||
height: 764px; | ||
max-width: 1255px; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,46 +2,110 @@ | |
define('NO_CONTENT_BLOCK', 'Y'); | ||
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | ||
$APPLICATION->SetTitle("Контакты"); | ||
?><div class="contact-block content-block"> | ||
<div class="main-adress"> | ||
<h2>Аксайский кирпичный завод</h2> | ||
346710, Россия, Ростовская область, Аксайский район, хутор Большой Лог, ул. Калинина, 68 | ||
</div> | ||
<div class="main-telephone"> | ||
<ul> | ||
<li>Телефон: <b>+7 (86350) 4-88-48</b>, +7 (863) 256-91-01</li> | ||
<li>Факс: +7 (863) 303-08-48</li> | ||
<li>E-mail: <a href="mailto:[email protected]">[email protected]</a></li> | ||
</ul> | ||
</div> | ||
<div class="main-representatives"> | ||
<a href="#">Наши представители</a> | ||
</div> | ||
</div> | ||
<section class="map"></section> <section class="representatives"> | ||
<div class="content-block"> | ||
<h2>Наши представители</h2> | ||
<ul class="icon"> | ||
<li id="pointing"></li> | ||
<li id="adres"></li> | ||
<li id="tel"></li> | ||
</ul> | ||
<div class="inside"> | ||
<ul> | ||
<li>Ростов-на-Дону</li> | ||
<li>Малое зеленое кольцо, д. 12</li> | ||
<li>(863) 255-46-04</li> | ||
</ul> | ||
<ul> | ||
<li>Ростов-на-Дону</li> | ||
<li>Малое зеленое кольцо, д. 12</li> | ||
<li>(863) 255-46-04</li> | ||
</ul> | ||
<ul> | ||
<li>Ростов-на-Дону</li> | ||
<li>Малое зеленое кольцо, д. 12</li> | ||
<li>(863) 255-46-04</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</section><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> | ||
?><?$APPLICATION->IncludeComponent( | ||
"bitrix:news.list", | ||
"contacts", | ||
Array( | ||
"IBLOCK_TYPE" => "content", | ||
"IBLOCK_ID" => "4", | ||
"NEWS_COUNT" => "20", | ||
"SORT_BY1" => "ACTIVE_FROM", | ||
"SORT_ORDER1" => "DESC", | ||
"SORT_BY2" => "SORT", | ||
"SORT_ORDER2" => "ASC", | ||
"FILTER_NAME" => "", | ||
"FIELD_CODE" => array(0=>"",1=>"undefined",2=>"",), | ||
"PROPERTY_CODE" => array(0=>"",1=>"undefined",2=>"",), | ||
"CHECK_DATES" => "Y", | ||
"DETAIL_URL" => "", | ||
"AJAX_MODE" => "N", | ||
"AJAX_OPTION_JUMP" => "N", | ||
"AJAX_OPTION_STYLE" => "Y", | ||
"AJAX_OPTION_HISTORY" => "N", | ||
"CACHE_TYPE" => "A", | ||
"CACHE_TIME" => "36000000", | ||
"CACHE_FILTER" => "N", | ||
"CACHE_GROUPS" => "Y", | ||
"PREVIEW_TRUNCATE_LEN" => "", | ||
"ACTIVE_DATE_FORMAT" => "d.m.Y", | ||
"SET_TITLE" => "N", | ||
"SET_BROWSER_TITLE" => "N", | ||
"SET_META_KEYWORDS" => "N", | ||
"SET_META_DESCRIPTION" => "N", | ||
"SET_STATUS_404" => "N", | ||
"INCLUDE_IBLOCK_INTO_CHAIN" => "N", | ||
"ADD_SECTIONS_CHAIN" => "N", | ||
"HIDE_LINK_WHEN_NO_DETAIL" => "N", | ||
"PARENT_SECTION" => "", | ||
"PARENT_SECTION_CODE" => "", | ||
"INCLUDE_SUBSECTIONS" => "Y", | ||
"DISPLAY_DATE" => "Y", | ||
"DISPLAY_NAME" => "Y", | ||
"DISPLAY_PICTURE" => "Y", | ||
"DISPLAY_PREVIEW_TEXT" => "Y", | ||
"PAGER_TEMPLATE" => ".default", | ||
"DISPLAY_TOP_PAGER" => "N", | ||
"DISPLAY_BOTTOM_PAGER" => "N", | ||
"PAGER_TITLE" => "Новости", | ||
"PAGER_SHOW_ALWAYS" => "N", | ||
"PAGER_DESC_NUMBERING" => "N", | ||
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", | ||
"PAGER_SHOW_ALL" => "N" | ||
) | ||
);?><?$APPLICATION->IncludeComponent("bitrix:news.list", "representatives", Array( | ||
"IBLOCK_TYPE" => "content", // Тип информационного блока (используется только для проверки) | ||
"IBLOCK_ID" => "5", // Код информационного блока | ||
"NEWS_COUNT" => "20", // Количество новостей на странице | ||
"SORT_BY1" => "SORT", // Поле для первой сортировки новостей | ||
"SORT_ORDER1" => "ASC", // Направление для первой сортировки новостей | ||
"SORT_BY2" => "ID", // Поле для второй сортировки новостей | ||
"SORT_ORDER2" => "DESC", // Направление для второй сортировки новостей | ||
"FILTER_NAME" => "", // Фильтр | ||
"FIELD_CODE" => array( // Поля | ||
0 => "", | ||
1 => "undefined", | ||
2 => "", | ||
), | ||
"PROPERTY_CODE" => array( // Свойства | ||
0 => "", | ||
1 => "undefined", | ||
2 => "", | ||
), | ||
"CHECK_DATES" => "Y", // Показывать только активные на данный момент элементы | ||
"DETAIL_URL" => "", // URL страницы детального просмотра (по умолчанию - из настроек инфоблока) | ||
"AJAX_MODE" => "N", // Включить режим AJAX | ||
"AJAX_OPTION_JUMP" => "N", // Включить прокрутку к началу компонента | ||
"AJAX_OPTION_STYLE" => "Y", // Включить подгрузку стилей | ||
"AJAX_OPTION_HISTORY" => "N", // Включить эмуляцию навигации браузера | ||
"CACHE_TYPE" => "A", // Тип кеширования | ||
"CACHE_TIME" => "36000000", // Время кеширования (сек.) | ||
"CACHE_FILTER" => "N", // Кешировать при установленном фильтре | ||
"CACHE_GROUPS" => "Y", // Учитывать права доступа | ||
"PREVIEW_TRUNCATE_LEN" => "", // Максимальная длина анонса для вывода (только для типа текст) | ||
"ACTIVE_DATE_FORMAT" => "d.m.Y", // Формат показа даты | ||
"SET_TITLE" => "N", // Устанавливать заголовок страницы | ||
"SET_BROWSER_TITLE" => "N", // Устанавливать заголовок окна браузера | ||
"SET_META_KEYWORDS" => "N", // Устанавливать ключевые слова страницы | ||
"SET_META_DESCRIPTION" => "N", // Устанавливать описание страницы | ||
"SET_STATUS_404" => "N", // Устанавливать статус 404, если не найдены элемент или раздел | ||
"INCLUDE_IBLOCK_INTO_CHAIN" => "N", // Включать инфоблок в цепочку навигации | ||
"ADD_SECTIONS_CHAIN" => "N", // Включать раздел в цепочку навигации | ||
"HIDE_LINK_WHEN_NO_DETAIL" => "N", // Скрывать ссылку, если нет детального описания | ||
"PARENT_SECTION" => "", // ID раздела | ||
"PARENT_SECTION_CODE" => "", // Код раздела | ||
"INCLUDE_SUBSECTIONS" => "Y", // Показывать элементы подразделов раздела | ||
"DISPLAY_DATE" => "N", // Выводить дату элемента | ||
"DISPLAY_NAME" => "Y", // Выводить название элемента | ||
"DISPLAY_PICTURE" => "Y", // Выводить изображение для анонса | ||
"DISPLAY_PREVIEW_TEXT" => "Y", // Выводить текст анонса | ||
"PAGER_TEMPLATE" => ".default", // Шаблон постраничной навигации | ||
"DISPLAY_TOP_PAGER" => "N", // Выводить над списком | ||
"DISPLAY_BOTTOM_PAGER" => "N", // Выводить под списком | ||
"PAGER_TITLE" => "Новости", // Название категорий | ||
"PAGER_SHOW_ALWAYS" => "N", // Выводить всегда | ||
"PAGER_DESC_NUMBERING" => "N", // Использовать обратную навигацию | ||
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", // Время кеширования страниц для обратной навигации | ||
"PAGER_SHOW_ALL" => "N", // Показывать ссылку "Все" | ||
), | ||
false | ||
);?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> |
Oops, something went wrong.