Commit d97cdfd1 authored by thomas craipeau's avatar thomas craipeau
parents d87ba47c 26311142
......@@ -34,7 +34,16 @@ $cssAnsScriptFilesModule = array(
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
HtmlHelper::registerCssAndScriptsFiles( array( '/css/calendar.css') , Yii::app()->theme->baseUrl. '/assets');
$calendarParams=(@Yii::app()->session["paramsConfig"]["pages"]["#agenda"] && @Yii::app()->session["paramsConfig"]["pages"]["#agenda"]["calendar"]) ?Yii::app()->session["paramsConfig"]["pages"]["#agenda"]["calendar"] : null;
if(isset(Yii::app()->session["costum"]) && !empty($calendarParams)){
$cssJsCostum=array();
if(isset($calendarParams["js"]))
array_push($cssJsCostum, '/js/'.Yii::app()->session["costum"]["slug"].'/calendar.js');
if(isset($calendarParams["css"]))
array_push($cssJsCostum, '/css/'.Yii::app()->session["costum"]["slug"].'/calendar.css');
if(!empty($cssJsCostum))
HtmlHelper::registerCssAndScriptsFiles($cssJsCostum, Yii::app()->getModule( "costum" )->getAssetsUrl());
}
?>
<style type="text/css">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment