mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
레이아웃 설정시 header 스크립트를 추가할 수 있게 하여 style이나 javascript, meta태그등을 <head>와 </head>사이에 추가 가능하도록 함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3859 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3fa8814c99
commit
a3947b1f3f
10 changed files with 43 additions and 0 deletions
|
|
@ -196,6 +196,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
// header_script
|
||||
$oModuleModel = &getModel('module');
|
||||
$layout_config = $oModuleModel->getModuleConfig('layout');
|
||||
$header_script = trim($layout_config->header_script[$layout_srl]);
|
||||
|
||||
if($header_script) $buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace('"','\\"',$header_script));
|
||||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
if(file_exists($cache_file)) @include($cache_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue