Bläddra i källkod

Add liip theme + default layouts

jmontoyaa 8 år sedan
förälder
incheckning
840d86003b

+ 1 - 1
app/AppKernel.php

@@ -75,7 +75,7 @@ class AppKernel extends Kernel
 
             //new Gregwar\CaptchaBundle\GregwarCaptchaBundle(),
             new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle(),
-            //new Liip\ThemeBundle\LiipThemeBundle(),
+            new Liip\ThemeBundle\LiipThemeBundle(),
             new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
             new FM\ElfinderBundle\FMElfinderBundle(),
             new FOS\JsRoutingBundle\FOSJsRoutingBundle(),

+ 4 - 0
app/Resources/themes/phone/layout.html.twig

@@ -0,0 +1,4 @@
+{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
+{% block title %}
+    {{- chamilo_settings_get('platform.site_name') -}} - Phone theme
+{% endblock %}

+ 4 - 0
app/Resources/themes/web/layout.html.twig

@@ -0,0 +1,4 @@
+{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
+{% block title %}
+    {{- chamilo_settings_get('platform.site_name') -}} - Web theme
+{% endblock %}

+ 4 - 4
app/config/config.yml

@@ -199,10 +199,10 @@ stof_doctrine_extensions:
             sluggable: true
             sortable: true
 
-#liip_theme:
-#    themes: ['web', 'tablet', 'phone']
-#    active_theme: 'web'
-#    assetic_integration: true
+liip_theme:
+    themes: ['web', 'tablet', 'phone']
+    active_theme: 'web'
+    assetic_integration: true
 
 #oneup_flysystem:
 #    adapters: