Skip to content

Commit

Permalink
Dev: added a field 'devBaseUrl' to packages to register them without …
Browse files Browse the repository at this point in the history
…the asset manager in debug mode
  • Loading branch information
LouisGac committed Jan 11, 2017
1 parent 9ae5b04 commit 9fcd6d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions application/config/packages.php
Expand Up @@ -5,6 +5,9 @@
* @license GPL v3
* core path is application/core/packages
*
* Note: When debug mode, asset manager is turned off by default.
* To enjoy this feature, add to your package definition a 'devBaseUrl' with the relative url to your package
*
*/
/* needed ? @see third_party.php */
if(isset($_GET['isAjax'])){
Expand All @@ -13,6 +16,7 @@
return array(
/* For public template functionnality */
'limesurvey-public'=>array(
'devBaseUrl' => 'application/core/packages/limesurvey/',
'basePath' => 'core.limesurvey',/* public part only : rename directory ? */
'css'=> array(
'survey.css',
Expand All @@ -27,6 +31,7 @@
),
/* For public template extended functionnality (based on default template) */
'template-default'=>array(
'devBaseUrl' => 'application/core/packages/template-default/',
'basePath' => 'core.template-default',
'css'=> array(
'template-core.css',
Expand All @@ -39,6 +44,7 @@
)
),
'template-default-ltr'=>array( /* complement for ltr */
'devBaseUrl' => 'application/core/packages/template-default/',
'basePath' => 'core.template-default',
'css'=> array(
'awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css',
Expand All @@ -48,6 +54,7 @@
)
),
'template-default-rtl'=>array( /* Same but for rtl */
'devBaseUrl' => 'application/core/packages/template-default/',
'basePath' => 'core.template-default',
'css'=> array(
'awesome-bootstrap-checkbox/awesome-bootstrap-checkbox-rtl.css',
Expand All @@ -58,6 +65,7 @@
),

'bootstrap-rtl'=>array( /* Adding boostrap rtl package */
'devBaseUrl' => 'application/core/packages/bootstrap-rtl/',
'basePath' => 'core.bootstrap-rtl',
'css'=> array(
'bootstrap-rtl.css',
Expand All @@ -68,6 +76,7 @@
),
/* Ranking question type */
'question-ranking'=>array(
'devBaseUrl' => 'application/core/packages/questions/ranking/',
'basePath' => 'core.questions.ranking',
'css'=> array(
'ranking.css',
Expand All @@ -82,6 +91,7 @@
),
/* numeric slider question : numerci question type with slider */
'question-numeric-slider'=>array(
'devBaseUrl' => 'application/core/packages/questions/numeric-slider/',
'basePath' => 'core.questions.numeric-slider',
'css'=> array(
'numeric-slider.css',
Expand Down

0 comments on commit 9fcd6d2

Please sign in to comment.