mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
Add 'finalize' option to getCSSFileList() and getJSFileList(), to be used only by the final layout
This commit is contained in:
parent
1c43cbb126
commit
4290f5110c
3 changed files with 34 additions and 24 deletions
|
|
@ -2270,11 +2270,12 @@ class Context
|
|||
* Returns the list of javascripts that matches the given type.
|
||||
*
|
||||
* @param string $type Added position. (head:<head>..</head>, body:<body>..</body>)
|
||||
* @param bool $finalize (optional)
|
||||
* @return array Returns javascript file list. Array contains file, targetie.
|
||||
*/
|
||||
public static function getJsFile($type = 'head')
|
||||
public static function getJsFile($type = 'head', $finalize = false)
|
||||
{
|
||||
return self::$_instance->oFrontEndFileHandler->getJsFileList($type);
|
||||
return self::$_instance->oFrontEndFileHandler->getJsFileList($type, $finalize);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2322,11 +2323,12 @@ class Context
|
|||
/**
|
||||
* Return a list of css files
|
||||
*
|
||||
* @param bool $finalize (optional)
|
||||
* @return array Returns css file list. Array contains file, media, targetie.
|
||||
*/
|
||||
public static function getCSSFile()
|
||||
public static function getCSSFile($finalize = false)
|
||||
{
|
||||
return self::$_instance->oFrontEndFileHandler->getCssFileList();
|
||||
return self::$_instance->oFrontEndFileHandler->getCssFileList($finalize);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue