Ver Fonte

Minor - Fix after merge 1.11.x

Julio Montoya há 6 anos atrás
pai
commit
a53e2b6621
100 ficheiros alterados com 249 adições e 7649 exclusões
  1. 0 12
      app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_BACKUP_9396.js
  2. 0 11
      app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_BASE_9396.js
  3. 0 11
      app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_LOCAL_9396.js
  4. 0 11
      app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_REMOTE_9396.js
  5. 45 88
      app/Resources/public/css/editor.css
  6. 6 0
      index.php
  7. 0 60
      main/template/rainbow/admin/career_dashboard.tpl
  8. 0 23
      main/template/rainbow/admin/email_tester.tpl
  9. 0 316
      main/template/rainbow/admin/resource_sequence.tpl
  10. 0 108
      main/template/rainbow/admin/settings_index.tpl
  11. 0 30
      main/template/rainbow/admin/skill.tpl
  12. 0 27
      main/template/rainbow/admin/skill_level.tpl
  13. 0 42
      main/template/rainbow/admin/skill_profile.tpl
  14. 0 53
      main/template/rainbow/admin/teacher_time_report.tpl
  15. 0 73
      main/template/rainbow/admin/teachers_time_by_session_report.tpl
  16. 0 64
      main/template/rainbow/agenda/event_list.tpl
  17. 0 768
      main/template/rainbow/agenda/month.tpl
  18. 0 38
      main/template/rainbow/announcement/slider.tpl
  19. 0 16
      main/template/rainbow/announcement/view.tpl
  20. 0 8
      main/template/rainbow/auth/confirm_session_subscription.tpl
  21. 0 0
      main/template/rainbow/auth/courses.tpl
  22. 0 18
      main/template/rainbow/auth/hrm_courses.tpl
  23. 0 14
      main/template/rainbow/auth/inscription.tpl
  24. 0 5
      main/template/rainbow/auth/lost_password.tpl
  25. 0 10
      main/template/rainbow/auth/readme.txt
  26. 0 226
      main/template/rainbow/auth/session_catalog.tpl
  27. 0 4
      main/template/rainbow/auth/set_temp_password.tpl
  28. 0 118
      main/template/rainbow/blog/blog.tpl
  29. 0 7
      main/template/rainbow/blog/layout.tpl
  30. 0 178
      main/template/rainbow/blog/post.tpl
  31. 0 113
      main/template/rainbow/career/diagram.tpl
  32. 0 317
      main/template/rainbow/chat/chat.tpl
  33. 0 159
      main/template/rainbow/chat/video.tpl
  34. 0 34
      main/template/rainbow/course_description/edit.tpl
  35. 0 105
      main/template/rainbow/course_description/index.tpl
  36. 0 15
      main/template/rainbow/course_description/upload.tpl
  37. 0 35
      main/template/rainbow/course_home/activity.tpl
  38. 0 34
      main/template/rainbow/course_home/vertical_activity.tpl
  39. 0 8
      main/template/rainbow/course_progress/layout.tpl
  40. 0 46
      main/template/rainbow/course_progress/pdf_general_thematic.tpl
  41. 0 36
      main/template/rainbow/course_progress/pdf_single_thematic.tpl
  42. 0 126
      main/template/rainbow/course_progress/progress.tpl
  43. 0 15
      main/template/rainbow/coursecopy/import_moodle.tpl
  44. 0 58
      main/template/rainbow/create_course/add_course.tpl
  45. 0 78
      main/template/rainbow/document/record_audio.tpl
  46. 0 48
      main/template/rainbow/document/recycle.tpl
  47. 0 69
      main/template/rainbow/exercise/oral_expression.tpl
  48. 0 61
      main/template/rainbow/exercise/overview.tpl
  49. 0 101
      main/template/rainbow/exercise/reading_comprehension.tpl
  50. 0 9
      main/template/rainbow/export/alt_pdf_footer.tpl
  51. 0 10
      main/template/rainbow/export/pdf_footer.tpl
  52. 0 11
      main/template/rainbow/export/pdf_header.tpl
  53. 0 8
      main/template/rainbow/extrafield/translate.tpl
  54. 0 88
      main/template/rainbow/forum/list.tpl
  55. 0 87
      main/template/rainbow/gamification/my_progress.tpl
  56. 0 100
      main/template/rainbow/glossary/glossary_auto.js.tpl
  57. 0 48
      main/template/rainbow/glossary/glossary_manual.js.tpl
  58. 0 92
      main/template/rainbow/gradebook/certificate_report.tpl
  59. 0 63
      main/template/rainbow/gradebook/my_certificates.tpl
  60. 0 96
      main/template/rainbow/gradebook/search.tpl
  61. 0 119
      main/template/rainbow/javascript/editor/ckeditor/config_js.tpl
  62. 0 5
      main/template/rainbow/javascript/editor/ckeditor/elfinder.tpl
  63. 0 6
      main/template/rainbow/javascript/editor/ckeditor/templates.tpl
  64. 0 35
      main/template/rainbow/javascript/editor/elfinder_standalone.tpl
  65. 0 3
      main/template/rainbow/layout/blank.tpl
  66. 5 40
      main/template/rainbow/layout/head.tpl
  67. 25 30
      main/template/rainbow/layout/hot_course_item.tpl
  68. 2 2
      main/template/rainbow/layout/hot_course_item_popup.tpl
  69. 10 29
      main/template/rainbow/layout/hot_courses.tpl
  70. 0 47
      main/template/rainbow/layout/layout_1_col.tpl
  71. 43 150
      main/template/rainbow/layout/layout_2_col.tpl
  72. 0 24
      main/template/rainbow/layout/layout_3_col.tpl
  73. 0 16
      main/template/rainbow/layout/no_layout.tpl
  74. 61 49
      main/template/rainbow/layout/page.tpl
  75. 15 4
      main/template/rainbow/layout/page_body.tpl
  76. 29 7
      main/template/rainbow/layout/page_footer.tpl
  77. 8 5
      main/template/rainbow/layout/page_header.tpl
  78. 0 26
      main/template/rainbow/layout/show_footer.tpl
  79. 0 11
      main/template/rainbow/layout/show_header.tpl
  80. 0 17
      main/template/rainbow/layout/welcome_to_course.tpl
  81. 0 24
      main/template/rainbow/learnpath/impress.tpl
  82. 0 426
      main/template/rainbow/learnpath/list.tpl
  83. 0 1
      main/template/rainbow/learnpath/lp_upload_audio.tpl
  84. 0 133
      main/template/rainbow/learnpath/record_voice.tpl
  85. 0 66
      main/template/rainbow/learnpath/report.tpl
  86. 0 82
      main/template/rainbow/learnpath/scorm_list.tpl
  87. 0 16
      main/template/rainbow/link/edit_category.tpl
  88. 0 16
      main/template/rainbow/link/edit_link.tpl
  89. 0 343
      main/template/rainbow/link/index.tpl
  90. 0 71
      main/template/rainbow/mail_editor/email_link.js.tpl
  91. 0 36
      main/template/rainbow/my_space/accessoverview.tpl
  92. 0 33
      main/template/rainbow/my_space/works_in_session_report.tpl
  93. 0 35
      main/template/rainbow/sequence_resource/session_requirements.tpl
  94. 0 251
      main/template/rainbow/session/about.tpl
  95. 0 106
      main/template/rainbow/session/resume_session.tpl
  96. 0 44
      main/template/rainbow/skill/badge.tpl
  97. 0 717
      main/template/rainbow/skill/badge_create.tpl
  98. 0 46
      main/template/rainbow/skill/badge_list.tpl
  99. 0 24
      main/template/rainbow/skill/criteria.tpl
  100. 0 145
      main/template/rainbow/skill/issued_all.tpl

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 12
app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_BACKUP_9396.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 11
app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_BASE_9396.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 11
app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_LOCAL_9396.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 11
app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min_REMOTE_9396.js


+ 45 - 88
app/Resources/public/css/editor.css

@@ -1,4 +1,6 @@
 /*
+    Deprecated stylesheet. Use document.css.
+
     Theme Name: Frame Scorm
     URI Project: http://www.chamilo.org
     Description: Styles main base of Chamilo LMS appearance, works with Bootstrap 3.0.x
@@ -8,6 +10,7 @@
 */
 
 @import url(../assets/fontawesome/css/font-awesome.min.css);
+@import url(../assets/bootstrap/dist/css/bootstrap.min.css);
 
 @font-face {
   font-family: 'Open Sans';
@@ -36,10 +39,10 @@
 
 
 body{
-    color: #162a83;
+    color: #666;
     font-family: 'Open Sans', sans-serif;
     line-height: 30px;
-   
+
 }
 .ck{
     display: block;
@@ -73,7 +76,11 @@ body{
     padding: 2% 3%;
     line-height: 20px;
 }
-
+.ck-title{
+    display: block;
+    font-weight: bold;
+    color: #000;
+}
 .ck-title2{
     padding-top: 0;
     margin-top: 0;
@@ -83,61 +90,29 @@ body{
 }
 .ck-title2:after{
     background-color:#E95839;
-    margin: 10px 0px 0px;
+    margin: 10px 0 0;
     width: 50px;
     height: 2px;
     display: block;
     content: "";
-    
-}
-.ck-parcours{
-    font-family: 'Verdana';
-    font-size: 18px;
-    font-weight: bold;
-    color: #162a83;
-}
-.ck-etape{
-    font-family: 'Verdana';
-    font-size: 14px;
-    font-weight: bold;
-    color: #162a83;
-}
-.ck-titre{
-    font-family: 'Verdana';
-    font-size: 30px;
-    color: #162a83;
-}
-.ck-texte{
-    font-family: 'Verdana';
-    font-size: 14px;
-    color: #162a83;
-}
-.ck-source{
-    font-family: 'Verdana';
-    font-size: 12px;
-    color: #162a83;
-}
-.ck-consignes{
-    font-family: 'Verdana';
-    font-size: 14px;
-    font-weight: bold;
-    color: #162a83;
+
 }
+
 figure .image.alignleft{
     margin: 0 20px 20px 0;
 }
 figure .image.alignright{
-    margin: 0 20px 0px 20px;
+    margin: 0 20px 0 20px;
 }
 figure .image{
-    margin: 0 20px 0px 20px;
+    margin: 0 20px 0 20px;
 }
-figure figcaption{   
+figure figcaption{
     text-align: left;
     background-color: #f3f3f3;
-    padding-top: 0px;
-    margin: 0px;
-    border-radius: 0px;
+    padding-top: 0;
+    margin: 0;
+    border-radius: 0;
     padding-left: 5px;
 }
 figure{
@@ -170,28 +145,30 @@ blockquote p {
     background-color: yellow;
 }
 /* line horizontal separation */
-.ck-title {
-    border-top: 1px solid #84bd00;
-    display: inline-block;
-    width: 100%;
-    padding-top: 15px;
-    font-weight: normal;
-    font-size: 25px;
+.ck-style1 {
+    height: 6px;
+    background: url(../../main/img/document/hr-1.png) repeat-x 0 0;
+    border: 0;
 }
 .ck-style2 {
     height: 6px;
     background: url(../../main/img/document/hr-2.png) repeat-x 0 0;
     border: 0;
 }
-.ck-title3 { 
-  border-top: 1px solid #84bd00;
+.ck-style3 {
+  border-top: 1px dashed #8c8b8b;
+}
+.ck-style3:after {
+  content: '\002702';
   display: inline-block;
-  width: 100%;
-  padding-top: 15px;
-  font-weight: bold;
-  font-size: 16px;
-} 
-
+  position: relative;
+  top: -12px;
+  left: 40px;
+  padding: 0 3px;
+  background: #FFF;
+  color: #8c8b8b;
+  font-size: 18px;
+}
 .alert {
   padding: 15px;
   margin-bottom: 20px;
@@ -226,14 +203,10 @@ blockquote p {
 .alert-success .alert-link {
   color: #2b542c;
 }
-.result-body .exercise-message .alert-info {
-  color: #FFFFFF !important;
-  background-color: #84bd00 !important;
-  border-color: #84bd00 !important;
-  border-radius: 0;
-}
-.result-body .exercise-message .alert-info p span{
-    color: #FFFFFF !important;
+.alert-info {
+  color: #31708f;
+  background-color: #d9edf7;
+  border-color: #bce8f1;
 }
 .alert-info hr {
   border-top-color: #a6e1ec;
@@ -264,7 +237,6 @@ blockquote p {
   color: #843534;
 }
 .img-responsive {
-  display: block;
   max-width: 100%;
   height: auto;
 }
@@ -293,28 +265,13 @@ blockquote p {
     vertical-align: text-bottom;
 }
 
+.text-center .img-responsive {
+    margin-left: auto;
+    margin-right: auto;
+}
+
 @media (max-width: 767px) {
     .img-responsive {
         display: block;
     }
 }
-
-.result-body .alert.alert-info{
-    background: none;
-    color: #162A83;
-    border:none;
-    border-top: 1px solid #84BD00;
-}
-.result-body .alert.alert-info p{
-    padding-bottom: 10px;
-}
-.result-body .alert.alert-info .btn.btn-info {
-    color: #fff;
-    background-color: #84BD00;
-    border-color: #84BD00;
-}
-.result-body .alert.alert-info .btn.btn-info:hover {
-    color: #fff;
-    background-color: #772583;
-    border-color: #772583;
-}

+ 6 - 0
index.php

@@ -21,6 +21,12 @@ if ($allow) {
 
 // The section (for the tabs).
 $this_section = SECTION_CAMPUS;
+$includeFile = !empty($_GET['include']);
+if ($includeFile) {
+    $this_section = SECTION_INCLUDE;
+} elseif (api_get_configuration_value('plugin_redirection_enabled')) {
+    RedirectionPlugin::redirectUser(api_get_user_id());
+}
 
 $header_title = null;
 if (!api_is_anonymous()) {

+ 0 - 60
main/template/rainbow/admin/career_dashboard.tpl

@@ -1,60 +0,0 @@
-
-{{ actions }}
-
-{{ form_filter }}
-
-{% for item in data %}
-<div id="career-{{ item.id }}" class="career panel panel-default">
-    <div  class="panel-heading">
-        <h4><a href="{{ _p.web }}main/admin/careers.php?action=edit&id={{ item.id }}">{{ item.name }}</a></h4>
-    </div>
-    <div class="panel-body">
-        {{ item.description }}
-        <table class="table promotions">
-            <thead class="title">
-                <th>{{ 'Promotions' | get_lang }}</th>
-                <th>{{ 'StudyCycle' | get_lang }} </th>
-                <th>{{ 'Courses' | get_lang }} </th>
-            </thead>
-        {% for promotions in item.career %}
-            {% for prom in promotions %}
-                {% set line = prom.sessions|length + 1 %}
-                <tr>
-                    
-                    <td class="promo" rowspan="{{ line }}">
-                        <h4 id="promotion-id-{{ prom.id }}">
-                            <a title="{{ prom.name }}" href="{{ _p.web }}main/admin/promotions.php?action=edit&id={{ prom.id }}">
-                                {{ prom.name }}
-                            </a>
-                        </h4>
-                    </td>
-                    {% if line == 1 %}
-                    <td>&nbsp;</td><td>&nbsp;</td>
-                    {% endif %}
-                </tr>
-                {% for session in prom.sessions %}
-                {% set sessionid = session.data.id %}
-                    <tr>
-                        <td class="cycles">
-                            <h4 id="session-id-{{ sessionid }}">
-                                <a title="{{ session.data.name }}" href="{{ _p.web }}main/session/resume_session.php?id_session={{ sessionid }}">
-                                    {{ session.data.name }}
-                                </a>
-                            </h4>
-                        </td>
-                        <td class="courses">
-                            <ul>
-                            {% for course in session.courses %}
-                            <li><a href="{{ _p.web }}courses/{{ course.directory }}/index.php?id_session={{ sessionid }}" title="{{ course.title }}">{{ course.title }}</a></li>
-                            {% endfor %}
-                            </ul>
-                        </td>
-                    </tr>
-                {% endfor %}
-            {% endfor %}
-        {% endfor %}
-        </table>
-    </div>
-</div>
-{% endfor %}
-

+ 0 - 23
main/template/rainbow/admin/email_tester.tpl

@@ -1,23 +0,0 @@
-<div class="row">
-    {% if errors is empty %}
-    <div class="col-md-12">
-        {{ form }}
-    </div>
-    {% else %}
-        <div class="col-md-6">
-            {{ form }}
-        </div>
-        <div class="col-md-6">
-            <h4 class="page-header">{{ 'Errors'|get_lang }}</h4>
-            <ul>
-                {% for error in errors %}
-                    <li>
-                        {{ 'Email: %s. %s ago'|format(error.mail, error.time) }}
-                        <pre>{{ error.reason|replace({'\n': '<br>'}) }}</pre>
-                    </li>
-                {% endfor %}
-            </ul>
-        </div>
-    {% endif %}
-</div>
-

+ 0 - 316
main/template/rainbow/admin/resource_sequence.tpl

@@ -1,316 +0,0 @@
-{% extends template ~ "/layout/layout_1_col.tpl" %}
-
-{% block content %}
-    <script>
-        var url = '{{ _p.web_ajax }}sequence.ajax.php';
-        var parentList = [];
-        var resourceId = 0;
-        var sequenceId = 0;
-
-        function useAsReference(type, sequenceId, itemId) {
-            var id = itemId || $("#item option:selected" ).val();
-
-            sequenceId = $("#sequence_id option:selected" ).val();
-
-            // Cleaning parent list.
-            parentList = [];
-
-            // Check if data exists and load parents
-            $.ajax({
-                url: url + '?a=load_resource&load_resource_type=parent&id=' + id + '&type='+type+'&sequence_id='+sequenceId,
-                success: function (data) {
-                    if (data) {
-                        var loadingResources = new Array(),
-                            listLoaded = data.split(',');
-
-                        listLoaded.forEach(function(value) {
-                            var loadResource = $.ajax(url, {
-                                data: {
-                                    a: 'get_icon',
-                                    id: value,
-                                    type: type,
-                                    sequence_id: sequenceId,
-                                    show_delete: 1
-                                },
-                                success: function() {
-                                    parentList.push(value);
-                                }
-                            });
-
-                            loadingResources.push(loadResource);
-                        });
-
-                        if (loadingResources.length) {
-                            $.when.apply($, loadingResources).done(function() {
-                                if (loadingResources.length === 1) {
-                                    $('#parents').append(arguments[0]);
-
-                                    return;
-                                }
-
-                                var i;
-
-                                for (i = 0; i < arguments.length; i++) {
-                                    $('#parents').append(arguments[i][0]);
-
-                                    if (i !== arguments.length - 1) {
-                                        $('#parents').append('<em class="fa fa-plus fa-3x sequence-plus-icon"></em>');
-                                    }
-                                }
-                            });
-                        }
-                    }
-                }
-            });
-
-            // Check if data exists and load children
-            $.ajax({
-                url: url + '?a=load_resource&load_resource_type=children&id=' + id + '&type='+type+'&sequence_id='+sequenceId,
-                success: function (data) {
-                    if (data) {
-                        var listLoaded = data.split(',');
-                        listLoaded.forEach(function(value) {
-                            $.ajax({
-                                url: url + '?a=get_icon&id='+ value+'&type='+type+'&sequence_id='+sequenceId,
-                                success:function(data){
-                                    $('#children').append(data);
-                                }
-                            });
-                        });
-                    }
-                }
-            });
-
-            // Cleaning
-            $('#parents').html('');
-            $('#children').html('');
-
-            $.ajax({
-                url: url + '?a=get_icon&id='+ id+'&type='+type+'&sequence_id='+sequenceId,
-                success:function(data){
-                    $('#resource').html(data);
-                    parentList.push(id);
-                    resourceId = id;
-                }
-            });
-
-            $.ajax({
-                url: url + '?a=graph&type='+type+'&sequence_id='+sequenceId,
-                success: function (data) {
-                    $('#show_graph').html(data);
-                }
-            });
-        }
-
-        $(document).ready(function() {
-            var type = $('input[name="sequence_type"]').val();
-            // By default "set requirement" is set to false
-
-            $('button[name="set_requirement"]').prop('disabled', true);
-            $('#requirements').prop('disabled', true);
-            $('button[name="save_resource"]').prop('disabled', true);
-
-            sequenceId = $("#sequence_id option:selected" ).val();
-
-            // Load parents
-            $('#parents').on('click', 'a.delete_vertex, a.undo_delete', function(e) {
-                e.preventDefault();
-
-                var self = $(this),
-                    parent = self.parent(),
-                    vertexId = self.attr('data-id') || 0;
-
-                if (!vertexId) {
-                    return;
-                }
-
-                if (self.is('.delete_vertex')) {
-                    self.hide();
-                    parent.find('.undo_delete').show();
-
-                    self.parents('.parent').addClass('parent-deleted');
-                } else if (self.is('.undo_delete')) {
-                    self.hide();
-                    parent.find('.delete_vertex').show();
-
-                    self.parents('.parent').removeClass('parent-deleted');
-                }
-            });
-
-            $('#parents, #resource, #children').on('click', '.parent .sequence-id', function(e) {
-                e.preventDefault();
-
-                var itemId = $(this).parents('.parent').data('id') || 0;
-
-                if (!itemId) {
-                    return;
-                }
-
-                $('button[name="set_requirement"]').prop('disabled', false);
-                $('#requirements').prop('disabled', false);
-                $('button[name="save_resource"]').prop('disabled', false);
-
-                useAsReference(type, sequenceId, itemId);
-            });
-
-            // Button use as reference
-
-            $('button[name="use_as_reference"]').click(function() {
-                $('button[name="set_requirement"]').prop('disabled', false);
-                $('#requirements').prop('disabled', false);
-                $('#requirements').selectpicker('refresh');
-                $('button[name="save_resource"]').prop('disabled', false);
-
-                useAsReference(type, sequenceId);
-
-                return false;
-            });
-
-            // Button set requirement
-
-            $('button[name="set_requirement"]').click(function() {
-                $("#requirements option:selected" ).each(function() {
-                    var id = $(this).val();
-                    if ($.inArray(id, parentList) == -1) {
-                        $.ajax({
-                            url: url + '?a=get_icon&id=' + id + '&type='+type+'&sequence_id='+sequenceId,
-                            success: function (data) {
-                                $('#parents').append(data);
-                                parentList.push(id);
-                            }
-                        });
-                    }
-                });
-                return false;
-            });
-
-            // Button save
-            $('button[name="save_resource"]').click(function(e) {
-                e.preventDefault();
-
-                var self = $(this).prop('disabled', true);
-
-                // parse to integer the parents IDs
-                parentList = parentList.map(function(id) {
-                    return parseInt(id);
-                });
-
-                var deletingVertex = new Array();
-
-                // Delete all vertex confirmed to be deleted.
-                $('#parents .parent.parent-deleted').each(function() {
-                    var self = $(this),
-                        vertexId = self.data('id') || 0,
-                        deleteVertex;
-
-                    deleteVertex = $.ajax(url, {
-                        data: {
-                            a: 'delete_vertex',
-                            id: resourceId,
-                            vertex_id: vertexId,
-                            type: type,
-                            sequence_id: sequenceId
-                        },
-                        success: function() {
-                            parentList.splice($.inArray(vertexId, parentList), 1);
-                        }
-                    });
-
-                    deletingVertex.push(deleteVertex);
-                });
-
-                $.when.apply($, deletingVertex).done(function() {
-                    if (resourceId != 0) {
-                        var params = decodeURIComponent(parentList);
-
-                        var savingResource = $.ajax(url, {
-                            data: {
-                                a: 'save_resource',
-                                id: resourceId,
-                                parents: params,
-                                type: type,
-                                sequence_id: sequenceId
-                            }
-                        });
-
-                        $.when(savingResource).done(function(response) {
-                            $('#global-modal')
-                                    .find('.modal-dialog')
-                                    .removeClass('modal-lg')
-                                    .addClass('modal-sm');
-                            $('#global-modal')
-                                    .find('.modal-body')
-                                    .html(response);
-                            $('#global-modal').modal('show');
-
-                            self.prop('disabled', false);
-
-                            useAsReference(type, sequenceId);
-                        });
-                    }
-                });
-            });
-
-            $('select#sequence_id').on('change', function() {
-                sequenceId = $(this).val();
-            });
-        });
-    </script>
-    <div class="panel panel-default">
-        <div class="panel-body">
-            <div class="section-title-sequence">{{ 'SequenceSelection' | get_lang }}</div>
-            <div class="row">
-                <div class="col-md-6">
-                    {{ create_sequence }}
-                </div>
-                <div class="col-md-6">
-                    {{ select_sequence }}
-                </div>
-            </div>
-        </div>
-    </div>
-
-    <div class="panel panel-default">
-        <div class="panel-body">
-            <div class="section-title-sequence">{{ 'SequenceConfiguration' | get_lang }}</div>
-            <div class="row">
-
-                {{ configure_sequence }}
-            </div>
-
-        </div>
-    </div>
-    <div class="panel panel-default">
-        <div class="panel-body">
-            <div class="section-title-sequence">{{ 'SequencePreview' | get_lang }}</div>
-            <div class="row">
-                <div class="col-md-9">
-                    <h4 class="title-sequence">
-                        {{ 'ItemsTheReferenceDependsOn' | get_lang }}
-                    </h4>
-                    <div id="parents">
-                    </div>
-                    <div class="border-sequence">
-                        <div class="arrow-sequence"></div>
-                    </div>
-                    <h4 class="title-sequence">{{ 'Item' | get_lang }}</h4>
-                    <div id="resource">
-                    </div>
-                    <div class="border-sequence">
-                        <div class="arrow-sequence"></div>
-                    </div>
-                    <h4 class="title-sequence">{{ 'Dependencies' | get_lang }}</h4>
-                    <div id="children">
-                    </div>
-
-                </div>
-                <div class="col-md-3">
-                    <h4 class="title-sequence">{{ 'GraphDependencyTree' | get_lang }}</h4>
-                    <div id="show_graph"></div>
-                </div>
-
-            </div>
-            {{ save_sequence }}
-        </div>
-    </div>
-{% endblock %}

+ 0 - 108
main/template/rainbow/admin/settings_index.tpl

@@ -1,108 +0,0 @@
-<script>
-    $(document).ready(function () {
-        $.ajax({
-            url: '{{ web_admin_ajax_url }}?a=version',
-            success: function (version) {
-                $(".admin-block-version").html(version);
-            }
-        });
-
-        {% if _u.is_admin %}
-            (function (CKEDITOR) {
-                CKEDITOR.replace('extra_content');
-    
-                var extraContentEditor = CKEDITOR.instances.extra_content;
-    
-                $('button.admin-edit-block').on('click', function (e) {
-                    e.preventDefault();
-    
-                    var $self = $(this);
-    
-                    var extraContent = $.ajax('{{ _p.web_ajax }}admin.ajax.php', {
-                        type: 'post',
-                        data: {
-                            a: 'get_extra_content',
-                            block: $self.data('id')
-                        }
-                    });
-    
-                    $.when(extraContent).done(function (content) {
-                        extraContentEditor.setData(content);
-                        $('#extra-block').val($self.data('id'));
-                        $('#modal-extra-title').text($self.data('label'));
-    
-                        $('#modal-extra').modal('show');
-                    });
-                });
-            })(window.CKEDITOR);
-        {% endif %}
-    });
-</script>
-
-<section id="settings">
-    {% set columns = 2 %}
-    {% for block_item in blocks %}
-        {% if block_item.items %}
-            <div id="tabs-{{ loop.index }}" class="settings-block col-md-6">
-                <div class="panel panel-default {{ block_item.class }}">
-                    <div class="panel-heading">
-                        {{ block_item.icon }} {{ block_item.label }}
-                        {% if block_item.editable and _u.is_admin %}
-                            <button type="button" class="btn btn-link btn-sm admin-edit-block pull-right"
-                                    data-label="{{ block_item.label }}" data-id="{{ block_item.class }}">
-                                <img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}"
-                                     title="{{ "Edit"|get_lang }}"/>
-                            </button>
-                        {% endif %}
-                    </div>
-                    <div class="panel-body">
-                        <div style="display: block;">
-                            {{ block_item.search_form }}
-                        </div>
-                        {% if block_item.items is not null %}
-                            <div class="block-items-admin">
-                                <ul class="list-items-admin">
-                                    {% for url in block_item.items %}
-                                        <li>
-                                            <a href="{{ url.url }}">
-                                                {{ url.label }}
-                                            </a>
-                                        </li>
-                                    {% endfor %}
-                                </ul>
-                            </div>
-                        {% endif %}
-
-                        {% if block_item.extra is not null %}
-                            <div>
-                                {{ block_item.extra }}
-                            </div>
-                        {% endif %}
-
-                        {% if block_item.extraContent %}
-                            <div>{{ block_item.extraContent }}</div>
-                        {% endif %}
-                    </div>
-                </div>
-            </div>
-        {% endif %}
-    {% endfor %}
-</section>
-
-{% if _u.is_admin %}
-    <div class="modal fade" id="modal-extra">
-        <div class="modal-dialog">
-            <div class="modal-content">
-                <div class="modal-header">
-                    <button type="button" class="close" data-dismiss="modal" aria-label="{{ 'Close'|get_lang }}">
-                        <span aria-hidden="true">&times;</span>
-                    </button>
-                    <h4 class="modal-title" id="modal-extra-title">{{ 'Blocks'|get_lang }}</h4>
-                </div>
-                <div class="modal-body">
-                    {{ extraDataForm }}
-                </div>
-            </div>
-        </div>
-    </div>
-{% endif %}

+ 0 - 30
main/template/rainbow/admin/skill.tpl

@@ -1,30 +0,0 @@
-
-<h3>{{ 'Skills' | get_lang }}</h3>
-
-<ul>
-    <li>
-        <a href="{{ _p.web_main }}{{ 'admin/skill_profile.php' }}">
-            {{ 'AddProfile' | get_lang }}
-        </a>
-    </li>
-
-    <li>
-        <a href="{{ _p.web_main }}{{ 'admin/skill_level.php' }}">
-            {{ 'AddLevel' | get_lang }}
-        </a>
-    </li>
-</ul>
-
-
-{{ form }}
-
-
-
-{% for item in list %}
-    <h4>{{ item.name }} ({{ item.shortCode }})
-        <a href="{{ _p.web_main }}admin/skill.php?action=edit&id={{ item.id }}">
-            <img src="{{ 'edit.png'|icon(22) }}">
-        </a>
-    </h4>
-    {{ item.profile }}
-{% endfor %}

+ 0 - 27
main/template/rainbow/admin/skill_level.tpl

@@ -1,27 +0,0 @@
-{{ form }}
-
-<table class="data_table">
-    <tr>
-        <th>{{ 'Name' | get_lang }}</th>
-        <th>{{ 'ShortName' | get_lang }}</th>
-
-        <th>{{ 'Profile' | get_lang }}</th>
-        <th>{{ 'Actions' | get_lang }}</th>
-    </tr>
-    {% for item in list %}
-        <tr>
-            <td>{{ item.name }}</td>
-            <td>{{ item.shortName }}</td>
-            <td> {{ item.profile }}</td>
-            <td>
-                <a href="{{ _p.web_main }}admin/skill_level.php?action=edit&id={{ item.id }}">
-                    <img src="{{ 'edit.png'|icon(22) }}">
-                </a>
-
-                <a href="{{ _p.web_main }}admin/skill_level.php?action=delete&id={{ item.id }}">
-                    <img src="{{ 'delete.png'|icon(22) }}">
-                </a>
-            </td>
-        </tr>
-    {% endfor %}
-</table>

+ 0 - 42
main/template/rainbow/admin/skill_profile.tpl

@@ -1,42 +0,0 @@
-{{ form }}
-
-{% for item in list %}
-
-    <h4>{{ item.name }}
-
-        {#<a href="{{ _p.web_main }}admin/skill_level.php?action=add_level&id={{ item.id }}">#}
-        {#<img src="{{ 'add.png'|icon(22) }}">#}
-        {#</a>#}
-
-        <a href="{{ _p.web_main }}admin/skill_profile.php?action=edit&id={{ item.id }}">
-            <img src="{{ 'edit.png'|icon(22) }}"> </a>
-
-        <a href="{{ _p.web_main }}admin/skill_profile.php?action=delete&id={{ item.id }}">
-            <img src="{{ 'delete.png'|icon(22) }}">
-        </a>
-    </h4>
-
-    <ul>
-        {% for level in item.levels %}
-            <li>
-                {{ level }}
-
-                {% if loop.first %}
-                    <img src="{{ 'up_na.png'|icon(22) }}">
-                {% else %}
-                    <a href="{{ _p.web_main }}admin/skill_profile.php?action=move_up&level_id={{ level.id }}&id={{ item.id }}">
-                        <img src="{{ 'up.png'|icon(22) }}">
-                    </a>
-                {% endif %}
-
-                {% if loop.last %}
-                    <img src="{{ 'down_na.png'|icon(22) }}">
-                {% else %}
-                    <a href="{{ _p.web_main }}admin/skill_profile.php?action=move_down&level_id={{ level.id }}&id={{ item.id }}">
-                        <img src="{{ 'down.png'|icon(22) }}">
-                    </a>
-                {% endif %}
-            </li>
-        {% endfor %}
-    </ul>
-{% endfor %}

+ 0 - 53
main/template/rainbow/admin/teacher_time_report.tpl

@@ -1,53 +0,0 @@
-<script>
-$(document).on('ready', function () {
-    $('#course').on('change', function () {
-        $('#session').prop('selectedIndex', 0);
-        $('#teacher').prop('selectedIndex', 0);
-    });
-
-    $('#session').on('change', function () {
-        $('#course').prop('selectedIndex', 0);
-        $('#teacher').prop('selectedIndex', 0);
-    });
-
-    $('#teacher').on('change', function () {
-        $('#course').prop('selectedIndex', 0);
-        $('#session').prop('selectedIndex', 0);
-    });
-
-    $('#daterange').on('apply.daterangepicker', function (ev, picker) {
-        $('[name="from"]').val(picker.startDate.format('YYYY-MM-DD'));
-        $('[name="until"]').val(picker.endDate.format('YYYY-MM-DD'));
-    }).on('cancel.daterangepicker', function (ev, picker) {
-        $('#daterange, [name="from"], [name="until"]').val('');
-    });
-});
-</script>
-
-{{ form }}
-<h3 class="page-header">{{ report_title }} <small>{{ report_sub_title }}</small></h3>
-
-<table class="table">
-    <thead>
-        <tr>
-            {% if with_filter %}
-                <th>{{ 'Session' | get_lang }}</th>
-                <th>{{ 'Course' | get_lang }}</th>
-            {% endif %}
-            <th>{{ 'Coach' | get_lang }}</th>
-            <th class="text-center">{{ 'TotalTime' | get_lang }}</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for row in rows %}
-            <tr>
-                {% if with_filter %}
-                    <td>{{ row.session ? row.session.name : '&nbsp' }}</td>
-                    <td>{{ row.course.name }}</td>
-                {% endif %}
-                <td>{{ row.coach.complete_name }} ({{ row.coach.username}})</td>
-                <td class="text-center">{{ row.total_time }}</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>

+ 0 - 73
main/template/rainbow/admin/teachers_time_by_session_report.tpl

@@ -1,73 +0,0 @@
-{{ form }}
-
-{% if session %}
-    <h3 class="page-header">{{ session.name }}</h3>
-    <div class="table-responsive">
-        <table class="table table-hover table-striped">
-            <thead>
-                <tr>
-                    <th>{{ 'OfficialCode'|get_lang }}</th>
-                    <th>{{ 'CoachName'|get_lang }}</th>
-                    <th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
-                    <th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
-                    <th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
-
-                    {% for course_code in courses %}
-                        <th>{{ course_code }}</th>
-                        <th>{{ 'NumberOfWorks'|get_lang }}</th>
-                        <th>{{ 'LastWork'|get_lang }}</th>
-                        <th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
-                    {% endfor %}
-                </tr>
-            </thead>
-            <tbody>
-                {% for user in users %}
-                    <tr>
-                        {% for data in user %}
-                            <td>{{ data }}</td>
-                        {% endfor %}
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-
-    {% for row in data %}
-        <div class="table-responsive">
-            <table class="table table-hover table-striped">
-                <thead>
-                    <tr>
-                        <th>{{ 'OfficialCode'|get_lang }}</th>
-                        <th>{{ 'Name'|get_lang }}</th>
-                        <th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
-                        <th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
-                        <th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
-
-                        {% for course in row.courses %}
-                            <th>{{ course.code }}</th>
-                            <th>{{ 'NumberOfWorks'|get_lang }}</th>
-                            <th>{{ 'LastWork'|get_lang }}</th>
-                            <th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
-                        {% endfor %}
-                    </tr>
-                </thead>
-                <tbody>
-                    <tr>
-                        <td>{{ row.code }}</td>
-                        <td>{{ row.complete_name }}</td>
-                        <td>{{ row.time_in_platform }}</td>
-                        <td>{{ row.first_connection }}</td>
-                        <td>{{ row.last_connection }}</td>
-
-                        {% for course in row.courses %}
-                            <td>{{ course.number_of_students }}</td>
-                            <td>{{ course.number_of_works }}</td>
-                            <td>{{ course.last_work }}</td>
-                            <td>{{ course.time_spent_of_course }}</td>
-                        {% endfor %}
-                    </tr>
-                </tbody>
-            </table>
-        </div>
-    {% endfor %}
-{% endif %}

+ 0 - 64
main/template/rainbow/agenda/event_list.tpl

@@ -1,64 +0,0 @@
-{{ agenda_actions }}
-
-
-<table class="data_table">
-    <tr>
-        <th>
-            {{ 'StartDate'| get_lang }}
-        </th>
-        <th>
-            {{ 'EndDate'| get_lang }}
-        </th>
-        <th>
-            {{ 'Title' | get_lang }}
-        </th>
-        {% if is_allowed_to_edit and show_action %}
-            <th>
-                {{ 'Actions' | get_lang }}
-            </th>
-        {% endif %}
-    </tr>
-    {% for event in agenda_events %}
-        <tr>
-            <td style="width:20%">
-                {{ event.start_date_localtime }}
-            </td>
-            <td style="width:20%">
-                {% if event.allDay %}
-                    {{ 'AllDay' | get_lang }}
-                {% else %}
-                    {{ event.end_date_localtime }}
-                {% endif %}
-            </td>
-            <td style="width:50%">
-                {{ event.title }}
-
-                {% if event.description %}
-                    <p>{{ event.description}}</p>
-                {% endif %}
-
-                {% if event.comment %}
-                    <p>{{ event.comment}}</p>
-                {% endif %}
-
-                {{ event.attachment }}
-            </td>
-
-            {% if is_allowed_to_edit and show_action %}
-                <td>
-                    {% if event.visibility == 1 %}
-                        <a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=0&id={{ event.real_id }}&type={{ event.type }}">
-                            <img title="{{ 'Invisible' }}" src="{{'visible.png'|icon(32)}} " width="32" height="32">
-                        </a>
-                    {% else %}
-                        {% if event.type == 'course' or event.type == 'session' %}
-                            <a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=1&id={{ event.real_id }}&type={{ event.type }}">
-                                <img title="{{ 'Visible' }}" src="{{'invisible.png'|icon(32)}} " width="32" height="32">
-                            </a>
-                        {% endif %}
-                    {% endif %}
-                </td>
-            {% endif %}
-        </tr>
-    {% endfor %}
-</table>

+ 0 - 768
main/template/rainbow/agenda/month.tpl

@@ -1,768 +0,0 @@
-<style>
-.fc-day-grid-event > .fc-content {
-    white-space: normal;
-}
-</style>
-<script>
-function checkLength( o, n, min, max ) {
-    if ( o.val().length > max || o.val().length < min ) {
-        o.addClass( "ui-state-error" );
-        /*updateTips( "Length of " + n + " must be between " +
-            min + " and " + max + "." );*/
-        return false;
-    } else {
-        return true;
-    }
-}
-function clean_user_select() {
-    //Cleans the selected attr
-    $("#users_to_send").val('').trigger("chosen:updated");
-    /*$('#users_to_send')
-        .find('option')
-        .removeAttr('selected')
-        .end();*/
-}
-
-var region_value = '{{ region_value }}';
-
-$(document).ready(function() {
-    // Reset button.
-    $("button[type=reset]").click(function() {
-        $("#session_id").find('option').removeAttr("selected");
-    });
-
-	$("#dialog-form").dialog({
-		autoOpen : false,
-		modal : false,
-		width : 580,
-		height : 480,
-        zIndex : 20000 // added because of qtip2
-   	});
-
-    $("#simple-dialog-form").dialog({
-		autoOpen : false,
-		modal : false,
-		width : 580,
-		height : 480,
-        zIndex : 20000 // added because of qtip2
-   	});
-
-	var title = $("#title"),
-	content = $("#content"),
-	allFields = $([]).add( title ).add( content ), tips = $(".validateTips");
-
-    $("#select_form_id_search").change(function() {
-        var temp ="&user_id="+$("#select_form_id_search").val();
-        var position =String(window.location).indexOf("&user");
-        var url = String(window.location).substring(0,position)+temp;
-        if (position > 0) {
-            window.location.replace(url);
-        } else {
-            url = String(window.location)+temp;
-            window.location.replace(url);
-        }
-    });
-
-    var CustomListViewGrid  = ListViewGrid.extend({
-        fgSegHtml: function(seg) {
-            var view = this.view;
-            var classes = [ 'fc-list-item' ].concat(this.getSegCustomClasses(seg));
-            var bgColor = this.getSegBackgroundColor(seg);
-            var event = seg.event;
-            var url = event.url;
-            var timeHtml;
-
-            if (event.allDay) {
-                timeHtml = view.getAllDayHtml();
-            }
-            else if (view.isMultiDayEvent(event)) { // if the event appears to span more than one day
-                if (seg.isStart || seg.isEnd) { // outer segment that probably lasts part of the day
-                    timeHtml = htmlEscape(this.getEventTimeText(seg));
-                }
-                else { // inner segment that lasts the whole day
-                    timeHtml = view.getAllDayHtml();
-                }
-            }
-            else {
-                // Display the normal time text for the *event's* times
-                timeHtml = htmlEscape(this.getEventTimeText(event));
-            }
-
-            if (url) {
-                classes.push('fc-has-url');
-            }
-
-            return '<tr class="' + classes.join(' ') + '">' +
-                (this.displayEventTime ?
-                    '<td class="fc-list-item-time ' + view.widgetContentClass + '">' +
-                        (timeHtml || '') +
-                    '</td>' :
-                    '') +
-                '<td class="fc-list-item-marker ' + view.widgetContentClass + '">' +
-                    '<span class="fc-event-dot"' +
-                    (bgColor ?
-                        ' style="background-color:' + bgColor + '"' :
-                        '') +
-                    '></span>' +
-                '</td>' +
-                '<td class="fc-list-item-title ' + view.widgetContentClass + '">' +
-                    '<a' + (url ? ' href="' + htmlEscape(url) + '"' : '') + '>' +
-                        htmlEscape(seg.event.title || '') + (seg.event.description || '')
-                    '</a>' +
-                '</td>' +
-            '</tr>';
-        },
-
-        // render the event segments in the view
-        renderSegList: function(allSegs) {
-            var segsByDay = this.groupSegsByDay(allSegs); // sparse array
-            var dayIndex;
-            var daySegs;
-            var i;
-            var tableEl = $('<table class="fc-list-table"><tbody/></table>');
-            var tbodyEl = tableEl.find('tbody');
-            var eventList = new Array;
-            for (dayIndex = 0; dayIndex < segsByDay.length; dayIndex++) {
-                daySegs = segsByDay[dayIndex];
-                if (daySegs) { // sparse array, so might be undefined
-                    this.sortEventSegs(daySegs);
-                    for (i = 0; i < daySegs.length; i++) {
-                        var event = daySegs[i].event;
-                        if (jQuery.inArray(event.id, eventList) !== -1) {
-                            continue;
-                        }
-                        eventList.push(event.id);
-                         // append a day header
-                        tbodyEl.append(this.dayHeaderHtml(
-                            this.view.start.clone().add(dayIndex, 'days'),
-                            event
-                        ));
-
-                        tbodyEl.append(daySegs[i].el); // append event row
-                    }
-                }
-            }
-
-            this.el.empty().append(tableEl);
-        },
-        // generates the HTML for the day headers that live amongst the event rows
-        dayHeaderHtml: function(dayDate, event) {
-            var view = this.view;
-            var mainFormat = 'LL';
-            var altFormat = 'dddd';
-            var checkIfSame = true;
-            if (event.end) {
-                checkIfSame = event.end.format(mainFormat) == dayDate.format(mainFormat);
-            }
-
-            return '<tr class="fc-list-heading" data-date="' + dayDate.format('YYYY-MM-DD') + '">' +
-                '<td class="' + view.widgetHeaderClass + '" colspan="3">' +
-                    (mainFormat ?
-                        view.buildGotoAnchorHtml(
-                            dayDate,
-                            { 'class': 'fc-list-heading-main' },
-                            htmlEscape(dayDate.format(mainFormat)) // inner HTML
-                        ) :
-                        '') +
-
-                      ((checkIfSame == false && mainFormat) ?
-                        view.buildGotoAnchorHtml(
-                            dayDate,
-                            { 'class': 'fc-list-heading-main' },
-                            '&nbsp;-&nbsp; ' + htmlEscape(event.end.format(mainFormat)) // inner HTML
-                        ) :
-                        '') +
-
-                    (altFormat ?
-                        view.buildGotoAnchorHtml(
-                            dayDate,
-                            { 'class': 'fc-list-heading-alt' },
-                            htmlEscape(dayDate.format(altFormat)) // inner HTML
-                        ) :
-                        '') +
-                '</td>' +
-            '</tr>';
-        },
-    });
-
-	var FC = $.fullCalendar; // a reference to FullCalendar's root namespace
-    var View = ListView;      // the class that all views must inherit from
-    var CustomView;          // our subclass
-
-    CustomView = View.extend({ // make a subclass of View
-        initialize: function() {
-            this.grid = new CustomListViewGrid(this);
-            this.scroller = new Scroller({
-                overflowX: 'hidden',
-                overflowY: 'auto'
-            });
-        }
-    });
-
-    FC.views.CustomView = CustomView; // register our class with the view system
-
-	var calendar = $('#calendar').fullCalendar({
-		header: {
-			left: 'today,prev,next',
-			center: 'title',
-			right: 'month,agendaWeek,agendaDay,CustomView'
-		},
-        views: {
-            CustomView: { // name of view
-                buttonText: '{{ 'AgendaList' | get_lang | escape('js') }}',
-                duration: { month: 1 },
-                defaults: {
-                    'listDayAltFormat': 'dddd' // day-of-week is nice-to-have
-                }
-            },
-            month: {
-                'displayEventEnd' : true
-            }
-        },
-        locale: region_value,
-        {% if use_google_calendar == 1 %}
-            eventSources: [
-                // if you want to add more just add URL in this array
-                '{{ google_calendar_url }}',
-                {
-                    className: 'gcal-event' // an option!
-                }
-            ],
-        {% endif %}
-        defaultView: '{{ default_view }}',
-        firstHour: 8,
-        firstDay: 1,
-		selectable	: true,
-		selectHelper: true,
-        viewDisplay: function(view) {
-            /* When changing the view update the qtips */
-            /*var api = $('.qtip').qtip('api'); // Access the API of the first tooltip on the page
-            if (api) {
-                api.destroy();
-                //api.render();
-            }*/
-        },
-		// Add event
-		select: function(start, end, jsEvent, view) {
-            var start_date = start.format("YYYY-MM-DD h:mm");
-            var end_date = end.format("YYYY-MM-DD h:mm");
-            var diffDays = moment(end).diff(start, 'days');
-
-            var allDay = true;
-            if (end.hasTime()) {
-                allDay = false;
-            }
-
-			$('#visible_to_input').show();
-			$('#add_as_announcement_div').show();
-			$('#visible_to_read_only').hide();
-
-			// Cleans the selected attr
-		    clean_user_select();
-
-            // Sets the 1st item selected by default
-            $('#users_to_send option').eq(0).attr('selected', 'selected');
-
-			// Update chz-select
-			//$("#users_to_send").trigger("chosen:updated");
-			if ({{ can_add_events }} == 1) {
-				var url = '{{ web_agenda_ajax_url }}&a=add_event&start='+start.format("YYYY-MM-DD HH:mm:00")+'&end='+end.format("YYYY-MM-DD HH:mm:00")+'&all_day='+allDay+'&view='+view.name;
-			    var start_date_value = start.format('{{ js_format_date }}');
-                $('#start_date').html(start_date_value);
-
-                if (diffDays > 1) {
-                    $('#start_date').html('');
-                    var end_date_value = '';
-                    if (end) {
-                        var clone = end.clone();
-                        end_date_value = clone.subtract(1, 'days').format('{{ js_format_date }}');
-                    }
-                    $('#end_date').html(start_date_value + " - " + end_date_value);
-                } else if (diffDays == 0) {
-                    var start_date_value = start.format('ll');
-                    var startTime = start.format('LT');
-                    var endTime = end.format('LT');
-                    $('#start_date').html('');
-                    $('#end_date').html(start_date_value + " (" + startTime + " - " + endTime+") ");
-                } else {
-                    $('#end_date').html('');
-                }
-
-				$('#color_calendar')
-                    .html('{{ type_label | escape('js')}}')
-                    .removeClass('group_event')
-                    .addClass('label_tag')
-                    .addClass('{{ type_event_class | escape('js') }}')
-                    .css('background-color', '{{ type_event_color }}');
-
-                //It shows the CKEDITOR while Adding an Event
-                $('#cke_content').show();
-                //It Fixing a minor bug with textarea ckeditor.remplace
-                $('#content').css('display','none');
-                //Reset the CKEditor content that persist in memory
-                CKEDITOR.instances['content'].setData('');
-				allFields.removeClass("ui-state-error");
-				$("#dialog-form").dialog("open");
-				$("#dialog-form").dialog({
-					buttons: {
-						'{{ "Add" | get_lang }}' : function() {
-							var bValid = true;
-							bValid = bValid && checkLength(title, "title", 1, 255);
-
-                            //Update the CKEditor Instance to the remplaced textarea, ready to be serializable
-                            for ( instance in CKEDITOR.instances ) {
-                                CKEDITOR.instances[instance].updateElement();
-                            }
-
-							var params = $("#add_event_form").serialize();
-
-							$.ajax({
-								url: url+'&'+params,
-								success:function(data) {
-									var user = $('#users_to_send').val();
-                                    if (user) {
-                                        if (user.length > 1) {
-                                            user = 0;
-                                        } else {
-                                            user = user[0];
-                                        }
-                                        var user_length = String(user).length;
-                                        if (String(user).substring(0,1) == 'G') {
-                                            var user_id = String(user).substring(6,user_length);
-                                            var user_id = "G:"+user_id;
-                                        } else {
-                                            var user_id = String(user).substring(5,user_length);
-                                        }
-                                        var temp = "&user_id="+user_id;
-                                        var position = String(window.location).indexOf("&user");
-                                        var url = String(window.location).substring(0, position)+temp;
-                                        /*if (position > 0) {
-                                            window.location.replace(url);
-                                        } else {
-                                            url = String(window.location)+temp;
-                                            window.location.replace(url);
-                                        }*/
-                                    }
-
-                                    $("#title").val('');
-                                    $("#content").val('');
-                                    $("#comment").val('');
-
-                                    calendar.fullCalendar('refetchEvents');
-                                    calendar.fullCalendar('rerenderEvents');
-
-									$("#dialog-form").dialog('close');
-								}
-							});
-						}
-					},
-					close: function() {
-                        $("#title").val('');
-                        $("#content").val('');
-                        $("#comment").val('');
-					}
-				});
-
-				calendar.fullCalendar('unselect');
-                //Reload events
-                calendar.fullCalendar("refetchEvents");
-                calendar.fullCalendar("rerenderEvents");
-			}
-		},
-		eventRender: function(event, element) {
-            if (event.attachment) {
-                /*element.qtip({
-                    hide: {
-                        delay: 2000
-                    },
-		            content: event.attachment,
-		            position: { at:'top right' , my:'bottom right'}
-		        }).removeData('qtip'); // this is an special hack to add multiple qtip in the same target
-		        */
-            }
-			if (event.description) {
-                var comment = '';
-                if (event.comment) {
-                    comment = event.comment;
-                }
-
-				element.qtip({
-                    hide: {
-                        delay: 2000
-                    },
-		            content: event.description + ' ' + comment,
-		            position: { at:'top left' , my:'bottom left'}
-		        });
-			}
-	    },
-		eventClick: function(calEvent, jsEvent, view) {
-            var start = calEvent.start;
-            var end = calEvent.end;
-            var diffDays = moment(end).diff(start, 'days');
-            var endDateMinusOne = '';
-
-            if (end) {
-                var clone = end.clone();
-                endDateMinusOne = clone.subtract(1, 'days').format('{{ js_format_date }}');
-            }
-            var startDateToString = start.format("{{ js_format_date }}");
-
-			// Edit event.
-			if (calEvent.editable) {
-				$('#visible_to_input').hide();
-                $('#add_as_announcement_div').hide();
-
-                {% if type != 'admin' %}
-                    $('#visible_to_read_only').show();
-                    $("#visible_to_read_only_users").html(calEvent.sent_to);
-				{% endif %}
-
-                $('#color_calendar').html('{{ type_label | escape('js') }}');
-                $('#color_calendar').addClass('label_tag');
-                $('#color_calendar').removeClass('course_event');
-                $('#color_calendar').removeClass('personal_event');
-                $('#color_calendar').removeClass('group_event');
-                $('#color_calendar').addClass(calEvent.type+'_event');
-
-                // It hides the CKEDITOR while clicking an existing Event
-                $('#cke_content').hide();
-                $('#start_date').html(startDateToString);
-                if (diffDays > 1) {
-                    $('#end_date').html(' - ' + endDateMinusOne);
-                } else if (diffDays == 0) {
-                    var start_date_value = start.format('ll');
-                    var startTime = start.format('LT');
-                    var endTime = end.format('LT');
-                    $('#start_date').html('');
-                    $('#end_date').html(start_date_value + " (" + startTime + " - " + endTime+") ");
-                } else {
-                    $('#end_date').html('');
-                }
-
-                if ($("#title").parent().find('#title_edit').length == 0) {
-                    $("#title").parent().append('<div id="title_edit"></div>');
-                }
-
-                $("#title_edit").html(calEvent.title);
-
-                if ($("#content").parent().find('#content_edit').length == 0) {
-                    $("#content").parent().append('<div id="content_edit"></div>');
-                }
-                $("#content_edit").html(calEvent.description);
-
-                if ($("#comment").parent().find('#comment_edit').length == 0) {
-                    $("#comment").parent().append('<div id="comment_edit"></div>');
-                }
-
-                if (calEvent.course_name) {
-                    $("#calendar_course_info").html(
-                        '<div class="form-group"><label class="col-sm-2 control-label">{{ 'Course' | get_lang }}</label>' +
-                        '<div class="class="col-sm-8">' + calEvent.course_name+"</div></div>"
-                    );
-                } else {
-                    $("#calendar_course_info").html('');
-                }
-
-                if (calEvent.session_name) {
-                    $("#calendar_session_info").html(
-                        '<div class="form-group"><label class="col-sm-2 control-label">{{ 'Session' | get_lang }}</label>'+
-                        '<div class="class="col-sm-8">' + calEvent.session_name+"</div></div>"
-                    );
-                } else {
-                    $("#calendar_session_info").html('');
-                }
-
-                $("#comment_edit").html(calEvent.comment);
-                $("#title_edit").show();
-                $("#content_edit").show();
-                $("#comment_edit").show();
-                $("#title").hide();
-                $("#content").hide();
-                $("#comment").hide();
-
-				allFields.removeClass( "ui-state-error" );
-				$("#dialog-form").dialog("open");
-
-				var url = '{{ web_agenda_ajax_url }}&a=edit_event&id='+calEvent.id+'&view='+view.name;
-				var delete_url = '{{ web_agenda_ajax_url }}&a=delete_event&id='+calEvent.id;
-
-				$("#dialog-form").dialog({
-					buttons: {
-                        '{{ "ExportiCalConfidential"|get_lang }}' : function() {
-                            url =  "{{ _p.web_main }}calendar/ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=confidential";
-                            window.location.href = url;
-						},
-						'{{ "ExportiCalPrivate"|get_lang }}': function() {
-                            url =  "{{ _p.web_main }}calendar/ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=private";
-                            window.location.href = url;
-						},
-                        '{{ "ExportiCalPublic"|get_lang }}': function() {
-                            url =  "{{ _p.web_main }}calendar/ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=public";
-                            window.location.href = url;
-						},
-                        {% if type == 'not_available' %}
-						'{{ "Edit" | get_lang }}' : function() {
-							var bValid = true;
-							bValid = bValid && checkLength( title, "title", 1, 255 );
-
-							var params = $("#add_event_form").serialize();
-							$.ajax({
-								url: url+'&'+params,
-								success:function() {
-									calEvent.title = $("#title").val();
-									calEvent.start = calEvent.start;
-									calEvent.end = calEvent.end;
-									calEvent.allDay = calEvent.allDay;
-									calEvent.description = $("#content").val();
-									calendar.fullCalendar('updateEvent',
-                                        calEvent,
-                                        true // make the event "stick"
-									);
-									$("#dialog-form").dialog("close");
-								}
-							});
-						},
-                        {% endif %}
-                        '{{ "Edit"|get_lang }}' : function() {
-                            url =  "{{ _p.web_main }}calendar/agenda.php?action=edit&type=fromjs&id="+calEvent.id+'&course_id='+calEvent.course_id+"";
-                            window.location.href = url;
-                            $("#dialog-form").dialog( "close" );
-                        },
-						'{{ "Delete"|get_lang }}': function() {
-                            if (calEvent.parent_event_id || calEvent.has_children != '') {
-                                var newDiv = $('<div>');
-                                newDiv.dialog({
-                                    modal: true,
-                                    title: "{{ 'DeleteThisItem' | get_lang }}",
-                                    buttons: []
-                                });
-
-                                var buttons = newDiv.dialog("option", "buttons");
-
-                                if (calEvent.has_children == '0') {
-                                    buttons.push({
-                                        text: '{{ "DeleteThisItem" | get_lang }}',
-                                        click: function() {
-                                            $.ajax({
-                                                url: delete_url,
-                                                success:function() {
-                                                    calendar.fullCalendar('removeEvents',
-                                                        calEvent
-                                                    );
-                                                    calendar.fullCalendar("refetchEvents");
-                                                    calendar.fullCalendar("rerenderEvents");
-                                                    $("#dialog-form").dialog("close");
-                                                    newDiv.dialog( "destroy" );
-                                                }
-                                            });
-                                        }
-                                    });
-                                    newDiv.dialog("option", "buttons", buttons);
-                                }
-
-                                var buttons = newDiv.dialog("option", "buttons");
-                                buttons.push({
-                                    text: '{{ "DeleteAllItems" | get_lang }}',
-                                    click: function() {
-                                        $.ajax({
-                                            url: delete_url+'&delete_all_events=1',
-                                            success:function() {
-                                                calendar.fullCalendar('removeEvents',
-                                                    calEvent
-                                                );
-                                                calendar.fullCalendar('refetchEvents');
-                                                calendar.fullCalendar('rerenderEvents');
-                                                $("#dialog-form").dialog('close');
-                                                newDiv.dialog( "destroy" );
-                                            }
-                                        });
-                                    }
-                                });
-                                newDiv.dialog("option", "buttons", buttons);
-
-                                return true;
-                            }
-
-							$.ajax({
-								url: delete_url,
-								success:function() {
-									calendar.fullCalendar('removeEvents',
-										calEvent
-									);
-									calendar.fullCalendar('refetchEvents');
-									calendar.fullCalendar('rerenderEvents');
-									$("#dialog-form").dialog('close');
-								}
-							});
-						}
-					},
-					close: function() {
-                        $("#title_edit").hide();
-                        $("#content_edit").hide();
-                        $("#comment_edit").hide();
-
-                        $("#title").show();
-                        $("#content").show();
-                        $("#comment").show();
-
-						$("#title_edit").html('');
-						$("#content_edit").html('');
-                        $("#comment_edit").html('');
-
-                        $("#title").val('');
-                        $("#content").val('');
-                        $("#comment").val('');
-					}
-				});
-			} else {
-			    // Simple form
-                $('#simple_start_date').html(startDateToString);
-                if (diffDays > 1) {
-                    $('#simple_end_date').html(' - ' + endDateMinusOne);
-                } else if (diffDays == 0) {
-                    var start_date_value = start.format('ll');
-                    var startTime = start.format('LT');
-                    var endTime = end.format('LT');
-                    $('#simple_start_date').html('');
-                    $('#simple_end_date').html(start_date_value + " (" + startTime + " - " + endTime+") ");
-                } else {
-                    $('#simple_end_date').html('');
-                }
-
-                if (calEvent.course_name) {
-                    $("#calendar_course_info_simple").html(
-                        '<div class="form-group"><label class="col-sm-3 control-label">{{ 'Course' | get_lang }}</label>' +
-                        '<div class="col-sm-9">' + calEvent.course_name+"</div></div>"
-                    );
-                } else {
-                    $("#calendar_course_info_simple").html('');
-                }
-
-                if (calEvent.session_name) {
-                    $("#calendar_session_info").html(
-                        '<div class="form-group"><label class="col-sm-3 control-label">{{ 'Session' | get_lang }}</label>' +
-                        '<div class="col-sm-9">' + calEvent.session_name+"</div></div>"
-                    );
-                } else {
-                    $("#calendar_session_info").html('');
-                }
-
-                $("#simple_title").html(calEvent.title);
-                $("#simple_content").html(calEvent.description);
-                $("#simple_comment").html(calEvent.comment);
-                $("#simple-dialog-form").dialog("open");
-                $("#simple-dialog-form").dialog({
-					buttons: {
-						'{{"ExportiCalConfidential"|get_lang}}' : function() {
-                            url =  "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=confidential";
-                            window.location.href = url;
-						},
-						'{{"ExportiCalPrivate"|get_lang}}': function() {
-                            url =  "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=private";
-                            window.location.href = url;
-						},
-                        '{{"ExportiCalPublic"|get_lang}}': function() {
-                            url =  "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=public";
-                            window.location.href = url;
-						}
-					}
-				});
-            }
-		},
-		editable: true,
-		events: "{{web_agenda_ajax_url}}&a=get_events",
-		eventDrop: function(event, delta, revert_func) {
-		    var allDay = 0;
-		    if (event.allDay == true) {
-		        allDay = 1;
-            }
-			$.ajax({
-				url: '{{ web_agenda_ajax_url }}',
-				data: {
-                    a: 'move_event',
-                    id: event.id,
-                    all_day: allDay,
-                    minute_delta: delta.asMinutes()
-				}
-			});
-		},
-        eventResize: function(event, delta, revert_func) {
-            $.ajax({
-				url: '{{ web_agenda_ajax_url }}',
-				data: {
-                    a: 'resize_event',
-                    id: event.id,
-                    minute_delta: delta.asMinutes()
-				}
-			});
-        },
-		axisFormat: 'H(:mm)', // pm-am format -> h(:mm)a
-		timeFormat: 'H:mm',   // pm-am format -> h:mm
-		loading: function(bool) {
-			if (bool) $('#loading').show();
-			else $('#loading').hide();
-		}
-	});
-});
-</script>
-{{ actions_div }}
-{{ toolbar }}
-
-<div id="simple-dialog-form" style="display:none;">
-    <div style="width:500px">
-        <form name="form-simple" class="form-horizontal">
-            <span id="calendar_course_info_simple"></span>
-            <span id="calendar_session_info"></span>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">
-                    <b>{{ "Date" |get_lang}}</b>
-                </label>
-                <div class="col-sm-9">
-                    <span id="simple_start_date"></span>
-                    <span id="simple_end_date"></span>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">
-                    <b>{{ "Title" |get_lang}}</b>
-                </label>
-                <div class="col-sm-9">
-                    <div id="simple_title"></div>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">
-                    <b>{{ "Description" |get_lang}}</b>
-                </label>
-                <div class="col-sm-9">
-                    <div id="simple_content"></div>
-                </div>
-            </div>
-            <div class="form-group">
-                <label class="col-sm-3 control-label">
-                    <b>{{ "Comment" |get_lang}}</b>
-                </label>
-                <div class="col-sm-9">
-                    <div id="simple_comment"></div>
-                </div>
-            </div>
-        </form>
-    </div>
-</div>
-
-<div id="dialog-form" style="display:none;">
-	<div class="dialog-form-content">
-        {{ form_add }}
-	</div>
-</div>
-
-{% if legend_list %}
-    {% for color, text in legend_list %}
-        <span style="background-color: {{ color }}" class="label label-default">&nbsp;</span> {{ text }} &nbsp;&nbsp;
-    {% endfor %}
-    <br /><br />
-{% endif %}
-<div id="loading" style="margin-left:150px;position:absolute;display:none">
-    {{ "Loading" | get_lang }}...
-</div>
-<div id="calendar"></div>

+ 0 - 38
main/template/rainbow/announcement/slider.tpl

@@ -1,38 +0,0 @@
-<div id="carousel-announcement" class="carousel slide" data-ride="carousel">
-    <!-- Indicators -->
-    <ol class="carousel-indicators">
-      {% for announcement in announcements %}
-        <li data-target="#carousel-announcement" data-slide-to="{{ loop.index0 }}" {% if loop.index0 == 0 %} class="active" {% endif %}></li>
-      {% endfor %}
-    </ol>
-
-    <!-- Wrapper for slides -->
-    <div class="carousel-inner" role="listbox">
-    {% for announcement in announcements %}
-        <div class="item {% if loop.index0 == 0 %} active {% endif %}">
-            <div class="carousel-content">
-                {% if announcement.readMore %}
-                <div class="block-text">
-                    {{ announcement.content }}
-                    <a href="{{ _p.web }}news_list.php?id={{ announcement.id }}">{{ "More" | get_lang }}</a>
-                </div>
-                {% else %}
-                    <div class="block-image">
-                        {{ announcement.content }}
-                    </div>
-              {% endif %}
-            </div>
-        </div>
-    {% endfor %}
-    </div>
-
-    <!-- Controls -->
-    <a class="left carousel-control" href="#carousel-announcement" role="button" data-slide="prev">
-        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
-        <span class="sr-only">Previous</span>
-    </a>
-    <a class="right carousel-control" href="#carousel-announcement" role="button" data-slide="next">
-        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
-        <span class="sr-only">Next</span>
-    </a>
-</div>

+ 0 - 16
main/template/rainbow/announcement/view.tpl

@@ -1,16 +0,0 @@
-<div class="page-header">
-    <h4>{{ "SystemAnnouncements" | get_lang }}</h4>
-</div>
-
-{% if not announcement is empty %}
-    <article id="announcement-{{ announcement.id }}}">
-        <div class="page-header">
-            <h3>{{ announcement.title }}</h3>
-            {{ announcement.content }}
-        </div>
-    </article>
-{% else %}
-    <div class="alert alert-danger" role="alert">
-        {{ "NoResults" | get_lang }}
-    </div>
-{% endif %}

+ 0 - 8
main/template/rainbow/auth/confirm_session_subscription.tpl

@@ -1,8 +0,0 @@
-<div class="row">
-    <div class="col-sm-3 col-sm-offset-3">
-        <a href="{{ _p.web_main }}auth/courses.php?{{ {'action':'subscribe_to_session', 'session_id':session_id, 'confirm':'1'}|url_encode() }}" class="btn btn-success btn-block">{{ 'Yes'|get_lang }}</a>
-    </div>
-    <div class="col-sm-3">
-        <button type="button" class="btn btn-danger btn-block" data-dismiss="modal">{{ 'No'|get_lang }}</button>
-    </div>
-</div>

+ 0 - 0
main/template/rainbow/auth/courses.tpl


+ 0 - 18
main/template/rainbow/auth/hrm_courses.tpl

@@ -1,18 +0,0 @@
-{% for user in users %}
-    <div class="panel panel-info">
-        <div class="panel-heading">
-            <h3 class="panel-title">
-                <img src="{{ user.picture_url }}" alt="{{ user.complete_name }}">
-                {{ user.complete_name }}
-                <small>{{ user.username }}</small>
-            </h3>
-        </div>
-        <div class="panel-body">
-            {% if not user.course_list %}
-                <div class="alert alert-warning">{{ 'UserHasNoCourse'|get_lang }}</div>
-            {% else %}
-                {{ user.course_list }}
-            {% endif %}
-        </div>
-    </div>
-{% endfor %}

+ 0 - 14
main/template/rainbow/auth/inscription.tpl

@@ -1,14 +0,0 @@
-{%
-    extends hide_header == true
-    ? template ~ "/layout/blank.tpl"
-    : template ~ "/layout/layout_1_col.tpl"
-%}
-
-{% block content %}
-
-{{ inscription_header }}
-{{ inscription_content }}
-{{ form }}
-{{ text_after_registration }}
-
-{% endblock %}

+ 0 - 5
main/template/rainbow/auth/lost_password.tpl

@@ -1,5 +0,0 @@
-{% extends template ~ "/layout/layout_1_col.tpl" %}
-
-{% block content %}
-{{ form }}
-{% endblock %}

+ 0 - 10
main/template/rainbow/auth/readme.txt

@@ -1,10 +0,0 @@
-The following files were sent to the main/auth folder to improve the template option in this section
-
-
-list files:
-
--catalog_layout.php
--categories_list.php
--courses_categories.php
--courses-list.php
--layout.php

+ 0 - 226
main/template/rainbow/auth/session_catalog.tpl

@@ -1,226 +0,0 @@
-{% extends template ~ "/layout/page.tpl" %}
-
-{% block body %}
-    <script type="text/javascript">
-        $(document).ready(function () {
-            $('#date').datepicker({
-                dateFormat: 'yy-mm-dd'
-            });
-        });
-    </script>
-    <div class="row">
-        <div class="col-md-12">
-        <!-- header catalog session -->
-        <h2 class="title-session">{{ 'Sessions'|get_lang }}</h2>
-       	<div class="search-session">
-                <div class="row">
-                {% if show_courses %}
-                    <div class="col-md-4">
-                        <div class="return-catalog">
-                            <a class="btn btn-default btn-lg btn-block" href="{{ _p.web_self }}">
-                                <em class="fa fa-arrow-left"></em> {{ "CourseManagement"|get_lang }}
-                            </a>
-                        </div>
-                    </div>
-                {% endif %}
-
-                {% if show_courses %}
-                    <div class="col-md-4">
-                {% else %}
-                    <div class="col-md-6">
-                {% endif %}
-                        <form method="post" action="{{ _p.web_self }}?action=display_sessions">
-                            <div class="form-group">
-                                <label>{{ "ByDate"|get_lang }}</label>
-                                <div class="input-group">
-                                    <input type="date" name="date" id="date" title="{{ 'Date'|get_lang }}"
-                                           class="form-control" value="{{ search_date }}" readonly>
-                                    <span class="input-group-btn">
-                                        <button class="btn btn-default" type="submit">
-                                            <em class="fa fa-search"></em> {{ 'Search'|get_lang }}
-                                        </button>
-                                    </span>
-                                </div>
-                            </div>
-                        </form>
-                    </div>
-
-                {% if show_courses %}
-                    <div class="col-md-4">
-                {% else %}
-                    <div class="col-md-6">
-                {% endif %}
-                        <form method="post" action="{{ _p.web_self }}?action=search_tag">
-                            <label>{{ "ByTag"|get_lang }}</label>
-                            <div class="input-group">
-                                <input type="text" name="search_tag" title="{{ 'ByTag'|get_lang }}" class="form-control"
-                                       value="{{ search_tag }}"/>
-                                <span class="input-group-btn">
-                                    <button class="btn btn-default" type="submit">
-                                        <em class="fa fa-search"></em> {{ 'Search'|get_lang }}
-                                    </button>
-                                </span>
-                            </div>
-                        </form>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-    <!-- new view session grib -->
-    <div class="row">
-        <div class="grid-courses col-md-12">
-            <div class="row">
-                {% for item in sessions %}
-                    <div class="col-md-4 col-sm-6 col-xs-12">
-                        <div id="session-{{ item.id }}" class="items items-courses items-sessions">
-                            <div class="image">
-                                <a href="{{ _p.web ~ 'session/' ~ item.id ~ '/about/' }}" title="{{ item.name }}">
-                                	<img class="img-responsive" src="{{ item.image ? _p.web_upload ~ item.image : 'session_default.png'|icon() }}">
-                                </a>
-                                {% if item.category != '' %}
-                                    <span class="category">{{ item.category }}</span>
-                                    <div class="cribbon"></div>
-                                {% endif %}
-                                <div class="admin-actions">
-                                    {% if item.edit_actions != '' %}
-                                        <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
-                                            <i class="fa fa-pencil" aria-hidden="true"></i>
-                                        </a>
-                                    {% endif %}
-                                    {% if item.is_subscribed %}
-                                        {{ already_subscribed_label }}
-                                    {% endif %}
-                                </div>
-                            </div>
-                            <div class="description">
-                            	<div class="block-title">
-                            		<h4 class="title">
-                                    	<a href="{{ _p.web ~ 'session/' ~ item.id ~ '/about/' }}" title="{{ item.name }}">
-                                        	{{ item.name }}
-                                    	</a>
-                                	</h4>
-                            	</div>
-                            	{% if show_tutor %}
-                            	<div class="block-author">
-                                	<div class="author-card">
-                                    	<a href="{{ item.coach_url }}" class="ajax" data-title="{{ item.coach_name }}">
-                                        	<img src="{{ item.coach_avatar }}"/>
-                                    	</a>
-                                   		<div class="teachers-details">
-                                        	<h5>
-                                            	<a href="{{ item.coach_url }}" class="ajax" data-title="{{ item.coach_name }}">
-                                                   {{ item.coach_name }}
-                                            	</a>
-                                        	</h5>
-                                        	<p>{{ 'SessionGeneralCoach'|get_lang }}</p>
-                                        </div>
-                                   </div>
-                            	</div>
-                            	{% endif %}
-                            	<div class="block-info">
-                                    <ul class="info list-inline">
-                                        <li>
-                                            <i class="fa fa-book" aria-hidden="true"></i>
-                                            {{ item.nbr_courses ~ ' ' ~ 'Courses'|get_lang }}
-                                        </li>
-                                        <li>
-                                            <i class="fa fa-user" aria-hidden="true"></i>
-                                            {{ item.nbr_users ~ ' ' ~ 'NbUsers'|get_lang }}
-                                        </li>
-                                    </ul>
-                            	</div>
-                                <div class="block-date">
-                                    {{ item.duration ? 'SessionDurationXDaysLeft'|get_lang|format(item.duration) : item.date }}
-                                </div>
-                                <div class="toolbar row">
-                                    {% if item.price %}
-                                        <div class="col-sm-4">
-                                                {{ item.price }}
-                                        </div>
-                                    {% endif %}
-                                    {% if _u.logged %}
-                                        <div class="col-sm-8">
-                                            <div class="btn-group btn-group-sm" role="group">
-                                                {% if not item.sequences is empty %}
-                                                    <a class="btn btn-default btn-sm" role="button"
-                                                       title="{{ 'SeeSequences'|get_lang }}" data-toggle="popover"
-                                                       id="session-{{ item.id }}-sequences">
-                                                        <i class="fa fa-sitemap" aria-hidden="true"></i>
-                                                    </a>
-                                                {% endif %}
-                                                {% if item.is_subscribed == false %}
-                                                    {{ item.subscribe_button }}
-                                                {% endif %}
-                                            </div>
-                                        </div>
-                                    {% endif %}
-                                </div>
-                            </div>
-                            {% if _u.logged %}
-                                <script>
-                                    $('#session-{{ item.id }}-sequences').popover({
-                                        placement: 'bottom',
-                                        html: true,
-                                        trigger: 'click',
-                                        content: function () {
-                                            var content = '';
-
-                                            {% if item.sequences %}
-                                                {% for sequence in item.sequences %}
-                                                    content += '<p class="lead">{{ sequence.name }}</p>';
-
-                                                    {% if sequence.requirements %}
-                                                        content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'RequiredSessions'|get_lang }}</p>';
-                                                        content += '<ul>';
-
-                                                        {% for requirement in sequence.requirements %}
-                                                            content += '<li>';
-                                                            content += '<a href="{{ _p.web ~ 'session/' ~ requirement.id ~ '/about/' }}">{{ requirement.name }}</a>';
-                                                            content += '</li>';
-                                                        {% endfor %}
-
-                                                        content += '</ul>';
-                                                    {% endif %}
-
-                                                    {% if sequence.dependencies %}
-                                                        content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'DependentSessions'|get_lang }}</p>';
-                                                        content += '<ul>';
-
-                                                        {% for dependency in sequence.dependencies %}
-                                                            content += '<li>';
-                                                            content += '<a href="{{ _p.web ~ 'session/' ~ dependency.id ~ '/about/' }}">{{ dependency.name }}</a>';
-                                                            content += '</li>';
-                                                        {% endfor %}
-
-                                                        content += '</ul>';
-                                                    {% endif %}
-
-                                                    {% if item.sequences|length > 1 %}
-                                                        content += '<hr>';
-                                                    {% endif %}
-                                                {% endfor %}
-                                            {% else %}
-                                                content = "{{ 'NoDependencies'|get_lang }}";
-                                            {% endif %}
-
-                                            return content;
-                                        }
-                                    });
-                                </script>
-                            {% endif %}
-                        </div>
-                    </div>
-                {% else %}
-                    <div class="col-xs-12">
-                        <div class="alert alert-warning">
-                            {{ 'NoResults'|get_lang }}
-                        </div>
-                    </div>
-                {% endfor %}
-            </div>
-        </div>
-    </div>
-    <!-- end view session grib -->
-    {{ catalog_pagination }}
-{% endblock %}

+ 0 - 4
main/template/rainbow/auth/set_temp_password.tpl

@@ -1,4 +0,0 @@
-{% if error_message %}
-{{ error_message }}
-{% endif %}
-{{form}}

+ 0 - 118
main/template/rainbow/blog/blog.tpl

@@ -1,118 +0,0 @@
-<div class="row">
-    <div class="col-md-3">
-        <div class="sidebar">
-            <div id="calendar-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'Calendar'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    {{ calendar }}
-                </div>
-            </div>
-            <div id="search-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'Search'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    <form action="blog.php" method="get" enctype="multipart/form-data">
-                        <div class="form-group">
-                            <input type="hidden" name="blog_id" value="{{ id_blog }}"/>
-                            <input type="hidden" name="action" value="view_search_result"/>
-                            <input type="text" class="form-control" size="20" name="q" value="{{ search }}"/>
-                        </div>
-                        <button class="btn btn-default btn-block" type="submit">
-                            <em class="fa fa-search"></em> {{ 'Search'|get_lang }}
-                        </button>
-                    </form>
-                </div>
-            </div>
-            <div id="task-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'MyTasks'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    {{ task }}
-                </div>
-            </div>
-        </div>
-    </div>
-
-    <div class="col-md-9">
-        <div class="blog">
-            <div id="blog-header">
-                {% if not search %}
-                    <div class="title">
-                        <h1>{{ title }}</h1>
-                    </div>
-                    <div class="description">
-                        {{ description }}
-                    </div>
-                {% else %}
-                    <div class="title">
-                        <h1>{{ search }}</h1>
-                    </div>
-                {% endif %}
-            </div>
-            <div id="list-articles">
-                {% for item in articles %}
-                    <article id="post-{{ item.id_post }}" class="article-post">
-                        <div class="panel panel-default">
-                            <div class="panel-body">
-                                <h3 class="title-post">
-                                    <a href="{{ _p.web_self ~ '?' ~ _p.web_cid_query ~ '&' ~ {'action':'view_post', 'blog_id':item.id_blog, 'post_id':item.id_post}|url_encode }}#add_comment"
-                                       title="{{ item.title }}">{{ item.title }}</a>
-                                </h3>
-                                <div class="info-post">
-                                    <span class="date"><i class="fa fa-clock-o"></i> {{ item.post_date }}</span>
-                                    <span class='comments'>
-                                        <i class="fa fa-comment-o"></i> {{ item.n_comments }} {{ 'Comments' | get_lang }}
-                                    </span>
-                                    <span class="autor"><i class="fa fa-user"></i> {{ item.autor }}</span>
-                                    <span class="score"><i class="fa fa-star"></i> {{ item.score_ranking }}</span>
-                                </div>
-
-                                {% if item.extract %}
-                                    <div id="post-extract-{{ item.id_post }}" class="show">
-                                        <p>
-                                            {{ item.extract }}
-                                            <button type="button" class="btn btn-link btn-read-more" data-id="{{ item.id_post }}">
-                                                {{ 'ReadMore'|get_lang }}
-                                            </button>
-                                        </p>
-                                    </div>
-                                {% endif %}
-
-                                <div id="post-content-{{ item.id_post }}" class="{{ item.extract ? 'hidden' : '' }}">
-                                    {{ item.content }}
-                                </div>
-
-                                {% if item.files %}
-                                    <div class="well well-sm files">
-                                        <i class="fa fa-paperclip" aria-hidden="true"></i>
-                                        <a href="download.php?file={{ item.files.path }}">{{ item.files.filename }}</a>
-                                    </div>
-                                {% endif %}
-                            </div>
-                        </div>
-                    </article>
-                {% endfor %}
-            </div>
-        </div>
-    </div>
-</div>
-<script>
-    $(document).on('ready', function () {
-        $('.btn-read-more').on('click', function (e) {
-            e.preventDefault();
-
-            var postId = $(this).data('id') || 0;
-
-            if (!postId) {
-                return;
-            }
-
-            $('#post-extract-' + postId).removeClass('show').addClass('hidden');
-            $('#post-content-' + postId).removeClass('hidden').addClass('show');
-        });
-    });
-</script>

+ 0 - 7
main/template/rainbow/blog/layout.tpl

@@ -1,7 +0,0 @@
-<div class="row">
-    <div class="col-md-12">
-        <div class="blog">
-            {{ content }}
-        </div>
-    </div>
-</div>

+ 0 - 178
main/template/rainbow/blog/post.tpl

@@ -1,178 +0,0 @@
-{% macro comment_template(item) %}
-    <div class="media {{ item.iid }}">
-        <div class="media-left">
-            <a href="{{ item.user_info.profile_url }}">
-                <img class="media-object thumbnail avatar"
-                     src="{{ item.user_info.avatar }}"
-                     alt="{{ item.user_info.complete_name }}">
-            </a>
-        </div>
-        <div class="media-body">
-            <div class="pull-right">
-                {{ item.actions }}
-            </div>
-            <h4 class="media-heading"
-                id="comment-{{ item.iid }}-title">{{ item.title }}</h4>
-            <ul class="info-post list-inline">
-                <li class="date">
-                    <i class="fa fa-clock-o"></i> {{ item.comment_date }}
-                </li>
-                <li class="autor">
-                    <i class="fa fa-user"></i>
-                    <a href="{{ item.user_info.profile_url }}">
-                        {{ item.user_info.complete_name }}
-                    </a>
-                </li>
-                <li class="score">
-                    <i class="fa fa-star"
-                       aria-hidden="true"></i> {{ item.score_ranking }}
-                </li>
-            </ul>
-            <div id="comment-{{ item.iid }}-content">
-                {{ item.content }}
-            </div>
-            {% if item.files %}
-                <aside class="well well-sm files">
-                    <i class="fa fa-paperclip" aria-hidden="true"></i>
-                    <a href="download.php?file={{ item.files.path }}">{{ item.files.filename }}</a>
-                    <p>{{ item.files.comment }}</p>
-                </aside>
-            {% endif %}
-
-            <div class="ranking">
-                {{ item.form_ranking }}
-            </div>
-
-            {% import _self as nested %}
-
-            {% for item2 in item.comments %}
-                {{ nested.comment_template(item2) }}
-            {% endfor %}
-        </div>
-    </div>
-{% endmacro %}
-
-{% import _self as nested %}
-
-<div class="row">
-    <div class="col-md-3">
-        <div class="sidebar">
-            <div id="calendar-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'Calendar'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    {{ calendar }}
-                </div>
-            </div>
-            <div id="search-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'Search'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    <form action="blog.php" method="get" enctype="multipart/form-data">
-                        <div class="form-group">
-                            <input type="hidden" name="blog_id" value="{{ id_blog }}"/>
-                            <input type="hidden" name="action" value="view_search_result"/>
-                            <input type="text" class="form-control" size="20" name="q" value="{{ search }}"/>
-                        </div>
-                        <button class="btn btn-default btn-block" type="submit">
-                            <em class="fa fa-search"></em> {{ 'Search'|get_lang }}
-                        </button>
-                    </form>
-                </div>
-            </div>
-            <div id="task-blog" class="panel panel-default">
-                <div class="panel-heading">
-                    {{ 'MyTasks'|get_lang }}
-                </div>
-                <div class="panel-body">
-                    {{ task }}
-                </div>
-            </div>
-        </div>
-    </div>
-    <div class="col-md-9">
-        <div class="blog" id="post-{{ post.id_post }}">
-            <div class="panel panel-default" id="blog-header">
-                <div class="panel-heading">
-                    <div id="post-action" class="text-right">
-                        <div class="btn-group btn-group-sm" role="group" aria-label="{{ 'Actions'|get_lang }}">
-                            {{ post.actions }}
-                        </div>
-                    </div>
-                </div>
-                <div class="panel-body">
-                    <article>
-                        <div class="article-header">
-                            <div class="title">
-                                <h1 title="{{ post.title }}">{{ post.title }}</h1>
-                            </div>
-                            <ul class="info-post list-inline">
-                                <li class="date">
-                                    <i class="fa fa-clock-o" aria-hidden="true"></i> {{ post.post_date }}
-                                </li>
-                                <li class="comments">
-                                    <i class="fa fa-comment-o"
-                                       aria-hidden="true"></i> {{ 'XComments'|get_lang|format(post.n_comments) }}
-                                </li>
-                                <li class="autor">
-                                    <i class="fa fa-user" aria-hidden="true"></i>
-                                    <a href="{{ _p.web }}main/social/profile.php?u={{ post.id_author }}">{{ post.author }}</a>
-                                </li>
-                                <li class="score">
-                                    <i class="fa fa-star" aria-hidden="true"></i> {{ post.score_ranking }}
-                                </li>
-                            </ul>
-                        </div>
-                        <div class="content-post">
-                            {{ post.content }}
-                        </div>
-                        {% if post.files %}
-                            <aside class="well well-sm files">
-                                <i class="fa fa-paperclip" aria-hidden="true"></i>
-                                <a href="download.php?file={{ post.files.path }}">{{ post.files.filename }}</a>
-                            </aside>
-                        {% endif %}
-
-                        {{ post.frm_rating ?: '' }}
-                    </article>
-                    <div class="comments-post">
-                        <h3 class="title">{{ 'XComments'|get_lang|format(post.n_comments) }}</h3>
-                        <div id="list-comments" class="media-list">
-                            {% for item in post.comments %}
-                                {{ nested.comment_template(item) }}
-                            {% endfor %}
-                        </div>
-                    </div>
-                    <div class="form-post">
-                        {{ post.form_html }}
-                    </div>
-                </div>
-            </div>
-
-        </div>
-    </div>
-</div>
-
-<script>
-    $(document).on('ready', function () {
-        $('.btn-reply-to').on('click', function (e) {
-            e.preventDefault();
-
-            var id = $(this).data('id') || 0;
-
-            if (!id) {
-                return;
-            }
-
-            var $frm = $('form#add_post'),
-                title = $('#comment-' + id + '-title'),
-                content = $('#comment-' + id + '-content');
-
-            $frm.find('[name="comment_parent_id"]').val(id);
-            $frm.find('[name="title"]').val('Re: ' + title.text().trim());
-            CKEDITOR.instances.comment.setData('<blockquote>' + content.text().trim() + '</blockquote><br>');
-        });
-    });
-</script>

+ 0 - 113
main/template/rainbow/career/diagram.tpl

@@ -1,113 +0,0 @@
-{% extends template ~ "/layout/layout_1_col.tpl" %}
-
-{% block content %}
-
-    <script>
-        mxBasePath = '{{ _p.web_lib }}mxgraph/src/';
-    </script>
-
-    <script type="text/javascript" src="{{ _p.web_lib }}mxgraph/src/js/mxClient.js"></script>
-
-    <script>
-        // Overridden to define per-shape connection points
-        mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
-        {
-            if (terminal != null && terminal.shape != null)
-            {
-                if (terminal.shape.stencil != null)
-                {
-                    if (terminal.shape.stencil != null)
-                    {
-                        return terminal.shape.stencil.constraints;
-                    }
-                }
-                else if (terminal.shape.constraints != null)
-                {
-                    return terminal.shape.constraints;
-                }
-            }
-
-            return null;
-        };
-
-
-        // Edges have no connection points
-        mxPolyline.prototype.constraints = null;
-
-        // Program starts here. Creates a sample graph in the
-        // DOM node with the specified ID. This function is invoked
-        // from the onLoad event handler of the document (see below).
-        function main(container)
-        {
-            // Checks if the browser is supported
-            if (!mxClient.isBrowserSupported())
-            {
-                // Displays an error message if the browser is not supported.
-                mxUtils.error('Browser is not supported!', 200, false);
-            }
-            else
-            {
-                // Disables the built-in context menu
-                mxEvent.disableContextMenu(container);
-
-                // Creates the graph inside the given container
-                var graph = new mxGraph(container);
-                graph.setConnectable(true);
-                graph.setHtmlLabels(true);
-
-                // Blocks the selection of elements
-                graph.setEnabled(false);
-
-                // Enables connect preview for the default edge style
-                graph.connectionHandler.createEdgeState = function(me)
-                {
-                    var edge = graph.createEdge(null, null, null, null, null);
-
-                    return new mxCellState(this.graph.view, edge, this.graph.getCellStyle(edge));
-                };
-
-                // Specifies the default edge style
-                graph.getStylesheet().getDefaultEdgeStyle()['edgeStyle'] = 'orthogonalEdgeStyle';
-
-                // Enables rubberband selection
-                new mxRubberband(graph);
-
-                // Gets the default parent for inserting new cells. This
-                // is normally the first child of the root (ie. layer 0).
-                var parent = graph.getDefaultParent();
-
-                // Adds cells to the model in a single step
-                graph.getModel().beginUpdate();
-                try {
-                    //var v1 = graph.insertVertex(parent, null, 'Hello,', 20, 20, 80, 30);
-                    //var v2 = graph.insertVertex(parent, null, 'World!', 200, 150, 80, 30);
-                    //var e1 = graph.insertEdge(parent, null, '', v1, v2);
-                    {% for vertex in vertex_list %}
-                        {{ vertex }}
-                    {% endfor %}
-
-                    {% for vertex in group_list %}
-                        {{ vertex }}
-                    {% endfor %}
-
-                    {% for vertex in subgroup_list %}
-                        {{ vertex }}
-                    {% endfor %}
-
-                    {% for vertex in connections %}
-                        {{ vertex }}
-                    {% endfor %}
-                } finally {
-                    // Updates the display
-                    graph.getModel().endUpdate();
-                }
-            }
-        };
-
-        $(document).ready(function () {
-            main(document.getElementById('graphContainer'));
-        });
-    </script>
-
-    {{ content }}
-{% endblock %}

+ 0 - 317
main/template/rainbow/chat/chat.tpl

@@ -1,317 +0,0 @@
-<div class="page-chat">
-    <div class="row">
-        <div class="col-sm-4 col-md-5 col-lg-4">
-            <ul class="row list-unstyled" id="chat-users"></ul>
-        </div>
-        <div class="col-sm-8 col-md-7 col-lg-8">
-            <div id="chat-tabs">
-                <ul class="nav nav-tabs" role="tablist">
-                    <li role="presentation" class="active">
-                        <a href="#all" aria-controls="all" role="tab" data-toggle="tab">{{ 'All'|get_lang }}</a>
-                    </li>
-                </ul>
-                <div class="tab-content">
-                    <div role="tabpanel" class="tab-pane active" id="all">
-                        <div class="course-chat chat-history" id="chat-history"></div>
-                    </div>
-                </div>
-            </div>
-            <div class="profile row">
-                <div class="col-xs-12">
-                    <div class="message-form-chat">
-                        <div class="tabbable">
-                            <ul class="nav nav-tabs">
-                                <li class="active">
-                                    <a href="#tab1" data-toggle="tab">{{ 'Write'|get_lang }}</a>
-                                </li>
-                                <li>
-                                    <a href="#tab2" id="preview" data-toggle="tab">{{ 'Preview'|get_lang }}</a>
-                                </li>
-                                <li>
-                                    <button id="emojis" class="btn btn-link" type="button">
-                                        <span class="sr-only">{{ 'Emoji'|get_lang }}</span>{{ emoji_smile }}
-                                    </button>
-                                </li>
-                            </ul>
-                            <div class="tab-content">
-                                <div class="tab-pane active" id="tab1">
-                                    <div class="row">
-                                        <div class="col-sm-9">
-                                            <span class="sr-only">{{ 'Message'|get_lang }}</span>
-                                            <textarea id="chat-writer" name="message"></textarea>
-                                        </div>
-                                        <div class="col-sm-3">
-                                            <button id="chat-send-message" type="button" class="btn btn-primary">{{ 'Send'|get_lang }}</button>
-                                        </div>
-                                    </div>
-                                </div>
-                                <div class="tab-pane" id="tab2">
-                                    <div id="html-preview" class="emoji-wysiwyg-editor-preview"></div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<audio id="chat-alert">
-    <source src="{{ _p.web_main }}/chat/sound/notification.wav" type="audio/wav"></source>
-    <source src="{{ _p.web_main }}chat/sound/notification.ogg" type="audio/ogg"></source>
-    <source src="{{ _p.web_main }}chat/sound/notification.mp3" type="audio/mpeg"></source>
-</audio>
-<script>
-$(document).on('ready', function () {
-    var ChChat = {
-        _ajaxUrl: '{{ _p.web_ajax }}course_chat.ajax.php?{{ _p.web_cid_query }}',
-        _historySize: -1,
-        usersOnline: 0,
-        currentFriend: 0,
-        call: false,
-        track: function () {
-            return $.get(ChChat._ajaxUrl, {
-                action: 'track',
-                size: ChChat._historySize,
-                users_online: ChChat.usersOnline,
-                friend: ChChat.currentFriend
-            })
-            .done(function (response) {
-                if (response.data.history) {
-                    ChChat._historySize = response.data.oldFileSize;
-                    ChChat.setHistory(response.data.history);
-                }
-
-                if (response.data.userList) {
-                    ChChat.usersOnline = response.data.usersOnline;
-                    ChChat.setConnectedUsers(response.data.userList);
-                }
-            });
-        },
-        setHistory: function (messageList) {
-            var chatHistoryContainer = ChChat.currentFriend ? ('#chat-history-' + ChChat.currentFriend) : '#chat-history';
-
-            $(chatHistoryContainer)
-                .html(messageList)
-                .prop('scrollTop', function () {
-                    return this.scrollHeight;
-                });
-            $('#chat-alert').get(0).play();
-        },
-        setConnectedUsers: function (userList) {
-            var html = '';
-
-            userList.forEach(function (user) {
-                var buttonStatus = user.isConnected ? 'success' : 'muted',
-                    buttonTitle = user.isConnected ? '{{ 'StartAChat'|get_lang }}' : '{{ 'LeaveAMessage'|get_lang }}';
-
-                html += '<li class="col-xs-12 chat-user">' +
-                        '   <div>' +
-                        '       <img src="'+ user.image_url + '" alt="' + user.complete_name + '" class="img-circle user-image-chat"/>' +
-                        '       <ul class="list-unstyled">' +
-                        '           <li>' + user.complete_name;
-
-                if (user.id != {{ _u.user_id }}) {
-                    html += '           <button type="button" class="btn btn-link btn-xs" title="' + buttonTitle + '" data-name="' + user.complete_name + '" data-user="' + user.id + '">' +
-                            '               <i class="fa fa-comments text-' + buttonStatus + '"></i><span class="sr-only">' + buttonTitle + '</span>' +
-                            '           </button>';
-                }
-                html += '           </li>' +
-                        '           <li><small>' + user.username + '</small></li>' +
-                        '       </ul>' +
-                        '   </div>' +
-                        '</li>';
-            });
-
-            $('#chat-users').html(html);
-        },
-        onPreviewListener: function () {
-            $.post(ChChat._ajaxUrl, {
-                action: 'preview',
-                'message': $('textarea#chat-writer').val()
-            })
-            .done(function (response) {
-                if (!response.status) {
-                    return;
-                }
-
-                $('#html-preview').html(response.data.message);
-            });
-        },
-        onSendMessageListener: function (e) {
-            e.preventDefault();
-
-            if (!$('textarea#chat-writer').val().trim().length) {
-                return;
-            }
-
-            var self = this;
-            self.disabled = true;
-
-            $.post(ChChat._ajaxUrl, {
-                action: 'write',
-                message: $('textarea#chat-writer').val(),
-                friend: ChChat.currentFriend
-            })
-            .done(function (response) {
-                self.disabled = false;
-
-                if (!response.status) {
-                    return;
-                }
-
-                $('textarea#chat-writer').val('');
-                $(".emoji-wysiwyg-editor").html('');
-            });
-        },
-        onResetListener: function (e) {
-            if (!confirm("{{ 'ConfirmReset'|get_lang }}")) {
-                e.preventDefault();
-                return;
-            }
-            $.get(ChChat._ajaxUrl, {
-                action: 'reset',
-                friend: ChChat.currentFriend
-            })
-            .done(function (response) {
-                if (!response.status) {
-                    return;
-                }
-
-                ChChat.setHistory(response.data);
-            });
-        },
-        init: function () {
-            ChChat.track().done(function () {
-                ChChat.init();
-            });
-        }
-    };
-
-    hljs.initHighlightingOnLoad();
-
-    emojione.ascii = true;
-    emojione.imagePathPNG = '{{ _p.web_lib }}javascript/emojione/png/';
-    emojione.imagePathSVG = '{{ _p.web_lib }}javascript/emojione/svg/';
-    emojione.imagePathSVGSprites = '{{ _p.web_lib }}javascript/emojione/sprites/';
-
-    var emojiStrategy = {{ emoji_strategy|json_encode }};
-
-    $.emojiarea.path = '{{ _p.web_lib }}javascript/emojione/png/';
-    $.emojiarea.icons = {{ icons|json_encode }};
-
-    $('body').on('click', '#chat-reset', ChChat.onResetListener);
-    $('#preview').on('click', ChChat.onPreviewListener);
-    $('#emojis').on('click', function () {
-        $('[data-toggle="tab"][href="#tab1"]').show().tab('show');
-    });
-
-    $('textarea#chat-writer').emojiarea({
-        button: '#emojis'
-    });
-
-    $('body').delay(1500).find('.emoji-wysiwyg-editor').textcomplete([{
-        match: /\B:([\-+\w]*)$/,
-        search: function (term, callback) {
-            var results = [];
-            var results2 = [];
-            var results3 = [];
-            $.each(emojiStrategy, function (shortname, data) {
-                if (shortname.indexOf(term) > -1) {
-                    results.push(shortname);
-                } else {
-                    if ((data.aliases !== null) && (data.aliases.indexOf(term) > -1)) {
-                        results2.push(shortname);
-                    } else if ((data.keywords !== null) && (data.keywords.indexOf(term) > -1)) {
-                        results3.push(shortname);
-                    }
-                }
-            });
-
-            if (term.length >= 3) {
-                results.sort(function (a, b) {
-                    return (a.length > b.length);
-                });
-                results2.sort(function (a, b) {
-                    return (a.length > b.length);
-                });
-                results3.sort();
-            }
-
-            var newResults = results.concat(results2).concat(results3);
-            callback(newResults);
-        },
-        template: function (shortname) {
-            return '<img class="emojione" src="{{ _p.web_lib }}javascript/emojione/png/'
-                    + emojiStrategy[shortname].unicode
-                    + '.png"> :' + shortname + ':';
-        },
-        replace: function (shortname) {
-            return ':' + shortname + ': ';
-        },
-        index: 1,
-        maxCount: 10
-    }], {});
-
-    $('button#chat-send-message').on('click', ChChat.onSendMessageListener);
-    $('#chat-users').on('click', 'button.btn', function (e) {
-        e.preventDefault();
-        var jSelf = $(this),
-            userId = parseInt(jSelf.data('user')) || 0;
-
-        if (!userId) {
-            return;
-        }
-
-        var exists = false;
-
-        $('#chat-tabs ul.nav li').each(function (i, el) {
-            if ($(el).data('user') == userId) {
-                exists = true;
-            }
-        });
-
-        if (exists) {
-            $('#chat-tab-' + userId).tab('show');
-
-            return;
-        }
-
-        $('#chat-tabs ul.nav-tabs').append('\
-            <li role="presentation" data-user="' + userId + '">\
-                <a id="chat-tab-' + userId + '" href="#chat-' + userId + '" aria-controls="chat-' + userId + '" role="tab" data-toggle="tab">' + jSelf.data('name') + '</a>\
-            </li>\
-        ');
-
-        $('#chat-tabs .tab-content').append('\
-            <div role="tabpanel" class="tab-pane" id="chat-' + userId + '">\
-                <div class="course-chat chat-history" id="chat-history-' + userId + '"></div>\
-            </div>\
-        ');
-
-        $('#chat-tab-' + userId).tab('show');
-    });
-
-    $('#chat-tabs ul.nav-tabs').on('shown.bs.tab', 'li a', function (e) {
-        var jSelf = $(this);
-        var userId = parseInt(jSelf.parent().data('user')) || 0;
-        if (!userId) {
-            ChChat.currentFriend = 0;
-
-            return;
-        }
-
-        ChChat.currentFriend = userId;
-
-        $(this).tab('show');
-    });
-
-    $('.emoji-wysiwyg-editor').on('keyup', function (e) {
-        if (e.ctrlKey && e.keyCode === 13) {
-            $('button#chat-send-message').trigger('click');
-        }
-    });
-
-    ChChat.init();
-});
-</script>

+ 0 - 159
main/template/rainbow/chat/video.tpl

@@ -1,159 +0,0 @@
-<div id="chat-video-panel">
-    <div class="alert alert-warning alert-dismissible fade in">
-        <button type="button" class="close" data-dismiss="alert" aria-label="{{ 'Close'|get_lang }}">
-            <span aria-hidden="true">&times;</span>
-        </button>
-        <h4>{{ 'Warning'|get_lang }}</h4>
-        <div id="dlg-webrtc-help">
-            <p>{{ 'WebRTCDialogHelp'|get_lang }}</p>
-            <img src="{{ _p.web_lib ~ 'javascript/chat/img/webrtc_' ~ (navigator_is_firefox ? 'firefox' : 'chrome') }}.png"
-                 alt="{{ 'Permissions'|get_lang }}" class="img-thumbnail img-responsive">
-        </div>
-    </div>
-    <div class="row">
-        <div class="col-md-8 col-sm-7">
-            <div class="thumbnail video-chat-user">
-                <div id="chat-remote-video"></div>
-                <div class="caption">
-                    <p class="text-muted text-center">{{ "ChatWithXUser"|get_lang|format(chat_user.complete_name) }}</p>
-                </div>
-            </div>
-        </div>
-        <div class="col-md-4 col-sm-5">
-            <div class="thumbnail">
-                <div id="chat-local-video"></div>
-                <div class="caption">
-                    <p class="text-muted text-center">{{ user_local.complete_name }}</p>
-                </div>
-            </div>
-            <div id="connection-status"></div>
-            <div class="chat-friends">
-                <div class="panel-group" id="blocklistFriends" role="tablist" aria-multiselectable="true">
-                    <div class="panel panel-default">
-                        <div class="panel-heading" role="tab" id="headingOne">
-                            <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#blocklistFriends" href="#listFriends" aria-expanded="true" aria-controls="listFriends">
-                                    {{ "SocialFriend" | get_lang }}
-                                </a>
-                            </h4>
-                        </div>
-                        <div id="listFriends" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
-                            {{ block_friends }}
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<script>
-    (function () {
-        var VideoChat = {
-            init: function () {
-                var isCompatible = !!Modernizr.prefixed('RTCPeerConnection', window);
-
-                var notifyNotSupport = function () {
-                    $.get('{{ _p.web_ajax }}chat.ajax.php', {
-                        action: 'notify_not_support',
-                        to:{{ chat_user.id }}
-                    });
-                };
-
-                var startVideoChat = function () {
-                    var webRTC = new SimpleWebRTC({
-                        localVideoEl: 'chat-local-video',
-                        remoteVideosEl: '',
-                        autoRequestMedia: true
-                    });
-
-                    webRTC.on('readyToCall', function () {
-                        $('#dlg-webrtc-help').replaceWith("<p>" +
-                            "<em class=\"fa fa-warning\"></em> {{ 'AvoidChangingPageAsThisWillCutYourCurrentVideoChatSession'|get_lang }}" +
-                            "</p>");
-
-                        webRTC.joinRoom('{{ room_name }}');
-                    });
-                    webRTC.on('videoAdded', function (video, peer) {
-                        $(video).addClass('skip');
-                        $('#chat-remote-video').html(video);
-
-                        if (peer && peer.pc) {
-                            peer.pc.on('iceConnectionStateChange', function () {
-                                var alertDiv = $('<div>')
-                                        .addClass('alert');
-
-                                switch (peer.pc.iceConnectionState) {
-                                    case 'checking':
-                                        alertDiv
-                                            .addClass('alert-info')
-                                            .html('<em class="fa fa-spinner fa-spin"></em> ' + "{{ 'ConnectingToPeer'|get_lang }}");
-                                        break;
-                                    case 'connected':
-                                        //no break
-                                    case 'completed':
-                                        alertDiv
-                                            .addClass('alert-success')
-                                            .html('<em class="fa fa-commenting"></em> ' + "{{ 'ConnectionEstablished'|get_lang }}");
-                                        break;
-                                    case 'disconnected':
-                                        alertDiv
-                                            .addClass('alert-info')
-                                            .html('<em class="fa fa-frown-o"></em> ' + "{{ 'Disconnected'|get_lang }}");
-                                        break;
-                                    case 'failed':
-                                        alertDiv
-                                            .addClass('alert-danger')
-                                            .html('<em class="fa fa-times"></em> ' + "{{ 'ConnectionFailed'|get_lang }}");
-                                        break;
-                                    case 'closed':
-                                        alertDiv
-                                            .addClass('alert-danger')
-                                            .html('<em class="fa fa-close"></em> ' + "{{ 'ConnectionClosed'|get_lang }}");
-                                        break;
-                                }
-
-                                $('#connection-status').html(alertDiv);
-                            });
-                        }
-                    });
-                    webRTC.on('videoRemoved', function (video, peer) {
-                        video.src = '';
-                    });
-                    webRTC.on('iceFailed', function (peer) {
-                        var alertDiv = $('<div>')
-                            .addClass('alert-danger')
-                            .html('<em class="fa fa-close"></em> ' + "{{ 'LocalConnectionFailed'|get_lang }}");
-
-                        $('#connection-status').html(alertDiv);
-                    });
-                    webRTC.on('connectivityError', function (peer) {
-                        var alertDiv = $('<div>')
-                            .addClass('alert-danger')
-                            .html('<em class="fa fa-close"></em> ' + "{{ 'RemoteConnectionFailed'|get_lang }}");
-
-                        $('#connection-status').html(alertDiv);
-                    });
-                };
-
-                if (!isCompatible) {
-                    notifyNotSupport();
-
-                    $('#chat-video-panel').remove();
-                    return;
-                }
-
-                $('#messages').remove();
-
-                startVideoChat();
-
-                window.onbeforeunload = function () {
-                    return "{{ 'AvoidChangingPageAsThisWillCutYourCurrentVideoChatSession'|get_lang }}";
-                };
-            }
-        };
-
-        $(document).on('ready', function () {
-            VideoChat.init();
-        });
-    })();
-</script>

+ 0 - 34
main/template/rainbow/course_description/edit.tpl

@@ -1,34 +0,0 @@
-{{javascript}}
-
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-
-{% if is_allowed_to_edit %}
-    <div class="btn-toolbar actions-bar" >
-        <div class="btn-group">
-            <a href="{{root}}&amp;action=listing" class="btn btn-default" title="{{'ImportCSV'|get_lang}}">
-                <em class="size-32 icon-back"></em>
-            </a>
-        </div>
-        <div class="btn-group edit new">
-            {% for type in types %}        
-                <a href="{{root}}&amp;action=add&amp;description_type={{type.id}}" class="btn btn-default">
-                    <img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} " width="32" height="32">
-                </a>    
-            {% endfor %}
-        </div>
-    </div>
-{% endif %}
-
-
-{% if type.question %}
-    <div class="normal-message">
-        <div>
-            <strong>{{'QuestionPlan'|get_lang}}</strong>
-        </div>
-        {{type.question}}
-    </div>
-{% endif %}
-
-{{form.return_form()}}

+ 0 - 105
main/template/rainbow/course_description/index.tpl

@@ -1,105 +0,0 @@
-{{javascript}}
-
-<script>
-{% if is_allowed_to_edit %}
-    var sec_token = '{{sec_token}}';
-{% endif %}
-
-function delete_entry(name, btn){
-    if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){
-        return false;
-    }
-
-    var item = $('#'+name);
-    var id = item.attr('data-id');
-    var c_id = item.attr('data-c_id');
-
-    var f = function(data){
-        if(data.success){
-            item.remove();
-        }
-        message.update(data);
-        $(btn).removeClass("loading");
-    };
-    CourseDescription.del(c_id, id, f);
-    $(btn).addClass("loading");
-}
-
-function delete_all(){
-    if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){
-        return false;
-    }
-
-    var f = function(data){
-        if(data.success){
-            var item = $('.course_descriptions');
-            item.remove();
-        }
-        message.update(data);
-    };
-    CourseDescription.delete_by_course({{c_id}}, {{session_id}}, f);
-}
-</script>
-
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-
-{% if is_allowed_to_edit %}
-    <div class="btn-toolbar actions-bar">
-        <div class="btn-group edit new">
-            {% for type in types %}
-                <a href="{{root}}&amp;action=add&amp;description_type={{type.id}}" class="btn btn-default">
-                    <img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} " width="32" height="32">
-                </a>
-            {% endfor %}
-        </div>
-        <div class="btn-group edit">
-            <a href="{{root}}&amp;action=import_csv" class="btn btn-default" title="{{'ImportCSV'|get_lang}}">
-                <em class="size-32 icon-import-csv"></em>
-            </a>
-            <a href="{{root}}&amp;action=export_csv" class="btn btn-default" title="{{'ExportAsCSV'|get_lang}}">
-                <em class="size-32 icon-export-csv"></em>
-            </a>
-            <a href="javascript:void(0)" onclick="delete_all();return false;" class="btn btn-default" title="{{'DeleteAll'|get_lang}}">
-                <em class="size-32 icon-delete-all"></em>
-            </a>
-        </div>
-    </div>
-{% endif %}
-
-<ul style="list-style: none; margin-left:0;" class="course_descriptions">
-{% for description in descriptions %}
-    <li id="description_{{description.id}}" class="course_description" data-id="{{description.id}}" data-c_id="{{description.c_id}}" data-type="course_description">
-        <div class="title sectiontitle">
-            {% if is_allowed_to_edit %}
-                <div class="pull-right element-actions">
-                {% if session_id == description.session_id %}
-                    <a href="{{root}}&amp;action=delete&amp;id={{description.id}}"
-                       onclick="delete_entry('description_{{description.id}}', this); return false;"
-                       title="{{'Delete'|get_lang}}">
-                        <em class="size-22 icon-delete"></em>
-                    </a>
-
-                    <a href="{{root}}&amp;action=edit&amp;id={{description.id}}"
-                       title="{{'Edit'|get_lang}}">
-                        <em class="size-22 icon-edit"></em>
-                    </a>
-                {% else %}
-                    <img title="{{'EditionNotAvailableFromSession'|get_lang}}"
-                         alt="{{'EditionNotAvailableFromSession'|get_lang}}"
-                         src="{{'edit_na.png'|icon(22)}}"  width="22" height="22"
-                         style="vertical-align:middle;">
-                {% endif %}
-                </div>
-            {% endif %}
-
-            <img title="{{description.type.title}}" alt="{{description.type.title}}" src="{{description.type.icon|icon(32)}}" class="icon">
-            {{description.title}}
-        </div>
-        <div class="sectioncomment">
-            {{description.content}}
-        </div>
-    </li>
-{% endfor %}
-</ul>

+ 0 - 15
main/template/rainbow/course_description/upload.tpl

@@ -1,15 +0,0 @@
-{{javascript}}
-
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-
-<div class="btn-toolbar actions-bar" >
-    <div class="btn-group">
-        <a href="{{root}}&amp;action=listing" class="btn" title="{{'ImportCSV'|get_lang}}">
-            <em class="size-32 icon-back"></em>
-        </a>
-    </div>
-</div>
-
-{{form.return_form()}}

+ 0 - 35
main/template/rainbow/course_home/activity.tpl

@@ -1,35 +0,0 @@
-{% for block in blocks %}
-    {% if block.title %}
-        <h2 class="title-tools">{{ block.title }}</h2>
-    {% endif %}
-
-    <div class="row {{ block.class }}">
-        {% if 'homepage_view'|api_get_setting == 'activity' %}
-            {% for item in block.content %}
-                <div class="offset2 col-md-4 course-tool">
-                    {{ item.extra }}
-                    {{ item.visibility }}
-                    {{ item.icon }}
-                    {{ item.link }}
-                </div>
-            {% endfor %}
-        {% endif %}
-
-        {% if 'homepage_view'|api_get_setting == 'activity_big' %}
-            {% for item in block.content %}
-                <div class="col-xs-6 col-md-3 course-tool">
-                    <div class="big_icon">
-                        {{ item.tool.image }}
-                    </div>
-                    <div class="content">
-                        <h4>
-                            {{ item.visibility }}
-                            {{ item.extra }}
-                            {{ item.link }}
-                        </h4>
-                    </div>
-                </div>
-            {% endfor %}
-        {% endif %}
-    </div>
-{% endfor %}

+ 0 - 34
main/template/rainbow/course_home/vertical_activity.tpl

@@ -1,34 +0,0 @@
-{% for block in blocks %}
-    <div class="{{ block.class ?: 'courseadminview-activity-3col' }}">
-        {% if block.title %}
-            <span class="viewcaption">{{ block.title }}</span>
-        {% endif %}
-
-        {% for item in block.content %}
-            {% if loop.index0 == 0 %}
-                <ul>
-            {% endif %}
-
-            <li class="course-tool">
-                {{ item.extra }}
-                {{ item.visibility }}
-
-                {% set a_params = '' %}
-
-                {% for foo, bar in item.url_params %}
-                    {% set a_params = a_params ~ [foo, bar]|join('="') ~ '" ' %}
-                {% endfor %}
-
-                <a {{ a_params }} >
-                    <img src="{{ item.tool.image|replace({'.gif': '.png'})|icon() }}" alt="{{ item.name }}"
-                         id="toolimage_{{ item.tool.iid }}">
-                </a>
-                {{ item.link }}
-            </li>
-
-            {% if block.content|length == loop.index %}
-                </ul>
-            {% endif %}
-        {% endfor %}
-    </div>
-{% endfor %}

+ 0 - 8
main/template/rainbow/course_progress/layout.tpl

@@ -1,8 +0,0 @@
-<div class="row">
-    <div class="col-md-12">
-        {{ actions }}
-        <div class="blog">
-            {{ content }}
-        </div>
-    </div>
-</div>

+ 0 - 46
main/template/rainbow/course_progress/pdf_general_thematic.tpl

@@ -1,46 +0,0 @@
-
-<table style="margin-top: 30px;" class="full-width border-thin">
-    <thead>
-        <tr>
-            <th width="30%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "Thematic"|get_lang }}
-            </th>
-            <th width="50%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "ThematicPlan"|get_lang }}
-            </th>
-            <th width="20%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "ThematicAdvance"|get_lang }}
-           </th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for item in data %}
-            <tr>
-                <td>
-                    <h4 style="margin-bottom: 10px;">{{ item.title }}</h4>
-                    <br>
-                    {{ item.content }}
-                </td>
-                <td>
-                    {% for plan in item.thematic_plan %}
-                        <br>
-                        <h4 style="margin-bottom: 10px;">{{ plan.title }}</h4>
-                        <br>
-                        {{ plan.description }}
-                    {% endfor %}
-                </td>
-                <td>
-                    {% for advance in item.thematic_advance %}
-                        <br>
-                        <h4 style="margin-bottom: 10px;">
-                            {{ advance.duration }} {{ "MinHours" | get_lang }}
-                        </h4>
-                        {{ advance.start_date | api_convert_and_format_date(2) }}
-                        <br>
-                        {{ advance.content }}
-                    {% endfor %}
-                </td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>

+ 0 - 36
main/template/rainbow/course_progress/pdf_single_thematic.tpl

@@ -1,36 +0,0 @@
-<table class="full-width border-thin">
-    <thead>
-    <tr>
-        <th width="30%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">{{ 'Thematic'|get_lang }}</th>
-        <th width="50%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">{{ 'ThematicPlan'|get_lang }}</th>
-        <th width="20%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">{{ 'ThematicAdvance'|get_lang }}</th>
-    </tr>
-    </thead>
-    <tbody>
-    <tr>
-        <td>
-            <h4>{{ theme.title }}</h4>
-            <br>
-            {{ theme.content }}
-        </td>
-        <td>
-            {% for plan in plans %}
-                <br>
-                <h4>{{ plan.title }}</h4>
-                <br>
-                {{ plan.description }}
-            {% endfor %}
-        </td>
-        <td>
-            {% for advance in advances %}
-                <h4 style="margin-bottom: 10px;">
-                    {{ advance.duration }} {{ "MinHours" | get_lang }}
-                </h4>
-                <p>{{ advance.start_date|api_convert_and_format_date(2) }}</p>
-                {{ advance.content }}
-                <br>
-            {% endfor %}
-        </td>
-    </tr>
-    </tbody>
-</table>

+ 0 - 126
main/template/rainbow/course_progress/progress.tpl

@@ -1,126 +0,0 @@
-{{ actions }}
-{{ message }}
-{{ flash_messages }}
-{% if data is not empty %}
-{% set tutor =  false|api_is_allowed_to_edit(true) %}
-<div id="course-progress" class="thematic">
-    <div class="row">
-        <div class="col-md-12">
-            <div class="bar-progress">
-                <div class="pull-right">
-                    <div class="score-progress">
-                        <h3>{{ 'Progress' | get_lang }}: <span id="div_result">{{ score_progress }}</span> %</h3>
-                    </div>
-                </div>
-            </div>
-            <div class="table-responsive">
-                <table width="100%" class="table table-hover">
-                    <tr>
-                        <th style="width: 25%">{{ 'Thematic' | get_lang }}</th>
-                        <th style="width: 40%">{{ 'ThematicPlan' | get_lang }}</th>
-                        <th style="width: 35%">{{ 'ThematicAdvance' | get_lang }}</th>
-                    </tr>
-                    {% for item in data %}
-                        <tr>
-                            <td id="id-thematic-{{ item.id }}">
-                                {% if session_star is empty %}
-                                    <h3>{{ item.title }}</h3>
-                                {% else %}
-                                    <h3>{{ item.title }} {{ session_star }}</h3>
-                                {% endif %}
-                                {{ item.content }}
-                                <div class="btn-group btn-group-sm">
-                                    {{ item.toolbar }}
-                                </div>
-                            </td>
-                            <td>
-                                {% if tutor %}
-                                <div class="pull-right">
-                                    <a title="{{ 'EditThematicPlan' | get_lang }}" href="index.php?{{ _p.web_cid_query }}&origin=thematic_details&action=thematic_plan_list&thematic_id={{ item.id }}&width=700&height=500'" class="btn btn-default">
-                                        <i class="fa fa-pencil" aria-hidden="true"></i>
-                                    </a>
-                                </div>
-                                {% endif %}
-                                <div class="thematic_plan_{{ item.id }}">
-                                    {% if item.thematic_plan is empty %}
-                                    <div class="alert-thematic">
-                                        <div class="alert alert-info" role="alert">{{ 'StillDoNotHaveAThematicPlan' | get_lang }}</div>
-                                    </div>
-                                    {% else %}
-                                        {% for subitem in item.thematic_plan %}
-                                        <h4>{{ subitem.title }}</h4>
-                                        <p>{{ subitem.description }}</p>
-                                        {% endfor %}
-                                    {% endif %}
-                                </div>
-                            </td>
-                            <td>
-                                {% if tutor %}
-                                <div class="pull-right">
-                                    <a title="{{ 'NewThematicAdvance' | get_lang }}" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_add&thematic_id={{ item.id }}" class="btn btn-default">
-                                        <i class="fa fa-plus-circle" aria-hidden="true"></i>
-                                    </a>
-                                </div>
-                                {% endif %}
-                                <div class="thematic-advance">
-                                <table width="100%" class="table">
-                                {% if item.thematic_advance is not empty %}
-                                {% for advance in item.thematic_advance %}
-                                <tr>
-                                    <td style="width: 90%" class="thematic_advance_content" id="thematic_advance_content_id_{{ advance.id }}">
-                                        <div id="thematic_advance_{{ advance.id }}">
-                                        <strong>{{ advance.start_date | format_date }}</strong>
-                                        {{ advance.content }}
-                                        </div>
-                                        {% if tutor %}
-                                            <div class="toolbar-actions">
-                                                <div id="thematic_advance_tools_{{ advance.id }}" class="thematic_advance_actions">
-                                                    <div class="btn-group btn-group-sm">
-                                                        <a class="btn btn-default btn-sm" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_edit&thematic_id={{ item.id }}&thematic_advance_id={{ advance.id }}" title="{{ 'Edit' |get_lang }}">
-                                                            <i class="fa fa-pencil" aria-hidden="true"></i>
-                                                        </a>
-                                                        <a class="btn btn-default btn-sm" onclick="javascript:if(!confirm('{{ 'AreYouSureToDelete' | get_lang }}')) return false;" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_delete&thematic_id={{ item.id }}&thematic_advance_id={{ advance.id }}" title="{{ 'Delete' |get_lang }}">
-                                                            <i class="fa fa-trash" aria-hidden="true"></i>
-                                                        </a>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        {% endif %}
-                                        </div>
-                                    </td>
-                                    {% if advance.done_advance == 1 %}
-                                        {% set color = "background-color:#E5EDF9;" %}
-                                    {% else %}
-                                        {% set color = "background-color:#FFFFFF;" %}
-                                    {% endif %}
-                                    {% if tutor %}
-                                        <td style="width: 10%; {{ color }}" id="td_done_thematic_{{ advance.id }}">
-                                        {% set check = ""  %}
-                                        {% if item.last_done == advance.id %}
-                                            {% set check = "checked"  %}
-                                        {% endif %}
-                                        <center>
-                                            <input type="radio" class="done_thematic" id="done_thematic_{{ advance.id }}" name="done_thematic" value="{{ advance.id }}" {{ check }} onclick="update_done_thematic_advance(this.value)">
-                                        </center>
-                                    {% else %}
-                                        </td>
-                                    {% endif %}
-                                </tr>
-                                {% endfor %}
-                                {% else %}
-                                    <div class="alert alert-info" role="alert">{{ 'ThereIsNoAThematicAdvance' | get_lang }}</div>
-                                {% endif %}
-                                </table>
-                                </div>
-                            </td>
-                        </tr>
-                    {% endfor %}
-
-                </table>
-            </div>
-        </div>
-    </div>
-</div>
-{% else %}
-    <div class="alert alert-info" role="alert">{{ 'ThereIsNoAThematicSection' | get_lang }}</div>
-{% endif %}

+ 0 - 15
main/template/rainbow/coursecopy/import_moodle.tpl

@@ -1,15 +0,0 @@
-{{ info_msg }}
-<br />
-<div id="loader" class="text-center">
-
-</div>
-<br />
-{{ form }}
-
-<script>
-    $(document).ready(function(){
-        $(".btn-primary").click(function() {
-            $("#loader").html('<div class="wobblebar-loader"></div><p> {{ 'ProcessingImportPleaseDontCloseThisWindowThisActionMayTakeLongTimePlaseWait' | get_lang }} </p>');
-        });
-    });
-</script>

+ 0 - 58
main/template/rainbow/create_course/add_course.tpl

@@ -1,58 +0,0 @@
-{% if just_created == 1%}
-<h3>{{ 'JustCreated'|get_lang }} {{ course_title }}</h3>
-<hr />
-{% endif %}
-
-<h3>{{ 'ThingsToDo'|get_lang }}</h3>
-<br />
-
-<div id="course_thing_to_do" class="row">
-    <div class="col-md-3">
-        <div class="thumbnail">
-            {{ 'info.png' | img(64, 'AddCourseDescription'|get_lang ) }}
-            <div class="caption">
-                <a href="{{ _p.web_main }}course_description/?cidReq={{ course_id }}" class="btn btn-default">
-                    <em class="fa fa-info-circle"></em> {{'AddCourseDescription'|get_lang}}
-                </a>
-            </div>
-        </div>
-    </div>
-    <div class="col-md-3">
-        <div class="thumbnail">
-            {{ 'folder_document.png' | img(64, 'UploadADocument'|get_lang ) }}
-            <div class="caption">
-                <a href="{{ _p.web_main }}document/document.php?cidReq={{ course_id }}" class="btn btn-default">
-                    <em class="fa fa-paper-plane"></em> {{'UploadADocument'|get_lang}}
-                </a>
-            </div>
-        </div>
-    </div>
-    <div class="col-md-3">
-        <div class="thumbnail">
-            {{ 'forum.png' | img(64, 'AddForum'|get_lang ) }}
-
-            <div class="caption">
-                <a href="{{ _p.web_main }}forum/index.php?cidReq={{ course_id }}" class="btn btn-default">
-                    <em class="fa fa-users"></em> {{ 'AddForum'|get_lang }}
-                </a>
-            </div>
-        </div>
-    </div>
-    {% if ("allow_user_course_subscription_by_course_admin" | api_get_setting) == 'true' or _u.is_admin == 1 %}
-    <div class="col-md-3">
-        <div class="thumbnail">
-
-        {{ 'user.png' | img(64, 'SubscribeUserToCourse'|get_lang ) }}
-            <div class="caption">
-            <a href="{{ _p.web_main }}user/subscribe_user.php?cidReq={{ course_id }}" class="btn btn-default">
-                <em class="fa fa-user-plus"></em> {{ 'SubscribeUserToCourse'|get_lang }}
-            </a>
-            </div>
-        </div>
-    </div>
-    {% endif %}
-
-
-</div>
-
-<div class="clear"></div>

+ 0 - 78
main/template/rainbow/document/record_audio.tpl

@@ -1,78 +0,0 @@
-<div class="alert alert-warning">
-    <span class="fa fa-warning fa-fw" aria-hidden="true"></span> {{ 'WamiNeedFilename'|get_lang }}
-</div>
-
-<div id="record-audio-recordrtc" class="row text-center">
-    <form>
-        <div class="row">
-            <div class="col-sm-4 col-sm-offset-4">
-                <div class="form-group">
-                    <span class="fa fa-microphone fa-5x fa-fw" aria-hidden="true"></span>
-                    <span class="sr-only">{{ 'RecordAudio'|get_lang }}</span>
-                </div>
-                <div class="form-group">
-                    <input type="text" name="audio_title" id="audio-title-rtc" class="form-control" placeholder="{{ 'InputNameHere'|get_lang }}">
-                </div>
-            </div>
-        </div>
-        <div class="text-center">
-            <div class="form-group">
-                <button class="btn btn-primary" type="button" id="btn-start-record">
-                    <span class="fa fa-circle fa-fw" aria-hidden="true"></span> {{ 'StartRecordingAudio'|get_lang }}
-                </button>
-                <button class="btn btn-danger" type="button" id="btn-stop-record" disabled>
-                    <span class="fa fa-square fa-fw" aria-hidden="true"></span> {{ 'StopRecordingAudio'|get_lang }}
-                </button>
-                <button class="btn btn-success" type="button" id="btn-save-record" disabled>
-                    <span class="fa fa-send fa-fw" aria-hidden="true"></span> {{ 'SaveRecordedAudio'|get_lang }}
-                </button>
-            </div>
-            <div class="form-group">
-                <audio class="skip hidden center-block" controls id="record-preview"></audio>
-            </div>
-        </div>
-    </form>
-</div>
-
-<div class="row" id="record-audio-wami">
-    <div class="col-sm-3 col-sm-offset-3">
-        <br>
-        <form>
-            <div class="form-group">
-                <input type="text" name="audio_title" id="audio-title-wami" class="form-control" placeholder="{{ 'InputNameHere'|get_lang }}">
-            </div>
-            <div class="form-group text-center">
-                <button class="btn btn-primary" type="button" id="btn-activate-wami">
-                    <span class="fa fa-check fa-fw" aria-hidden=""></span> {{ 'Activate'|get_lang }}
-                </button>
-            </div>
-        </form>
-    </div>
-    <div class="col-sm-3">
-        <div id="record-audio-wami-container" class="wami-container"></div>
-    </div>
-</div>
-
-<script>
-    $(document).on('ready', function () {
-        RecordAudio.init(
-            {
-                blockId: '#record-audio-recordrtc',
-                btnStartId: '#btn-start-record',
-                btnPauseId: '#btn-pause-record',
-                btnPlayId: '#btn-play-record',
-                btnStopId: '#btn-stop-record',
-                btnSaveId: '#btn-save-record',
-                plyrPreviewId: '#record-preview',
-                directory: '{{ directory }}'
-            },
-            {
-                blockId: '#record-audio-wami',
-                containerId: 'record-audio-wami-container',
-                directory: '{{ directory }}',
-                userId: {{ user_id }}
-            },
-            null
-        );
-    });
-</script>

+ 0 - 48
main/template/rainbow/document/recycle.tpl

@@ -1,48 +0,0 @@
-{% macro bytesToSize(bytes) %}
-{% spaceless %}
-{% set kilobyte = 1024 %}
-{% set megabyte = kilobyte * 1024 %}
-{% set gigabyte = megabyte * 1024 %}
-{% set terabyte = gigabyte * 1024 %}
-
-{% if bytes < kilobyte %}
-{{ bytes ~ ' B' }}
-{% elseif bytes < megabyte %}
-{{ (bytes / kilobyte)|number_format(2, '.') ~ ' KB' }}
-{% elseif bytes < gigabyte %}
-{{ (bytes / megabyte)|number_format(2, '.') ~ ' MB' }}
-{% elseif bytes < terabyte %}
-{{ (bytes / gigabyte)|number_format(2, '.') ~ ' GB' }}
-{% else %}
-{{ (bytes / terabyte)|number_format(2, '.') ~ ' TB' }}
-{% endif %}
-{% endspaceless %}
-{% endmacro %}
-
-{% if files %}
-    <table class="table">
-        <tr>
-            <th>{{ 'Path' | get_lang }}</th>
-            <th>{{ 'Size' | get_lang }}</th>
-            <th>{{ 'Actions' | get_lang }}</th>
-        </tr>
-    {% for file in files %}
-        <tr>
-            <td>
-                {{ file.path }}
-            </td>
-            <td>
-                {{ _self.bytesToSize(file.size) }}
-            </td>
-
-            <td>
-                <a href="{{ web_self }}?{{web_cid_query}}&action=download&id={{ file.id }}" class="btn btn-default">{{ 'Download' | get_lang }}</a>
-                <a href="{{ web_self }}?{{web_cid_query}}&action=delete&id={{ file.id }}" class="btn btn-danger">{{ 'Delete' | get_lang }}</a>
-            </td>
-        </tr>
-    {% endfor %}
-    </table>
-{% else %}
-    {{ 'NoData' | get_lang }}
-{% endif %}
-

+ 0 - 69
main/template/rainbow/exercise/oral_expression.tpl

@@ -1,69 +0,0 @@
-
-<div id="record-audio-recordrtc-{{ question_id }}" class="row">
-    <div class="col-sm-4 col-sm-offset-4">
-        <div class="form-group text-center">
-            <span class="fa fa-microphone fa-5x fa-fw" aria-hidden="true"></span>
-            <span class="sr-only">{{ 'RecordAudio'|get_lang }}</span>
-        </div>
-    </div>
-    <div class="col-sm-12">
-        <div class="form-group text-center">
-            <button class="btn btn-primary" type="button" id="btn-start-record-{{ question_id }}">
-                <span class="fa fa-circle fa-fw" aria-hidden="true"></span> {{ 'StartRecordingAudio'|get_lang }}
-            </button>
-            <button class="btn btn-primary hidden" type="button" id="btn-pause-record-{{ question_id }}" disabled>
-                <span class="fa fa-pause fa-fw" aria-hidden="true"></span> {{ 'PauseRecordingAudio'|get_lang }}
-            </button>
-            <button class="btn btn-primary hidden" type="button" id="btn-play-record-{{ question_id }}" disabled>
-                <span class="fa fa-play fa-fw" aria-hidden="true"></span> {{ 'PlayRecordingAudio'|get_lang }}
-            </button>
-            <button class="btn btn-danger hidden" type="button" id="btn-stop-record-{{ question_id }}" disabled>
-                <span class="fa fa-square fa-fw" aria-hidden="true"></span> {{ 'StopRecordingAudio'|get_lang }}
-            </button>
-            <button class="btn btn-success hidden" type="button" id="btn-save-record-{{ question_id }}"
-                    data-loadingtext="{{ 'Uploading'|get_lang }}"
-                    disabled>
-                <span class="fa fa-send fa-fw" aria-hidden="true"></span> {{ 'SaveRecordedAudio'|get_lang }}
-            </button>
-            <button id="hide_description_{{ question_id }}" type="button" class="btn btn-default advanced_options" data-toggle="button" aria-pressed="false" autocomplete="off">
-                <em class="fa fa-bars"></em> {{ 'AddText' | get_lang }}
-            </button>
-        </div>
-        <div class="form-group text-center">
-            <audio class="skip hidden center-block" controls id="record-preview-{{ question_id }}"></audio>
-        </div>
-        <div class="well">
-            {{ 'OralExpressionHelpText' | get_lang }}
-        </div>
-        <div class="record-message"></div>
-    </div>
-</div>
-
-<div class="row" id="record-audio-wami-{{ question_id }}">
-    <div class="col-sm-4 col-sm-offset-4 text-center">
-        <div id="record-audio-wami-container-{{ question_id }}" class="wami-container"></div>
-    </div>
-</div>
-
-<script>
-    $(document).on('ready', function () {
-        RecordAudio.init({
-            blockId: '#record-audio-recordrtc-{{ question_id }}',
-            btnStartId: '#btn-start-record-{{ question_id }}',
-            btnPauseId: '#btn-pause-record-{{ question_id }}',
-            btnPlayId: '#btn-play-record-{{ question_id }}',
-            btnStopId: '#btn-stop-record-{{ question_id }}',
-            plyrPreviewId: '#record-preview-{{ question_id }}',
-            directory: '{{ directory }}'
-        }, {
-            blockId: '#record-audio-wami-{{ question_id }}',
-            containerId: 'record-audio-wami-container-{{ question_id }}',
-            directory: '{{ directory }}',
-            userId: {{ user_id }}
-        }, '{{ file_name }}');
-
-        if (0 === $('#hide_description_{{ question_id }}_options').length) {
-            $('#hide_description_{{ question_id }}').remove();
-        }
-    });
-</script>

+ 0 - 61
main/template/rainbow/exercise/overview.tpl

@@ -1,61 +0,0 @@
-<div class="exercise-container">
-    {{ time_control }}
-    {% if status is not empty %}
-        <div class="alert alert-warning" role="alert">
-            {{ status }}
-        </div>
-    {% endif %}
-    {% if data.edit and data.session_id == api_get_session_id %}
-        <div class="pull-right">
-            <a class="btn btn-default" title="{{ "Edit"|get_lang }}" href="{{ _p.web_main }}exercise/admin.php?{{ _p.web_cid_query }}&id_session={{ _c.session_id }}&exerciseId={{ data.id }}">
-                <i class="fa fa-pencil" aria-hidden="true"></i>
-            </a>
-        </div>
-    {% endif %}
-        <div class="title">
-            <h2>{{ data.title }}</h2>
-        </div>
-        <div class="description">
-            {{ data.description }}
-        </div>
-
-    {% if data.url is not empty %}
-        <div class="exercise-btn">
-            <a href="{{ data.url }}" class="btn btn-success btn-exercise">
-                {{ label }}
-            </a>
-        </div>
-    {% endif %}
-
-    {% if data.attempts is not empty %}
-        {% if count == data.attempts %}
-            <div class="attempts error">
-                {{ "Attempts" |get_lang }} {{ count }} / {{ data.attempts }}
-            </div>
-        {% else %}
-            <div class="attempts">
-                <ul class="attempts-status">
-                    {% if count != 0 %}
-                        {% for i in 0..count - 1 %}
-                            <li><img src="{{ _p.web_css_theme }}images/attempt-check.png"></li>
-                        {% endfor %}
-                    {% endif %}
-                    {% if count != data.attempts %}
-                        {% for i in 0..data.attempts - count - 1 %}
-                            <li><img src="{{ _p.web_css_theme }}images/attempt-nocheck.png"></li>
-                        {% endfor %}
-                    {% endif %}
-                </ul>
-                <div class="details">
-                    {{ "Attempts" |get_lang }} {{ count }} / {{ data.attempts }}
-                </div>
-            </div>
-        {% endif %}
-    {% endif %}
-
-    {% if table_result is not empty %}
-        <div class="table-responsive">
-            {{ table_result }}
-        </div>
-    {% endif %}
-</div>

+ 0 - 101
main/template/rainbow/exercise/reading_comprehension.tpl

@@ -1,101 +0,0 @@
-<div id="question-{{ id }}" class="question-reading-comprehension-container">
-    <div class="question-reading-comprehension-overlay"></div>
-    <div id="question-{{ id }}-text" class="center-block question-reading-comprehension-text" onselectstart="return false">
-        {{ text }}
-    </div>
-</div>
-
-<style>
-    .question-reading-comprehension-container {
-        position: relative;
-    }
-    .question-reading-comprehension-container .question-reading-comprehension-overlay {
-        bottom: 0;
-        left: 0;
-        position: absolute;
-        right: 0;
-        top: 0;
-    }
-    .question-reading-comprehension-text {
-        text-align: justify;
-        -webkit-touch-callout: none;
-        -webkit-user-select: none;
-        -khtml-user-select: none;
-        -moz-user-select: none;
-        -ms-user-select: none;
-        user-select: none;
-    }
-    .question-reading-comprehension-text .text-highlight {
-        color: transparent;
-        -webkit-text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-        -khtml-text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-        -moz-text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-        -ms-text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-    }
-    .question-reading-comprehension-text .text-highlight.active {
-        color: #000;
-        -webkit-text-shadow: none;
-        -khtml-text-shadow: none;
-        -moz-text-shadow: none;
-        -ms-text-shadow: none;
-        text-shadow: none;
-    }
-    .question-reading-comprehension-text .text-highlight.border {
-        color: #bbb;
-        -webkit-text-shadow: none;
-        -khtml-text-shadow: none;
-        -moz-text-shadow: none;
-        -ms-text-shadow: none;
-        text-shadow: none;
-    }
-    .question-reading-comprehension-text br {
-        margin-bottom: 1em;
-    }
-    .radio.hide-reading-answers, .question_title.hide-reading-answers {
-        display: none;
-    }
-</style>
-
-<script>
-    $(document).on('ready', function () {
-        var index = 0,
-            $questionTexts = $('#question-{{ id }}-text .text-highlight'),
-            total = $questionTexts.length;
-
-        function updateView()
-        {
-            $questionTexts.removeClass('active border');
-
-            if (index == total - 1) {
-                $('#question_div_{{ id }} .radio, #question_div_{{ id }} .question_title').removeClass('hide-reading-answers');
-            }
-
-            if (index >= total) {
-                window.clearInterval(timeOuId);
-
-                return;
-            }
-
-            var prev = index > 0 ? $('#question-{{ id }}-text .text-highlight').get(index - 1) : null,
-                current = $questionTexts.get(index),
-                next = index < total ? $('#question-{{ id }}-text .text-highlight').get(index + 1) : null;
-
-            $(current).addClass('active');
-
-            if (prev) {
-                $(prev).addClass('border');
-            }
-
-            if (next) {
-                $(next).addClass('border');
-            }
-
-            index++;
-        }
-
-        updateView();
-
-        var timeOuId = window.setInterval(updateView, {{ refresh_time }} * 1000);
-    });
-</script>

+ 0 - 9
main/template/rainbow/export/alt_pdf_footer.tpl

@@ -1,9 +0,0 @@
-<table border="0" class="full-width border-top page-footer">
-    <tr>
-        <td class="text-center">
-            <strong>{{ _s.institution }}</strong>
-            <br>
-            <strong>{PAGENO} / {nb}</strong>
-        </td>
-    </tr>
-</table>

+ 0 - 10
main/template/rainbow/export/pdf_footer.tpl

@@ -1,10 +0,0 @@
-<table border="0" class="full-width border-top page-footer">
-    <tr>
-        <td class="text-left">
-            <strong>{{ _s.institution }}</strong>
-        </td>
-        <td class="text-right">
-            <strong>{PAGENO} / {nb}</strong>
-        </td>
-    </tr>
-</table>

+ 0 - 11
main/template/rainbow/export/pdf_header.tpl

@@ -1,11 +0,0 @@
-<table border="0" width="100%" class="pdf-header">
-    <tr>
-        <td width="30%">
-            {{ organization }}
-        </td>
-        <td width="80%" style="text-align: right; font-size: 12px; color: #666666;">
-            <strong>{{ teacher_name }}</strong>
-        </td>
-    </tr>
-</table>
-

+ 0 - 8
main/template/rainbow/extrafield/translate.tpl

@@ -1,8 +0,0 @@
-{{ form }}
-<script>
-    $(document).on('ready', function () {
-        $('select[name="sub_language"]').on('change', function () {
-            location.href += '&sub_language=' + this.value;
-        });
-    });
-</script>

+ 0 - 88
main/template/rainbow/forum/list.tpl

@@ -1,88 +0,0 @@
-{% extends template ~ "/layout/layout_1_col.tpl" %}
-{% block content %}
-
-{{ introduction_section }}
-
-{{ form_content }}
-
-{% if data is not empty %}
-    {% for item in data %}
-        <div class="category-forum" id="category_{{ item.id }}">
-            <div class="pull-right">
-                {{ item.tools }}
-            </div>
-            <h3>
-                {{ 'forum_blue.png'|img(32) }}
-                <a href="{{ item.url }}" title="{{ item.title }}">{{ item.title }}{{ item.icon_session }}</a>
-            </h3>
-            <div class="forum-description">
-                {{ item.description }}
-            </div>
-        </div>
-            {% for subitem in item.forums %}
-                <div class="forum_display">
-                    <div class="panel panel-default forum">
-                        <div class="panel-body">
-                            <div class="row">
-                                <div class="col-md-3">
-                                    <div class="number-post">
-                                        <a href="{{ forum.url }}" title="{{forum.title}}">
-                                        {% if subitem.forum_image is not empty %}
-                                            <img src="{{ subitem.forum_image }}" width="48px">
-                                        {% else %}
-                                            {% if subitem.forum_of_group == 0 %}
-                                                {{ 'forum_group.png'|img(48) }}
-                                            {% else %}
-                                                {{ 'forum.png'|img(48) }}
-                                            {% endif %}
-                                        {% endif %}
-                                        </a>
-                                        <p>{{ 'ForumThreads'| get_lang }}: {{ subitem.number_threads }} </p>
-                                    </div>
-                                </div>
-                                <div class="col-md-9">
-                                    <div class="pull-right">
-                                        <div class="toolbar">
-                                            {{ subitem.tools }}
-                                        </div>
-                                    </div>
-                                    <h3 class="title">
-                                    {{ 'forum_yellow.png'|img(32) }}
-                                    <a href="{{ subitem.url }}" title="{{ subitem.title }}" class="{{ subitem.visibility != '1' ? 'text-muted': '' }}">{{ subitem.title }}</a>
-                                    {% if subitem.forum_of_group != 0 %}
-                                        <a class="forum-goto" href="../group/group_space.php?{{ _p.web_cid_query }}&gidReq={{ subitem.forum_of_group }}">
-                                            {{ "forum.png"|img(22) }} {{ "GoTo"|get_lang }} {{ subitem.forum_group_title }}
-                                        </a>
-                                    {% endif %}
-                                    {{ subitem.icon_session }}
-                                    </h3>
-                                    {% if subitem.last_poster_id is not empty %}
-                                        <div class="forum-date">
-                                            <i class="fa fa-comments" aria-hidden="true"></i>
-                                            {{ subitem.last_poster_date }}
-                                            {{ "By"|get_lang }}
-                                            {{ subitem.last_poster_user }}
-                                        </div>
-                                    {% endif %}
-                                    <div class="description">
-                                        {{ subitem.description }}
-                                    </div>
-                                    {{ subitem.alert }}
-                                    {% if subitem.moderation is not empty %}
-                                        <span class="label label-warning">
-                                            {{ "PostsPendingModeration"|get_lang }}: {{ subitem.moderation }}
-                                        </span>
-                                    {% endif %}
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            {% endfor %}
-    {% endfor %}
-    {% else %}
-        <div class="alert alert-warning">
-            {{ 'NoForumInThisCategory'|get_lang }}
-        </div>
-    {% endif %}
-{% endblock %}

+ 0 - 87
main/template/rainbow/gamification/my_progress.tpl

@@ -1,87 +0,0 @@
-<div class="my-progress row">
-    <div class="col-md-3">
-        <div class="panel panel-default">
-            <div class="panel-body">
-                <div class="profile-user">
-                    {{ user_avatar }}
-                    <div class="username">{{ user.getCompleteName() }}</div>
-                    <div class="star-progress">
-                        <span class="pull-right">{{ 'XPoints'|get_lang|format(gamification_points) }}</span>
-
-                        {% if gamification_stars > 0 %}
-                            {% for i in 1..gamification_stars %}
-                                <em class="fa fa-star"></em>
-                            {% endfor %}
-                        {% endif %}
-
-                        {% if 4 - gamification_stars > 0 %}
-                            {% for i in 1..(4 - gamification_stars) %}
-                                <em class="fa fa-star in"></em>
-                            {% endfor %}
-                        {% endif %}
-                    </div>
-
-                    <div class="progress">
-                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ gamification_progress }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ gamification_progress }}%">
-                            <span class="sr-only">{{ gamification_progress }} Complete (success)</span>
-                        </div>
-                    </div>
-
-                    <div class="progress-percentage text-right">{{ 'XPercent'|get_lang|format(gamification_progress) }}</div>
-                </div>
-            </div>
-        </div>
-        <div class="panel panel-default">
-            <div class="panel-heading">
-                {{ 'ShowProgress'|get_lang }}
-            </div>
-            <div class="panel-body">
-                <ul class="list-course">
-                    {% for session in sessions %}
-                    <li><a href="{{ _p.self ~ '?' ~ {"session_id": session.getId}|url_encode() }}" class="list-course-item {{ current_session and session.getId == current_session.getId ? 'active' }}">
-                            <em class="fa fa-chevron-circle-right"></em> {{ session.getName }}
-                        </a>
-                    </li>
-                    {% endfor %}
-                </ul>
-            </div>
-        </div>
-    </div>
-
-    <div class="col-md-9">
-        {% if current_session %}
-
-            <div class="panel panel-default">
-                <div class="panel-heading"><em class="fa fa-book"></em> {{ current_session.getName() }}</div>
-                <div class="panel-body">
-                    {% for course_id, course in session_data %}
-                    <h3><img src="{{ 'blackboard_blue.png'|icon(32) }}"/> {{ course.title }}</h3>
-                    <div class="panel-group" id="course-accordion" role="tablist" aria-multiselectable="true">
-                        {% for stats_url in course.stats %}
-                        {% set panel_id = course_id ~ '-' ~ loop.index %}
-                        <div class="panel panel-default">
-                            <div class="panel-heading" role="tab" id="heading-{{ panel_id }}">
-                                <h4 class="panel-title">
-                                    <a role="button" data-toggle="collapse" data-parent="#course-accordion" href="#collapse-{{ panel_id }}" aria-expanded="true" aria-controls="collapse-{{ panel_id }}">
-                                        {{ stats_url.0 }}
-                                    </a>
-                                </h4>
-                            </div>
-                            <div id="collapse-{{ panel_id }}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-{{ panel_id }}">
-                                <div class="panel-body">
-                                    <div class="embed-container">
-                                        <iframe src="{{ _p.web_main ~ stats_url.1 }}"></iframe>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                        {% endfor %}
-                    </div>
-                    {% endfor %}
-                </div>
-            </div>
-
-
-        {% endif %}
-    </div>
-</div>

+ 0 - 100
main/template/rainbow/glossary/glossary_auto.js.tpl

@@ -1,100 +0,0 @@
-{% if add_ready %}
-$(document).ready(function() {
-    $(window).load(function () {
-{% endif %}
-
-        var my_text = $(".glossary-content").html();
-        var ajaxRequestUrl = "{{ _p.web }}main/glossary/glossary_ajax_request.php";
-        var imageSource = "{{ _p.web }}main/inc/lib/javascript/indicator.gif";
-        var indicatorImage ='<img src="' + imageSource + '" />';
-
-        $.ajax({
-            contentType: "application/x-www-form-urlencoded",
-            beforeSend: function(content_object) {},
-            type: "POST",
-            url: ajaxRequestUrl,
-            data: "glossary_data=true",
-            success: function(datas) {
-                if (datas.length==0) {
-                    return false;
-                }
-                // glossary terms
-                data_terms=datas.split("[|.|_|.|-|.|]");
-                var complex_array = new Array();
-                var cp_complex_array = new Array();
-                for(i=0;i<data_terms.length;i++) {
-                    specific_terms=data_terms[i].split("__|__|");
-                    var real_term = specific_terms[1]; // glossary term
-                    var real_code = specific_terms[0]; // glossary id
-                    complex_array[real_code] = real_term;
-                    cp_complex_array[real_code] = real_term;
-                }
-
-                complex_array.reverse();
-
-                for (var my_index in complex_array) {
-                    n = complex_array[my_index];
-                    if (n == null) {
-                        n = '';
-                    } else {
-                        for (var cp_my_index in cp_complex_array) {
-                            cp_data = cp_complex_array[cp_my_index];
-                            if (cp_data == null) {
-                                cp_data = '';
-                            } else {
-                                if (cp_data == n) {
-                                    my_index = cp_my_index;
-                                }
-                            }
-                        }
-                        $('body').removeHighlight().highlight(n, my_index);
-                    }
-                }
-
-                var complex_array = new Array();
-                //mouse on click
-                $("body").on("click", ".glossary-ajax", function(e) {
-                    random_id = Math.round(Math.random()*100);
-                    div_show_id = "div_show_id";
-                    div_content_id = "div_content_id";
-
-                    $(this).append("<div id="+div_show_id+"><div id="+div_content_id+">&nbsp;</div></div>");
-                    var $target = $(this);
-
-                    //$("#"+div_show_id).dialog("destroy");
-                    $("#"+div_show_id).dialog({
-                        autoOpen: false,
-                        width: 600,
-                        height: 200,
-                        position:  { my: 'left top', at: 'right top', of: $target },
-                        close: function(){
-                            $("div#"+div_show_id).remove();
-                            $("div#"+div_content_id).remove();
-                        }
-                    });
-
-                    notebook_id = $(this).attr("name");
-                    data_notebook = notebook_id.split("link");
-                    my_glossary_id = data_notebook[1];
-
-                    $.ajax({
-                        contentType: "application/x-www-form-urlencoded",
-                        beforeSend: function(content_object) {
-                            $("div#"+div_content_id).html(indicatorImage);
-                        },
-                        type: "POST",
-                        url: ajaxRequestUrl,
-                        data: "glossary_id="+my_glossary_id,
-                        success: function(datas) {
-                            $("div#"+div_content_id).html(datas);
-                            $("#"+div_show_id).dialog("open");
-                        }
-                    });
-                });
-            }
-        });
-{% if add_ready %}
-    });
-});
-
-{% endif %}

+ 0 - 48
main/template/rainbow/glossary/glossary_manual.js.tpl

@@ -1,48 +0,0 @@
-var ajaxRequestUrl = "{{ _p.web }}main/glossary/glossary_ajax_request.php";
-var imageSource = "{{ _p.web_main }}" + "inc/lib/javascript/indicator.gif";
-var indicatorImage ='<img src="' + imageSource + '" />';
-
-{% if add_ready %}
-$(document).ready(function() {
-{% endif %}
-
-    $("body").on("click", ".glossary", function() {
-        is_glossary_name = $(this).html();
-        random_id = Math.round(Math.random()*100);
-        div_show_id = "div_show_id";
-        div_content_id = "div_content_id";
-
-        $(this).append("<div id="+div_show_id+" ><div id="+div_content_id+">&nbsp;</div></div>");
-
-        var $target = $(this);
-
-        //$("#"+div_show_id).dialog("destroy");
-        $("#"+div_show_id).dialog({
-            autoOpen: false,
-            width: 600,
-            height: 200,
-            position:  { my: 'left top', at: 'right top', of: $target },
-            close: function(){
-                $("div#"+div_show_id).remove();
-                $("div#"+div_content_id).remove();
-            }
-        });
-        var indicator =
-                $.ajax({
-                    contentType: "application/x-www-form-urlencoded",
-                    beforeSend: function(result) {
-                        $("div#"+div_content_id).html(indicatorImage);
-                    },
-                    type: "POST",
-                    url: ajaxRequestUrl,
-                    data: "glossary_name="+is_glossary_name,
-                    success: function(data) {
-                        $("div#"+div_content_id).html(data);
-                        $("#"+div_show_id).dialog("open");
-                    }
-                });
-    });
-
-{% if add_ready %}
-});
-{% endif %}

+ 0 - 92
main/template/rainbow/gradebook/certificate_report.tpl

@@ -1,92 +0,0 @@
-<script>
-    $(document).on('ready', function () {
-        $('select#session').on('change', function () {
-            var sessionId = parseInt(this.value, 10),
-                    $selectCourse = $('select#course');
-
-            $selectCourse.empty();
-
-            $.get('{{ _p.web_main }}inc/ajax/course.ajax.php', {
-                a: 'display_sessions_courses',
-                session: sessionId
-            }, function (courseList) {
-                $('<option>', {
-                    value: 0,
-                    text: "{{ 'Select' | get_lang }}"
-                }).appendTo($selectCourse);
-
-                if (courseList.length > 0) {
-                    $.each(courseList, function (index, course) {
-                        $('<option>', {
-                            value: course.id,
-                            text: course.name
-                        }).appendTo($selectCourse);
-                    });
-                }
-            }, 'json');
-        });
-    });
-</script>
-
-{{ searchBySessionCourseDateForm }}
-
-<hr>
-
-{{ searchByStudentForm }}
-
-{% if errorMessage is defined %}
-    <div class="alert alert-error">{{ errorMessage }}</div>
-{% endif %}
-
-{% if not certificateStudents is empty %}
-    <h2 class="page-header">{{ "GradebookListOfStudentsCertificates" | get_lang }}</h2>
-    {% if not exportAllLink is null %}
-        <div class="actions">
-            <a href="{{ exportAllLink }}" class="btn btn-info">
-                <em class="fa fa-check"></em> {{ 'ExportAllCertificatesToPDF' | get_lang }}
-            </a>
-        </div>
-    {% endif %}
-
-    <table class="table table-striped">
-        <thead>
-            <tr>
-                <th>{{ 'Student' | get_lang }}</th>
-                <th>{{ 'Sesion' | get_lang }}</th>
-                <th>{{ 'Course' | get_lang }}</th>
-                <th>{{ 'Date' | get_lang }}</th>
-                <th>{{ 'Certificate' | get_lang }}</th>
-            </tr>
-        </thead>
-        <tfoot>
-            <tr>
-                <th>{{ 'Student' | get_lang }}</th>
-                <th>{{ 'Sesion' | get_lang }}</th>
-                <th>{{ 'Course' | get_lang }}</th>
-                <th>{{ 'Date' | get_lang }}</th>
-                <th>{{ 'Certificate' | get_lang }}</th>
-            </tr>
-        </tfoot>
-        <tbody>
-            {% for student in certificateStudents %}
-                <tr>
-                    <td>{{ student.fullName }}</td>
-                    <td>{{ student.sessionName }}</td>
-                    <td>{{ student.courseName }}</td>
-                    <td>
-                        {% for certificate in student.certificates %}
-                            <p>{{ certificate.createdAt }}</p>
-                        {% endfor %}
-                    </td>
-                    <td>
-                        {% for certificate in student.certificates %}
-                            <a href="{{ _p.web }}certificates/index.php?id={{ certificate.id }}" class="btn btn-default"><em class="fa fa-floppy-o"></em> {{ 'Certificate' | get_lang }}</a>
-                        {% endfor %}
-                    </td>
-                </tr>
-            {% endfor %}
-        </tbody>
-    </table>
-{% else %}
-    <p class="alert alert-info">{{ 'NoResults' | get_lang }}</p>
-{% endif %}

+ 0 - 63
main/template/rainbow/gradebook/my_certificates.tpl

@@ -1,63 +0,0 @@
-{% if course_list is not empty %}
-    <h1 class="page-header">{{ "Courses"|get_lang }}</h1>
-
-    <div class="table-responsive">
-        <table class="table table-hover table-striped">
-            <thead>
-                <tr>
-                    <th>{{ "Course"|get_lang }}</th>
-                    <th class="text-right">{{ "Score"|get_lang }}</th>
-                    <th class="text-center">{{ "Date"|get_lang }}</th>
-                    <th class="text-right">&nbsp;</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for row in course_list %}
-                    <tr>
-                        <td>{{ row.course }}</td>
-                        <td class="text-right">{{ row.score }}</td>
-                        <td class="text-center">{{ row.date }}</td>
-                        <td class="text-right">
-                            <a href="{{ row.link }}" target="_blank" class="btn btn-default">
-                                <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
-                            </a>
-                        </td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-{% endif %}
-
-{% if session_list is not empty %}
-    <h1 class="page-header">{{ "Sessions"|get_lang }}</h1>
-
-    <div class="table-responsive">
-        <table class="table table-hover table-striped">
-            <thead>
-                <tr>
-                    <th>{{ "Session"|get_lang }}</th>
-                    <th>{{ "Course"|get_lang }}</th>
-                    <th class="text-right">{{ "Score"|get_lang }}</th>
-                    <th class="text-center">{{ "Date"|get_lang }}</th>
-                    <th class="text-right">&nbsp;</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for row in session_list %}
-                    <tr>
-                        <td>{{ row.session }}</td>
-                        <td>{{ row.course }}</td>
-                        <td class="text-right">{{ row.score }}</td>
-                        <td class="text-center">{{ row.date }}</td>
-                        <td class="text-right">
-                            <a href="{{ row.link }}" target="_blank" class="btn btn-default">
-                                <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
-                            </a>
-                        </td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-{% endif %}

+ 0 - 96
main/template/rainbow/gradebook/search.tpl

@@ -1,96 +0,0 @@
-{{ search_form }}
-
-{% if user_list is not empty %}
-    <div class="table-responsive">
-        <table class="table table-hover table-striped">
-            <thead>
-                <tr>
-                    <th>{{ "FirstName"|get_lang }}</th>
-                    <th>{{ "LastName"|get_lang }}</th>
-                    <th class="text-right">&nbsp;</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for user in user_list %}
-                    <tr>
-                        <td>{{ user.firstname }}</td>
-                        <td>{{ user.lastname }}</td>
-                        <td class="text-right">
-                            <a href="{{ _p.web_main }}gradebook/search.php?id={{ user.id }}" class="btn btn-default">
-                                <em class="fa fa-external-link"></em> {{ "Certificates"|get_lang }}
-                            </a>
-                        </td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-{% endif %}
-
-{% if course_list is not empty or session_list is not empty %}
-    <h2>{{ user_info.complete_name }}</h2>
-
-    {% if course_list is not empty %}
-        <h3 class="page-header">{{ "Courses"|get_lang }}</h3>
-
-        <div class="table-responsive">
-            <table class="table table-hover table-striped">
-                <thead>
-                    <tr>
-                        <th>{{ "Course"|get_lang }}</th>
-                        <th class="text-right">{{ "Score"|get_lang }}</th>
-                        <th class="text-center">{{ "Date"|get_lang }}</th>
-                        <th class="text-right">&nbsp;</th>
-                    </tr>
-                </thead>
-                <tbody>
-                    {% for row in course_list %}
-                        <tr>
-                            <td>{{ row.course }}</td>
-                            <td class="text-right">{{ row.score }}</td>
-                            <td class="text-center">{{ row.date }}</td>
-                            <td class="text-right">
-                                <a href="{{ row.link }}" target="_blank" class="btn btn-default">
-                                    <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
-                                </a>
-                            </td>
-                        </tr>
-                    {% endfor %}
-                </tbody>
-            </table>
-        </div>
-    {% endif %}
-
-    {% if session_list is not empty %}
-        <h3 class="page-header">{{ "Sessions"|get_lang }}</h3>
-
-        <div class="table-responsive">
-            <table class="table table-hover table-striped">
-                <thead>
-                    <tr>
-                        <th>{{ "Session"|get_lang }}</th>
-                        <th>{{ "Course"|get_lang }}</th>
-                        <th class="text-right">{{ "Score"|get_lang }}</th>
-                        <th class="text-center">{{ "Date"|get_lang }}</th>
-                        <th class="text-right">&nbsp;</th>
-                    </tr>
-                </thead>
-                <tbody>
-                    {% for row in session_list %}
-                        <tr>
-                            <td>{{ row.session }}</td>
-                            <td>{{ row.course }}</td>
-                            <td class="text-right">{{ row.score }}</td>
-                            <td class="text-center">{{ row.date }}</td>
-                            <td class="text-right">
-                                <a href="{{ row.link }}" target="_blank" class="btn btn-default">
-                                    <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
-                                </a>
-                            </td>
-                        </tr>
-                    {% endfor %}
-                </tbody>
-            </table>
-        </div>
-    {% endif %}
-{% endif %}

+ 0 - 119
main/template/rainbow/javascript/editor/ckeditor/config_js.tpl

@@ -1,119 +0,0 @@
-/* Ckeditor global configuration file */
-
-CKEDITOR.editorConfig = function (config) {
-    // Define changes to default configuration here.
-    // For complete reference see:
-    // http://docs.ckeditor.com/#!/api/CKEDITOR.config
-
-    // Remove some buttons provided by the standard plugins, which are
-    // not needed in the Standard(s) toolbar.
-    //config.removeButtons = 'Underline,Subscript,Superscript';
-
-    // Set the most common block elements.
-    config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre';
-
-    // Simplify the dialog windows.
-    config.removeDialogTabs = 'image:advanced;link:advanced';
-
-    config.templates_files  = [
-        '{{ _p.web_main ~ 'inc/lib/elfinder/templates.php'}}'
-    ];
-    //Style for default CKEditor Chamilo LMS
-    config.stylesSet = [
-        { 
-            name : 'Titre',
-            element : 'h2',
-            attributes : { 'class': 'ck ck-titre' }
-        },
-        { 
-            name : 'Parcours',
-            element : 'h4',
-            attributes : { 'class': 'ck ck-parcours' }
-        },
-        { 
-            name : 'Etape',
-            element : 'h5',
-            attributes : { 'class': 'ck ck-etape' }
-        },
-        { 
-            name : 'Texte',
-            element : 'p',
-            attributes : { 'class': 'ck ck-texte' }
-        },
-        { 
-            name : 'Source',
-            element : 'p',
-            attributes : { 'class': 'ck ck-source' }
-        },
-        { 
-            name : 'Consignes',
-            element : 'p',
-            attributes : { 'class': 'ck ck-consignes' }
-        },
-        { 
-            name : 'Alert Danger',
-            element : 'p',
-            attributes : { 'class': 'alert alert-danger' }
-        },
-        { 
-            name : 'Section Article' ,
-            element : 'h3' ,
-            attributes : { 'class': 'ck ck-article' }
-        }, {
-            name : 'Paragraph box' ,
-            element : 'p' ,
-            attributes: { 'class': 'ck-paragraph-box' }
-        }, {
-            name : 'Superscript' ,
-            element : 'sup'
-        },
-        {
-            name : 'Subscript' ,
-            element : 'sub'
-        },
-        {
-            name : 'Strikethrough' ,
-            element : 'del'
-        },
-        {
-            name : 'Underlined' ,
-            element : 'ins'
-        },
-        {
-            name : 'Stand Out' ,
-            element : 'span',
-            attributes: { 'class':'ck-stand-out'}
-        },
-        {
-            name : 'Separate Style 1' ,
-            element : 'hr',
-            attributes: { 'class':'ck-style1'}
-        },
-        {
-            name : 'Separate Style 2' ,
-            element : 'hr',
-            attributes: { 'class':'ck-style2'}
-        },
-        {
-            name : 'Separate Style 3' ,
-            element : 'hr',
-            attributes: { 'class':'ck-style3'}
-        }
-    ];
-    
-    
-    {% if moreButtonsInMaximizedMode %}
-        config.toolbar = 'minToolbar';
-        config.smallToolbar = 'minToolbar';
-        config.maximizedToolbar = 'maxToolbar';
-    {% endif %}
-
-    // File manager (elFinder)
-    config.filebrowserBrowseUrl = '{{ _p.web_lib ~ 'elfinder/filemanager.php' }}';
-
-    // Allows to use "class" attribute inside divs and spans.
-    config.allowedContent = true;
-    config.contentsCss = '{{ cssEditor }}';
-
-    config.customConfig = '{{ _p.web_main ~ 'inc/lib/javascript/ckeditor/config_js.php'}}';
-};

+ 0 - 5
main/template/rainbow/javascript/editor/ckeditor/elfinder.tpl

@@ -1,5 +0,0 @@
-{% extends "default/layout/no_layout.tpl" %}
-
-{% block body %}
-    {% include 'default/javascript/editor/elfinder_standalone.tpl' %}
-{% endblock %}

+ 0 - 6
main/template/rainbow/javascript/editor/ckeditor/templates.tpl

@@ -1,6 +0,0 @@
-CKEDITOR.addTemplates("default",
-{
-    imagesPath: ' ',
-    templates:
-        {{ templates }}
-});

+ 0 - 35
main/template/rainbow/javascript/editor/elfinder_standalone.tpl

@@ -1,35 +0,0 @@
-{% set finderFolder = _p.web ~ 'vendor/studio-42/elfinder/' %}
-<!-- elFinder CSS (REQUIRED) -->
-<link rel="stylesheet" type="text/css" media="screen" href="{{ finderFolder }}css/elfinder.full.css">
-<link rel="stylesheet" type="text/css" media="screen" href="{{ finderFolder }}css/theme.css">
-
-<!-- elFinder JS (REQUIRED) -->
-<script type="text/javascript" src="{{ finderFolder }}js/elfinder.full.js"></script>
-
-<!-- elFinder translation (OPTIONAL) -->
-<script type="text/javascript" src="{{ finderFolder }}js/i18n/elfinder.ru.js"></script>
-
-<script type="text/javascript" charset="utf-8">
-    // Helper function to get parameters from the query string.
-    function getUrlParam(paramName) {
-        var reParam = new RegExp('(?:[\?&]|&amp;)' + paramName + '=([^&]+)', 'i');
-        var match = window.location.search.match(reParam);
-        return (match && match.length > 1) ? match[1] : '';
-    }
-
-    $().ready(function() {
-        var funcNum = getUrlParam('CKEditorFuncNum');
-        var elf = $('#elfinder').elfinder({
-            url : '{{ _p.web_lib ~ 'elfinder/connectorAction.php?' }}{{ course_condition }}',  // connector URL (REQUIRED)
-            getFileCallback : function(file) {
-                window.opener.CKEDITOR.tools.callFunction(funcNum, file.url);
-                window.close();
-            },
-            resizable: false
-        }).elfinder('instance');
-    });
-</script>
-<div id="elfinder"></div>
-
-
-

+ 0 - 3
main/template/rainbow/layout/blank.tpl

@@ -1,3 +0,0 @@
-{% block content %}
-{{ content }}
-{% endblock %}

+ 5 - 40
main/template/rainbow/layout/head.tpl

@@ -19,47 +19,12 @@
 {{ css_static_file_to_string }}
 {{ js_file_to_string }}
 {{ extra_headers }}
-<script>
-/* Global chat variables */
-var ajax_url = '{{ _p.web_ajax }}chat.ajax.php';
-var online_button = '{{ online_button }}';
-var offline_button = '{{ offline_button }}';
-var connect_lang = '{{ "ChatConnected"|get_lang }}';
-var disconnect_lang = '{{ "ChatDisconnected"|get_lang }}';
-var logOutUrl = '{{ _p.web_ajax }}course.ajax.php?a=course_logout&{{ _p.web_cid_query }}';
 
-function addMainEvent(elm, evType, fn, useCapture) {
-    if (elm.addEventListener) {
-        elm.addEventListener(evType, fn, useCapture);
-        return true;
-    } else if (elm.attachEvent) {
-        elm.attachEvent('on' + evType, fn);
-    } else{
-        elm['on'+evType] = fn;
-    }
-}
-
-var calledLogout = false;
-function courseLogout() {
-    if (calledLogout === false) {
-        $.ajax({
-            url: logOutUrl,
-            success: function (data) {
-                calledLogout = true;
-                return 1;
-            }
-        });
-    }
-}
-
-$(function() {
-    addMainEvent(window, 'unload', courseLogout, false);
-    addMainEvent(window, 'beforeunload', courseLogout, false);
-});
-
-</script>
-
-{% include template ~ '/layout/header.js.tpl' %}
+{% if _s.language_interface %}
+<script type="text/javascript" src="{{ _p.web }}web/build/main.{{ _s.language_interface }}.js"></script>
+{% else %}{# language_interface *should* always be defined, so we should never come here #}
+<script type="text/javascript" src="{{ _p.web }}web/build/main.js"></script>
+{% endif %}
 
 {{ css_custom_file_to_string }}
 {{ css_style_print }}

+ 25 - 30
main/template/rainbow/layout/hot_course_item.tpl

@@ -1,45 +1,40 @@
 {% for item in hot_courses %}
     {% if item.title %}
-        <div class="col-xs-12 col-sm-4 col-md-3">
-            <div class="items">
+        <div class="col-xs-12 col-sm-6 col-md-4">
+            <div class="items items-hotcourse">
                 <div class="image">
-                    <img src="{{ item.course_image_large }}" class="img-responsive">
+                        <a title="{{ item.title}}" href="{{ _p.web }}course/{{ item.real_id  }}/about">
+                            <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
+                        </a>
+
                     {% if item.categoryName != '' %}
                         <span class="category">{{ item.categoryName }}</span>
                         <div class="cribbon"></div>
                     {% endif %}
-                    <div class="black-shadow">
-                        <div class="author-card">  
-                        {% for teacher in item.teachers %}
-                            {% set counter = counter + 1 %}
-                            {% if counter <= 3 %}
-                                <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
-                                    <img src="{{ teacher.avatar }}"/>
-                                </a>
-                                <div class="teachers-details">
-                                     <h5>
-                                        <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
-                                            {{ teacher.firstname }} {{ teacher.lastname }}
-                                        </a>
-                                     </h5>
-                                </div>       
-                            {% endif %}
-                        {% endfor %}
-                        </div>
-                    </div>
                     <div class="user-actions">{{ item.description_button }}</div>
                 </div>
                 <div class="description">
-                    <h4 class="title">
-                            {{ item.title }}
-                    </h4>
+                    <div class="block-title">
+                        <h5 class="title">
+                            <a alt="{{ item.title }}" title="{{ item.title }}" href="{{ _p.web }}course/{{ item.real_id  }}/about">
+                                {{ item.title_cut}}
+                            </a>
+                        </h5>
+                    </div>
                     <div class="ranking">
-<!--                        {{ item.rating_html }} -->
+                        {{ item.rating_html }}
                     </div>
-                    <div class="toolbar">
-                        <div class="btn-group" role="group">
-                            {{ item.register_button }}
-                            {{ item.unsubscribe_button }}
+                    <div class="toolbar row">
+                        <div class="col-sm-4">
+                            {% if item.price %}
+                                {{ item.price }}
+                            {% endif %}
+                        </div>
+                        <div class="col-sm-8">
+                            <div class="btn-group" role="group">
+                                {{ item.register_button }}
+                                {{ item.unsubscribe_button }}
+                            </div>
                         </div>
                     </div>
                 </div>

+ 2 - 2
main/template/rainbow/layout/hot_course_item_popup.tpl

@@ -3,12 +3,12 @@
         <div class="row">
             <div class="col-sm-3">
                 <div class="thumbnail">
-                    <img src="{{ hot_course.extra_info.course_image }}" />
+                    <img src="{{ hot_course.extra_info.course_image }}" alt="{{ hot_course.extra_info.title }}" />
                 </div>
             </div>
             <div class="col-sm-9">
                 <div class="categories-course-description">
-                    <h3>{{ hot_course.extra_info.title}}</h3>
+                    <h3>{{ hot_course.extra_info.title }}</h3>
                     <h5>{{ hot_course.extra_info.teachers }}</h5>
                     {# hot_course.extra_info.rating_html #}
                 </div>

+ 10 - 29
main/template/rainbow/layout/hot_courses.tpl

@@ -1,41 +1,22 @@
 {% if hot_courses is not null and hot_courses is not empty %}
-
-<script>
-$(document).ready( function() {
-    $('.star-rating li a').on('click', function(event) {
-        var id = $(this).parents('ul').attr('id');
-        $('#vote_label2_' + id).html("{{'Loading'|get_lang}}");
-        $.ajax({
-            url: $(this).attr('data-link'),
-            success: function(data) {
-                $("#rating_wrapper_"+id).html(data);
-                if (data == 'added') {
-                    //$('#vote_label2_' + id).html("{{'Saved'|get_lang}}");
-                }
-                if (data == 'updated') {
-                    //$('#vote_label2_' + id).html("{{'Saved'|get_lang}}");
-                }
-            }
-        });
-    });
-});
-</script>
-<section class="hot-courses container">
-    <div class="hot-course-head">
-        <h2 class="section-title">
+<section class="hot-courses">
+    <div class="page-header">
+        <h4>
             {{ "HottestCourses"|get_lang}}
             {% if _u.is_admin %}
             <span class="pull-right">
-                <a title="{{ "Hide"|get_lang }}" alt="{{ "Hide"|get_lang }}" href="{{ _p.web_main }}admin/settings.php?search_field=show_hot_courses&submit_button=&_qf__search_settings=&category=search_setting">
-                    <img src="{{ "eyes.png"|icon(22) }}" width="22" height="22">
+                <a title="{{ "Hide"|get_lang }}"
+                   alt="{{ "Hide"|get_lang }}"
+                   href="{{ _p.web_main }}admin/settings.php?search_field=show_hot_courses&submit_button=&_qf__search_settings=&category=search_setting">
+                    <i class="fa fa-eye" aria-hidden="true"></i>
                 </a>
             </span>
             {% endif %}
-        </h2>
+        </h4>
     </div>
-    <div class="grid-courses">
+    <div id="list-hot-courses" class="grid-courses">
         <div class="row">
-            {% include template ~ '/layout/hot_course_item.tpl' %}
+            {% include 'layout/hot_course_item.tpl'|get_template %}
         </div>
     </div>
 </section>

+ 0 - 47
main/template/rainbow/layout/layout_1_col.tpl

@@ -1,47 +0,0 @@
-{% extends template ~ "/layout/page.tpl" %}
-
-{% block body %}
-    {% if plugin_main_top %}
-        <div class="row">
-            <div id="plugin_main_top" class="col-md-12">
-                {{ plugin_main_top }}
-            </div>
-        </div>
-    {% endif %}
-    {% if plugin_content_top %}
-        <div class="row">
-            <div id="plugin_content_top" class="col-md-12">
-                {{ plugin_content_top }}
-            </div>
-        </div>
-    {% endif %}
-
-    <div class="row">
-        <div class="col-xs-12 col-md-12">
-            {% include template ~ "/layout/page_body.tpl" %}
-            {% block content %}
-                {% if content is not null %}
-                    <section id="main_content">
-                        {{ content }}
-                    </section>
-                {% endif %}
-            {% endblock %}
-        </div>
-    </div>
-
-    {% if plugin_content_bottom %}
-        <div class="row">
-            <div id="plugin_content_bottom" class="col-md-12">
-                {{ plugin_content_bottom }}
-            </div>
-        </div>
-    {% endif %}
-
-    {% if plugin_main_bottom %}
-        <div class="row">
-            <div id="plugin_main_bottom" class="col-md-12">
-                {{ plugin_main_bottom }}
-            </div>
-        </div>
-    {% endif %}
-{% endblock %}

+ 43 - 150
main/template/rainbow/layout/layout_2_col.tpl

@@ -1,12 +1,9 @@
-{% extends template ~ "/layout/page.tpl" %}
+{% extends 'layout/page.tpl'|get_template %}
+{% import 'macro/macro.tpl'|get_template as display %}
 
 {% block body %}
     {% if plugin_main_top %}
-        <div class="row">
-            <div class="page-main-top" class="col-md-12">
-                {{ plugin_main_top }}
-            </div>
-        </div>
+        {{ display.pluginPanel('main-top', plugin_main_top) }}
     {% endif %}
     <div class="row">
         <div class="col-md-9 col-md-push-3">
@@ -19,14 +16,20 @@
 
                 {#{{ sniff_notification }}#}
 
-                {% if home_page_block %}
-                    <article id="homepage-home">
-                        {{ home_page_block }}
+                {% if home_welcome %}
+                    <article id="home-welcome">
+                        {{ home_welcome }}
                     </article>
                 {% endif %}
 
+                {% if home_include %}
+                <article id="home-include">
+                    {{ home_include }}
+                </article>
+                {% endif %}
+
                 {% block page_body %}
-                    {% include template ~ "/layout/page_body.tpl" %}
+                    {% include 'layout/page_body.tpl'|get_template %}
                 {% endblock %}
 
                 {% if welcome_to_course_block %}
@@ -65,82 +68,28 @@
         <div class="col-md-3 col-md-pull-9">
             <div class="sidebar">
                 {% if plugin_menu_top %}
-                    <div class="siderbar-menu-top">
-                        {{ plugin_menu_top }}
-                    </div>
+                    {{ display.pluginSidebar('sidebar-top', plugin_menu_top) }}
                 {% endif %}
 
-                {% include template ~ "/layout/login_form.tpl" %}
+                {% include 'layout/login_form.tpl'|get_template %}
 
                 {% if _u.logged  == 1 %}
                     {{ user_image_block }}
                 {% endif %}
 
+                <!-- BLOCK PROFILE -->
                 {% if profile_block %}
-                <!-- block profile -->
-                <div class="panel-group" id="profile" role="tablist" aria-multiselectable="true">
-                    <div class="panel panel-default" id="profile_block">
-                        <div class="panel-heading" role="tab">
-                            <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#profile" href="#profileCollapse" aria-expanded="true" aria-controls="profileCollapse">
-                                    {{ 'Profile' | get_lang }}
-                                </a>
-                            </h4>
-                        </div>
-                        <div style="" aria-expanded="true" id="profileCollapse" class="panel-collapse collapse in" role="tabpanel">
-                            <div class="panel-body">
-                                <ul class="list-group">
-                                    {% for item in profile_block %}
-                                    <li class="list-group-item {{ item.class }}">
-                                        <span class="item-icon">
-                                            {{ item.icon }}
-                                        </span>
-                                        <a href="{{ item.link }}">{{ item.title }}</a>
-                                    </li>
-                                    {% endfor %}
-                                </ul>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <!-- end block profile -->
+                    {{ display.collapseMenu('profile', 'Profile'|get_lang, profile_block) }}
                 {% endif %}
 
-
-                {% if diagnosis_block %}
-                    {{ diagnosis_block }}
+                <!-- BLOCK COURSE -->
+                {% if course_block %}
+                    {{ display.collapseMenu('courses', 'Courses'|get_lang, course_block) }}
                 {% endif %}
 
-                {% if section_name != 'section-mycampus' %}
-
-                {% if course_block %}
-                <!-- block course -->
-                <div class="panel-group" id="course" role="tablist" aria-multiselectable="true">
-                    <div class="panel panel-default" id="course_block">
-                        <div class="panel-heading" role="tab">
-                            <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#course" href="#courseCollapse" aria-expanded="true" aria-controls="courseCollapse">
-                                    {{ 'Courses' | get_lang }}
-                                </a>
-                            </h4>
-                        </div>
-                        <div style="" aria-expanded="true" id="courseCollapse" class="panel-collapse collapse in" role="tabpanel">
-                            <div class="panel-body">
-                                <ul class="list-group">
-                                    {% for item in course_block %}
-                                    <li class="list-group-item {{ item.class }}">
-                                        <span class="item-icon">
-                                            {{ item.icon }}
-                                        </span>
-                                        <a href="{{ item.link }}">{{ item.title }}</a>
-                                    </li>
-                                    {% endfor %}
-                                </ul>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <!-- end block course -->
+                <!-- BLOCK SKILLS -->
+                {% if skills_block %}
+                    {{ display.collapseMenu('skills', 'Skills'|get_lang, skills_block) }}
                 {% endif %}
 
                 {% if grade_book_sidebar %}
@@ -148,7 +97,11 @@
                     <div class="panel panel-default" id="gradebook_block">
                         <div class="panel-heading" role="tab">
                             <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#skill" href="#skillCollapse" aria-expanded="true" aria-controls="skillCollapse">
+                                <a role="button" data-toggle="collapse"
+                                   data-parent="#skill"
+                                   href="#skillCollapse"
+                                   aria-expanded="true"
+                                   aria-controls="skillCollapse">
                                     {{ 'Gradebook' | get_lang }}
                                 </a>
                             </h4>
@@ -163,18 +116,16 @@
                                             <div class="badge_sidebar">
                                             {% for skill in badge.skills %}
                                                 {% if badge.finished %}
-                                                    <img class="badge_sidebar_image " src = "{{ skill.web_icon_path }}" />
+                                                    <img class="badge_sidebar_image " src ="{{ skill.icon_big }}" />
                                                 {% else %}
-                                                    <img class="badge_sidebar_image badge_sidebar_image_transparency" src = "{{ skill.web_icon_path }}" />
+                                                    <img class="badge_sidebar_image badge_sidebar_image_transparency"
+                                                         src = "{{ skill.icon_big }}" />
                                                 {% endif %}
                                                 <div class="badge_sidebar_title">
                                                 {{ skill.name }}
                                                 </div>
                                             {% endfor %}
                                             </div>
-                                            {#<div class="badge_sidebar_title">#}
-                                            {#{{ badge.name }}#}
-                                            {#</div>#}
                                         {% endfor %}
                                     </li>
                                 </ul>
@@ -182,79 +133,25 @@
                         </div>
                     </div>
                 </div>
-
-                {% endif %}
-
-                {% if skills_block %}
-                <!-- block skills -->
-                <div class="panel-group" id="skill" role="tablist" aria-multiselectable="true">
-                    <div class="panel panel-default" id="skill_block">
-                        <div class="panel-heading" role="tab">
-                            <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#skill" href="#skillCollapse" aria-expanded="true" aria-controls="skillCollapse">
-                                    {{ 'Skills' | get_lang }}
-                                </a>
-                            </h4>
-                        </div>
-                        <div style="" aria-expanded="true" id="skillCollapse" class="panel-collapse collapse in" role="tabpanel">
-                            <div class="panel-body">
-                                <ul class="list-group">
-                                    {% for item in skills_block %}
-                                    <li class="list-group-item {{ item.class }}">
-                                        <span class="item-icon">
-                                            {{ item.icon }}
-                                        </span>
-                                        <a href="{{ item.link }}">{{ item.title }}</a>
-                                    </li>
-                                    {% endfor %}
-                                </ul>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <!-- end block skills -->
                 {% endif %}
-
-                {#{{ teacher_block }}#}
                 {{ certificates_search_block }}
-                {{ notice_block }}
-                {#{{ help_block }}#}
+                <!-- BLOCK NOTICE -->
+                {% if notice_block %}
+                    {{ display.collapse('notice', 'Notice'|get_lang, notice_block) }}
                 {% endif %}
-
-                <!-- block navigation -->
-                {% if navigation_course_links %}
-                <div class="panel-group" id="menu" role="tablist" aria-multiselectable="true">
-                    <div class="panel panel-default" id="menu_block">
-                        <div class="panel-heading" role="tab">
-                            <h4 class="panel-title">
-                                <a role="button" data-toggle="collapse" data-parent="#menu" href="#menuCollapse" aria-expanded="true" aria-controls="menuCollapse">
-                                    {{ 'MainNavigation' | get_lang }}
-                                </a>
-                            </h4>
-                        </div>
-                        <div style="" aria-expanded="true" id="menuCollapse" class="panel-collapse collapse in" role="tabpanel">
-                            <div class="panel-body">
-                                <ul class="nav nav-pills nav-stacked">
-                                    {% for item in navigation_course_links %}
-                                    <li>
-                                        <a href="{{ item.link }}">{{ item.title }}</a>
-                                    </li>
-                                    {% endfor %}
-                                </ul>
-                            </div>
-                        </div>
-                    </div>
-                </div>
+                <!-- BLOCK HELP -->
+                {% if help_block %}
+                    {{ display.collapse('help', 'MenuGeneral'|get_lang, help_block, true) }}
+                {% endif %}
+                <!-- BLOCK LINKS NAVIGATION -->
+                {% if navigation_links %}
+                    {{ display.collapseFor('navigation_sidebar', 'MainNavigation'|get_lang, navigation_links) }}
                 {% endif %}
-                <!-- end block navigation -->
-
                 {{ search_block }}
                 {{ classes_block }}
 
                 {% if plugin_menu_bottom %}
-                    <div class="sidebar-menu-bottom">
-                        {{ plugin_menu_bottom }}
-                    </div>
+                    {{ display.pluginSidebar('sidebar-bottom', plugin_menu_bottom) }}
                 {% endif %}
             </div>
         </div>
@@ -340,10 +237,6 @@
     </div>
 
     {% if plugin_main_bottom %}
-        <div class="row">
-            <div class="page-main-bottom" class="col-md-12">
-                {{ plugin_main_bottom }}
-            </div>
-        </div>
+        {{ display.pluginPanel('main-bottom', plugin_main_bottom) }}
     {% endif %}
 {% endblock %}

+ 0 - 24
main/template/rainbow/layout/layout_3_col.tpl

@@ -1,24 +0,0 @@
-{#  This template is NOT used in chamilo 1.9 #}
-{% extends template ~ "/layout/main.tpl" %}
-
-{% block body %}
-	<div id="maincontent" class="maincontent">
-		{{ plugin_courses_block}}
-		{{ home_page_block}}
-		{{ message}}
-		{{ content}}
-		{{ announcements_block}}
-	</div>
-
-	<div id="menu-wrapper">
-		{{ login_block}}
-		{{ profile_block}}
-		{{ account_block}}
-		{{ teacher_block}}
-		{{ notice_block}}
-		{{ navigation_course_links}}
-		{{ plugin_courses_right_block}}
-		{{ search_block}}
-		{{ classes_block}}
-	</div>
-{% endblock %}

+ 0 - 16
main/template/rainbow/layout/no_layout.tpl

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<!--[if lt IE 7]> <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>    <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>    <html lang="{{document_language}}" class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!--><html lang="{{document_language}}" class="no-js"> <!--<![endif]-->
-<head>
-{% include template ~ "/layout/head.tpl" %}
-</head>
-<body dir="{{text_direction}}" class="{{section_name}}">
-{% block name%}
-{% endblock %}
-{% block body %}
-    {{ content }}
-{% endblock %}
-</body>
-</html>

+ 61 - 49
main/template/rainbow/layout/page.tpl

@@ -6,60 +6,72 @@
 <html lang="{{ document_language }}" class="no-js"> <!--<![endif]-->
 <head>
 {% block head %}
-{% include template ~ "/layout/head.tpl" %}
+    {% include 'layout/head.tpl'|get_template %}
 {% endblock %}
 </head>
-<body dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
-<noscript>{{ "NoJavascript"|get_lang }}</noscript>
-<div class="wrap">
-    {% if displayCookieUsageWarning == true %}
-    <!-- Display Cookies validation -->
-    <div class="toolbar-cookie alert-warning">
-        <form onSubmit="$(this).toggle('slow')" action="" method="post">
-            <input value=1 type="hidden" name="acceptCookies"/>
-            <div class="cookieUsageValidation">
-                {{ "YouAcceptCookies" | get_lang }}
-                <span style="margin-left:20px;" onclick="$(this).next().toggle('slow'); $(this).toggle('slow')">
-                    ({{"More" | get_lang }})
-                </span>
-                <div style="display:none; margin:20px 0;">
-                    {{ "HelpCookieUsageValidation" | get_lang}}
-                </div>
-                <span style="margin-left:20px;" onclick="$(this).parent().parent().submit()">
-                    ({{"Accept" | get_lang }})
-                </span>
+<body>
+    <!-- START MAIN -->
+    <main id="main" dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
+    <noscript>{{ "NoJavascript"|get_lang }}</noscript>
+            {% if show_course_shortcut is not null %}
+            <!-- TOOLS SHOW COURSE -->
+            <div id="cm-tools" class="nav-tools">
+                {{ show_course_shortcut }}
             </div>
-        </form>
-    </div>
-    {% endif %}
-
-    {% if show_header == true %}
-    {% include template ~ "/layout/page_header.tpl" %}
-    {% endif %}
-    {% if show_course_shortcut is not null %}
-        <div class="nav-tools">
-            {{ show_course_shortcut }}
-        </div>
-    {% endif %}
-	<section id="content-section">
-        <div class="container{{ fluid == true ? '-fluid' : '' }}">
-            {% block breadcrumb %}
-                <div id="page-breadcrumb">
-                    {{ breadcrumb }}
+            <!-- END TOOLS SHOW COURSE -->
+            {% endif %}
+            {% if displayCookieUsageWarning == true %}
+                <!-- START DISPLAY COOKIES VALIDATION -->
+                <div class="toolbar-cookie alert-warning">
+                    <form onSubmit="$(this).toggle('slow')" action="" method="post">
+                        <input value=1 type="hidden" name="acceptCookies"/>
+                        <div class="cookieUsageValidation">
+                            {{ "YouAcceptCookies" | get_lang }}
+                            <span style="margin-left:20px;" onclick="$(this).next().toggle('slow'); $(this).toggle('slow')">
+                                ({{"More" | get_lang }})
+                            </span>
+                            <div style="display:none; margin:20px 0;">
+                                {{ "HelpCookieUsageValidation" | get_lang}}
+                            </div>
+                            <span style="margin-left:20px;" onclick="$(this).parent().parent().submit()">
+                                ({{"Accept" | get_lang }})
+                            </span>
+                        </div>
+                    </form>
                 </div>
-            {% endblock %}
+                <!-- END DISPLAY COOKIES VALIDATION -->
+            {% endif %}
 
-            {% block body %}
-                {{ content }}
-            {% endblock %}
-        </div>
-	</section>
+            <!-- START HEADER -->
+            <header id="cm-header">
+                {% if show_header == true %}
+                    {% include 'layout/page_header.tpl'|get_template %}
+                {% endif %}
+            </header>
+            <!-- END HEADER -->
+
+            <!-- START CONTENT -->
+            <section id="cm-content">
+                <div class="container">
+                    {% block breadcrumb %}
+                        {{ breadcrumb }}
+                    {% endblock %}
+                    {% block body %}
+                        {{ content }}
+                    {% endblock %}
+                </div>
+            </section>
+            <!-- END CONTENT -->
 
-    {% if show_footer == true %}
-	{% include template ~ "/layout/page_footer.tpl" %}
-    {% endif %}
+            <!-- START FOOTER -->
+            <footer class="footer">
+                {% if show_footer == true %}
+                    {% include 'layout/page_footer.tpl'|get_template %}
+                {% endif %}
+            </footer>
+            <!-- END FOOTER -->
 
-    {% include template ~ '/layout/footer.js.tpl' %}
-</div>
-  </body>
+        </main>
+    <!-- END MAIN -->
+</body>
 </html>

+ 15 - 4
main/template/rainbow/layout/page_body.tpl

@@ -1,10 +1,12 @@
+{% if introduction != '' %}
+    {{ introduction }}
+{% endif %}
+
 {% if actions != '' %}
     {{ actions }}
 {% endif %}
-{{ flash_messages }}
-<span id="js_alerts"></span>
 
-{#  Page header #}
+{{ flash_messages }}
 {% if header != '' %}
     <div class="section-page">
         <div class="page-header">
@@ -12,8 +14,17 @@
         </div>
     </div>
 {% endif %}
+{% if category != '' %}
+<div class="section-category">
+    <div class="page-header">
+        <h3>{{ category.name }}</h3>
+    </div>
+    <div class="description">
+        {{ category.description }}
+    </div>
+</div>
+{% endif %}
 
-{#  Show messages #}
 {% if message != '' %}
     <section id="messages">
         {{ message}}

+ 29 - 7
main/template/rainbow/layout/page_footer.tpl

@@ -58,7 +58,23 @@
     </div>
 </footer>
 
+{# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
+<div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
+    <div class="modal-dialog modal-lg">
+        <div class="modal-content">
+            <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
+                    <span aria-hidden="true">&times;</span>
+                </button>
+                <h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
+            </div>
+            <div class="modal-body">
+            </div>
+        </div>
+    </div>
+</div>
 
+{# Expands an image modal #}
 <div class="modal fade" id="expand-image-modal" tabindex="-1" role="dialog" aria-labelledby="expand-image-modal-title" aria-hidden="true">
     <div class="modal-dialog modal-lg">
         <div class="modal-content">
@@ -71,17 +87,23 @@
         </div>
     </div>
 </div>
-{# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
-<div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
-    <div class="modal-dialog modal-lg">
+
+{# Delete modal #}
+<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="confirm-delete-title" aria-hidden="true">
+    <div class="modal-dialog">
         <div class="modal-content">
             <div class="modal-header">
-                <button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
-                    <span aria-hidden="true">&times;</span>
-                </button>
-                <h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
+                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+                <h4 class="modal-title" id="myModalLabel">{{ 'Delete' | get_lang }}</h4>
             </div>
+
             <div class="modal-body">
+                <p class="debug-url"></p>
+            </div>
+
+            <div class="modal-footer">
+                <button type="button" class="btn btn-default" data-dismiss="modal">{{ 'Cancel' | get_lang }}</button>
+                <a id="delete_item" class="btn btn-danger btn-ok">{{ 'Delete' | get_lang }}</a>
             </div>
         </div>
     </div>

+ 8 - 5
main/template/rainbow/layout/page_header.tpl

@@ -3,10 +3,13 @@
     {{ bug_notification }}
 </div>
 {% block topbar %}
-    {% include template ~ "/layout/topbar.tpl" %}
+    {% include 'layout/topbar.tpl'|get_template %}
 {% endblock %}
-<div class="extra-header">{{ header_extra_content }}</div>
-<header id="header-section" class="header-movil">
+
+{% if header_extra_content is not null %}
+    {{ header_extra_content }}
+{% endif %}
+
     <div class="container">
         <div class="row">
             <div class="col-md-3 col-xs-4">
@@ -58,6 +61,6 @@
     </div>
 </header>
 {% block menu %}
-    {% include template ~ "/layout/menu.tpl" %}
+    {% include 'layout/menu.tpl'|get_template %}
 {% endblock %}
-{% include template ~ "/layout/course_navigation.tpl" %}
+{% include 'layout/course_navigation.tpl'|get_template %}

+ 0 - 26
main/template/rainbow/layout/show_footer.tpl

@@ -1,26 +0,0 @@
-{#
-    show_header and show_footer templates are only called when using the
-    Display::display_header and Display::display_footer
-    for backward compatibility we suppose that the default layout is one column
-    which means using a div with class span12
-#}
-{% if show_header == true %}
-    </section>
-</div>
-{% endif %}
-
-{# Plugin bottom  #}
-{% if plugin_content_bottom is not null %}
-    <div id="plugin_content_bottom" class="col-md-12">
-        {{ plugin_content_bottom}}
-    </div>
-{% endif %}
-
-{% if show_footer == true %}
-    </div> <!-- end of #col" -->
-    </div> <!-- end of #row" -->
-    </div> <!-- end of #container" -->
-
-{% endif %}
-
-{% include template ~ "/layout/main_footer.tpl" %}

+ 0 - 11
main/template/rainbow/layout/show_header.tpl

@@ -1,11 +0,0 @@
-{% include template ~ "/layout/main_header.tpl" %}
-{% if show_header == true %}
-    {% if plugin_content_top is not null %}
-        <div id="plugin_content_top" class="col-md-12">
-            {{ plugin_content_top }}
-        </div>
-    {% endif %}
-    <div class="container">
-        {% include template ~ "/layout/page_body.tpl" %}
-        <section id="main_content">
-{% endif %}

+ 0 - 17
main/template/rainbow/layout/welcome_to_course.tpl

@@ -1,17 +0,0 @@
-<div class="normal-message">
-  {{ "HelloXAsYouCanSeeYourCourseListIsEmpty"|get_lang | format(_u.complete_name) }}
-
-{% if count_courses  == 0 %}
-    {{ "PleaseAllowUsALittleTimeToSubscribeYouToOneOfOurCourses"|get_lang }}
-{% else %}
-
-    {% if "allow_students_to_browse_courses"|api_get_setting  == 'true' %}
-        {{ "GoAheadAndBrowseOurCourseCatalogXOnceRegisteredYouWillSeeTheCourseHereX"|get_lang|format(course_catalog_link, course_list_link) }}
-        <a class="btn btn-primary btn-large" href="{{ course_catalog_url }}">
-            {{ "CourseCatalog"|get_lang }}
-        </a>
-    {% else %}
-        {{ "PleaseAllowUsALittleTimeToSubscribeYouToOneOfOurCourses"|get_lang }}
-    {% endif %}
-{% endif %}
-</div>

+ 0 - 24
main/template/rainbow/learnpath/impress.tpl

@@ -1,24 +0,0 @@
-<div class="fallback-message">
-    <p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
-    <p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
-</div>
-
-<div id="impress">
-    {{ html }}
-</div>
-
-<div class="hint">
-    <p>Use a spacebar or arrow keys to navigate</p>
-</div>
-<script>
-if ("ontouchstart" in document.documentElement) { 
-    document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>";
-}
-</script>
-
-<script>     
-$(document).ready(function() {
-    impress().init(); 
-});
-</script>
-<script type="text/javascript" src="{{_p.web_lib}}javascript/impress/impress.js"></script>

+ 0 - 426
main/template/rainbow/learnpath/list.tpl

@@ -1,426 +0,0 @@
-<script>
-    function confirmation(name) {
-        if (confirm("{{ "AreYouSureToDeleteJS"|get_lang }} \"" + name + "\" ?")) {
-            return true;
-        } else {
-            return false;
-        }
-    }
-</script>
-
-{{ introduction_section }}
-
-{% set configuration = 'lp_category_accordion'|api_get_configuration_value %}
-<div class="lp-accordion panel-group" id="lp-accordion" role="tablist" aria-multiselectable="true">
-{% for lp_data in data %}
-    {% set show_category = true %}
-
-    {% if filtered_category and filtered_category != lp_data.category.id %}
-        {% set show_category = false %}
-    {% endif %}
-
-    {% if show_category %}
-        {% if configuration == 0 %}
-        <!--- old view -->
-        {% if categories|length > 1 and lp_data.category.id %}
-            {% if is_allowed_to_edit %}
-                <h3 class="page-header">
-                    {{ lp_data.category.getName() }}
-
-                    {% if lp_data.category.getId() > 0 %}
-                        {% if not _c.session_id %}
-                            <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}">
-                                <img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|get_lang }}">
-                            </a>
-
-                            {% if subscription_settings.allow_add_users_to_lp_category %}
-                            <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId() }}" title="{{ "AddUsers"|get_lang }}">
-                                <img src="{{ "user.png"|icon }}" alt="{{ "AddUsers"|get_lang }}">
-                            </a>
-                            {% endif %}
-
-                            {% if loop.index0 == 1 %}
-                                <a href="#">
-                                    <img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                </a>
-                            {% else %}
-                                <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_up_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}">
-                                    <img src="{{ "up.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                </a>
-                            {% endif %}
-
-                            {% if (data|length - 1) == loop.index0 %}
-                                <a href="#">
-                                    <img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                </a>
-                            {% else %}
-                                <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_down_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}">
-                                    <img src="{{ "down.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                </a>
-                            {% endif %}
-                        {% endif %}
-
-                        {% if lp_data.category_visibility == 0 %}
-                            <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"
-                               title="{{ 'Show'|get_lang }}">
-                                <img src="{{ 'invisible.png'|icon }}" alt="{{ 'Show'|get_lang }}">
-                            </a>
-                        {% else %}
-                            <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':0}|url_encode }}"
-                               title="{{ 'Hide'|get_lang }}">
-                                <img src="{{ 'visible.png'|icon }}" alt="{{ 'Hide'|get_lang }}">
-                            </a>
-                        {% endif %}
-
-                        {% if lp_data.category_is_published == 0 %}
-                            <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"
-                               title="{{ 'LearnpathPublish'|get_lang }}">
-                                <img src="{{ 'lp_publish_na.png'|icon }}" alt="{{ 'LearnpathPublish'|get_lang }}">
-                            </a>
-                        {% else %}
-                            <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':0}|url_encode }}"
-                               title="{{ 'LearnpathDoNotPublish'|get_lang }}">
-                                <img src="{{ 'lp_publish.png'|icon }}" alt="{{ 'Hide'|get_lang }}">
-                            </a>
-                        {% endif %}
-                        {% if not _c.session_id %}
-                            <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query  ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Delete"|get_lang }}">
-                                <img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|get_lang }}">
-                            </a>
-                        {% endif %}
-                    {% endif %}
-                </h3>
-            {% elseif lp_data.lp_list is not empty %}
-                <h3 class="page-header">{{ lp_data.category.getName() }}</h3>
-            {% endif %}
-        {% endif %}
-
-        {% if lp_data.lp_list %}
-            <div class="table-responsive">
-                <table class="table table-hover table-striped">
-                    <thead>
-                        <tr>
-                            <th>{{ "Title"|get_lang }}</th>
-                            {% if is_allowed_to_edit %}
-                                <th>{{ "PublicationDate"|get_lang }}</th>
-                                <th>{{ "ExpirationDate"|get_lang }}</th>
-                                <th>{{ "Progress"|get_lang }}</th>
-                                <th>{{ "AuthoringOptions"|get_lang }}</th>
-                            {% else %}
-                                {% if not is_invitee %}
-                                    <th>{{ "Progress"|get_lang }}</th>
-                                {% endif %}
-
-                                <th>{{ "Actions"|get_lang }}</th>
-                            {% endif %}
-                        </tr>
-                    </thead>
-                    <tbody>
-                    {% for row in lp_data.lp_list %}
-                        <tr>
-                            <td>
-                                {{ row.learnpath_icon }}
-                                <a href="{{ row.url_start }}">
-                                    {{ row.title }}
-                                    {{ row.session_image }}
-                                    {{ row.extra }}
-                                </a>
-                            </td>
-                            {% if is_allowed_to_edit %}
-                                <td>
-                                    {% if row.start_time %}
-                                        <span class="small">{{ row.start_time }}</span>
-                                    {% endif %}
-                                </td>
-                                <td>
-                                    <span class="small">{{ row.end_time }}</span>
-                                </td>
-                                <td>
-                                    {{ row.dsp_progress }}
-                                </td>
-                            {% else %}
-                                {% if not is_invitee %}
-                                    <td>
-                                        {{ row.dsp_progress }}
-                                    </td>
-                                {% endif %}
-                            {% endif %}
-                            <td>
-                                {{ row.action_build }}
-                                {{ row.action_edit }}
-                                {{ row.action_visible }}
-                                {{ row.action_tracking }}
-                                {{ row.action_publish }}
-                                {{ row.action_subscribe_users }}
-                                {{ row.action_serious_game }}
-                                {{ row.action_reinit }}
-                                {{ row.action_default_view }}
-                                {{ row.action_debug }}
-                                {{ row.action_export }}
-                                {{ row.action_copy }}
-                                {{ row.action_auto_launch }}
-                                {{ row.action_pdf }}
-                                {{ row.action_delete }}
-                                {{ row.action_order }}
-                                {{ row.action_update_scorm }}
-                            </td>
-                        </tr>
-                    {% endfor %}
-                    </tbody>
-                </table>
-            </div>
-        {% endif %}
-        <!--- end old view -->
-        {% else %}
-        <!-- new view block accordeon -->
-        {% if lp_data.category.id == 0 %}
-            {% if lp_data.lp_list %}
-                  <div class="table-responsive">
-                      <table class="table table-hover table-striped">
-                          <thead>
-                              <tr>
-                                  <th>{{ "Title"|get_lang }}</th>
-                                  {% if is_allowed_to_edit %}
-                                      <th>{{ "PublicationDate"|get_lang }}</th>
-                                      <th>{{ "ExpirationDate"|get_lang }}</th>
-                                      <th>{{ "Progress"|get_lang }}</th>
-                                      <th>{{ "AuthoringOptions"|get_lang }}</th>
-                                  {% else %}
-                                      {% if not is_invitee %}
-                                          <th>{{ "Progress"|get_lang }}</th>
-                                      {% endif %}
-
-                                      <th>{{ "Actions"|get_lang }}</th>
-                                  {% endif %}
-                              </tr>
-                          </thead>
-                          <tbody>
-                          {% for row in lp_data.lp_list %}
-                              <tr>
-                                  <td>
-                                      {{ row.learnpath_icon }}
-                                      <a href="{{ row.url_start }}">
-                                          {{ row.title }}
-                                          {{ row.session_image }}
-                                          {{ row.extra }}
-                                      </a>
-                                  </td>
-                                  {% if is_allowed_to_edit %}
-                                      <td>
-                                          {% if row.start_time %}
-                                              <span class="small">{{ row.start_time }}</span>
-                                          {% endif %}
-                                      </td>
-                                      <td>
-                                          <span class="small">{{ row.end_time }}</span>
-                                      </td>
-                                      <td>
-                                          {{ row.dsp_progress }}
-                                      </td>
-                                  {% else %}
-                                      {% if not is_invitee %}
-                                          <td>
-                                              {{ row.dsp_progress }}
-                                          </td>
-                                      {% endif %}
-                                  {% endif %}
-
-                                  <td>
-                                      {{ row.action_build }}
-                                      {{ row.action_edit }}
-                                      {{ row.action_visible }}
-                                      {{ row.action_tracking }}
-                                      {{ row.action_publish }}
-                                      {{ row.action_subscribe_users }}
-                                      {{ row.action_serious_game }}
-                                      {{ row.action_reinit }}
-                                      {{ row.action_default_view }}
-                                      {{ row.action_debug }}
-                                      {{ row.action_export }}
-                                      {{ row.action_copy }}
-                                      {{ row.action_auto_launch }}
-                                      {{ row.action_pdf }}
-                                      {{ row.action_delete }}
-                                      {{ row.action_order }}
-                                  </td>
-                              </tr>
-                          {% endfor %}
-                          </tbody>
-                      </table>
-                  </div>
-              {% endif %}
-        {% endif %}
-        {% if categories|length > 1 and lp_data.category.id %}
-            <div class="panel panel-default">
-              <div class="panel-heading" role="tab" id="heading-{{ lp_data.category.getId() }}">
-                  <h4 class="panel-title">
-                      <a role="button" data-toggle="collapse" data-parent="#lp-accordion" href="#collapse-{{ lp_data.category.getId() }}" aria-expanded="true" aria-controls="collapse-{{ lp_data.category.getId() }}">
-                          {{ lp_data.category.getName() }}
-                      </a>
-                  </h4>
-              {% if is_allowed_to_edit %}
-                  <div class="tools-actions pull-right">
-                      {% if lp_data.category.getId() > 0 %}
-                          {% if not _c.session_id %}
-                              <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}">
-                                  <img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|get_lang }}">
-                              </a>
-
-                              {% if subscription_settings.allow_add_users_to_lp_category %}
-                              <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId() }}" title="{{ "AddUsers"|get_lang }}">
-                                  <img src="{{ "user.png"|icon }}" alt="{{ "AddUsers"|get_lang }}">
-                              </a>
-                              {% endif %}
-
-                              {% if loop.index0 == 1 %}
-                                  <a href="#">
-                                      <img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                  </a>
-                              {% else %}
-                                  <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_up_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}">
-                                      <img src="{{ "up.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                  </a>
-                              {% endif %}
-
-                              {% if (data|length - 1) == loop.index0 %}
-                                  <a href="#">
-                                      <img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                  </a>
-                              {% else %}
-                                  <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_down_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}">
-                                      <img src="{{ "down.png"|icon }}" alt="{{ "Move"|get_lang }}">
-                                  </a>
-                              {% endif %}
-                          {% endif %}
-
-                          {% if lp_data.category_visibility == 0 %}
-                              <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"
-                                 title="{{ 'Show'|get_lang }}">
-                                  <img src="{{ 'invisible.png'|icon }}" alt="{{ 'Show'|get_lang }}">
-                              </a>
-                          {% else %}
-                              <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':0}|url_encode }}"
-                                 title="{{ 'Hide'|get_lang }}">
-                                  <img src="{{ 'visible.png'|icon }}" alt="{{ 'Hide'|get_lang }}">
-                              </a>
-                          {% endif %}
-
-                          {% if lp_data.category_is_published == 0 %}
-                              <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"
-                                 title="{{ 'LearnpathPublish'|get_lang }}">
-                                  <img src="{{ 'lp_publish_na.png'|icon }}" alt="{{ 'LearnpathPublish'|get_lang }}">
-                              </a>
-                          {% else %}
-                              <a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':0}|url_encode }}"
-                                 title="{{ 'LearnpathDoNotPublish'|get_lang }}">
-                                  <img src="{{ 'lp_publish.png'|icon }}" alt="{{ 'Hide'|get_lang }}">
-                              </a>
-                          {% endif %}
-
-                          {% if not _c.session_id %}
-                              <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query  ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Delete"|get_lang }}">
-                                  <img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|get_lang }}">
-                              </a>
-                          {% endif %}
-                      {% endif %}
-                      </div>
-                  {% endif %}
-              </div>
-              <div id="collapse-{{ lp_data.category.getId() }}" class="panel-collapse collapse " role="tabpanel" aria-labelledby="heading-{{ lp_data.category.getId() }}">
-                <div class="panel-body">
-                    {% if lp_data.lp_list %}
-                  <div class="table-responsive">
-                      <table class="table table-hover table-striped">
-                          <thead>
-                              <tr>
-                                  <th>{{ "Title"|get_lang }}</th>
-                                  {% if is_allowed_to_edit %}
-                                      <th>{{ "PublicationDate"|get_lang }}</th>
-                                      <th>{{ "ExpirationDate"|get_lang }}</th>
-                                      <th>{{ "Progress"|get_lang }}</th>
-                                      <th>{{ "AuthoringOptions"|get_lang }}</th>
-                                  {% else %}
-                                      {% if not is_invitee %}
-                                          <th>{{ "Progress"|get_lang }}</th>
-                                      {% endif %}
-
-                                      <th>{{ "Actions"|get_lang }}</th>
-                                  {% endif %}
-                              </tr>
-                          </thead>
-                          <tbody>
-                              {% for row in lp_data.lp_list %}
-                                  <tr>
-                                      <td>
-                                          {{ row.learnpath_icon }}
-                                          <a href="{{ row.url_start }}">
-                                              {{ row.title }}
-                                              {{ row.session_image }}
-                                              {{ row.extra }}
-                                          </a>
-                                      </td>
-                                      {% if is_allowed_to_edit %}
-                                          <td>
-                                              {% if row.start_time %}
-                                                  <span class="small">{{ row.start_time }}</span>
-                                              {% endif %}
-                                          </td>
-                                          <td>
-                                              <span class="small">{{ row.end_time }}</span>
-                                          </td>
-                                          <td>
-                                              {{ row.dsp_progress }}
-                                          </td>
-                                      {% else %}
-                                          {% if not is_invitee %}
-                                              <td>
-                                                  {{ row.dsp_progress }}
-                                              </td>
-                                          {% endif %}
-                                      {% endif %}
-
-                                      <td>
-                                          {{ row.action_build }}
-                                          {{ row.action_edit }}
-                                          {{ row.action_visible }}
-                                          {{ row.action_tracking }}
-                                          {{ row.action_publish }}
-                                          {{ row.action_subscribe_users }}
-                                          {{ row.action_serious_game }}
-                                          {{ row.action_reinit }}
-                                          {{ row.action_default_view }}
-                                          {{ row.action_debug }}
-                                          {{ row.action_export }}
-                                          {{ row.action_copy }}
-                                          {{ row.action_auto_launch }}
-                                          {{ row.action_pdf }}
-                                          {{ row.action_delete }}
-                                          {{ row.action_order }}
-                                      </td>
-                                  </tr>
-                              {% endfor %}
-                          </tbody>
-                      </table>
-                  </div>
-              {% endif %}
-                </div>
-              </div>
-            </div>
-
-        {% endif %}
-        <!-- end view block accordeon -->
-        {% endif %}
-    {% endif %}
-{% endfor %}
-</div>
-{% if is_allowed_to_edit and not lp_is_shown %}
-    <div id="no-data-view">
-        <h2>{{ "LearningPaths"|get_lang }}</h2>
-        <img src="{{ "scorms.png"|icon(64) }}" width="64" height="64">
-        <div class="controls">
-            <a href="{{ web_self ~ "?" ~ _p.web_cid_query ~ "&action=add_lp" }}" class="btn btn-default">
-                {{ "LearnpathAddLearnpath"|get_lang }}
-            </a>
-        </div>
-    </div>
-{% endif %}

+ 0 - 1
main/template/rainbow/learnpath/lp_upload_audio.tpl

@@ -1 +0,0 @@
-{{ content }}

+ 0 - 133
main/template/rainbow/learnpath/record_voice.tpl

@@ -1,133 +0,0 @@
-<div id="record-audio-recordrtc" class="text-center">
-    <p>
-        <span class="fa fa-microphone fa-5x fa-fw" aria-hidden="true"></span>
-        <span class="sr-only">{{ 'RecordAudio'|get_lang }}</span>
-    </p>
-    <button class="btn btn-primary" type="button" id="btn-start-record">
-        <span class="fa fa-circle fa-fw" aria-hidden="true"></span> {{ 'StartRecordingAudio'|get_lang }}
-    </button>
-    <button class="btn btn-success" type="button" id="btn-stop-record" disabled>
-        <span class="fa fa-square fa-fw" aria-hidden="true"></span> {{ 'StopRecordingAudio'|get_lang }}
-    </button>
-</div>
-
-<div id="record-audio-wami" class="wami-container"></div>
-
-<script>
-    $(document).on('ready', function () {
-        function useRecordRTC(){
-            $('#record-audio-recordrtc').show();
-
-            var mediaConstraints = {audio: true},
-                    recordRTC = null,
-                    btnStart = $('#btn-start-record'),
-                    btnStop = $('#btn-stop-record');
-
-            btnStart.on('click', function () {
-                navigator.getUserMedia = navigator.getUserMedia ||
-                        navigator.mozGetUserMedia ||
-                        navigator.webkitGetUserMedia;
-
-                if (navigator.getUserMedia) {
-                    navigator.getUserMedia(mediaConstraints, successCallback, errorCallback);
-                } else if (navigator.mediaDevices.getUserMedia) {
-                    navigator.mediaDevices.getUserMedia(mediaConstraints)
-                            .then(successCallback).error(errorCallback);
-                }
-
-                function successCallback(stream) {
-                    recordRTC = RecordRTC(stream, {
-                        numberOfAudioChannels: 1,
-                        type: 'audio'
-                    });
-                    recordRTC.startRecording();
-
-                    btnStop.prop('disabled', false);
-                    btnStart.prop('disabled', true);
-                }
-
-                function errorCallback(error) {
-                    alert(error.message);
-                }
-            });
-
-            btnStop.on('click', function () {
-                if (!recordRTC) {
-                    return;
-                }
-
-                recordRTC.stopRecording(function (audioURL) {
-                    var recordedBlob = recordRTC.getBlob(),
-                            fileName = Math.round(Math.random() * 99999999) + 99999999,
-                            fileExtension = '.' + recordedBlob.type.split('/')[1];
-
-                    var formData = new FormData();
-                    formData.append('audio-filename', fileName + fileExtension);
-                    formData.append('audio-blob', recordedBlob, 'audio' + fileExtension);
-
-                    $.ajax({
-                        url: '{{ _p.web_ajax }}lp.ajax.php?a=record_audio&lp_item_id={{ lp_item_id }}',
-                        data: formData,
-                        processData: false,
-                        contentType: false,
-                        type: 'POST',
-                        success: function (fileURL) {
-                            if (!fileURL) {
-                                return;
-                            }
-
-                            window.location.reload();
-                        }
-                    });
-
-                    btnStop.prop('disabled', true);
-                    btnStart.prop('disabled', false);
-                });
-            });
-        }
-
-        function useWami(){
-            $('#record-audio-wami').show();
-
-            function setupGUI() {
-                var gui = new Wami.GUI({
-                    id : 'record-audio-wami',
-                    singleButton : true,
-                    recordUrl : '{{ _p.web_ajax }}record_audio_wami.ajax.php?' + $.param({
-                        waminame: 'rec_' + (new Date()).getTime() + '.wav',
-                        wamidir: '{{ cur_dir_path }}',
-                        wamiuserid: {{ _u.user_id }},
-                        lp_item_id: {{ lp_item_id }}
-                    }),
-                    buttonUrl : '{{ _p.web_lib }}wami-recorder/buttons.png',
-                    buttonNoUrl: '{{ _p.web_img }}blank.gif',
-                    onRecordFinish: function() {
-                        $('#start-recording').hide();
-                        window.location.reload();
-                    }
-                });
-
-                gui.setPlayEnabled(false);
-            }
-
-            Wami.setup({
-                id : "record-audio-wami",
-                onReady : setupGUI,
-                swfUrl: '{{ _p.web_lib }}wami-recorder/Wami.swf'
-            });
-        }
-
-        $('#record-audio-recordrtc, #record-audio-wami').hide();
-
-        var webRTCIsEnabled = navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.getUserMedia ||
-                navigator.mediaDevices.getUserMedia;
-
-        if (webRTCIsEnabled) {
-            useRecordRTC();
-
-            return;
-        }
-
-        useWami();
-    });
-</script>

+ 0 - 66
main/template/rainbow/learnpath/report.tpl

@@ -1,66 +0,0 @@
-<div class="table-responsive">
-    <table class="table table-hover table-striped table-bordered">
-        <thead>
-            <tr>
-                <th>{{ 'FirstName'|get_lang }}</th>
-                <th>{{ 'LastName'|get_lang }}</th>
-                {% if show_email %}
-                    <th>{{ 'Email'|get_lang }}</th>
-                {% endif %}
-                <th class="text-center">{{ 'ScormTime'|get_lang }}</th>
-                <th class="text-right">{{ 'Progress'|get_lang }}</th>
-                <th class="text-right">{{ 'ScormScore'|get_lang }}</th>
-                <th class="text-center">{{ 'LastConnection'|get_lang }}</th>
-                {% if not export %}
-                <th>{{ 'Actions'|get_lang }}</th>
-                {% endif %}
-            </tr>
-        </thead>
-        <tbody>
-            {% for user in user_list %}
-                <tr id="row-{{ user.id }}">
-                    <td>{{ user.first_name }}</td>
-                    <td>{{ user.last_name }}</td>
-                    {% if show_email %}
-                        <td>{{ user.email }}</td>
-                    {% endif %}
-                    <td class="text-center">{{ user.lp_time }}</td>
-                    <td class="text-right">{{ user.lp_progress }}</td>
-                    <td class="text-right">{{ user.lp_score }}</td>
-                    <td class="text-center">{{ user.lp_last_connection }}</td>
-                    {% if not export %}
-                    <td>
-                        <button class="btn btn-primary btn-sm" data-id="{{ user.id }}">{{ 'Details'|get_lang }}</button>
-                    </td>
-                    {% endif %}
-                </tr>
-                <tr class="hide"></tr>
-            {% endfor %}
-        </tbody>
-    </table>
-</div>
-
-<script>
-$(document).on('ready', function () {
-    $('tr td button').on('click', function (e) {
-        e.preventDefault();
-        var self = $(this);
-        var userId = self.data('id') || 0;
-        var trHead = self.parents('tr');
-        var trDetail = trHead.next();
-        if (self.is('.active')) {
-            self.removeClass('active');
-            trDetail.html('').addClass('hide');
-        } else {
-            self.addClass('active');
-            var newTD = $('<td>', {
-                colspan: 7
-            });
-            newTD.load('{{ _p.web_main ~ 'mySpace/lp_tracking.php?action=stats&extend_all=0&id_session=' ~ session_id ~ '&course=' ~ course_code ~ '&lp_id=' ~ lp_id ~ '&student_id=\' + userId + \'&origin=tracking_course&allow_extend=0' }} .table-responsive', function () {
-                newTD.appendTo(trDetail);
-            });
-            trDetail.removeClass('hide');
-        }
-    });
-});
-</script>

+ 0 - 82
main/template/rainbow/learnpath/scorm_list.tpl

@@ -1,82 +0,0 @@
-{% if data_list is not empty %}
-    <div id="learning_path_toc" class="scorm-list">
-        <div class="scorm-body">
-            <div id="inner_lp_toc" class="inner_lp_toc scrollbar-light">
-                {% for item in data_list %}
-                    <div id="toc_{{ item.id }}" class="{{ item.class }}">
-                        {% if item.type == 'dir' %}
-                            <div class="section {{ item.css_level }}" title="{{ item.description }}">
-                                {{ item.title }}
-                            </div>
-                        {% else %}
-                            <div class="item {{ item.css_level }}" title="{{ item.description }}">
-                                <a name="atoc_{{ item.id }}"></a>
-                                <a class="items-list" href="#"
-                                   onclick="switch_item('{{ item.current_id }}','{{ item.id }}'); return false;">
-                                    {{ item.title }}
-                                </a>
-                            </div>
-                        {% endif %}
-                    </div>
-                {% endfor %}
-            </div>
-        </div>
-    </div>
-{% endif %}
-{% if data_panel is not empty %}
-    <div id="learning_path_toc" class="scorm-list">
-        <div class="panel-group" id="scorm-panel" role="tablist" aria-multiselectable="true">
-            {% for item in data_panel.are_parents %}
-                <div class="panel panel-default {{ item.parent ? 'lower':'higher' }}" data-lp-id="{{ item.id }}"
-                        {{ item.parent ? 'data-lp-parent="' ~ item.parent ~ '"' : '' }}>
-                    <div class="status-heading">
-                        <div class="panel-heading" role="tab" id="heading-{{ item.id }}">
-                            <a role="button" data-toggle="collapse"
-                               data-parent="#scorm-panel{{ item.parent ? '-' ~ item.parent : '' }}"
-                               href="#collapse-{{ item.id }}" aria-expanded="true"
-                               aria-controls="collapse-{{ item.id }}">
-                                {{ item.title }}
-                            </a>
-                        </div>
-                    </div>
-                    <div id="collapse-{{ item.id }}" class="panel-collapse collapse {{ item.parent_current }}"
-                         role="tabpanel" aria-labelledby="heading-{{ item.id }}">
-                        <div class="panel-body">
-                            <ul class="section-list">
-                                {% set  counter = 0 %}
-                                {% set  final = item.children|length %}
-                                {% for subitem in item.children %}
-                                    {% set  counter = counter + 1 %}
-                                    <li id="toc_{{ subitem.id }}"
-                                        class="{{ subitem.class }} {{ counter == final ? 'final':'' }}">
-                                        <div class="sub-item type-{{ subitem.type }}">
-                                            <a name="atoc_{{ subitem.id }}"></a>
-                                            <a class="item-action" href="#"
-                                               onclick="switch_item('{{ subitem.current_id }}','{{ subitem.id }}'); return false;">
-                                                {{ subitem.title }}
-                                            </a>
-                                        </div>
-                                    </li>
-
-                                {% endfor %}
-                            </ul>
-                        </div>
-                    </div>
-                </div>
-            {% endfor %}
-            <ul class="section-list" style="margin-top: 5px;">
-                {% for item in data_panel.not_parents %}
-                    <li id="toc_{{ item.id }}" class="{{ item.class }}">
-                        <div class="sub-item type-{{ item.type }}">
-                            <a name="atoc_{{ item.id }}"></a>
-                            <a class="item-action" href="#"
-                               onclick="switch_item('{{ item.current_id }}','{{ item.id }}'); return false;">
-                                {{ item.title }}
-                            </a>
-                        </div>
-                    </li>
-                {% endfor %}
-            </ul>
-        </div>
-    </div>
-{% endif %}

+ 0 - 16
main/template/rainbow/link/edit_category.tpl

@@ -1,16 +0,0 @@
-
-{{javascript}}
-
-<div class="btn-toolbar actions-bar" >
-    <div class="btn-group">
-        <a href="{{root}}&amp;action=listing" class="btn">
-            <em class="size-32 icon-back"></em>
-        </a>
-    </div>
-</div>
-
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-
-{{form.return_form()}}

+ 0 - 16
main/template/rainbow/link/edit_link.tpl

@@ -1,16 +0,0 @@
-
-{{javascript}}
-
-<div class="btn-toolbar actions-bar" >
-    <div class="btn-group">
-        <a href="{{root}}&amp;action=listing" class="btn">
-            <em class="size-32 icon-back"></em>
-        </a>
-    </div>
-</div>
-
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-
-{{form.return_form()}}

