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",
"url": "https://github.com/jmontoyaa/MigrationBundle.git"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.3.3",
@ -63,7 +62,7 @@
"twig/twig": "~1.12",
"twig/extensions": "~1.0",
"symfony/symfony": "~2.3",
"symfony/symfony": "~2.5",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.3",
@ -151,7 +150,8 @@
"sylius/flow-bundle": "0.11.*@dev",
"sylius/settings-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": {
"akeneo/crowdin-api": "1.0.*@dev",

@ -5,7 +5,9 @@
{% endblock %}
{% block avanzu_logo %}
<a href="#" class="logo">
{{- chamilo_settings_get('platform.institution') -}}
</a>
{% endblock %}
{% block page_title %}
@ -22,7 +24,6 @@
{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:mainMenu', {'automenu': 'pills', 'stacked':true}) }}
{% endif %}
{% if is_granted('IS_AUTHENTICATED_FULLY') == false %}
<div class="user-panel">
</div>
<form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="sidebar-form">
@ -37,18 +38,35 @@
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }}
{% endif %}
{#{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:helpMenu', {'automenu': 'pills', 'stacked':true}) }}#}
{% endblock %}
{% 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/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 page_stylesheets %} {# Deprecated block #}
{% for stylesheet in sonata_page.assets.stylesheets %}
@ -58,12 +76,11 @@
{% endblock %}
{% endblock %}
{% block javascripts %}
{% endblock %}
{% block javascripts_head %}
{% javascripts '@admin_lte_all' %}
{% javascripts
'@jqgrid_js'
"@admin_lte_all"
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
@ -71,6 +88,7 @@
<script type="text/javascript" src="{{ asset(asset_url) }}"></script>
{% 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/tag/jquery.fcbkcomplete.js') }}"></script>
@ -78,6 +96,10 @@
<script type="text/javascript" src="{{ asset_url }}"></script>
{% 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 page_javascripts %} {# Deprecated block #}
{% for js in sonata_page.assets.javascripts %}
@ -85,11 +107,14 @@
{% endfor %}
{% endblock %}
{% endblock %}
{{ sonata_seo_title() }}
{{ sonata_seo_metadatas() }}
{% endblock %}
{#Blocking extra javascript calls#}
{% block javascripts %}
{% endblock %}
{% block page_breadcrumb %}
{% block sonata_page_breadcrumb %}
{% if sonata_seo_context is not defined %}
@ -100,7 +125,7 @@
{% endblock %}
{% block page_content %}
{# Flash messages #}
{% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
{% if page is defined %}

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

Loading…
Cancel
Save