示例#1
0
				"DISPLAY_PREVIEW_TEXT"	=>	$arParams["DISPLAY_PREVIEW_TEXT"],
				"PREVIEW_TRUNCATE_LEN"	=>	$arParams["PREVIEW_TRUNCATE_LEN"],
				"ACTIVE_DATE_FORMAT"	=>	$arParams["LIST_ACTIVE_DATE_FORMAT"],
				"USE_PERMISSIONS"	=>	$arParams["USE_PERMISSIONS"],
				"GROUP_PERMISSIONS"	=>	$arParams["GROUP_PERMISSIONS"],
				"FILTER_NAME"	=>	$arParams["FILTER_NAME"],
				"HIDE_LINK_WHEN_NO_DETAIL"	=>	$arParams["HIDE_LINK_WHEN_NO_DETAIL"],
				"CHECK_DATES"	=>	$arParams["CHECK_DATES"],
			),
			$component
		);?>
	<?endif;?>
	<?// section elements?>
	<?include_once("include_filter.php");?>
	<?
	$frame = new \Bitrix\Main\Page\FrameHelper('catalog-elements-block');
	$frame->begin();
	$frame->setAnimation(true);
	?>
	<?include_once("include_sort.php");?>
	<?$display_template = $display ? 'catalog-'.$display: 'catalog-table';?>
	<?$APPLICATION->IncludeComponent(
		"bitrix:news.list",
		$display_template,
		Array(
			"DISPLAY" => $display,
			"COUNT_IN_LINE" => $arParams["COUNT_IN_LINE"],
			"COUNT_LIST_LINE" => $arParams["COUNT_LIST_LINE"],
			"VIEW_TYPE" => $arParams["VIEW_TYPE"],
			"SHOW_TABS" => $arParams["SHOW_TABS"],
			"SHOW_NAME" => $arParams["SHOW_NAME"],
示例#2
0
 static function head()
 {
     $api_key = COption::GetOptionString(self::$MODULE_ID, "tracker_code", '');
     if (!$api_key) {
         return;
     }
     global $APPLICATION, $USER;
     $url = $APPLICATION->GetCurUri();
     if (self::endsWith($url, "ajax.php?UPDATE_STATE")) {
         return;
     } elseif (self::startsWith($url, "/bitrix/admin/")) {
         return;
     } elseif (self::startsWith($url, "/admin/")) {
         return;
     } elseif (self::contains($url, "/bitrix/tools")) {
         return;
     } elseif (self::contains($url, "bitrix/tools/autosave.php?bxsender=core_autosave")) {
         return;
     }
     $visitor_info = false;
     $visitor_uid = false;
     if ($USER && $USER->GetID() && $USER->GetID() > 0 && ($visitor_info = self::getVisitorInfo($USER->GetID()))) {
         $visitor_uid = $USER->GetID();
     }
     $guest_uid = self::getUid($visitor_uid);
     if (CHTMLPagesCache::IsOn()) {
         $frame = new \Bitrix\Main\Page\FrameHelper("platina_conveadtracker");
         $frame->begin();
         $actionType = \Bitrix\Main\Context::getCurrent()->getServer()->get("HTTP_BX_ACTION_TYPE");
         if (true) {
             echo self::HeadScript($api_key);
         }
         $frame->beginStub();
         $frame->end();
     } else {
         global $APPLICATION;
         $APPLICATION->AddHeadString(self::HeadScript($api_key), false, true);
     }
     @session_start();
     $_SESSION["VIEWED_PRODUCT"] = 0;
     unset($_SESSION["VIEWED_ENABLE"]);
     return true;
 }