+ 0 - 343
main/template/rainbow/link/index.tpl

@@ -1,343 +0,0 @@
-
-{{javascript}}
-
-<script type="text/javascript">
-
-    {% if is_allowed_to_edit %}
-        var sec_token = '{{sec_token}}';
-    {% endif %}
-
-$(function() {
-	$('.collapsible .head').click(function(e) {
-        $(this).toggleClass('collapsed');
-        $(this).next().toggle();
-		return true;
-	});
-
-    {% if is_allowed_to_edit %}
-        $(".categories.sortable" ).sortable({
-            axis: 'y',
-            handle: '.handle',
-            //placeholder: 'ui-state-highlight',
-            update: function(event, ui) {
-                var c_id = 0;
-                var ids = [];
-                var items;
-                items = $(this).children('li');
-                items.each(function(index, li){
-                    li = $(li);
-                    var id;
-                    id = li.attr('data-id');
-                    c_id = li.attr('data-c_id');
-                    ids.push(id);
-                });
-
-                LinkCategory.sort(c_id, ids, message.update);
-            }
-        });
-        $(".categories.sortable" ).disableSelection();
-
-        $(".links.sortable" ).sortable({
-            axis: 'y',
-            placeholder: 'ui-state-highlight',
-            update: function(event, ui) {
-                var c_id = 0;
-                var ids = [];
-                var items;
-                items = $(this).children('li');
-                items.each(function(index, li){
-                    li = $(li);
-                    var id;
-                    id = li.attr('data-id');
-                    c_id = li.attr('data-c_id');
-                    ids.push(id);
-                });
-
-                Link.sort(c_id, ids, message.update);
-            }
-        });
-        $(".links.sortable" ).disableSelection();
-
-    {% endif %}
-
-});
-
- function expand_all(){
-    $('.collapsible .head').removeClass('collapsed').next().show();
- }
-
- function collapse_all(){
-    $('.collapsible .head').addClass('collapsed').next().hide();
- }
-
- function delete_category(name){
-    if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){
-        return false;
-    }
-
-    var item = $('#'+name);
-    var id = item.attr('data-id');
-    var c_id = item.attr('data-c_id');
-
-    var f = function(data){
-        if(data.success){
-            item.remove();
-        }
-        message.update(data);
-    };
-    LinkCategory.del(c_id, id, f);
- }
-
- function delete_all(){
-    if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){
-        return false;
-    }
-
-    var f = function(data){
-        if(data.success){
-            var item = $('.data');
-            item.remove();
-        }
-        message.update(data);
-    };
-    Link.delete_by_course({{c_id}}, {{session_id}}, f);
-
- }
-
- function delete_link(name, btn){
-    if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){
-        return false;
-    }
-
-    var item = $('#'+name);
-    var id = item.attr('data-id');
-    var c_id = item.attr('data-c_id');
-
-    var f = function(data){
-        if(data.success){
-            item.remove();
-        }else{
-            $(btn).removeClass("loading");
-        }
-        message.update(data);
-    };
-    $(btn).addClass("loading");
-    Link.del(c_id, id, f);
- }
-
-function switch_li_visibility(name, btn)
-{
-    var li = $('#'+name);
-    var id = li.attr('data-id');
-    var c_id = li.attr('data-c_id');
-
-    var is_visible = !li.hasClass('text-muted')
-
-    var f = function(data){
-        if(data.success){
-            var btn =  $('.btn.visibility', li);
-            if(is_visible){
-                btn.addClass('show');
-                btn.removeClass('hide');
-                li.addClass('text-muted');
-                li.removeClass('visible');
-            }else{
-                btn.removeClass('show');
-                btn.addClass('hide');
-                li.removeClass('text-muted');
-                li.addClass('visible');
-            }
-        }
-        message.update(data);
-        $(btn).removeClass("loading");
-    };
-    if(is_visible){
-        Link.hide(c_id, id, f);
-    }else{
-        Link.show(c_id, id, f);
-    }
-    $(btn).addClass("loading");
-}
-
-function validate_link(name, btn){
-    var li = $('#'+name);
-    var id = li.attr('data-id');
-    var c_id = li.attr('data-c_id');
-
-    var f = function(data){
-        if(data.success){
-            li.addClass('valid');
-            li.removeClass('invalid');
-        }else{
-            li.addClass('invalid');
-            li.removeClass('valid');
-        }
-        message.update(data);
-        $(btn).removeClass("loading");
-    };
-    $(btn).addClass("loading");
-    Link.validate(c_id, id, f);
-}
-
-</script>
-
-<div id="messages">
-{% for message in messages %}
-    {{ message }}
-{% endfor %}
-</div>
-
-<div class="btn-toolbar actions-bar" >
-    {% if is_allowed_to_edit %}
-        <div class="btn-group edit">
-            <a href="{{root}}&amp;action=add_category" class="btn new_folder" title="{{'AddCategory'|get_lang}}">
-                <em class="size-32 icon-new-folder"></em>
-            </a>
-            <a href="{{root}}&amp;action=add_link" class="btn new_link" title="{{'AddLink'|get_lang}}">
-                <em class="size-32 icon-new-link"></em>
-            </a>
-            <a href="javascript:void(0)" onclick="delete_all();return false;" class="btn btn-default" title="{{'DeleteAll'|get_lang}}">
-                <em class="size-32 icon-delete-all"></em>
-            </a>
-            <a href="{{root}}&amp;action=import_csv" class="btn import_csv" title="{{'ImportCSV'|get_lang}}">
-                <em class="size-32 icon-import-csv"></em>
-            </a>
-            <a href="{{root}}&amp;action=export_csv" class="btn" title="{{'ExportAsCSV'|get_lang}}">
-                <em class="size-32 icon-export-csv"></em>
-            </a>
-        </div>
-    {% endif %}
-    <div class="btn-group">
-        <a href="javascript:void(0)" onclick="expand_all();return false;" class="btn btn-default" title="{{'ShowAll'|get_lang}}">
-            <em class="size-32 icon-expand"></em>
-        </a>
-        <a href="javascript:void(0)" onclick="collapse_all();return false;" class="btn btn-default" title="{{'ShowNone'|get_lang}}">
-            <em class="size-32 icon-collapse"></em>
-        </a>
-    </div>
-</div>
-
-<div class="data">
-    <ul style="list-style: none; margin-left:0;" class="links sortable">
-        {% for link in links %}
-            {% set link_class %}
-                {% if loop.first %}first{% endif %}
-                {% if loop.last %}last{% endif %}
-                {% if loop.index is odd %}odd{% else %}even{% endif %}
-                {% if link.is_visible() %}visible{% else %}invisible{% endif %}
-            {% endset %}
-
-            <li id="link_{{link.id}}" class="link {{link_class}}" data-id="{{link.id}}" data-c_id="{{link.c_id}}" data-type="link" >
-                <a class="icon" target="{{link.target}}" href="{{root}}&amp;action=go&amp;id={{link.id}}&amp;c_id={{link.c_id}}">
-                    {{ 'link.png' |icon(22)}}
-                </a>
-                <a class="title" target="{{link.target}}" href="{{root}}&amp;action=go&amp;id={{link.id}}&amp;c_id={{link.c_id}}">
-                    {%if link.title %}{{link.title}}{% else %}{{link.url}}{%endif%}
-                </a>
-                {% if link.session_id %}
-                    {{session_image}}
-                {% endif %}
-                <div class="status" style="display:inline-block;">&nbsp;</div>
-                {% if is_allowed_to_edit %}
-                    <div style="float:right;">
-                        <a href="javascript:void(0)" onclick="validate_link('link_{{link.id}}', this);return false;"
-                        title="{{'CheckURL'|get_lang}}"
-                        class="btn validate_link">
-
-                        </a>
-                        <a href="{{root}}&amp;action=edit_link&amp;id={{link.id}}&amp;c_id={{link.c_id}}"
-                        title="{{'Edit'|get_lang}}"
-                        class="">
-                            <em class="size-22 icon-edit"></em>
-                        </a>
-                        <a href="javascript:void(0)" onclick="switch_li_visibility('link_{{link.id}}', this);return false;"
-                        class="btn visibility {%if link.visibility == 1%}hide{%else%}show{%endif%}">
-
-                        </a>
-                        <a href="javascript:void(0)" onclick="delete_link('link_{{link.id}}', this);return false;" title="{{'Delete'|get_lang}}" class="">
-                            <em class="size-22 icon-delete"></em>
-                        </a>
-                    </div>
-                {% endif %}
-                <div class="description">{{link.description}}</div>
-            </li>
-        {% endfor%}
-    </ul>
-
-    <ul id="link_categories" class="categories sortable" style="list-style: none; margin-left:0;">
-    {% for category in categories %}
-        <li id="category_{{category.id}}" class="link_category collapsible" data-id="{{category.id}}" data-c_id="{{category.c_id}}" data-type="category" >
-            <div class="head handle collapsed">
-                {% if is_allowed_to_edit %}
-                    <div style="float:right;">
-                        <a href="{{root}}&amp;action=edit_category&amp;id={{category.id}}&amp;c_id={{category.c_id}}"
-                        onclick="event.stopPropagation();"
-                        title="{{'Edit'|get_lang}}"
-                        class="">
-                            <em class="size-22 icon-edit"></em>
-                        </a>
-                        <a href="javascript:void(0)"
-                        onclick="delete_category('category_{{category.id}}');event.stopPropagation();return false;"
-                            title="{{'Delete'|get_lang}}"
-                            class="">
-                            <em class="size-22 icon-delete"></em>
-                        </a>
-                    </div>
-                {% endif %}
-                <h3>
-                    <a href="{{root}}&amp;action=view&amp;id={{category.id}}&amp;c_id={{category.c_id}}">{{category.category_title|escape}}</a>
-                </h3>
-                {{category.description}}
-            </div>
-            <div class="body" style="display:none;">
-                <ul style="list-style: none; margin-left:0;" class="links sortable">
-                    {% for link in category.links %}
-                    {% set link_class %}
-                        {% if loop.first %}first{% endif %}
-                        {% if loop.last %}last{% endif %}
-                        {% if loop.index is odd %}odd{% else %}even{% endif %}
-                        {% if link.is_visible() %}visible{% else %}invisible{% endif %}
-                    {% endset %}
-
-                        <li id="link_{{link.id}}" class="link {{link_class}}" data-id="{{link.id}}" data-c_id="{{link.c_id}}" data-type="link" >
-                            <a class="icon" target="{{link.target}}" href="{{root}}&amp;action=go&amp;id={{link.id}}&amp;c_id={{link.c_id}}">
-                                {{ 'link.png' |icon(22) }}
-                            </a>
-                            <a class ="title" target="{{link.target}}" href="{{root}}&amp;action=go&amp;id={{link.id}}&amp;c_id={{link.c_id}}">
-                                {%if link.title %}{{link.title}}{% else %}{{link.url}}{%endif%}
-                            </a>
-                            {% if link.session_id %}
-                                {{session_image}}
-                            {% endif %}
-                            <div class="status" style="display:inline-block;">&nbsp;</div>
-                            {% if is_allowed_to_edit %}
-                                <div style="float:right;">
-                                    <a href="javascript:void(0)" onclick="validate_link('link_{{link.id}}', this);return false;"
-                                    title="{{'CheckURL'|get_lang}}"
-                                    class="btn validate_link"></a>
-                                    <a href="{{root}}&amp;action=edit_link&amp;id={{link.id}}&amp;c_id={{link.c_id}}"
-                                    onclick=""
-                                    title="{{'Edit'|get_lang}}"
-                                    class="">
-                                        <em class="size-22 icon-edit"></em>
-                                    </a>
-                                    <a href="javascript:void(0)"
-                                    onclick="switch_li_visibility('link_{{link.id}}', this);return false;"
-                                    class="btn visibility {%if link.visibility == 1%}hide{%else%}show{%endif%}"></a>
-                                    <a href="javascript:void(0)"
-                                    onclick="delete_link('link_{{link.id}}', this);return false;"
-                                    title="{{'Delete'|get_lang}}"
-                                    class="">
-                                        <em class="size-22 icon-delete"></em>
-                                    </a>
-                                </div>
-                            {% endif %}
-                        </li>
-                    {% endfor%}
-                </ul>
-            </div>
-            <div class="details "></div>
-        </li>
-    {% endfor%}
-    </ul>
-</div>

+ 0 - 71
main/template/rainbow/mail_editor/email_link.js.tpl

@@ -1,71 +0,0 @@
-<script>
-/* For licensing terms, see /license.txt */
-/*
- * JS library to deal with event handlers.
- * This script needs to be included from a script where the global include file has already been loaded.
- * @package chamilo.inc.lib.javascript
- * @author Yannick Warnier
- * @author Julio Montoya - Adding twig support
- */
-
-/*
- * Assigns any event handler to any element
- * @param	object	Element on which the event is added
- * @param	string	Name of event
- * @param	string	Function to trigger on event
- * @param	boolean	Capture the event and prevent
- */
-
-function addEvent(elm, evType, fn, useCapture) {
-    if (elm.addEventListener){
-		elm.addEventListener(evType, fn, useCapture);
-		return true;
-	} else if(elm.attachEvent) {
-		var r = elm.attachEvent('on' + evType, fn);
-		return r;
-	} else {
-		elm['on' + evType] = fn;
-	}
-}
-
-/*
- * Adds the event listener
- */
-function addListeners(e) {
-	var my_links = $('.clickable_email_link');    
-	for(var i=0;i < my_links.length;i++) {
-		addEvent(my_links[i],'click',loadEmailEditor,false);
-	}
-}
-
-/*
- * Loads a specific page on event triggering
- */
-function loadEmailEditor(e) {
-	var el;
-	if(window.event && window.event.srcElement) {
-		el = window.event.srcElement;
-	}
-	if (e && e.target) {
-		el = e.target;
-	}
-	if(!el) {
-		return;
-	}
-	//el is now my link object, so I can get el.href here to load the new window
-	var link = el.href.replace('mailto:','');
-	document.location = "{{ _p.web_main }}inc/email_editor.php?dest=" + link;
-	//cancel default link action
-	if (window.event && window.event.returnValue){
-		window.event.returnValue = false;
-	}
-	if(e && e.preventDefault){
-		e.preventDefault();
-	}
-}
-
-$(document).ready(function() {
-    addEvent(window,'load',addListeners,false);
-});
-
-</script>

+ 0 - 36
main/template/rainbow/my_space/accessoverview.tpl

@@ -1,36 +0,0 @@
-<h2 class="page-header">{{ 'DisplayAccessOverview'|get_lang }}</h2>
-
-{{ form }}
-
-<h3 class="page-header">{{ 'Results'|get_lang }}</h3>
-
-{{ table }}
-
-<script>
-    $(document).on('ready', function () {
-        var courseIdEl = $('#course_id'),
-            sessionIdEl = $('#session_id');
-
-        if (!courseIdEl.val()) {
-            sessionIdEl
-                .prop('disabled', true)
-                .selectpicker('refresh');
-        }
-
-        courseIdEl.on('change', function() {
-            var self = $(this);
-
-            if (!this.value) {
-                sessionIdEl
-                    .prop("disabled", true)
-                    .selectpicker('refresh');
-
-                return;
-            }
-
-            sessionIdEl
-                .prop("disabled", false)
-                .selectpicker('refresh');
-        });
-    });
-</script>

+ 0 - 33
main/template/rainbow/my_space/works_in_session_report.tpl

@@ -1,33 +0,0 @@
-{{ form }}
-
-{% if session %}
-    <h3 class="page-header">{{ session.name }}</h3>
-    <div class="table-responsive">
-        <table class="table table-hover table-striped">
-            <thead>
-                <tr>
-                    <th>{{ 'OfficialCode'|get_lang }}</th>
-                    <th>{{ 'StudentName'|get_lang }}</th>
-                    <th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
-                    <th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
-                    <th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
-
-                    {% for course_code in courses %}
-                        <th title="{{ header.title }}">{{ course_code }} <br />({{ 'BestScore' | get_lang }})</th>
-                        <th>{{ 'Progress'|get_lang }}</th>
-                        <th>{{ 'LastSentWorkDate'|get_lang }}</th>
-                    {% endfor %}
-                </tr>
-            </thead>
-            <tbody>
-                {% for user in users %}
-                    <tr>
-                        {% for data in user %}
-                            <td>{{ data }}</td>
-                        {% endfor %}
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-{% endif %}

+ 0 - 35
main/template/rainbow/sequence_resource/session_requirements.tpl

@@ -1,35 +0,0 @@
-<h2 class="page-header">{{ 'RequiredSessions'|get_lang }}</h2>
-
-{% for item in sequences %}
-    <h4>{{ item.name }}</h4>
-
-    <div id="parents">
-        {% for session in item.requirements %}
-            <div class="parent">
-                <div class="big-icon">
-                    <img src="{{ 'item-sequence.png'|icon(48) }}" width="48" height="48">
-                    <p class="sequence-course">{{ session.name }}</p>
-
-                    {% if _u.logged %}
-                        <span class="label {{ session.status ? 'label-success' : 'label-danger' }}">
-                            {% if session.status %}
-                                <em class="fa fa-check"></em> {{ 'Complete'|get_lang }}
-                            {% else %}
-                                <em class="fa fa-exclamation-triangle"></em> {{ 'Incomplete'|get_lang }}
-                            {% endif %}
-                        </span>
-                    {% endif %}
-                </div>
-            </div>
-
-            {% if loop.index != item.requirements|length %}
-                <em class="fa fa-plus fa-3x sequence-plus-icon"></em>
-            {% endif %}
-        {% endfor %}
-    </div>
-{% endfor %}
-
-{% if allow_subscription %}
-    <hr>
-    <p>{{ subscribe_button }}</p>
-{% endif %}

+ 0 - 251
main/template/rainbow/session/about.tpl

@@ -1,251 +0,0 @@
-<div id="about-session">
-    <div class="row">
-        <div class="col-xs-12">
-            <p>
-                <em class="fa fa-clock-o" aria-hidden="true"></em>
-                {% if session.duration %}
-                    <em>{{ 'SessionDurationXDaysLeft'|get_lang|format(session.duration) }}</em>
-                {% else %}
-                    <em>{{ session_date.display }}</em>
-                {% endif %}
-            </p>
-            {% if show_tutor %}
-                <p>
-                    <em class="fa fa-user"></em> {{ 'SessionGeneralCoach'|get_lang }}: <em>{{ session.generalCoach.getCompleteName() }}</em>
-                </p>
-            {% endif %}
-
-            {% if session.getShowDescription() %}
-                <div class="lead">
-                    {{ session.getDescription() }}
-                </div>
-            {% endif %}
-        </div>
-    </div>
-
-    {% if has_requirements %}
-        <div class="row">
-            <div class="col-xs-12">
-                <div class="panel panel-default">
-                    <div class="panel-heading">{{ 'RequiredSessions'|get_lang }}</div>
-                    <div class="panel-body">
-                        <div class="row">
-                            {% for sequence in sequences %}
-                                <div class="col-md-4">
-                                    <dl class="dl-horizontal">
-                                        {% if sequence.requirements %}
-                                            <dt>{{ sequence.name }}</dt>
-
-                                            {% for requirement in sequence.requirements %}
-                                                <dd>
-                                                    <a href="{{ _p.web ~ 'session/' ~ requirement.getId ~ '/about/' }}">{{ requirement.getName }}</a>
-                                                </dd>
-                                            {% endfor %}
-                                        {% endif %}
-                                    </dl>
-                                </div>
-                            {% endfor %}
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    {% endif %}
-
-    {% if is_subscribed %}
-        <div class="alert alert-info">
-            {{ 'AlreadyRegisteredToSession'|get_lang }}
-        </div>
-    {% elseif is_subscribed and user_session_time < 1 %}
-        <div class="alert alert-warning">
-            {{ 'YourSessionTimeIsExpired'|get_lang }}
-        </div>
-    {% endif %}
-
-    {% for course_data in courses %}
-        {% set course_video = '' %}
-
-        {% for extra_field in course_data.extra_fields %}
-            {% if extra_field.value.getField().getVariable() == 'video_url' %}
-                {% set course_video = extra_field.value.getValue() %}
-            {% endif %}
-        {% endfor %}
-
-        <div class="row">
-            {% if courses|length > 1 %}
-                <div class="col-xs-12">
-                    <h3 class="text-uppercase">{{ course_data.course.getTitle }}</h3>
-                </div>
-            {% endif %}
-
-            {% if course_video %}
-                <div class="col-sm-6 col-md-7">
-                    <div class="embed-responsive embed-responsive-16by9">
-                        {{ essence.replace(course_video) }}
-                    </div>
-                </div>
-            {% endif %}
-
-            <div class="{{ course_video ? 'col-sm-6 col-md-5' : 'col-sm-12' }}">
-                <div class="description-course">
-                    {{ course_data.description.getContent }}
-                </div>
-            </div>
-        </div>
-
-        <div class="row info-course">
-            <div class="col-xs-12 col-md-7">
-                <div class="panel panel-default">
-                    <div class="panel-heading">
-                        <h4>{{ "CourseInformation"|get_lang }}</h4>
-                    </div>
-                    <div class="panel-body">
-                        {% if course_data.objectives %}
-                            <div class="objective-course">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ "Objectives"|get_lang }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.objectives.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.topics %}
-                            <div class="topics">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ "Topics"|get_lang }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.topics.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.methodology %}
-                            <div class="topics">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.methodology.getTitle }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.methodology.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.material %}
-                            <div class="topics">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.material.getTitle }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.material.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.resources %}
-                            <div class="topics">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.resources.getTitle }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.resources.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.assessment %}
-                            <div class="topics">
-                                <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.assessment.getTitle }}</h4>
-                                <div class="content-info">
-                                    {{ course_data.assessment.getContent }}
-                                </div>
-                            </div>
-                        {% endif %}
-
-                        {% if course_data.custom %}
-                            {% for custom in course_data.custom %}
-                                <div class="topics">
-                                    <h4 class="title-info"><em class="fa fa-book"></em> {{ custom.getTitle }}</h4>
-                                    <div class="content-info">
-                                        {{ custom.getContent }}
-                                    </div>
-                                </div>
-                            {% endfor %}
-                        {% endif %}
-                    </div>
-                </div>
-            </div>
-
-            <div class="col-xs-12 col-md-5">
-                {% if course_data.coaches %}
-                    <div class="panel panel-default teachers">
-                        <div class="panel-heading">
-                            <h4>{{ "Coaches"|get_lang }}</h4>
-                        </div>
-                        <div class="panel-body">
-                            {% for coach in course_data.coaches %}
-                                <div class="row">
-                                    <div class="col-xs-7 col-md-7">
-                                        <h4>{{ coach.complete_name }}</h4>
-
-                                        {% for extra_field in coach.extra_fields %}
-                                            <dl>
-                                                <dt>{{ extra_field.value.getField().getDisplayText() }}</dt>
-                                                <dd>{{ extra_field.value.getValue() }}</dd>
-                                            </dl>
-                                        {% endfor %}
-                                    </div>
-                                    <div class="col-xs-5 col-md-5">
-                                        <div class="text-center">
-                                            <img class="img-circle" src="{{ coach.image }}" alt="{{ coach.complete_name }}">
-                                        </div>
-                                    </div>
-                                </div>
-                            {% endfor %}
-                        </div>
-                    </div>
-                {% endif %}
-
-                {% if course_data.tags %}
-                    <div class="panel panel-default">
-                        <div class="panel-heading">{{ 'Tags'|get_lang }}</div>
-                        <div class="panel-body">
-                            <ul class="list-inline">
-                                {% for tag in course_data.tags %}
-                                    <li>
-                                        <span class="label label-info">{{ tag.getTag }}</span>
-                                    </li>
-                                {% endfor %}
-                            </ul>
-                        </div>
-                    </div>
-                {% endif %}
-
-                <div class="panel panel-default social-share">
-                    <div class="panel-heading">{{ "ShareWithYourFriends"|get_lang }}</div>
-                    <div class="panel-body">
-                        <div class="icons-social text-center">
-                            <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
-                                <em class="fa fa-facebook fa-2x"></em>
-                            </a>
-                            <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
-                                <em class="fa fa-twitter fa-2x"></em>
-                            </a>
-                            <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': pageUrl, 'title': session.getName() }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
-                                <em class="fa fa-linkedin fa-2x"></em>
-                            </a>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    {% endfor %}
-
-    <div class="row">
-        <div class="col-md-4 col-md-offset-4">
-            {% if _u.logged and not is_subscribed %}
-                <div class="text-center">
-                    {{ subscribe_button }}
-                </div>
-            {% elseif not _u.logged %}
-                {% if 'allow_registration'|api_get_setting == 'true' %}
-                    <a href="{{ _p.web_main ~ 'auth/inscription.php' }}" class="btn btn-info btn-lg">
-                        <em class="fa fa-sign-in fa-fw"></em> {{ 'SignUp'|get_lang }}
-                    </a>
-                {% endif %}
-            {% endif %}
-        </div>
-    </div>
-</div>

+ 0 - 106
main/template/rainbow/session/resume_session.tpl

@@ -1,106 +0,0 @@
-{% extends template ~ "/layout/layout_1_col.tpl" %}
-
-{% block content %}
-
-{{ session_header }}
-{{ title }}
-
-<table id="session-properties" class="data_table">
-    <tr>
-        <td>{{ 'CreatedBy'|get_lang }}</td>
-        <td>{{ session_admin.complete_name_with_username }}</td>
-    </tr>
-    <tr>
-        <td>{{ 'GeneralCoach' | get_lang}} :</td>
-        <td>{{ general_coach.complete_name_with_username }}</td>
-    </tr>
-    {% if session_category  %}
-    <tr>
-        <td>{{ 'SessionCategory' | get_lang}} </td>
-        <td>{{ session_category }}</td>
-    </tr>
-    {% endif %}
-
-    {% if session.duration > 0 %}
-    <tr>
-        <td>{{ 'Duration' | get_lang}} </td>
-        <td>
-            {{ session.duration }} {{ 'Days' | get_lang }}
-        </td>
-    </tr>
-    {% else %}
-    <tr>
-        <td>{{ 'DisplayDates' | get_lang}} </td>
-        <td>{{ session_dates.display }}</td>
-    </tr>
-    <tr>
-        <td>{{ 'AccessDates' | get_lang}} </td>
-        <td>{{ session_dates.access }}</td>
-    </tr>
-    <tr>
-        <td>{{ 'CoachDates' | get_lang}} </td>
-        <td>{{ session_dates.coach }}</td>
-    </tr>
-    {% endif %}
-
-    <tr>
-        <td>{{ 'Description' | get_lang}} </td>
-        <td>
-            {{ session.description }}
-        </td>
-    </tr>
-    <tr>
-        <td>{{ 'ShowDescription' | get_lang}} </td>
-        <td>
-            {% if session.show_description == 1 %}
-                {{ 'Yes' | get_lang}}
-            {% else %}
-                {{ 'No' | get_lang}}
-            {% endif %}
-        </td>
-    </tr>
-    <tr>
-        <td>{{ 'SessionVisibility' | get_lang}} </td>
-        <td>
-            {{ session_visibility }}
-        </td>
-    </tr>
-    {% if promotion %}
-        <tr>
-            <td>{{ 'Career' | get_lang}}</td>
-            <td>
-                <a href="{{ _p.web_main }}admin/career_dashboard.php?filter={{ promotion.career.id }}&submit=&_qf__filter_form=">{{ promotion.career.name }}</a>
-            </td>
-        </tr>
-        <tr>
-            <td>{{ 'Promotion' | get_lang}}</td>
-            <td>
-                <a href="{{ _p.web_main }}admin/promotions.php?action=edit&id={{ promotion.id }}">{{ promotion.name }}</a>
-            </td>
-        </tr>
-    {% endif %}
-    {% if url_list %}
-        <tr>
-            <td>URL</td>
-            <td>
-            {% for url in url_list %}
-                {{ url.url }}
-            {% endfor %}
-            </td>
-        </tr>
-    {% endif %}
-
-    {% for extra_field in extra_fields %}
-        <tr>
-            <td>{{ extra_field.text }}</td>
-            <td>{{ extra_field.value }}</td>
-        </tr>
-    {% endfor %}
-</table>
-
-{{ course_list }}
-{{ user_list }}
-
-{{ requirements }}
-{{ dependencies }}
-{% endblock %}

+ 0 - 44
main/template/rainbow/skill/badge.tpl

@@ -1,44 +0,0 @@
-<div class="col-md-12">
-    <ul class="nav nav-tabs">
-        <li class="active">
-            <a href="{{ _p.web_main }}admin/skill_badge.php">{{ 'Home' | get_lang }}</a>
-        </li>
-        <li>
-            <a href="{{ _p.web_main }}admin/skill_badge_list.php">{{ "CurrentBadges" | get_lang }}</a>
-        </li>
-    </ul>
-
-    <div class="tab-content">
-        <div class="tab-pane active">
-            <div class="openbadges-introduction">
-                <h1 class="title">
-                    <img src="{{ 'badges.png' | icon(64) }}" width="64" height="64">{{ 'OpenBadgesTitle' | get_lang }}
-                </h1>
-                <div class="row">
-                    <div class="col-xs-12 col-md-6">
-                        <p class="lead">
-                            {{ 'OpenBadgesBannerText' | get_lang }}
-                        </p>
-                        <p class="lead">
-                            {{ 'OpenBadgesIntroduction' | get_lang }}
-                        </p>
-                    </div>
-                    <div class="col-xs-12 col-md-6">
-                        <img class="img-responsive" src="{{ 'openbadges.png' | icon() }}">
-                    </div>
-                </div>
-
-                <h3 class="sub-title">{{ 'OpenBadgesActionCall' | get_lang }}</h3>
-                <div class="block-content">
-                    <div class="block-title">{{ 'IssuerDetails' | get_lang }}</div>
-                    <p>{{ 'Name' | get_lang }} : {{ _s.institution }}</p>
-                    <p>URL: {{ _p.web }}</p>
-                    <div class="block-title">{{ 'BackpackDetails' | get_lang }}</div>
-                    <p>URL: {{ backpack }}</p>
-                    <p>{{ 'TheBadgesWillBeSentToThatBackpack' | get_lang }}</p>
-
-                </div>
-            </div>
-        </div>
-    </div>
-</div>

+ 0 - 717
main/template/rainbow/skill/badge_create.tpl

@@ -1,717 +0,0 @@
-<script>
-(function () {
-    var designer = null;
-    $(document).on('ready', function () {
-        $('.help-badges').tooltip();
-        $('.help-badges-img').tooltip();
-    });
-
-    $(document).on('ready', function () {
-        $('#btn-open-designer').on('click', function (e) {
-            e.preventDefault();
-
-            var designerUrl = 'https://www.openbadges.me/designer.html?origin={{ _p.web }}';
-            designerUrl = designerUrl + '&email={{ platformAdminEmail }}';
-            designerUrl = designerUrl + '&close=true';
-            designerUrl = designerUrl + '&hidePublish=true';
-
-            var windowOptions = 'width=1200,height=680,location=0,menubar=0,status=0,toolbar=0';
-            designer = window.open(designerUrl, '', windowOptions);
-        });
-
-        $('#image').on('change', function () {
-            var self = this;
-
-            if (self.files.length > 0) {
-                var image = self.files[0];
-
-                if (!image.type.match(/image.*/)) {
-                    return;
-                }
-
-                var fileReader = new FileReader();
-                fileReader.onload = function (e) {
-                    $('#badge-preview').attr('src', e.target.result);
-                    $('#badge-container').removeClass('hide');
-                };
-                fileReader.readAsDataURL(image);
-            }
-        });
-    });
-})();
-</script>
-<div class="row">
-    <div class="col-md-9">
-        <form action="{{ _p.web_self_query_vars }}" class="form-horizontal" method="post" enctype="multipart/form-data">
-            <legend>
-                {{ skill.name }}
-            </legend>
-            <fieldset>
-                <div class="form-group">
-                    <label class="col-sm-2 control-label" for="image">{{ 'Image' | get_lang }}</label>
-                    <div class="col-sm-10">
-                        <input data-placement="left" data-toggle="tooltip" title="{{ "BadgeMeasuresXPixelsInPNG" | get_lang }}" type="file" name="image" id="image" class="help-badges-img" accept="image/*">
-                    </div>
-                </div>
-                <div class="form-group collapse" id="badge-studio-frame">
-                    <label class="col-sm-2 control-label" for="criteria"></label>
-                    <div class="col-sm-10">
-                        <h1 class="title">Badge Studio</h1>
-                        <div class="" id="studio">
-                            <div id="input">
-                                <div class="row">
-                                    <div class="col-md-4">
-                                        <h3 class="label"><label for="studio-mask">{{ "Templates" | get_lang }}</label></h3>
-                                        <select name="template" class="form-control" id="studio-template" data-path="{{ badge_studio.templates }}">
-                                            <option value="template-1">{{ "Template" | get_lang }} 1</option>
-                                            <option value="template-2">{{ "Template" | get_lang }} 2</option>
-                                            <option value="template-3">{{ "Template" | get_lang }} 3</option>
-                                        </select>
-                                        <h3 class="label"><label for="studio-mask">{{ "Palettes" | get_lang }}</label></h3>
-                                        <select name="palette" class="form-control" id="studio-palette">
-                                            <option value="palette-1"
-                                                    data-color-background="#CE001F"
-                                                    data-color-stitching="#FFF"
-                                                    data-color-border="#4C4F53"
-                                                    data-color-detail="#999"
-                                                    data-color-glyph="#FFF">{{ "Palette" | get_lang }} 1</option>
-                                            <option value="palette-2"
-                                                    data-color-background="#04A"
-                                                    data-color-stitching="#0AE"
-                                                    data-color-border="#0AE"
-                                                    data-color-detail="#FFF"
-                                                    data-color-glyph="#FFF">{{ "Palette" | get_lang }} 2</option>
-                                            <option value="palette-3"
-                                                    data-color-background="#11458B"
-                                                    data-color-stitching="#3EB48D"
-                                                    data-color-border="#3EB48D"
-                                                    data-color-detail="#FFF"
-                                                    data-color-glyph="#FFF">{{ "Palette" | get_lang }} 3</option>
-                                        </select>
-                                        <br />
-                                        <h3 class="label"><label for="studio-mask">{{ "Colors" | get_lang }}</label></h3>
-                                        <div id="custom-palette"></div>
-                                    </div>
-                                    <div class="col-md-8">
-                                        <div id="output"></div>
-                                    </div>
-                                </div>
-                                <div class="row">
-                                    <div class="col-md-3">
-                                        <h3 class="label"><label for="studio-mask">{{ "Mask" | get_lang }}</label></h3>
-                                        <p class="item">
-                                            <select name="mask" class="form-control" id="studio-mask" data-path="{{ badge_studio.masks }}">
-                                                <option value="">{{ "None" | get_lang }}</option>
-                                                <option value="lines">{{ "Lines" | get_lang }}</option>
-                                            </select>
-                                        </p>
-                                    </div>
-                                    <div class="col-md-3">
-                                        <h3 class="label"><label for="studio-options">{{ "Options" | get_lang }}</label></h3>
-                                        <p class="item" id="options">
-                                            <i>None</i>
-                                        </p>
-                                    </div>
-                                    <div class="col-md-6">
-                                        <h3 class="label"><label for="studio-glyph">{{ "Icon" | get_lang }}</label></h3>
-                                        <p class="item">
-                                            <select name="glyph" class="form-control" id="studio-glyph">
-                                                <option value="">None</option>
-                                                <option value="ambulance">Ambulance</option>
-                                                <option value="anchor">Anchor</option>
-                                                <option value="android">Android</option>
-                                                <option value="angle-down">Angle: Down</option>
-                                                <option value="angle-double-down">Angle: Down (Double)</option>
-                                                <option value="angle-left">Angle: Left</option>
-                                                <option value="angle-double-left">Angle: Left (Double)</option>
-                                                <option value="angle-right">Angle: Right</option>
-                                                <option value="angle-double-right">Angle: Right (Double)</option>
-                                                <option value="angle-up">Angle: Up</option>
-                                                <option value="angle-double-up">Angle: Up (Double)</option>
-                                                <option value="apple">Apple</option>
-                                                <option value="archive">Archive</option>
-                                                <option value="arrow-down">Arrow: Down</option>
-                                                <option value="arrow-circle-down">Arrow: Down (Circle)</option>
-                                                <option value="arrow-circle-o-down">Arrow: Down (Circle-O)</option>
-                                                <option value="arrow-left">Arrow (Left)</option>
-                                                <option value="arrow-circle-left">Arrow: Left (Circle)</option>
-                                                <option value="arrow-circle-o-left">Arrow: Left (Circle-O)</option>
-                                                <option value="arrow-right">Arrow: Right</option>
-                                                <option value="arrow-circle-right">Arrow: Right (Circle)</option>
-                                                <option value="arrow-circle-o-right">Arrow: Right (Circle-O)</option>
-                                                <option value="arrow-up">Arrow: Up</option>
-                                                <option value="arrow-circle-up">Arrow: Up (Circle)</option>
-                                                <option value="arrow-circle-o-up">Arrow: Up (Circle-O)</option>
-                                                <option value="arrows">Arrows</option>
-                                                <option value="arrows-alt">Arrows (Alt)</option>
-                                                <option value="arrows-h">Arrows: Horizontal</option>
-                                                <option value="arrows-v">Arrows: Vertical</option>
-                                                <option value="asterisk">Asterisk</option>
-                                                <option value="automobile">Automobile</option>
-                                                <option value="backward">Backward</option>
-                                                <option value="ban">Ban</option>
-                                                <option value="bank">Bank</option>
-                                                <option value="bar-chart-o">Bar Chart (O)</option>
-                                                <option value="barcode">Barcode</option>
-                                                <option value="bars">Bars</option>
-                                                <option value="beer">Beer</option>
-                                                <option value="behance">Behance</option>
-                                                <option value="behance-square">Behance (Square)</option>
-                                                <option value="bell">Bell</option>
-                                                <option value="bell-o">Bell (O)</option>
-                                                <option value="bitbucket">BitBucket</option>
-                                                <option value="bitbucket-square">BitBucket (Square)</option>
-                                                <option value="bitcoin">Bitcoin</option>
-                                                <option value="bold">Bold</option>
-                                                <option value="bolt">Bolt</option>
-                                                <option value="bomb">Bomb</option>
-                                                <option value="book">Book</option>
-                                                <option value="bookmark">Bookmark</option>
-                                                <option value="bookmark-o">Bookmark (O)</option>
-                                                <option value="briefcase">Briefcase</option>
-                                                <option value="btc">BTC</option>
-                                                <option value="bug">Bug</option>
-                                                <option value="building">Building</option>
-                                                <option value="building-o">Building (O)</option>
-                                                <option value="bullhorn">Bullhorn</option>
-                                                <option value="bullseye">Bullseye</option>
-                                                <option value="cab">Cab</option>
-                                                <option value="calendar">Calendar</option>
-                                                <option value="calendar-o">Calendar (O)</option>
-                                                <option value="camera">Camera</option>
-                                                <option value="camera-retro">Camera (Retro)</option>
-                                                <option value="car">Car</option>
-                                                <option value="caret-down">Caret: Down</option>
-                                                <option value="caret-square-o-down">Caret: Down (Square-O)</option>
-                                                <option value="caret-left">Caret: Left</option>
-                                                <option value="caret-square-o-left">Caret: Left (Square-O)</option>
-                                                <option value="caret-right">Caret: Right</option>
-                                                <option value="caret-square-o-right">Caret: Right (Square-O)</option>
-                                                <option value="caret-up">Caret: Up</option>
-                                                <option value="caret-square-o-up">Caret: Up (Square-O)</option>
-                                                <option value="certificate">Certificate</option>
-                                                <option value="chain">Chain</option>
-                                                <option value="chain-broken">Chain (Broken)</option>
-                                                <option value="check">Check</option>
-                                                <option value="check-circle">Check (Circle)</option>
-                                                <option value="check-circle-o">Check (Circle-O)</option>
-                                                <option value="check-square">Check (Square)</option>
-                                                <option value="check-square-o">Check (Square-O)</option>
-                                                <option value="chevron-down">Chevron: Down</option>
-                                                <option value="chevron-circle-down">Chevron: Down (Circle)</option>
-                                                <option value="chevron-left">Chevron: Left</option>
-                                                <option value="chevron-circle-left">Chevron: Left (Circle)</option>
-                                                <option value="chevron-right">Chevron: Right</option>
-                                                <option value="chevron-circle-right">Chevron: Right (Circle)</option>
-                                                <option value="chevron-up">Chevron: Up</option>
-                                                <option value="chevron-circle-up">Chevron: Up (Circle)</option>
-                                                <option value="child">Child</option>
-                                                <option value="circle">Circle</option>
-                                                <option value="circle-o">Circle (O)</option>
-                                                <option value="circle-o-notch">Circle (O Notch)</option>
-                                                <option value="circle-thin">Circle (Thin)</option>
-                                                <option value="clipboard">Clipboard</option>
-                                                <option value="clock-o">Clock (O)</option>
-                                                <option value="cloud">Cloud</option>
-                                                <option value="cloud-download">Cloud: Download</option>
-                                                <option value="cloud-upload">Cloud: Upload</option>
-                                                <option value="cny">CNY</option>
-                                                <option value="code">Code</option>
-                                                <option value="code-fork">Code (Fork)</option>
-                                                <option value="codepen">Codepen</option>
-                                                <option value="coffee">Coffee</option>
-                                                <option value="cog">Cog</option>
-                                                <option value="cogs">Cogs</option>
-                                                <option value="columns">Columns</option>
-                                                <option value="comment">Comment</option>
-                                                <option value="comment-o">Comment (O)</option>
-                                                <option value="comments">Comments</option>
-                                                <option value="comments-o">Comments (O)</option>
-                                                <option value="compass">Compass</option>
-                                                <option value="compress">Compress</option>
-                                                <option value="copy">Copy</option>
-                                                <option value="credit-card">Credit (Card)</option>
-                                                <option value="crop">Crop</option>
-                                                <option value="crosshairs">Crosshairs</option>
-                                                <option value="css3">CSS3</option>
-                                                <option value="cube">Cube</option>
-                                                <option value="cubes">Cubes</option>
-                                                <option value="cut">Cut</option>
-                                                <option value="cutlery">Cutlery</option>
-                                                <option value="dashboard">Dashboard</option>
-                                                <option value="database">Database</option>
-                                                <option value="dedent">Dedent</option>
-                                                <option value="delicious">Delicious</option>
-                                                <option value="desktop">Desktop</option>
-                                                <option value="deviantart">Deviantart</option>
-                                                <option value="digg">Digg</option>
-                                                <option value="dollar">Dollar</option>
-                                                <option value="dot-circle-o">Dot (Circle-O)</option>
-                                                <option value="download">Download</option>
-                                                <option value="dribbble">Dribbble</option>
-                                                <option value="dropbox">Dropbox</option>
-                                                <option value="drupal">Drupal</option>
-                                                <option value="edit">Edit</option>
-                                                <option value="eject">Eject</option>
-                                                <option value="ellipsis-h">Ellipsis (Horizontal)</option>
-                                                <option value="ellipsis-v">Ellipsis (Vertical)</option>
-                                                <option value="empire">Empire</option>
-                                                <option value="envelope">Envelope</option>
-                                                <option value="envelope-o">Envelope (O)</option>
-                                                <option value="envelope-square">Envelope (Square)</option>
-                                                <option value="eraser">Eraser</option>
-                                                <option value="eur">EUR</option>
-                                                <option value="euro">Euro</option>
-                                                <option value="exchange">Exchange</option>
-                                                <option value="exclamation">Exclamation</option>
-                                                <option value="exclamation-circle">Exclamation (Circle)</option>
-                                                <option value="exclamation-triangle">Exclamation (Triangle)</option>
-                                                <option value="expand">Expand</option>
-                                                <option value="external-link">External Link</option>
-                                                <option value="external-link-square">External Link (Square)</option>
-                                                <option value="eye">Eye</option>
-                                                <option value="eye-slash">Eye (Slash)</option>
-                                                <option value="facebook">Facebook</option>
-                                                <option value="facebook-square">Facebook (Square)</option>
-                                                <option value="fast-backward">Fast Rewind</option>
-                                                <option value="fast-forward">Fast Forward</option>
-                                                <option value="fax">Fax</option>
-                                                <option value="female">Female</option>
-                                                <option value="fighter-jet">Fighter Jet</option>
-                                                <option value="file">File</option>
-                                                <option value="file-o">File (O)</option>
-                                                <option value="files-o">Files (O)</option>
-                                                <option value="file-archive-o">File: Archive (O)</option>
-                                                <option value="file-audio-o">File: Audio (O)</option>
-                                                <option value="file-code-o">File: Code (O)</option>
-                                                <option value="file-excel-o">File: Excel (O)</option>
-                                                <option value="file-image-o">File: Image (O)</option>
-                                                <option value="file-movie-o">File: Movie (O)</option>
-                                                <option value="file-pdf-o">File: PDF (O)</option>
-                                                <option value="file-photo-o">File: Photo (O)</option>
-                                                <option value="file-picture-o">File: Picture (O)</option>
-                                                <option value="file-powerpoint-o">File: Powerpoint (O)</option>
-                                                <option value="file-sound-o">File: Sound (O)</option>
-                                                <option value="file-text">File: Text</option>
-                                                <option value="file-text-o">File: Text (O)</option>
-                                                <option value="file-video-o">File: Video (O)</option>
-                                                <option value="file-word-o">File: Word (O)</option>
-                                                <option value="file-zip-o">File: Zip (O)</option>
-                                                <option value="film">Film</option>
-                                                <option value="filter">Filter</option>
-                                                <option value="fire">Fire</option>
-                                                <option value="fire-extinguisher">Fire Extinguisher</option>
-                                                <option value="flag">Flag</option>
-                                                <option value="flag-o">Flag (O)</option>
-                                                <option value="flag-checkered">Flag: Checkered</option>
-                                                <option value="flash">Flash</option>
-                                                <option value="flask">Flask</option>
-                                                <option value="flickr">Flickr</option>
-                                                <option value="floppy-o">Floppy (O)</option>
-                                                <option value="folder">Folder</option>
-                                                <option value="folder-o">Folder (O)</option>
-                                                <option value="folder-open">Folder: Open</option>
-                                                <option value="folder-open-o">Folder: Open (O)</option>
-                                                <option value="font">Font</option>
-                                                <option value="forward">Forward</option>
-                                                <option value="foursquare">Foursquare</option>
-                                                <option value="frown-o">Frown (O)</option>
-                                                <option value="gamepad">Gamepad</option>
-                                                <option value="gavel">Gavel</option>
-                                                <option value="gbp">GBP</option>
-                                                <option value="ge">Ge</option>
-                                                <option value="gear">Gear</option>
-                                                <option value="gears">Gears</option>
-                                                <option value="gift">Gift</option>
-                                                <option value="git">Git</option>
-                                                <option value="git-square">Git (Square)</option>
-                                                <option value="github">GitHub</option>
-                                                <option value="github-alt">GitHub (Alt)</option>
-                                                <option value="github-square">GitHub (Square)</option>
-                                                <option value="gittip">GitTip</option>
-                                                <option value="glass">Glass</option>
-                                                <option value="globe">Globe</option>
-                                                <option value="google">Google</option>
-                                                <option value="google-plus">Google Plus</option>
-                                                <option value="google-plus-square">Google Plus (Square)</option>
-                                                <option value="graduation-cap">Graduation (Cap)</option>
-                                                <option value="group">Group</option>
-                                                <option value="h-square">H (Square)</option>
-                                                <option value="hacker-news">Hacker News</option>
-                                                <option value="hand-o-down">Hand: Down (O)</option>
-                                                <option value="hand-o-left">Hand: Left (O)</option>
-                                                <option value="hand-o-right">Hand: Right (O)</option>
-                                                <option value="hand-o-up">Hand: Up (O)</option>
-                                                <option value="hdd-o">HDD (O)</option>
-                                                <option value="header">Header</option>
-                                                <option value="headphones">Headphones</option>
-                                                <option value="heart">Heart</option>
-                                                <option value="heart-o">Heart (O)</option>
-                                                <option value="history">History</option>
-                                                <option value="home">Home</option>
-                                                <option value="hospital-o">Hospital (O)</option>
-                                                <option value="html5">HTML5</option>
-                                                <option value="image">Image</option>
-                                                <option value="inbox">Inbox</option>
-                                                <option value="indent">Indent</option>
-                                                <option value="info">Info</option>
-                                                <option value="info-circle">Info (Circle)</option>
-                                                <option value="inr">Inr</option>
-                                                <option value="instagram">Instagram</option>
-                                                <option value="institution">Institution</option>
-                                                <option value="italic">Italic</option>
-                                                <option value="joomla">Joomla</option>
-                                                <option value="jpy">JPY</option>
-                                                <option value="jsfiddle">JSFiddle</option>
-                                                <option value="key">Key</option>
-                                                <option value="keyboard-o">Keyboard (O)</option>
-                                                <option value="krw">KRW</option>
-                                                <option value="language">Language</option>
-                                                <option value="laptop">Laptop</option>
-                                                <option value="leaf">Leaf</option>
-                                                <option value="legal">Legal</option>
-                                                <option value="lemon-o">Lemon (O)</option>
-                                                <option value="level-down">Level Down</option>
-                                                <option value="level-up">Level Up</option>
-                                                <option value="life-bouy">Life Bouy</option>
-                                                <option value="life-ring">Life Ring</option>
-                                                <option value="life-saver">Life Saver</option>
-                                                <option value="lightbulb-o">Lightbulb (O)</option>
-                                                <option value="link">Link</option>
-                                                <option value="linkedin">LinkedIn</option>
-                                                <option value="linkedin-square">LinkedIn (Square)</option>
-                                                <option value="linux">Linux</option>
-                                                <option value="list">List</option>
-                                                <option value="list-alt">List (Alt)</option>
-                                                <option value="list-ol">List (Ol)</option>
-                                                <option value="list-ul">List (Ul)</option>
-                                                <option value="location-arrow">Location (Arrow)</option>
-                                                <option value="lock">Lock</option>
-                                                <option value="long-arrow-down">Long Arrow Down</option>
-                                                <option value="long-arrow-left">Long Arrow Left</option>
-                                                <option value="long-arrow-right">Long Arrow Right</option>
-                                                <option value="long-arrow-up">Long Arrow Up</option>
-                                                <option value="magic">Magic</option>
-                                                <option value="magnet">Magnet</option>
-                                                <option value="mail-forward">Mail: Forward</option>
-                                                <option value="mail-reply">Mail: Reply</option>
-                                                <option value="mail-reply-all">Mail: Reply All</option>
-                                                <option value="male">Male</option>
-                                                <option value="map-marker">Map Marker</option>
-                                                <option value="maxcdn">MaxCDN</option>
-                                                <option value="medkit">Medkit</option>
-                                                <option value="meh-o">Meh (O)</option>
-                                                <option value="microphone">Microphone</option>
-                                                <option value="microphone-slash">Microphone (Slash)</option>
-                                                <option value="minus">Minus</option>
-                                                <option value="minus-circle">Minus (Circle)</option>
-                                                <option value="minus-square">Minus (Square)</option>
-                                                <option value="minus-square-o">Minus (Square O)</option>
-                                                <option value="mobile">Mobile</option>
-                                                <option value="mobile-phone">Mobile Phone</option>
-                                                <option value="money">Money</option>
-                                                <option value="moon-o">Moon (O)</option>
-                                                <option value="mortar-board">Mortar Board</option>
-                                                <option value="music">Music</option>
-                                                <option value="navicon">Navicon</option>
-                                                <option value="openid">Openid</option>
-                                                <option value="outdent">Outdent</option>
-                                                <option value="pagelines">Pagelines</option>
-                                                <option value="paper-plane">Paper Plane</option>
-                                                <option value="paper-plane-o">Paper Plane (O)</option>
-                                                <option value="paperclip">Paper Clip</option>
-                                                <option value="paragraph">Paragraph</option>
-                                                <option value="paste">Paste</option>
-                                                <option value="pause">Pause</option>
-                                                <option value="paw">Paw</option>
-                                                <option value="pencil">Pencil</option>
-                                                <option value="pencil-square">Pencil (Square)</option>
-                                                <option value="pencil-square-o">Pencil (Square-O)</option>
-                                                <option value="phone">Phone</option>
-                                                <option value="phone-square">Phone (Square)</option>
-                                                <option value="photo">Photo</option>
-                                                <option value="picture-o">Picture (O)</option>
-                                                <option value="pied-piper">Pied Piper</option>
-                                                <option value="pied-piper-alt">Pied Piper (Alt)</option>
-                                                <option value="pied-piper-square">Pied Piper (Square)</option>
-                                                <option value="pinterest">Pinterest</option>
-                                                <option value="pinterest-square">Pinterest (Square)</option>
-                                                <option value="plane">Plane</option>
-                                                <option value="play">Play</option>
-                                                <option value="play-circle">Play (Circle)</option>
-                                                <option value="play-circle-o">Play (Circle-O)</option>
-                                                <option value="plus">Plus</option>
-                                                <option value="plus-circle">Plus (Circle)</option>
-                                                <option value="plus-square">Plus (Square)</option>
-                                                <option value="plus-square-o">Plus (Square-O)</option>
-                                                <option value="power-off">Power Off</option>
-                                                <option value="print">Print</option>
-                                                <option value="puzzle-piece">Puzzle Piece</option>
-                                                <option value="qq">Qq</option>
-                                                <option value="qrcode">QR Code</option>
-                                                <option value="question">Question</option>
-                                                <option value="question-circle">Question (Circle)</option>
-                                                <option value="quote-left">Quote: Left</option>
-                                                <option value="quote-right">Quote: Right</option>
-                                                <option value="ra">Ra</option>
-                                                <option value="random">Random</option>
-                                                <option value="rebel">Rebel</option>
-                                                <option value="recycle">Recycle</option>
-                                                <option value="reddit">Reddit</option>
-                                                <option value="reddit-square">Reddit (Square)</option>
-                                                <option value="refresh">Refresh</option>
-                                                <option value="renren">Renren</option>
-                                                <option value="reorder">Reorder</option>
-                                                <option value="repeat">Repeat</option>
-                                                <option value="reply">Reply</option>
-                                                <option value="reply-all">Reply All</option>
-                                                <option value="retweet">Retweet</option>
-                                                <option value="rmb">Rmb</option>
-                                                <option value="road">Road</option>
-                                                <option value="rocket">Rocket</option>
-                                                <option value="rotate-left">Rotate Left</option>
-                                                <option value="rotate-right">Rotate Right</option>
-                                                <option value="rouble">Rouble</option>
-                                                <option value="rss">RSS</option>
-                                                <option value="rss-square">RSS (Square)</option>
-                                                <option value="rub">Rub</option>
-                                                <option value="ruble">Ruble</option>
-                                                <option value="rupee">Rupee</option>
-                                                <option value="save">Save</option>
-                                                <option value="scissors">Scissors</option>
-                                                <option value="search">Search</option>
-                                                <option value="search-minus">Search: Minus</option>
-                                                <option value="search-plus">Search: Plus</option>
-                                                <option value="send">Send</option>
-                                                <option value="send-o">Send (O)</option>
-                                                <option value="share">Share</option>
-                                                <option value="share-alt">Share (Alt)</option>
-                                                <option value="share-alt-square">Share (Alt Square)</option>
-                                                <option value="share-square">Share (Square)</option>
-                                                <option value="share-square-o">Share (Square-O)</option>
-                                                <option value="shield">Shield</option>
-                                                <option value="shopping-cart">Shopping Cart</option>
-                                                <option value="sign-in">Sign In</option>
-                                                <option value="sign-out">Sign Out</option>
-                                                <option value="signal">Signal</option>
-                                                <option value="sitemap">Sitemap</option>
-                                                <option value="skype">Skype</option>
-                                                <option value="slack">Slack</option>
-                                                <option value="sliders">Sliders</option>
-                                                <option value="smile-o">Smile (O)</option>
-                                                <option value="sort">Sort</option>
-                                                <option value="sort-asc">Sort: Asc</option>
-                                                <option value="sort-desc">Sort: Desc</option>
-                                                <option value="sort-down">Sort: Down</option>
-                                                <option value="sort-up">Sort: Up</option>
-                                                <option value="sort-alpha-asc">Sort: Alpha Asc</option>
-                                                <option value="sort-alpha-desc">Sort: Alpha Desc</option>
-                                                <option value="sort-amount-asc">Sort: Amount Asc</option>
-                                                <option value="sort-amount-desc">Sort: Amount Desc</option>
-                                                <option value="sort-numeric-asc">Sort: Numeric Asc</option>
-                                                <option value="sort-numeric-desc">Sort: Numeric Desc</option>
-                                                <option value="soundcloud">Soundcloud</option>
-                                                <option value="space-shuttle">Space Shuttle</option>
-                                                <option value="spinner">Spinner</option>
-                                                <option value="spoon">Spoon</option>
-                                                <option value="spotify">Spotify</option>
-                                                <option value="square">Square</option>
-                                                <option value="square-o">Square (O)</option>
-                                                <option value="stack-exchange">Stack Exchange</option>
-                                                <option value="stack-overflow">Stack Overflow</option>
-                                                <option value="star">Star</option>
-                                                <option value="star-half">Star (Half)</option>
-                                                <option value="star-half-empty">Star (Half Empty)</option>
-                                                <option value="star-half-full">Star (Half Full)</option>
-                                                <option value="star-half-o">Star (Half O)</option>
-                                                <option value="star-o">Star (O)</option>
-                                                <option value="steam">Steam</option>
-                                                <option value="steam-square">Steam (Square)</option>
-                                                <option value="step-backward">Step Backward</option>
-                                                <option value="step-forward">Step Forward</option>
-                                                <option value="stethoscope">Stethoscope</option>
-                                                <option value="stop">Stop</option>
-                                                <option value="strikethrough">Strikethrough</option>
-                                                <option value="stumbleupon">Stumbleupon</option>
-                                                <option value="stumbleupon-circle">Stumbleupon (Circle)</option>
-                                                <option value="subscript">Subscript</option>
-                                                <option value="suitcase">Suitcase</option>
-                                                <option value="sun-o">Sun (O)</option>
-                                                <option value="superscript">Superscript</option>
-                                                <option value="support">Support</option>
-                                                <option value="table">Table</option>
-                                                <option value="tablet">Tablet</option>
-                                                <option value="tachometer">Tachometer</option>
-                                                <option value="tag">Tag</option>
-                                                <option value="tags">Tags</option>
-                                                <option value="tasks">Tasks</option>
-                                                <option value="taxi">Taxi</option>
-                                                <option value="tencent-weibo">Tencent Weibo</option>
-                                                <option value="terminal">Terminal</option>
-                                                <option value="text-height">Text Height</option>
-                                                <option value="text-width">Text Width</option>
-                                                <option value="th">Th</option>
-                                                <option value="th-large">Th (Large)</option>
-                                                <option value="th-list">Th (List)</option>
-                                                <option value="thumb-tack">Thumb Tack</option>
-                                                <option value="thumbs-down">Thumbs Down</option>
-                                                <option value="thumbs-o-down">Thumbs Down (O)</option>
-                                                <option value="thumbs-up">Thumbs Up</option>
-                                                <option value="thumbs-o-up">Thumbs Up (O)</option>
-                                                <option value="ticket">Ticket</option>
-                                                <option value="times">Times</option>
-                                                <option value="times-circle">Times (Circle)</option>
-                                                <option value="times-circle-o">Times (Circle O)</option>
-                                                <option value="tint">Tint</option>
-                                                <option value="toggle-down">Toggle Down</option>
-                                                <option value="toggle-left">Toggle Left</option>
-                                                <option value="toggle-right">Toggle Right</option>
-                                                <option value="toggle-up">Toggle Up</option>
-                                                <option value="trash-o">Trash (O)</option>
-                                                <option value="tree">Tree</option>
-                                                <option value="trello">Trello</option>
-                                                <option value="trophy">Trophy</option>
-                                                <option value="truck">Truck</option>
-                                                <option value="try">Try</option>
-                                                <option value="tumblr">Tumblr</option>
-                                                <option value="tumblr-square">Tumblr (Square)</option>
-                                                <option value="turkish-lira">Turkish Lira</option>
-                                                <option value="twitter">Twitter</option>
-                                                <option value="twitter-square">Twitter (Square)</option>
-                                                <option value="umbrella">Umbrella</option>
-                                                <option value="underline">Underline</option>
-                                                <option value="undo">Undo</option>
-                                                <option value="university">University</option>
-                                                <option value="unlink">Unlink</option>
-                                                <option value="unlock">Unlock</option>
-                                                <option value="unlock-alt">Unlock (Alt)</option>
-                                                <option value="unsorted">Unsorted</option>
-                                                <option value="upload">Upload</option>
-                                                <option value="usd">USD</option>
-                                                <option value="user">User</option>
-                                                <option value="user-md">User (MD)</option>
-                                                <option value="users">Users</option>
-                                                <option value="video-camera">Video (Camera)</option>
-                                                <option value="vimeo-square">Vimeo (Square)</option>
-                                                <option value="vine">Vine</option>
-                                                <option value="vk">Vk</option>
-                                                <option value="volume-up">Volume Up</option>
-                                                <option value="volume-down">Volume Down</option>
-                                                <option value="volume-off">Volume Off</option>
-                                                <option value="warning">Warning</option>
-                                                <option value="wechat">Wechat</option>
-                                                <option value="weibo">Weibo</option>
-                                                <option value="weixin">Weixin</option>
-                                                <option value="wheelchair">Wheelchair</option>
-                                                <option value="windows">Windows</option>
-                                                <option value="won">Won</option>
-                                                <option value="wordpress">Wordpress</option>
-                                                <option value="wrench">Wrench</option>
-                                                <option value="xing">Xing</option>
-                                                <option value="xing-square">Xing (Square)</option>
-                                                <option value="yahoo">Yahoo</option>
-                                                <option value="yen">Yen</option>
-                                                <option value="youtube">Youtube</option>
-                                                <option value="youtube-play">Youtube (Play)</option>
-                                                <option value="youtube-square">Youtube (Square)</option>
-                                            </select>
-                                        </p>
-                                        <h3 class="label"><label for="size-glyph">{{ "Size" | get_lang }}</label></h3>
-                                        <p class="item">
-                                            <select name="size-glyph" class="form-control" id="size-glyph">
-                                                <option value="big">{{ "Big" | get_lang }}</option>
-                                                <option value="medium" selected>{{ "Medium" | get_lang }}</option>
-                                                <option value="small">{{ "Small" | get_lang }}</option>
-                                            </select>
-                                        </p>
-                                    </div>
-                                    <div class="col-md-12 text-center">
-                                        <a id="set-custom-badge" class="btn btn-primary"><em class="fa fa-check"></em> {{ 'UseThisBadge' | get_lang }}</a>
-                                        <input type="hidden" id="badge_studio_image" name="badge_studio_image" >
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-
-                    <template id="glyph-selector-template">
-                        <div id="glyph-selector" role="dialog" class="overlay hidden" aria-label="Select a glyph" tabIndex="0">
-                            <div class="header">
-                                <label class="title"></label>
-                            </div>
-                            <div class="panel">
-                                <ul>
-                                </ul>
-                            </div>
-                        </div>
-                    </template>
-
-                    <template id="glyph-selector-item-template">
-                        <li>
-                            <input type="radio" name="glyph-selector-item" class="hidden">
-                            <label></label>
-                        </li>
-                    </template>
-
-                    <template id="option-template">
-                        <label>
-                            <input type="checkbox">
-                            <span>Label</span>
-                        </label>
-                    </template>
-
-                    <template id="close-button-template">
-                        <button type="button" class="close fa fa-times-circle-o" aria-label="Close"></button>
-                    </template>
-
-                    <template id="custom-color-template">
-                        <label>
-                            <input type="color">
-                            <span>Label</span>
-                        </label>
-                    </template>
-                </div>
-            </fieldset>
-            <div class="form-group">
-                <div class="col-sm-offset-2 col-sm-10">
-                    <button type="submit" class="btn btn-primary btn-large"><em class="fa fa-plus"></em>
-                        {{ 'SaveBadge'| get_lang }}
-                    </button>
-                </div>
-            </div>
-        </form>
-    </div>
-    <div class="col-md-3">
-        <div class="openbadges-img" id="badge-container">
-            <img id="badge-preview" class="img-responsive" alt="{{ 'BadgePreview' | get_lang }}" src="{{ skill.icon_big }}">
-        </div>
-
-        <div class="create-openbadges">
-            <button id="btn-open-designer" class="help-badges btn btn-primary btn-large btn-block" data-toggle="tooltip" data-placement="bottom" title="{{ 'DesignANewBadgeComment' | get_lang }}" type="button">
-                <em class="fa fa-pencil"></em> {{ 'DesignNewBadge' | get_lang }}
-            </button>
-        </div>
-        <div class="create-openbadges">
-            <button id="btn-open-badge-studio" class="help-badges btn btn-default btn-large btn-block" data-toggle="collapse" data-target="#badge-studio-frame" aria-expanded="false" aria-controls="badge-studio-frame" title="{{ 'DesignWithBadgeStudioComment' | get_lang }}" type="button">
-                <em class="fa fa-cogs"></em> {{ 'DesignWithBadgeStudio' | get_lang }}
-            </button>
-        </div>
-
-    </div>
-</div>
-{{ badge_studio.script_js }}
-<script>
-    $(document).ready(function() {
-        $('#set-custom-badge').click(function () {
-            var data = $('#raster').attr('src');
-            $('#badge_studio_image').val(data);
-            $('#badge-preview').attr('src', data);
-            $('#badge-container').removeClass('hide');
-        });
-
-        $('#size-glyph').change(function () {
-            window.size = $(this).val();
-            updateGlyph();
-        });
-    })
-</script>

+ 0 - 46
main/template/rainbow/skill/badge_list.tpl

@@ -1,46 +0,0 @@
-<div class="col-md-12">
-
-        <ul class="nav nav-tabs">
-            <li>
-                <a href="{{ _p.web_main }}admin/skill_badge.php">{{ 'Home' | get_lang }}</a>
-            </li>
-            <li class="active">
-                <a href="{{ _p.web_main }}admin/skill_badge_list.php">{{ "CurrentBadges" | get_lang }}</a>
-            </li>
-        </ul>
-
-    <div class="tab-content">
-        <div class="tab-pane active">
-            <div class="openbadges-introduction">
-                    <table class="table">
-                        <thead>
-                            <tr>
-                                <th>{{ 'Badges' | get_lang }}</th>
-                                <th>{{ 'Name' | get_lang }}</th>
-                                <th>{{ 'Description' | get_lang }}</th>
-                                <th>{{ 'Actions' | get_lang }}</th>
-                            </tr>
-                        </thead>
-                        <tbody>
-                        {% for skill in skills %}
-                            <tr>
-                                <td>
-                                    {{ skill.img_small }}
-                                </td>
-                                <td>
-                                    {{ skill.name }}
-                                </td>
-                                <td>{{ skill.description }}</td>
-                                <td>
-                                    <a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "CreateBadge" | get_lang }}">
-                                        <em class="fa fa-shield fa-fw"></em>
-                                    </a>
-                                </td>
-                            </tr>
-                        {% endfor %}
-                        </tbody>
-                    </table>
-            </div>
-        </div>
-    </div>
-</div>

+ 0 - 24
main/template/rainbow/skill/criteria.tpl

@@ -1,24 +0,0 @@
-<h2 class="page-header">{{ 'BadgeDetails'|get_lang }}</h2>
-<article>
-    <div class="row">
-        <div class="col-md-3">
-            <figure class="thumbnail">
-                <img class="img-responsive" src="{{ skill_info.badge_image }}" alt="{{ skill_info.name }}">
-                <figcaption class="caption">
-                    <p class="name-badge text-center">{{ skill_info.name }}</p>
-                    {% if skill_info.short_code %}
-                        <p class="code-badge text-center"><i class="fa fa-shield"></i> {{ skill_info.short_code }}</p>
-                    {% endif %}
-                </figcaption>
-            </figure>
-        </div>
-        <div class="col-md-9">
-            <h4 class="title-badge">{{ 'Name'|get_lang }}</h4>
-            <p class="lead">{{ skill_info.name }}</p>
-            <h4 class="title-badge">{{ 'Description'|get_lang }}</h4>
-            <p>{{ skill_info.description }}</p>
-            <h4 class="title-badge">{{ 'CriteriaToEarnTheBadge'|get_lang }}</h4>
-            <p>{{ skill_info.criteria }}</p>
-        </div>
-    </div>
-</article>

+ 0 - 145
main/template/rainbow/skill/issued_all.tpl

@@ -1,145 +0,0 @@
-{% for badge in user_badges %}
-    <div class="row issued">
-        <div class="col-md-5">
-            <div class="thumbnail">
-                <figure class="text-center">
-                    <img class="img-responsive center-block" src="{{ badge.issue_info.skill_badge_image }}" alt="{{ badge.issue_info.skill_name }}">
-                    <figcaption>
-                        <p class="lead">{{ badge.issue_info.skill_name }}</p>
-                        {% if badge.issue_info.skill_short_code %}
-                            <p>{{ badge.issue_info.skill_short_code }}</p>
-                        {% endif %}
-                    </figcaption>
-                </figure>
-                <div class="caption">
-                    {% if badge.issue_info.skill_description %}
-                        <p>{{ badge.issue_info.skill_description }}</p>
-                    {% endif %}
-                    {% if badge.issue_info.skill_criteria %}
-                        <h3>{{ 'CriteriaToEarnTheBadge'|get_lang }}</h3>
-                        <p>{{ badge.issue_info.skill_criteria }}</p>
-                    {% endif %}
-                </div>
-            </div>
-            {% if badge.allow_download_export %}
-                {% if badge.badge_error %}
-                    <hr>
-                    <div class="alert alert-danger"> {{ 'BakedBadgeProblem'|get_lang }}</div>
-                {% else %}
-                    <p class="text-center">
-                        <a href="{{ badge.personal_badge }}" class="btn btn-primary" target="_new" download="badge">
-                            <em class="fa fa-download fa-fw"></em> {{ 'DownloadBadge'|get_lang }}
-                        </a>
-                    </p>
-                {% endif %}
-                <hr>
-                <p class="text-center">
-                    <a href="#" class="btn btn-success" id="badge-export-button-{{ badge.issue_info.id }}">
-                        <em class="fa fa-external-link-square fa-fw"></em> {{ 'ExportBadge'|get_lang }}
-                    </a>
-                </p>
-                <div class='col-md-12 text-center'>
-                    <h5><b> {{ 'ShareWithYourFriends' | get_lang }} </b></h5>
-                    <a href="http://www.facebook.com/sharer.php?u={{ _p.web }}badge/{{ badge.issue_info.id }}" target="_new">
-                        <em class='fa fa-facebook-square fa-3x text-info' aria-hidden='true'></em>
-                    </a>
-                    <a href="https://twitter.com/home?status={{ 'IHaveObtainedSkillXOnY' | get_lang |format(skill_info.name, _s.site_name)}} - {{ _p.web }}badge/{{ badge.issue_info.id }}" target="_new">
-                        <em class='fa fa-twitter-square fa-3x text-light' aria-hidden='true'></em>
-                    </a>
-                </div>
-            {% endif %}
-        </div>
-        <div class="col-md-7">
-            <h3>{{ 'RecipientDetails'|get_lang }}</h3>
-            <p class="lead">{{ badge.issue_info.user_complete_name }}</p>
-            <h4>{{ 'SkillAcquiredAt'|get_lang }}</h4>
-            <ul class="fa-ul">
-                <li>
-                    {% if badge.issue_info.source_name %}
-                        <em class="fa-li fa fa-clock-o fa-fw"></em> {{ 'TimeXThroughCourseY'|get_lang|format(badge.issue_info.datetime, badge.issue_info.source_name) }}
-                    {% else %}
-                        <em class="fa-li fa fa-clock-o fa-fw"></em> {{ badge.issue_info.datetime }}
-                    {% endif %}
-                    {% if badge.issue_info.argumentation %}
-                        {% if badge.issue_info.argumentation %}
-                            <b><p style="font-style: italic;">{{ 'UserXIndicated'|get_lang|format(badge.issue_info.argumentation_author_name) }} </p></b>
-                        {% endif %}
-                        <p>{{ badge.issue_info.argumentation }}</p>
-                    {% endif %}
-                </li>
-            </ul>
-
-            {% if show_level %}
-            <h4>{{ 'AcquiredLevel'|get_lang }}</h4>
-            <ul class="fa-ul">
-                <li>
-                    <em class="fa-li fa fa-check-circle-o fa-fw"></em> {{ badge.issue_info.acquired_level }}
-                </li>
-            </ul>
-            {% endif %}
-
-            {% if badge.allow_comment %}
-                <hr>
-                <div class="panel panel-info">
-                    <div class="panel-heading">
-                        <em class="fa fa-check-circle-o fa-fw" aria-hidden="true"></em> {{ 'ChangeAcquiredLevel'|get_lang }}
-                    </div>
-                    <div class="panel-body">
-                        {{ badge.acquired_level_form }}
-                    </div>
-                </div>
-                <hr>
-                <div class="panel panel-info">
-                    <div class="panel-heading">
-                        <em class="fa fa-comment-o fa-fw" aria-hidden="true"></em> {{ 'XComments'|get_lang|format(badge.issue_info.comments|length) }}
-                        /
-                        <em class="fa fa-thumbs-o-up fa-fw" aria-hidden="true"></em> {{ 'AverageRatingX'|get_lang|format(badge.issue_info.feedback_average) }}
-                    </div>
-                    <div class="panel-body">
-                        {{ badge.comment_form }}
-                        <hr>
-                        {% for comment in badge.issue_info.comments %}
-                            <article class="media">
-                                <div class="media-body">
-                                    <h4 class="media-heading">{{ comment.giver_complete_name }}</h4>
-                                    <p><small>{{ comment.datetime }}</small></p>
-                                    <p>{{ comment.text }}</p>
-                                </div>
-                                <div class="media-right text-right">
-                                    <div style="width: 80px;">
-                                        {% if comment.value %}
-                                            <em class="fa fa-certificate fa-fw" aria-label="{{ 'AverageRating' }}"></em>
-                                            <span class="sr-only">{{ 'AverageRating' }}</span> {{ comment.value }}
-                                        {% endif %}
-                                    </div>
-                                </div>
-                            </article>
-                        {% else %}
-                            <p>{{ 'WithoutComment'|get_lang }}</p>
-                        {% endfor %}
-                    </div>
-                </div>
-            {% else %}
-                <hr>
-                <p class="lead">
-                    <em class="fa fa-comment-o fa-fw" aria-hidden="true"></em> {{ 'XComments'|get_lang|format(badge.issue_info.comments|length) }}
-                    /
-                    <em class="fa fa-thumbs-o-up fa-fw" aria-hidden="true"></em> {{ 'AverageRatingX'|get_lang|format(badge.issue_info.feedback_average) }}
-                </p>
-            {% endif %}
-        </div>
-    </div>
-    {% if badge.allow_download_export %}
-        <script>
-            $(document).on('ready', function () {
-                $('#badge-export-button-{{ badge.issue_info.id }}').on('click', function (e) {
-                    e.preventDefault();
-
-                    OpenBadges.issue({{ badge.issue_info.badge_assertion|json_encode() }});
-                });
-            });
-        </script>
-    {% endif %}
-    <br />
-    <br />
-{% endfor %}

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff