Adding chamilo themes

1.10.x
Julio Montoya 10 years ago
parent 71d9122886
commit 2c638cafb1
  1. 12
      composer.json
  2. 47
      src/Chamilo/CoreBundle/Resources/views/layout.html.twig
  3. 2
      src/Chamilo/CoreBundle/Settings/PlatformSettingsSchema.php

@ -39,15 +39,14 @@
} }
} }
}, },
{
"type": "vcs",
"url": "https://github.com/jmontoyaa/AdminThemeBundle"
},
{ {
"type": "vcs", "type": "vcs",
"url": "https://github.com/jmontoyaa/MigrationBundle.git" "url": "https://github.com/jmontoyaa/MigrationBundle.git"
} }
], ],
"minimum-stability": "stable",
"require": { "require": {
"php": ">=5.3.3", "php": ">=5.3.3",
@ -63,7 +62,7 @@
"twig/twig": "~1.12", "twig/twig": "~1.12",
"twig/extensions": "~1.0", "twig/extensions": "~1.0",
"symfony/symfony": "~2.3", "symfony/symfony": "~2.5",
"symfony/assetic-bundle": "~2.3", "symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.3", "symfony/monolog-bundle": "~2.3",
@ -151,7 +150,8 @@
"sylius/flow-bundle": "0.11.*@dev", "sylius/flow-bundle": "0.11.*@dev",
"sylius/settings-bundle": "dev-master", "sylius/settings-bundle": "dev-master",
"sp/bower-bundle": "dev-master", "sp/bower-bundle": "dev-master",
"jmontoyaa/migration-bundle":"dev-master" "jmontoyaa/migration-bundle":"dev-master",
"thrace/datagrid-bundle":"dev-master"
}, },
"require-dev": { "require-dev": {
"akeneo/crowdin-api": "1.0.*@dev", "akeneo/crowdin-api": "1.0.*@dev",

@ -5,7 +5,9 @@
{% endblock %} {% endblock %}
{% block avanzu_logo %} {% block avanzu_logo %}
<a href="#" class="logo">
{{- chamilo_settings_get('platform.institution') -}} {{- chamilo_settings_get('platform.institution') -}}
</a>
{% endblock %} {% endblock %}
{% block page_title %} {% block page_title %}
@ -22,7 +24,6 @@
{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:mainMenu', {'automenu': 'pills', 'stacked':true}) }} {{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:mainMenu', {'automenu': 'pills', 'stacked':true}) }}
{% endif %} {% endif %}
{% if is_granted('IS_AUTHENTICATED_FULLY') == false %} {% if is_granted('IS_AUTHENTICATED_FULLY') == false %}
<div class="user-panel"> <div class="user-panel">
</div> </div>
<form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="sidebar-form"> <form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="sidebar-form">
@ -37,18 +38,35 @@
</div> </div>
<button type="submit" class="btn btn-default">Submit</button> <button type="submit" class="btn btn-default">Submit</button>
</form> </form>
{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }} {{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }}
{% endif %} {% endif %}
{#{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:helpMenu', {'automenu': 'pills', 'stacked':true}) }}#} {#{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:helpMenu', {'automenu': 'pills', 'stacked':true}) }}#}
{% endblock %} {% endblock %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {# Chamilo base #}
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/base.css') }}"/>
{# Base theme #}
{% stylesheets '@admin_lte_all_css' filter="cssrewrite" %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% set theme = chamilo_settings_get('platform.theme') %}
<link rel="stylesheet" media="print" href="{{ asset('bundles/chamilocore/css/print.css') }}"/>
{#<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/dataTable.css') }}"/>#}
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/default.css') }}"/>
{#<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/frames.css') }}"/>#}
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/learnpath.css') }}"/>
<link rel="stylesheet" media="print" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/print.css') }}"/>
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/scorm.css') }}"/>
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/css/themes/'~ theme ~'/scormfs.css') }}"/>
{# Chamilo #}
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/js/chosen/chosen.css') }}"/> <link rel="stylesheet" href="{{ asset('bundles/chamilocore/js/chosen/chosen.css') }}"/>
<link rel="stylesheet" href="{{ asset('bundles/chamilocore/js/tag/style.css') }}"/> <link rel="stylesheet" href="{{ asset('bundles/chamilocore/js/tag/style.css') }}"/>
{# Sonata #}
<link rel="stylesheet" href="{{ asset('bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css')}}" />
{% block sonata_page_stylesheets %} {% block sonata_page_stylesheets %}
{% block page_stylesheets %} {# Deprecated block #} {% block page_stylesheets %} {# Deprecated block #}
{% for stylesheet in sonata_page.assets.stylesheets %} {% for stylesheet in sonata_page.assets.stylesheets %}
@ -58,12 +76,11 @@
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% block javascripts %}
{% endblock %}
{% block javascripts_head %} {% block javascripts_head %}
{% javascripts
{% javascripts '@admin_lte_all' %} '@jqgrid_js'
"@admin_lte_all"
%}
<script src="{{ asset_url }}"></script> <script src="{{ asset_url }}"></script>
{% endjavascripts %} {% endjavascripts %}
@ -71,6 +88,7 @@
<script type="text/javascript" src="{{ asset(asset_url) }}"></script> <script type="text/javascript" src="{{ asset(asset_url) }}"></script>
{% endjavascripts %} {% endjavascripts %}
{# Chamilo #}
<script type="text/javascript" src="{{ asset('bundles/chamilocore/js/chosen/chosen.jquery.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/chamilocore/js/chosen/chosen.jquery.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/chamilocore/js/tag/jquery.fcbkcomplete.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/chamilocore/js/tag/jquery.fcbkcomplete.js') }}"></script>
@ -78,6 +96,10 @@
<script type="text/javascript" src="{{ asset_url }}"></script> <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %} {% endjavascripts %}
{# Sonata #}
<script type="text/javascript" src="{{ asset('bundles/sonatacore/vendor/moment/min/moment.min.js')}}"></script>
<script type="text/javascript" src="{{ asset('bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js')}}"></script>
{% block sonata_page_javascripts %} {% block sonata_page_javascripts %}
{% block page_javascripts %} {# Deprecated block #} {% block page_javascripts %} {# Deprecated block #}
{% for js in sonata_page.assets.javascripts %} {% for js in sonata_page.assets.javascripts %}
@ -85,11 +107,14 @@
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{{ sonata_seo_title() }} {{ sonata_seo_title() }}
{{ sonata_seo_metadatas() }} {{ sonata_seo_metadatas() }}
{% endblock %} {% endblock %}
{#Blocking extra javascript calls#}
{% block javascripts %}
{% endblock %}
{% block page_breadcrumb %} {% block page_breadcrumb %}
{% block sonata_page_breadcrumb %} {% block sonata_page_breadcrumb %}
{% if sonata_seo_context is not defined %} {% if sonata_seo_context is not defined %}
@ -100,7 +125,7 @@
{% endblock %} {% endblock %}
{% block page_content %} {% block page_content %}
{# Flash messages #}
{% include 'SonataCoreBundle:FlashMessage:render.html.twig' %} {% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
{% if page is defined %} {% if page is defined %}

@ -28,6 +28,7 @@ class PlatformSettingsSchema implements SchemaInterface
'administrator_surname' => 'Doe', 'administrator_surname' => 'Doe',
'administrator_phone' => '123456', 'administrator_phone' => '123456',
'timezone' => 'Europe/Paris', 'timezone' => 'Europe/Paris',
'theme' => 'chamilo'
)) ))
->setAllowedTypes(array( ->setAllowedTypes(array(
'institution' => array('string'), 'institution' => array('string'),
@ -56,6 +57,7 @@ class PlatformSettingsSchema implements SchemaInterface
->add('administrator_surname') ->add('administrator_surname')
->add('administrator_phone') ->add('administrator_phone')
->add('timezone', 'timezone') ->add('timezone', 'timezone')
->add('theme')
; ;
} }
} }

Loading…
Cancel
Save