1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
epilog_before.php
См. документацию.
1<?php
8
14
16
17define("START_EXEC_EPILOG_BEFORE_1", microtime(true));
18$GLOBALS["BX_STATE"] = "EB";
19
20/* Draw edit menu for whole content */
21global $BX_GLOBAL_AREA_EDIT_ICON; //set in prolog_after.php
23{
24 IncludeModuleLangFile(__FILE__);
25
26 if(isset($_SERVER["REAL_FILE_PATH"]) && $_SERVER["REAL_FILE_PATH"] != "")
27 $currentFilePath = $_SERVER["REAL_FILE_PATH"];
28 else
29 $currentFilePath = $APPLICATION->GetCurPage(true);
30
31 $encCurrentFilePath = urlencode($currentFilePath);
32 $encUri = urlencode($_SERVER["REQUEST_URI"]);
33 $encSiteTemplateId = urlencode(SITE_TEMPLATE_ID);
34
35 $arIcons = array(
36 array(
37 "TITLE"=>GetMessage("main_epilog_before_menu_edit"),
38 "ALT"=>GetMessage("main_epilog_before_menu_edit_title"),
39 "ICON"=>"bx-context-toolbar-edit-icon",
40 "URL"=> 'javascript:'.$APPLICATION->GetPopupLink(Array(
41 "URL"=> "/bitrix/admin/public_file_edit.php?bxpublic=Y&lang=".LANGUAGE_ID."&path=".$encCurrentFilePath."&site=".SITE_ID."&back_url=".$encUri."&templateID=".$encSiteTemplateId,
42 "PARAMS"=>array(
43 "width" => 770,
44 "height" => 470,
45 "dialog_type" => 'EDITOR',
46 "min_width" => 700,
47 "min_height" => 400
48 ))
49 ),
50 "DEFAULT"=>true,
51 "MENU" => array
52 (
53 array(
54 "TEXT"=>GetMessage("main_epilog_before_menu_edit_html"),
55 "TITLE"=>GetMessage("main_epilog_before_menu_edit_html_title"),
56 "ICON"=>"panel-edit-text",
57 "ACTION"=>'javascript:'.$APPLICATION->GetPopupLink(Array(
58 "URL"=>"/bitrix/admin/public_file_edit.php?bxpublic=Y&lang=".LANGUAGE_ID."&noeditor=Y&path=".$encCurrentFilePath."&site=".SITE_ID."&back_url=".$encUri,
59 "PARAMS"=>array("width"=>770, "height"=>470))
60 ),
61 ),
62 //array('SEPARATOR'=>true),
63 array(
64 "TEXT"=>GetMessage("main_epilog_before_menu_prop"),
65 "TITLE"=>GetMessage("main_epilog_before_menu_prop_title"),
66 "ICON"=>"panel-file-props",
67 "ACTION"=> 'javascript:'.$APPLICATION->GetPopupLink(Array(
68 "URL"=>"/bitrix/admin/public_file_property.php?lang=".LANGUAGE_ID."&site=".SITE_ID."&path=".$encCurrentFilePath."&back_url=".$encUri,
69 "PARAMS" => Array("min_width"=>450, "min_height" => 250))
70 ),
71 ),
72 array('SEPARATOR' => true),
73 array(
74 "TEXT"=>GetMessage('main_epilog_before_remove_panel'),
75 "TITLE"=>GetMessage('main_epilog_before_remove_panel_title'),
76 "ACTION"=> 'javascript:if (confirm(\''.CUtil::JSEscape(GetMessage('main_epilog_before_remove_panel_confirm')).'\')) window.PAGE_EDIT_CONTROL.Remove()',
77 ),
78 ),
79 ),
80 );
81
82 echo $APPLICATION->IncludeStringAfter($arIcons, array('TOOLTIP'=>GetMessage("main_epilog_before_menu_title"), 'ICON'=>'edit-icon', "COMPONENT_ID" => "page_edit_control"));
83}
84
85\Bitrix\Main\Page\Asset::getInstance()->startTarget('TEMPLATE');
86$sPreviewFile = $_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/tmp/templates/__bx_preview/footer.php";
87if(defined("SITE_TEMPLATE_PREVIEW_MODE") && file_exists($sPreviewFile))
88{
89 include_once($sPreviewFile);
90}
91else
92{
93 include_once($_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH."/footer.php");
94}
global $APPLICATION
Определения include.php:80
global $BX_GLOBAL_AREA_EDIT_ICON
Определения epilog_before.php:21
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
global $USER
Определения csv_new_run.php:40
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
Определения tools.php:3778
GetMessage($name, $aReplace=null)
Определения tools.php:3397
const SITE_ID
Определения sonet_set_content_view.php:12
$GLOBALS['_____370096793']
Определения update_client.php:1