mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#19512306 위젯 캐시에 js, css 로드가 안되는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8073 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
64e2f2a4c1
commit
9cab7daac1
1 changed files with 13 additions and 4 deletions
|
|
@ -515,17 +515,26 @@
|
|||
break;
|
||||
// css file
|
||||
case 'css' :
|
||||
if($type == 'unload') $output = '<?php Context::unloadCSSFile("'.$source_filename.'"); ?>';
|
||||
else $output = '<?php Context::addCSSFile("'.$source_filename.'",false,"'.$attrs['media'].'","'.$attrs['targetie'].'",'.$attrs['index'].'); ?>';
|
||||
if($type == 'unload') {
|
||||
$output = '<?php Context::unloadCSSFile("'.$source_filename.'"); ?>';
|
||||
} else {
|
||||
$meta_file = $source_filename;
|
||||
$output = '<?php Context::addCSSFile("'.$source_filename.'",false,"'.$attrs['media'].'","'.$attrs['targetie'].'",'.$attrs['index'].'); ?>';
|
||||
}
|
||||
break;
|
||||
// js file
|
||||
case 'js' :
|
||||
if($type == 'unload') $output = '<?php Context::unloadJsFile("'.$source_filename.'"); ?>';
|
||||
else $output = '<?php Context::addJsFile("'.$source_filename.'",false,"'.$attrs['targetie'].'",'.$attrs['index'].',"'.$attrs['type'].'"); ?>';
|
||||
if($type == 'unload') {
|
||||
$output = '<?php Context::unloadJsFile("'.$source_filename.'"); ?>';
|
||||
} else {
|
||||
$meta_file = $source_filename;
|
||||
$output = '<?php Context::addJsFile("'.$source_filename.'",false,"'.$attrs['targetie'].'",'.$attrs['index'].',"'.$attrs['type'].'"); ?>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if($meta_file) $output = '<!--Meta:'.$meta_file.'-->'.$output;
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue