mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
<script />, <style />에 대해 IE conditional comment를 적용할 수 있도록 %import 구문에 targetie 인자 추가.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4087 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c7b12d80b0
commit
12d606ef13
3 changed files with 51 additions and 21 deletions
|
|
@ -714,18 +714,18 @@
|
|||
/**
|
||||
* @brief js file을 추가
|
||||
**/
|
||||
function addJsFile($file, $optimized = true) {
|
||||
function addJsFile($file, $optimized = true, $targetie = '') {
|
||||
$oContext = &Context::getInstance();
|
||||
return $oContext->_addJsFile($file, $optimized);
|
||||
return $oContext->_addJsFile($file, $optimized, $targetie);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief js file을 추가
|
||||
**/
|
||||
function _addJsFile($file, $optimized) {
|
||||
function _addJsFile($file, $optimized, $targetie) {
|
||||
if(in_array($file, $this->js_files)) return;
|
||||
//if(!preg_match('/^http:\/\//i',$file)) $file = str_replace(realpath("."), ".", realpath($file));
|
||||
$this->js_files[] = array('file' => $file, 'optimized' => $optimized);
|
||||
$this->js_files[] = array('file' => $file, 'optimized' => $optimized, 'targetie' => $targetie);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -763,19 +763,19 @@
|
|||
/**
|
||||
* @brief CSS file 추가
|
||||
**/
|
||||
function addCSSFile($file, $optimized = true, $media = 'all') {
|
||||
function addCSSFile($file, $optimized = true, $media = 'all', $targetie = '') {
|
||||
$oContext = &Context::getInstance();
|
||||
return $oContext->_addCSSFile($file, $optimized, $media);
|
||||
return $oContext->_addCSSFile($file, $optimized, $media, $targetie);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief CSS file 추가
|
||||
**/
|
||||
function _addCSSFile($file, $optimized, $media) {
|
||||
function _addCSSFile($file, $optimized, $media, $targetie) {
|
||||
if(in_array($file, $this->css_files)) return;
|
||||
|
||||
//if(preg_match('/^http:\/\//i',$file)) $file = str_replace(realpath("."), ".", realpath($file));
|
||||
$this->css_files[] = array('file' => $file, 'optimized' => $optimized, 'media' => $media);
|
||||
$this->css_files[] = array('file' => $file, 'optimized' => $optimized, 'media' => $media, 'targetie' => $targetie);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue