|
@@ -1,4 +1,5 @@
|
|
|
<?php
|
|
|
+/* For licensing terms, see /license.txt */
|
|
|
|
|
|
namespace Chamilo\ThemeBundle\DependencyInjection;
|
|
|
|
|
@@ -53,144 +54,143 @@ class ChamiloThemeExtension extends Extension implements PrependExtensionInterfa
|
|
|
|
|
|
return;
|
|
|
|
|
|
- $jsAssets = '@ChamiloThemeBundle/Resources/';
|
|
|
- $lteJs = $jsAssets.'public/vendor/adminlte/js/';
|
|
|
+ $jsAssets = '@ChamiloThemeBundle/Resources/';
|
|
|
+ $lteJs = $jsAssets.'public/vendor/adminlte/js/';
|
|
|
$cssAssets = 'bundles/avanzuadmintheme/';
|
|
|
- $lteCss = $cssAssets.'vendor/adminlte/css/';
|
|
|
- $lteFont = $cssAssets.'vendor/adminlte/fonts/';
|
|
|
+ $lteCss = $cssAssets.'vendor/adminlte/css/';
|
|
|
+ $lteFont = $cssAssets.'vendor/adminlte/fonts/';
|
|
|
|
|
|
if (isset($bundles['AsseticBundle']) && 0) {
|
|
|
$container->prependExtensionConfig(
|
|
|
- 'assetic',
|
|
|
- array(
|
|
|
- 'bundles' => array(
|
|
|
- 'ChamiloThemeBundle'
|
|
|
- ),
|
|
|
- 'assets' => array(
|
|
|
- 'common_js' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $jsAssets.'public/vendor/jquery/dist/jquery.js',
|
|
|
- $jsAssets.'public/vendor/jquery-ui/jquery-ui.js',
|
|
|
- $jsAssets.'public/vendor/underscore/underscore.js',
|
|
|
- $jsAssets.'public/vendor/backbone/backbone.js',
|
|
|
- $jsAssets.'public/vendor/marionette/lib/backbone.marionette.js',
|
|
|
- $jsAssets.'public/vendor/bootstrap/dist/js/bootstrap.min.js',
|
|
|
- $jsAssets.'public/vendor/bootbox/bootbox.js',
|
|
|
- $jsAssets.'public/js/dialogs.js',
|
|
|
- $jsAssets.'public/js/namespace.js',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'tools_js' => array(
|
|
|
- 'inputs' => array(
|
|
|
- '@common_js',
|
|
|
- $jsAssets.'public/vendor/momentjs/moment.js',
|
|
|
- $jsAssets.'public/vendor/holderjs/holder.js',
|
|
|
- $jsAssets.'public/vendor/spinjs/spin.js',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'admin_lte_js' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteJs.'plugins/bootstrap-slider/bootstrap-slider.js',
|
|
|
- $lteJs.'plugins/datatables/jquery.dataTables.js',
|
|
|
- $lteJs.'plugins/datatables/dataTables.bootstrap.js',
|
|
|
- $lteJs.'plugins/slimScroll/jquery.slimscroll.js',
|
|
|
- $jsAssets.'public/js/adminLTE.js',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
+ 'assetic',
|
|
|
+ array(
|
|
|
+ 'bundles' => array(
|
|
|
+ 'ChamiloThemeBundle'
|
|
|
+ ),
|
|
|
+ 'assets' => array(
|
|
|
+ 'common_js' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $jsAssets.'public/vendor/jquery/dist/jquery.js',
|
|
|
+ $jsAssets.'public/vendor/jquery-ui/jquery-ui.js',
|
|
|
+ $jsAssets.'public/vendor/underscore/underscore.js',
|
|
|
+ $jsAssets.'public/vendor/backbone/backbone.js',
|
|
|
+ $jsAssets.'public/vendor/marionette/lib/backbone.marionette.js',
|
|
|
+ $jsAssets.'public/vendor/bootstrap/dist/js/bootstrap.min.js',
|
|
|
+ $jsAssets.'public/vendor/bootbox/bootbox.js',
|
|
|
+ $jsAssets.'public/js/dialogs.js',
|
|
|
+ $jsAssets.'public/js/namespace.js',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ 'tools_js' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ '@common_js',
|
|
|
+ $jsAssets.'public/vendor/momentjs/moment.js',
|
|
|
+ $jsAssets.'public/vendor/holderjs/holder.js',
|
|
|
+ $jsAssets.'public/vendor/spinjs/spin.js',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ 'admin_lte_js' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteJs.'plugins/bootstrap-slider/bootstrap-slider.js',
|
|
|
+ $lteJs.'plugins/datatables/jquery.dataTables.js',
|
|
|
+ $lteJs.'plugins/datatables/dataTables.bootstrap.js',
|
|
|
+ $lteJs.'plugins/slimScroll/jquery.slimscroll.js',
|
|
|
+ $jsAssets.'public/js/adminLTE.js',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
|
|
|
- // $lteCss . 'jQueryUI/jquery-ui-1.10.3.custom.css',
|
|
|
- $cssAssets.'vendor/bootstrap/dist/css/bootstrap.min.css',
|
|
|
- $lteCss.'bootstrap-slider/slider.css',
|
|
|
- $lteCss.'datatables/dataTables.bootstrap.css',
|
|
|
- $cssAssets.'vendor/fontawesome/css/font-awesome.min.css',
|
|
|
- $cssAssets.'vendor/ionicons/css/ionicons.min.css',
|
|
|
- $lteCss.'AdminLTE.css',
|
|
|
- //$lteFont . 'fontawesome-webfont.eot',
|
|
|
- // $lteFont . 'ionicons.eot',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_forms_js' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteJs.'plugins/colorpicker/bootstrap-colorpicker.js',
|
|
|
- $lteJs.'plugins/daterangepicker/daterangepicker.js',
|
|
|
- $lteJs.'plugins/timepicker/bootstrap-timepicker.js',
|
|
|
- $lteJs.'plugins/input-mask/jquery.inputmask.js',
|
|
|
- // $lteJs.'plugins/input-mask/*',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_forms_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteCss.'colorpicker/bootstrap-colorpicker.css',
|
|
|
- $lteCss.'daterangepicker/daterangepicker-bs3.css',
|
|
|
- $lteCss.'timepicker/bootstrap-timepicker.css',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_wysiwyg' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteJs.'plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_wysiwyg_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteCss.'bootstrap-wysihtml5/bootstrap3-wysihtml5.css',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_morris' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteJs.'plugins/morris/morris.js',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_morris_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteCss.'morris/morris.css',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_flot' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteJs.'plugins/flot/*',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_calendar' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $jsAssets.'public/vendor/fullcalendar/dist/fullcalendar.min.js',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_calendar_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
- $lteCss.'fullcalendar/fullcalendar.css',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'avatar_img' => array(
|
|
|
- 'inputs' => array(
|
|
|
- '@ChamiloThemeBundle/Resources/public/img/avatar.png'
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_all' => array(
|
|
|
- 'inputs' => array(
|
|
|
- '@tools_js',
|
|
|
- '@admin_lte_forms_js',
|
|
|
- '@admin_lte_wysiwyg',
|
|
|
- '@admin_lte_morris',
|
|
|
- '@admin_lte_calendar',
|
|
|
- '@admin_lte_js',
|
|
|
- // '@admin_lte_flot',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'admin_lte_all_css' => array(
|
|
|
- 'inputs' => array(
|
|
|
- '@admin_lte_calendar_css',
|
|
|
- '@admin_lte_morris_css',
|
|
|
- '@admin_lte_wysiwyg_css',
|
|
|
- '@admin_lte_forms_css',
|
|
|
- '@admin_lte_css'
|
|
|
- )
|
|
|
- ),
|
|
|
+ // $lteCss . 'jQueryUI/jquery-ui-1.10.3.custom.css',
|
|
|
+ $cssAssets.'vendor/bootstrap/dist/css/bootstrap.min.css',
|
|
|
+ $lteCss.'bootstrap-slider/slider.css',
|
|
|
+ $lteCss.'datatables/dataTables.bootstrap.css',
|
|
|
+ $cssAssets.'vendor/fontawesome/css/font-awesome.min.css',
|
|
|
+ $cssAssets.'vendor/ionicons/css/ionicons.min.css',
|
|
|
+ $lteCss.'AdminLTE.css',
|
|
|
+ //$lteFont . 'fontawesome-webfont.eot',
|
|
|
+ // $lteFont . 'ionicons.eot',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_forms_js' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteJs.'plugins/colorpicker/bootstrap-colorpicker.js',
|
|
|
+ $lteJs.'plugins/daterangepicker/daterangepicker.js',
|
|
|
+ $lteJs.'plugins/timepicker/bootstrap-timepicker.js',
|
|
|
+ $lteJs.'plugins/input-mask/jquery.inputmask.js',
|
|
|
+ // $lteJs.'plugins/input-mask/*',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_forms_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteCss.'colorpicker/bootstrap-colorpicker.css',
|
|
|
+ $lteCss.'daterangepicker/daterangepicker-bs3.css',
|
|
|
+ $lteCss.'timepicker/bootstrap-timepicker.css',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_wysiwyg' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteJs.'plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_wysiwyg_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteCss.'bootstrap-wysihtml5/bootstrap3-wysihtml5.css',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_morris' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteJs.'plugins/morris/morris.js',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_morris_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteCss.'morris/morris.css',
|
|
|
)
|
|
|
- )
|
|
|
+ ),
|
|
|
+ 'admin_lte_flot' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteJs.'plugins/flot/*',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_calendar' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $jsAssets.'public/vendor/fullcalendar/dist/fullcalendar.min.js',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_calendar_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ $lteCss.'fullcalendar/fullcalendar.css',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'avatar_img' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ '@ChamiloThemeBundle/Resources/public/img/avatar.png'
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_all' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ '@tools_js',
|
|
|
+ '@admin_lte_forms_js',
|
|
|
+ '@admin_lte_wysiwyg',
|
|
|
+ '@admin_lte_morris',
|
|
|
+ '@admin_lte_calendar',
|
|
|
+ '@admin_lte_js',
|
|
|
+ // '@admin_lte_flot',
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ 'admin_lte_all_css' => array(
|
|
|
+ 'inputs' => array(
|
|
|
+ '@admin_lte_calendar_css',
|
|
|
+ '@admin_lte_morris_css',
|
|
|
+ '@admin_lte_wysiwyg_css',
|
|
|
+ '@admin_lte_forms_css',
|
|
|
+ '@admin_lte_css'
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ )
|
|
|
);
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|