UI: Fix CSS classes for legacy buttons

pull/4326/head
Angel Fernando Quiroz Campos 3 years ago
parent 5092d95ad2
commit fd27da3e8e
  1. 4
      assets/vue/views/documents/List.vue
  2. 4
      assets/vue/views/page/List.vue
  3. 4
      assets/vue/views/personalfile/List.vue
  4. 6
      public/main/admin/access_url_edit_course_category_to_url.php
  5. 10
      public/main/admin/access_url_edit_courses_to_url.php
  6. 8
      public/main/admin/access_url_edit_usergroup_to_url.php
  7. 6
      public/main/admin/access_url_edit_users_to_url.php
  8. 6
      public/main/admin/add_courses_to_usergroup.php
  9. 8
      public/main/admin/add_sessions_to_promotion.php
  10. 8
      public/main/admin/add_sessions_to_usergroup.php
  11. 6
      public/main/admin/add_users_to_usergroup.php
  12. 2
      public/main/admin/course_list.php
  13. 2
      public/main/admin/course_list_admin.php
  14. 6
      public/main/admin/dashboard_add_courses_to_user.php
  15. 14
      public/main/admin/dashboard_add_sessions_to_user.php
  16. 10
      public/main/admin/dashboard_add_users_to_user.php
  17. 2
      public/main/admin/extra_field_list.php
  18. 6
      public/main/admin/languages.php
  19. 6
      public/main/admin/legal_add.php
  20. 2
      public/main/admin/questions.php
  21. 12
      public/main/admin/settings.lib.php
  22. 4
      public/main/admin/special_exports.php
  23. 6
      public/main/admin/statistics/index.php
  24. 6
      public/main/admin/sub_language.php
  25. 4
      public/main/admin/subscribe_user2course.php
  26. 4
      public/main/admin/user_information.php
  27. 2
      public/main/admin/user_list.php
  28. 4
      public/main/admin/user_move_stats.php
  29. 4
      public/main/admin/usergroup_users.php
  30. 2
      public/main/announcements/announcements.php
  31. 2
      public/main/auth/courses.php
  32. 12
      public/main/auth/inscription.php
  33. 4
      public/main/auth/justification.php
  34. 6
      public/main/course_info/delete_course.php
  35. 18
      public/main/course_progress/index.php
  36. 2
      public/main/coursecopy/copy_course_session.php
  37. 2
      public/main/coursecopy/create_backup.php
  38. 14
      public/main/coursecopy/import_backup.php
  39. 2
      public/main/coursecopy/recycle_course.php
  40. 2
      public/main/create_course/add_course.php
  41. 2
      public/main/dashboard/block.class.php
  42. 4
      public/main/dropbox/dropbox_functions.inc.php
  43. 2
      public/main/dropbox/index.php
  44. 2
      public/main/dropbox/recover_dropbox_files.php
  45. 6
      public/main/exercise/MultipleAnswerTrueFalseDegreeCertainty.php
  46. 2
      public/main/exercise/UniqueAnswerImage.php
  47. 2
      public/main/exercise/calculated_answer.class.php
  48. 18
      public/main/exercise/exercise.class.php
  49. 12
      public/main/exercise/exercise_question_reminder.php
  50. 8
      public/main/exercise/exercise_reminder.php
  51. 2
      public/main/exercise/exercise_report.php
  52. 2
      public/main/exercise/exercise_result.php
  53. 2
      public/main/exercise/exercise_show.php
  54. 6
      public/main/exercise/exercise_submit.php
  55. 2
      public/main/exercise/export/scorm/ScormExercise.php
  56. 6
      public/main/exercise/fill_blanks.class.php
  57. 10
      public/main/exercise/hotspot_admin.inc.php
  58. 14
      public/main/exercise/overview.php
  59. 2
      public/main/exercise/question_admin.inc.php
  60. 8
      public/main/exercise/question_list_admin.inc.php
  61. 8
      public/main/exercise/question_pool.php
  62. 2
      public/main/exercise/result.php
  63. 6
      public/main/forum/forumfunction.inc.php
  64. 8
      public/main/forum/forumqualify.php
  65. 2
      public/main/gradebook/gradebook_display_certificate.php
  66. 8
      public/main/gradebook/gradebook_display_summary.php
  67. 2
      public/main/gradebook/gradebook_edit_all.php
  68. 4
      public/main/gradebook/index.php
  69. 2
      public/main/gradebook/lib/fe/displaygradebook.php
  70. 4
      public/main/group/group_space.php
  71. 4
      public/main/help/help.php
  72. 2
      public/main/inc/ajax/admin.ajax.php
  73. 2
      public/main/inc/ajax/extra_field.ajax.php
  74. 2
      public/main/inc/ajax/social.ajax.php
  75. 2
      public/main/inc/ajax/user_manager.ajax.php
  76. 2
      public/main/inc/lib/Compilatio.php
  77. 2
      public/main/inc/lib/CourseChatUtils.php
  78. 8
      public/main/inc/lib/CoursesAndSessionsCatalog.class.php
  79. 4
      public/main/inc/lib/TicketManager.php
  80. 18
      public/main/inc/lib/api.lib.php
  81. 2
      public/main/inc/lib/attendance.lib.php
  82. 28
      public/main/inc/lib/course.lib.php
  83. 6
      public/main/inc/lib/dashboard.lib.php
  84. 6
      public/main/inc/lib/display.lib.php
  85. 6
      public/main/inc/lib/exercise.lib.php
  86. 4
      public/main/inc/lib/extra_field.lib.php
  87. 4
      public/main/inc/lib/formvalidator/Element/DatePicker.php
  88. 4
      public/main/inc/lib/formvalidator/Element/DateTimePicker.php
  89. 4
      public/main/inc/lib/formvalidator/Element/DateTimeRangePicker.php
  90. 6
      public/main/inc/lib/formvalidator/FormValidator.class.php
  91. 4
      public/main/inc/lib/groupmanager.lib.php
  92. 2
      public/main/inc/lib/javascript/badge-studio/media/js/studio.js
  93. 8
      public/main/inc/lib/message.lib.php
  94. 2
      public/main/inc/lib/pear/HTML/QuickForm/advanced_settings.php
  95. 8
      public/main/inc/lib/pear/HTML/QuickForm/advmultiselect.php
  96. 2
      public/main/inc/lib/pear/HTML/QuickForm/button.php
  97. 2
      public/main/inc/lib/pear/HTML/QuickForm/element.php
  98. 4
      public/main/inc/lib/social.lib.php
  99. 6
      public/main/inc/lib/sortable_table.class.php
  100. 6
      public/main/inc/lib/template.lib.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -114,7 +114,7 @@
{{ $t('Download') }} {{ $t('Download') }}
</Button> </Button>
--> -->
<Button label="{{ $t('Delete selected') }}" class="btn btn-danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length"> <Button label="{{ $t('Delete selected') }}" class="btn btn--danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length">
<v-icon icon="mdi-delete"/> <v-icon icon="mdi-delete"/>
{{ $t('Delete selected') }} {{ $t('Delete selected') }}
</Button> </Button>
@ -219,7 +219,7 @@
<v-icon icon="mdi-pencil"/> <v-icon icon="mdi-pencil"/>
</Button> </Button>
<Button v-if="isAuthenticated && isCurrentTeacher" class="btn btn-danger" @click="confirmDeleteItem(slotProps.data)" > <Button v-if="isAuthenticated && isCurrentTeacher" class="btn btn--danger" @click="confirmDeleteItem(slotProps.data)" >
<v-icon icon="mdi-delete"/> <v-icon icon="mdi-delete"/>
</Button> </Button>
</div> </div>

@ -10,7 +10,7 @@
<v-icon icon="mdi-file-plus"/> <v-icon icon="mdi-file-plus"/>
{{ $t('New page') }} {{ $t('New page') }}
</Button> </Button>
<!-- <Button label="{{ $t('Delete selected') }}" class="btn btn-danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length">--> <!-- <Button label="{{ $t('Delete selected') }}" class="btn btn--danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length">-->
<!-- <v-icon icon="mdi-delete"/>--> <!-- <v-icon icon="mdi-delete"/>-->
<!-- {{ $t('Delete selected') }}--> <!-- {{ $t('Delete selected') }}-->
<!-- </Button>--> <!-- </Button>-->
@ -66,7 +66,7 @@
<v-icon icon="mdi-pencil"/> <v-icon icon="mdi-pencil"/>
</Button> </Button>
<Button v-if="isAuthenticated" class="btn btn-danger" @click="confirmDeleteItem(slotProps.data)" > <Button v-if="isAuthenticated" class="btn btn--danger" @click="confirmDeleteItem(slotProps.data)" >
<v-icon icon="mdi-delete"/> <v-icon icon="mdi-delete"/>
</Button> </Button>
</div> </div>

@ -5,7 +5,7 @@
<Button label="New folder" icon="fa fa-folder-plus" class="btn btn--primary" @click="openNew" /> <Button label="New folder" icon="fa fa-folder-plus" class="btn btn--primary" @click="openNew" />
<Button label="Upload" icon="fa fa-file-upload" class="btn btn--primary" @click="uploadDocumentHandler()" /> <Button label="Upload" icon="fa fa-file-upload" class="btn btn--primary" @click="uploadDocumentHandler()" />
<Button label="Shared" icon="fa fa-file-upload" class="btn btn--success" @click="sharedDocumentHandler()" /> <Button label="Shared" icon="fa fa-file-upload" class="btn btn--success" @click="sharedDocumentHandler()" />
<Button label="Delete" icon="pi pi-trash" class="btn btn-danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length" /> <Button label="Delete" icon="pi pi-trash" class="btn btn--danger " @click="confirmDeleteMultiple" :disabled="!selectedItems || !selectedItems.length" />
</div> </div>
</div> </div>
</div> </div>
@ -70,7 +70,7 @@
<div class="flex flex-row gap-2"> <div class="flex flex-row gap-2">
<Button icon="fa fa-info-circle" class="btn btn--primary " @click="showHandler(slotProps.data)" /> <Button icon="fa fa-info-circle" class="btn btn--primary " @click="showHandler(slotProps.data)" />
<Button v-if="isAuthenticated" icon="pi pi-pencil" class="btn btn--primary p-mr-2" @click="editHandler(slotProps.data)" /> <Button v-if="isAuthenticated" icon="pi pi-pencil" class="btn btn--primary p-mr-2" @click="editHandler(slotProps.data)" />
<Button v-if="isAuthenticated" icon="pi pi-trash" class="btn btn-danger" @click="confirmDeleteItem(slotProps.data)" /> <Button v-if="isAuthenticated" icon="pi pi-trash" class="btn btn--danger" @click="confirmDeleteItem(slotProps.data)" />
</div> </div>
</template> </template>
</Column> </Column>

@ -201,15 +201,15 @@ $url_list = UrlManager::get_url_data();
<td width="10%" valign="middle" align="center"> <td width="10%" valign="middle" align="center">
<?php if ($ajax_search) { <?php if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('destination_users'))" ></button> <button class="btn btn--plain" type="button" onclick="remove_item(document.getElementById('destination_users'))" ></button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" >
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php

@ -214,17 +214,17 @@ $url_list = UrlManager::get_url_data();
<?php <?php
if ($ajax_search) { if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('destination_users'))" > <button class="btn btn--plain" type="button" onclick="remove_item(document.getElementById('destination_users'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" >
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
@ -252,9 +252,9 @@ $url_list = UrlManager::get_url_data();
<br /> <br />
<?php <?php
if (isset($_GET['add'])) { if (isset($_GET['add'])) {
echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('Add courses to an URL').'</button>'; echo '<button class="btn btn--plain" onclick="valide()" >'.get_lang('Add courses to an URL').'</button>';
} else { } else {
echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('Edit courses of an URL').'</button>'; echo '<button class="btn btn--plain" onclick="valide()" >'.get_lang('Edit courses of an URL').'</button>';
} }
?> ?>
</td> </td>

@ -232,19 +232,19 @@ $url_list = UrlManager::get_url_data();
<br><br><br><br> <br><br><br><br>
<?php if ($ajax_search) { <?php if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" <button class="btn btn--plain" type="button"
onclick="remove_item(document.getElementById('destination_users'))"> onclick="remove_item(document.getElementById('destination_users'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" <button class="btn btn--plain" type="button"
onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))"> onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br/><br/> <br/><br/>
<button class="btn btn-default" type="button" <button class="btn btn--plain" type="button"
onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))"> onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
@ -266,7 +266,7 @@ $url_list = UrlManager::get_url_data();
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 text-center"> <div class="col-xs-12 text-center">
<button class="save btn btn-primary" onclick="valide()"> <button class="save btn btn--primary" onclick="valide()">
<span class="fa fa-save fa-fw" aria-hidden="true"></span> <span class="fa fa-save fa-fw" aria-hidden="true"></span>
<?php echo isset($_GET['add']) ? get_lang('Add group to URL') : get_lang('Edit groups for one URL'); ?> <?php echo isset($_GET['add']) ? get_lang('Add group to URL') : get_lang('Edit groups for one URL'); ?>
</button> </button>

@ -266,17 +266,17 @@ if (!empty($errorMsg)) {
<td width="10%" valign="middle" align="center"> <td width="10%" valign="middle" align="center">
<?php if ($ajax_search) { <?php if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('destination_users'))"> <button class="btn btn--plain" type="button" onclick="remove_item(document.getElementById('destination_users'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" >
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" > <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>

@ -263,11 +263,11 @@ if (!empty($errorMsg)) {
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
@ -291,7 +291,7 @@ echo Display::select(
<td colspan="3" align="center"> <td colspan="3" align="center">
<br /> <br />
<?php <?php
echo '<button class="btn btn-primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe class to courses').'</button>'; echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe class to courses').'</button>';
?> ?>
</td> </td>
</tr> </tr>

@ -212,17 +212,17 @@ if (!empty($errorMsg)) {
<?php <?php
if ($ajax_search) { if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('session_in_promotion'))" > <button class="btn btn--plain" type="button" onclick="remove_item(document.getElementById('session_in_promotion'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('session_in_promotion'), document.getElementById('session_not_in_promotion'))" onclick="moveItem(document.getElementById('session_in_promotion'), document.getElementById('session_not_in_promotion'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('session_in_promotion'), document.getElementById('session_not_in_promotion'))" onclick="moveItem(document.getElementById('session_in_promotion'), document.getElementById('session_not_in_promotion'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
@ -246,7 +246,7 @@ if (!empty($errorMsg)) {
<td colspan="3" align="center"> <td colspan="3" align="center">
<br /> <br />
<?php <?php
echo '<button class="btn btn-primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe sessions to promotion').'</button>'; echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe sessions to promotion').'</button>';
?> ?>
</td> </td>
</tr> </tr>

@ -248,17 +248,17 @@ if (!empty($errorMsg)) {
<?php <?php
if ($ajax_search) { if ($ajax_search) {
?> ?>
<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('elements_in'))" > <button class="btn btn--plain" type="button" onclick="remove_item(document.getElementById('elements_in'))" >
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
<?php <?php
@ -282,7 +282,7 @@ echo Display::select(
<td colspan="3" align="center"> <td colspan="3" align="center">
<br /> <br />
<?php <?php
echo '<button class="btn btn-primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe class to sessions').'</button>'; echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" >'.get_lang('Subscribe class to sessions').'</button>';
?> ?>
</td> </td>
</tr> </tr>

@ -434,11 +434,11 @@ echo Display::input('hidden', 'add_type', null);
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<div style="padding-top:54px;width:auto;text-align: center;"> <div style="padding-top:54px;width:auto;text-align: center;">
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
<br /><br /> <br /><br />
<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"> <button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
</div> </div>
@ -464,7 +464,7 @@ echo Display::input('hidden', 'add_type', null);
</div> </div>
</div> </div>
<?php <?php
echo '<button class="btn btn-primary" type="button" value="" onclick="valide()" ><em class="fa fa-check"></em>'. echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" ><em class="fa fa-check"></em>'.
get_lang('Subscribe users to class').'</button>'; get_lang('Subscribe users to class').'</button>';
?> ?>
</form> </form>

@ -458,7 +458,7 @@ if (isset($_GET['search']) && 'advanced' === $_GET['search']) {
['id' => 'course-search-keyword', 'aria-label' => get_lang('Search courses')] ['id' => 'course-search-keyword', 'aria-label' => get_lang('Search courses')]
); );
$form->addButtonSearch(get_lang('Search courses')); $form->addButtonSearch(get_lang('Search courses'));
$advanced = '<a class="btn btn-default" href="'.api_get_path(WEB_CODE_PATH).'admin/course_list.php?search=advanced"> $advanced = '<a class="btn btn--plain" href="'.api_get_path(WEB_CODE_PATH).'admin/course_list.php?search=advanced">
<em class="fa fa-search"></em> '. <em class="fa fa-search"></em> '.
get_lang('Advanced search').'</a>'; get_lang('Advanced search').'</a>';

@ -396,7 +396,7 @@ if (isset($_GET['search']) && 'advanced' === $_GET['search']) {
['id' => 'course-search-keyword', 'aria-label' => get_lang('SearchCourse')] ['id' => 'course-search-keyword', 'aria-label' => get_lang('SearchCourse')]
); );
$form->addButtonSearch(get_lang('SearchCourse')); $form->addButtonSearch(get_lang('SearchCourse'));
$advanced = '<a class="btn btn-default" href="'.api_get_path(WEB_CODE_PATH).'admin/course_list_admin.php?search=advanced"> $advanced = '<a class="btn btn--plain" href="'.api_get_path(WEB_CODE_PATH).'admin/course_list_admin.php?search=advanced">
<em class="fa fa-search"></em> '. <em class="fa fa-search"></em> '.
get_lang('Advanced search').'</a>'; get_lang('Advanced search').'</a>';

@ -257,17 +257,17 @@ if (!empty($msg)) {
</div> </div>
<div class="control-course"> <div class="control-course">
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))"> <button class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
</div> </div>
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))"> <button class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
</div> </div>
<div class="separate-action"> <div class="separate-action">
<?php echo '<button class="btn btn-success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>'; ?> <?php echo '<button class="btn btn--success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>'; ?>
</div> </div>
</div> </div>
</div> </div>

@ -73,10 +73,10 @@ function search_sessions($needle, $type)
if (api_is_multiple_url_enabled()) { if (api_is_multiple_url_enabled()) {
$sql = " SELECT s.id, s.name FROM $tbl_session s $sql = " SELECT s.id, s.name FROM $tbl_session s
LEFT JOIN $tbl_session_rel_access_url a LEFT JOIN $tbl_session_rel_access_url a
ON (s.id = a.session_id) ON (s.id = a.session_id)
WHERE WHERE
s.name LIKE '$needle%' $without_assigned_sessions AND s.name LIKE '$needle%' $without_assigned_sessions AND
access_url_id = ".api_get_current_access_url_id(); access_url_id = ".api_get_current_access_url_id();
} else { } else {
$sql = "SELECT s.id, s.name FROM $tbl_session s $sql = "SELECT s.id, s.name FROM $tbl_session s
@ -254,7 +254,7 @@ $result = Database::query($sql);
if ($ajax_search) { if ($ajax_search) {
?> ?>
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="remove_item(document.getElementById('destination'))"> <button class="btn btn--primary" type="button" onclick="remove_item(document.getElementById('destination'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
</div> </div>
@ -262,19 +262,19 @@ $result = Database::query($sql);
} else { } else {
?> ?>
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))"> <button class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))">
<em class="fa fa-arrow-right"></em> <em class="fa fa-arrow-right"></em>
</button> </button>
</div> </div>
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))"> <button class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))">
<em class="fa fa-arrow-left"></em> <em class="fa fa-arrow-left"></em>
</button> </button>
</div> </div>
<?php <?php
} }
echo '<button class="btn btn-success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>'; echo '<button class="btn btn--success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>';
?> ?>
</div> </div>
</div> </div>

@ -331,7 +331,7 @@ if (STUDENT_BOSS != $userStatus) {
$actionsRight = Display::url( $actionsRight = Display::url(
'<em class="fa fa-search"></em> '.get_lang('Advanced search'), '<em class="fa fa-search"></em> '.get_lang('Advanced search'),
'#', '#',
['class' => 'btn btn-default advanced_options', 'id' => 'advanced_search'] ['class' => 'btn btn--plain advanced_options', 'id' => 'advanced_search']
); );
$toolbar = Display::toolbarAction('toolbar-dashboard', [$actionsLeft, $actionsRight]); $toolbar = Display::toolbarAction('toolbar-dashboard', [$actionsLeft, $actionsRight]);
@ -458,18 +458,18 @@ $result = Database::query($sql);
<?php if ($ajax_search) { <?php if ($ajax_search) {
?> ?>
<div class="separate-action"> <div class="separate-action">
<button class="btn btn-primary" type="button" onclick="remove_item(document.getElementById('destination'))"></button> <button class="btn btn--primary" type="button" onclick="remove_item(document.getElementById('destination'))"></button>
</div> </div>
<?php <?php
} else { } else {
?> ?>
<div class="separate-action"> <div class="separate-action">
<button id="add_user_button" class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))"> <button id="add_user_button" class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))" onclick="moveItem(document.getElementById('origin'), document.getElementById('destination'))">
<em class="fa fa-chevron-right"></em> <em class="fa fa-chevron-right"></em>
</button> </button>
</div> </div>
<div class="separate-action"> <div class="separate-action">
<button id="remove_user_button" class="btn btn-primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))"> <button id="remove_user_button" class="btn btn--primary" type="button" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))" onclick="moveItem(document.getElementById('destination'), document.getElementById('origin'))">
<em class="fa fa-chevron-left"></em> <em class="fa fa-chevron-left"></em>
</button> </button>
</div> </div>
@ -477,7 +477,7 @@ $result = Database::query($sql);
} ?> } ?>
<div class="separate-action"> <div class="separate-action">
<?php <?php
echo '<button id="assign_user" class="btn btn-success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>'; echo '<button id="assign_user" class="btn btn--success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>';
?> ?>
</div> </div>
</div> </div>

@ -25,7 +25,7 @@ foreach ($types as $key => $label) {
Display::url( Display::url(
get_lang('List'), get_lang('List'),
$url.''.$label, $url.''.$label,
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
) )
); );
$row++; $row++;

@ -135,7 +135,7 @@ $htmlHeadXtra[] = '<script>
var action = datos.split(":")[0]; var action = datos.split(":")[0];
if (action && action == "confirm") { if (action && action == "confirm") {
var id = datos.split(":")[1]; var id = datos.split(":")[1];
var sure = "<div class=\"warning-message alert alert-warning\">'.get_lang('There are users using this language. Do you want to disable this language and set all this users with the default portal language?').'<br /><br /><a href=\"languages.php?action=make_unavailable_confirmed&id="+id+"\" class=\"btn btn-default\"><em class=\"fa fa-eye\"></em> '.get_lang('Make unavailable').'</a></div>"; var sure = "<div class=\"warning-message alert alert-warning\">'.get_lang('There are users using this language. Do you want to disable this language and set all this users with the default portal language?').'<br /><br /><a href=\"languages.php?action=make_unavailable_confirmed&id="+id+"\" class=\"btn btn--plain\"><em class=\"fa fa-eye\"></em> '.get_lang('Make unavailable').'</a></div>";
$("#id_content_message").html(sure); $("#id_content_message").html(sure);
$("html, body").animate({ scrollTop: 0 }, 200); $("html, body").animate({ scrollTop: 0 }, 200);
} }
@ -268,7 +268,7 @@ Display::addFlash(Display::return_message(get_lang('Chamilo Portal LanguagesExpl
// including the header file (which includes the banner itself) // including the header file (which includes the banner itself)
Display::display_header($tool_name); Display::display_header($tool_name);
echo '<a id="disable_all_except_default" href="javascript:void(0)" class="btn btn-primary"> echo '<a id="disable_all_except_default" href="javascript:void(0)" class="btn btn--primary">
<em class="fa fa-eye"></em> '.get_lang('Disable all languages except the platform default').'</a><br /><br />'; <em class="fa fa-eye"></em> '.get_lang('Disable all languages except the platform default').'</a><br /><br />';
// selecting all the languages // selecting all the languages
@ -292,7 +292,7 @@ while ($row = Database::fetch_array($result_select)) {
<input type="hidden" name="edit_id" value="'.$id.'" /> <input type="hidden" name="edit_id" value="'.$id.'" />
<input type="text" name="txt_name" value="'.$row['original_name'].'" /> <input type="text" name="txt_name" value="'.$row['original_name'].'" />
<input type="checkbox" '.$checked.'name="platformlanguage" id="platformlanguage" value="'.$row['english_name'].'" /> <input type="checkbox" '.$checked.'name="platformlanguage" id="platformlanguage" value="'.$row['english_name'].'" />
<label for="platformlanguage">'.$row['original_name'].' '.get_lang('as platformlanguage').'</label> <label for="platformlanguage">'.$row['original_name'].' '.get_lang('as platformlanguage').'</label>
<input type="submit" name="Submit" value="'.get_lang('Validate').'" /> <input type="submit" name="Submit" value="'.get_lang('Validate').'" />
<a name="value" />'; <a name="value" />';
} else { } else {

@ -169,9 +169,9 @@ if (isset($_POST['language'])) {
// Submit & preview button // Submit & preview button
$buttons = '<div class="row" align="center"> $buttons = '<div class="row" align="center">
<div class="formw"> <div class="formw">
<button type="submit" class="btn btn-default back" name="send" value="back">'.get_lang('Back').'</button> <button type="submit" class="btn btn--plain back" name="send" value="back">'.get_lang('Back').'</button>
<button type="submit" class="btn btn-default search" name="send" value="preview">'.get_lang('Preview').'</button> <button type="submit" class="btn btn--plain search" name="send" value="preview">'.get_lang('Preview').'</button>
<button type="submit" class="btn btn-primary save" name="send" value="save">'.get_lang('Save').'</button> <button type="submit" class="btn btn--primary save" name="send" value="save">'.get_lang('Save').'</button>
</div> </div>
</div>'; </div>';
$form->addElement('html', $buttons); $form->addElement('html', $buttons);

@ -210,7 +210,7 @@ if ($formSent) {
get_lang('Delete'), get_lang('Delete'),
$deleteUrl, $deleteUrl,
[ [
'class' => 'btn btn-danger', 'class' => 'btn btn--danger',
'onclick' => 'javascript: if(!confirm(\''.$warningText.'\')) return false', 'onclick' => 'javascript: if(!confirm(\''.$warningText.'\')) return false',
] ]
).'</div>'; ).'</div>';

@ -106,13 +106,13 @@ function handleRegions()
} }
echo '</table>'; echo '</table>';
echo '<br />'; echo '<br />';
echo '<button class="btn btn-success" type="submit" name="submit_plugins">'.get_lang('Enable the selected plugins').'</button></form>'; echo '<button class="btn btn--success" type="submit" name="submit_plugins">'.get_lang('Enable the selected plugins').'</button></form>';
} }
function handleExtensions() function handleExtensions()
{ {
echo Display::page_subheader(get_lang('Configure extensions')); echo Display::page_subheader(get_lang('Configure extensions'));
echo '<a class="btn btn-success" href="configure_extensions.php?display=ppt2lp" role="button">'.get_lang('Chamilo RAPID').'</a>'; echo '<a class="btn btn--success" href="configure_extensions.php?display=ppt2lp" role="button">'.get_lang('Chamilo RAPID').'</a>';
} }
/** /**
@ -197,12 +197,12 @@ function handlePlugins()
$pluginRow .= Display::url( $pluginRow .= Display::url(
'<em class="fa fa-cogs"></em> '.get_lang('Configure'), '<em class="fa fa-cogs"></em> '.get_lang('Configure'),
'configure_plugin.php?name='.$pluginName, 'configure_plugin.php?name='.$pluginName,
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
$pluginRow .= Display::url( $pluginRow .= Display::url(
'<em class="fa fa-th-large"></em> '.get_lang('Regions'), '<em class="fa fa-th-large"></em> '.get_lang('Regions'),
'settings.php?category=Regions&name='.$pluginName, 'settings.php?category=Regions&name='.$pluginName,
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
} }
@ -250,7 +250,7 @@ function handlePlugins()
echo '</table>'; echo '</table>';
echo '<div class="form-actions bottom_actions">'; echo '<div class="form-actions bottom_actions">';
echo '<button class="btn btn-primary" type="submit" name="submit_plugins">'; echo '<button class="btn btn--primary" type="submit" name="submit_plugins">';
echo '<i class="fa fa-check" aria-hidden="true"></i> '; echo '<i class="fa fa-check" aria-hidden="true"></i> ';
echo get_lang('Enable the selected plugins').'</button>'; echo get_lang('Enable the selected plugins').'</button>';
echo '</div>'; echo '</div>';
@ -1875,7 +1875,7 @@ function generateCSSDownloadLink($style)
$url = api_get_path(WEB_CODE_PATH).'course_info/download.php?archive_path=&archive='.str_replace(api_get_path(SYS_ARCHIVE_PATH), '', $arch); $url = api_get_path(WEB_CODE_PATH).'course_info/download.php?archive_path=&archive='.str_replace(api_get_path(SYS_ARCHIVE_PATH), '', $arch);
//@TODO: use more generic script to download. //@TODO: use more generic script to download.
$str = '<a class="btn btn-primary btn-large" href="'.$url.'">'.get_lang('Download the file').'</a>'; $str = '<a class="btn btn--primary btn-large" href="'.$url.'">'.get_lang('Download the file').'</a>';
echo Display::return_message($str, 'normal', false); echo Display::return_message($str, 'normal', false);
} else { } else {
echo Display::return_message(get_lang('The file was not found'), 'warning'); echo Display::return_message(get_lang('The file was not found'), 'warning');

@ -122,7 +122,7 @@ if ((isset($_POST['action']) && 'course_select_form' == $_POST['action']) ||
if ($export && $name) { if ($export && $name) {
echo Display::return_message(get_lang('The backup has been created. The download of this file will start in a few moments. If your download does not start, click the following link'), 'confirm'); echo Display::return_message(get_lang('The backup has been created. The download of this file will start in a few moments. If your download does not start, click the following link'), 'confirm');
echo '<br /><a class="btn btn-default" href="'.api_get_path(WEB_CODE_PATH).'course_info/download.php?archive_path=&archive='.urlencode($name).'">'.get_lang('Download').'</a>'; echo '<br /><a class="btn btn--plain" href="'.api_get_path(WEB_CODE_PATH).'course_info/download.php?archive_path=&archive='.urlencode($name).'">'.get_lang('Download').'</a>';
} else { } else {
// Display forms especial export // Display forms especial export
if (isset($_POST['backup_option']) && 'select_items' == $_POST['backup_option']) { if (isset($_POST['backup_option']) && 'select_items' == $_POST['backup_option']) {
@ -266,7 +266,7 @@ function fullexportspecial()
$query_session = Database::query($sql); $query_session = Database::query($sql);
while ($rows_session = Database::fetch_assoc($query_session)) { while ($rows_session = Database::fetch_assoc($query_session)) {
$session_id = $rows_session['id']; $session_id = $rows_session['id'];
$sql_session_doc = "SELECT path $sql_session_doc = "SELECT path
FROM $tbl_document AS docs, $tbl_property AS props FROM $tbl_document AS docs, $tbl_property AS props
WHERE props.tool='".TOOL_DOCUMENT."' WHERE props.tool='".TOOL_DOCUMENT."'
AND docs.id=props.ref AND docs.id=props.ref

@ -407,9 +407,9 @@ switch ($report) {
$content .= Display::page_subheader2(get_lang('GeneralStats')); $content .= Display::page_subheader2(get_lang('GeneralStats'));
// Coach. // Coach.
$sql = "SELECT COUNT(DISTINCT(sru.user_id)) count $sql = "SELECT COUNT(DISTINCT(sru.user_id)) count
FROM $tableSession s FROM $tableSession s
INNER JOIN $tableSessionRelUser sru INNER JOIN $tableSessionRelUser sru
ON s.id = sru.session_id ON s.id = sru.session_id
WHERE WHERE
(s.display_start_date BETWEEN '$start' AND '$end' OR (s.display_start_date BETWEEN '$start' AND '$end' OR
@ -588,7 +588,7 @@ switch ($report) {
$link = Display::url( $link = Display::url(
Display::return_icon('excel.png').'&nbsp;'.get_lang('ExportAsXLS'), Display::return_icon('excel.png').'&nbsp;'.get_lang('ExportAsXLS'),
$url, $url,
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
} }

@ -195,7 +195,7 @@ function search_language_term(
'btn|'.$parent_name_variable.'|'.$language_files_to_load_keys[$lang_file], 'btn|'.$parent_name_variable.'|'.$language_files_to_load_keys[$lang_file],
get_lang('Save'), get_lang('Save'),
[ [
'class' => 'save btn btn-default btn-sm', 'class' => 'save btn btn--plain btn-sm',
'type' => 'button', 'type' => 'button',
'id' => 'btnid_'.$parent_name_variable, 'id' => 'btnid_'.$parent_name_variable,
] ]
@ -271,7 +271,7 @@ function search_language_term(
'btn|'.$name_variable.'|'.$language_files_to_load_keys[$lang_file], 'btn|'.$name_variable.'|'.$language_files_to_load_keys[$lang_file],
get_lang('Save'), get_lang('Save'),
[ [
'class' => 'save btn btn-default btn-sm', 'class' => 'save btn btn--plain btn-sm',
'type' => 'button', 'type' => 'button',
'id' => 'btnid_'.$name_variable, 'id' => 'btnid_'.$name_variable,
] ]
@ -332,7 +332,7 @@ function search_language_term(
'btn|'.$name_variable.'|'.$language_files_to_load_keys[$lang_file], 'btn|'.$name_variable.'|'.$language_files_to_load_keys[$lang_file],
get_lang('Save'), get_lang('Save'),
[ [
'class' => 'save btn btn-default btn-sm', 'class' => 'save btn btn--plain btn-sm',
'type' => 'button', 'type' => 'button',
'id' => 'btnid_'.$name_variable, 'id' => 'btnid_'.$name_variable,
] ]

@ -286,7 +286,7 @@ if (is_array($extra_field_list)) {
echo $extraHidden; echo $extraHidden;
echo '&nbsp;&nbsp;'; echo '&nbsp;&nbsp;';
} }
echo '<input class="btn btn-primary" type="button" value="'.get_lang('Filter').'" onclick="validate_filter()" ></input>'; echo '<input class="btn btn--primary" type="button" value="'.get_lang('Filter').'" onclick="validate_filter()" ></input>';
echo '<br /><br />'; echo '<br /><br />';
} }
} }
@ -343,7 +343,7 @@ if (is_array($extra_field_list)) {
</select> </select>
</td> </td>
<td width="20%" valign="middle" align="center"> <td width="20%" valign="middle" align="center">
<button type="submit" class="btn btn-primary" value="<?php echo get_lang('Add to the course(s)'); ?> &gt;&gt;"> <button type="submit" class="btn btn--primary" value="<?php echo get_lang('Add to the course(s)'); ?> &gt;&gt;">
<em class="fa fa-plus"></em> <?php echo get_lang('Add to the course(s)'); ?> <em class="fa fa-plus"></em> <?php echo get_lang('Add to the course(s)'); ?>
</button> </button>
</td> </td>

@ -194,13 +194,13 @@ if ('true' === api_get_setting('allow_terms_conditions')) {
$btn = Display::url( $btn = Display::url(
get_lang('Delete legal agreement'), get_lang('Delete legal agreement'),
api_get_self().'?action=delete_legal&user_id='.$userId, api_get_self().'?action=delete_legal&user_id='.$userId,
['class' => 'btn btn-danger btn-xs'] ['class' => 'btn btn--danger btn-xs']
); );
} else { } else {
$btn = Display::url( $btn = Display::url(
get_lang('Send legal agreement'), get_lang('Send legal agreement'),
api_get_self().'?action=send_legal&user_id='.$userId, api_get_self().'?action=send_legal&user_id='.$userId,
['class' => 'btn btn-primary btn-xs'] ['class' => 'btn btn--primary btn-xs']
); );
$timeLegalAccept = get_lang('Not Registered'); $timeLegalAccept = get_lang('Not Registered');
} }

@ -1028,7 +1028,7 @@ $form->addButtonSearch(get_lang('Search'));
$searchAdvanced = ' $searchAdvanced = '
<a id="advanced_params" href="javascript://" <a id="advanced_params" href="javascript://"
class="btn btn-default advanced_options" onclick="display_advanced_search_form();"> class="btn btn--plain advanced_options" onclick="display_advanced_search_form();">
<span id="img_plus_and_minus">&nbsp; <span id="img_plus_and_minus">&nbsp;
'.Display::getMdiIcon('arrow-right-bold', 'ch-tool-icon-button', null, 16).' '.get_lang('Advanced search').' '.Display::getMdiIcon('arrow-right-bold', 'ch-tool-icon-button', null, 16).' '.get_lang('Advanced search').'
</span> </span>

@ -828,8 +828,8 @@ if (!empty($user_list)) {
echo $options; echo $options;
echo '</select>'; echo '</select>';
echo '<br />'; echo '<br />';
echo '<button type="submit" class="btn btn-success" onclick="view_stat(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Compare stats').'</button>'; echo '<button type="submit" class="btn btn--success" onclick="view_stat(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Compare stats').'</button>';
echo '<button type="submit" class="btn btn-success" onclick="moveto(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Move').'</button>'; echo '<button type="submit" class="btn btn--success" onclick="moveto(\''.$unique_id.'\', \''.$user_id.'\');"> '.get_lang('Move').'</button>';
echo '<div id ="reponse_'.$unique_id.'"></div>'; echo '<div id ="reponse_'.$unique_id.'"></div>';
echo '</td>'; echo '</td>';
} }

@ -235,10 +235,10 @@ function extra_formatter(cellvalue, options, rowObject) {
if (calendarName == "") { if (calendarName == "") {
return \'<a href="'. return \'<a href="'.
api_get_path(WEB_CODE_PATH).'admin/usergroup_users.php?user_id=\'+options.rowId+\'&id='.$id.'&action=add_calendar&width=700" class="btn btn-primary ajax">'.get_lang('Add').'</a>\'; api_get_path(WEB_CODE_PATH).'admin/usergroup_users.php?user_id=\'+options.rowId+\'&id='.$id.'&action=add_calendar&width=700" class="btn btn--primary ajax">'.get_lang('Add').'</a>\';
} else { } else {
return \' \'+calendarName+\' <a href="'. return \' \'+calendarName+\' <a href="'.
api_get_path(WEB_CODE_PATH).'admin/usergroup_users.php?calendar_id=\'+calendarId+\'&user_id=\'+options.rowId+\'&id='.$id.'&action=edit_calendar&width=700" class="btn btn-primary ajax"> '.get_lang('Edit').'</a>\'; api_get_path(WEB_CODE_PATH).'admin/usergroup_users.php?calendar_id=\'+calendarId+\'&user_id=\'+options.rowId+\'&id='.$id.'&action=edit_calendar&width=700" class="btn btn--primary ajax"> '.get_lang('Edit').'</a>\';
} }
return calendarName; return calendarName;

@ -652,7 +652,7 @@ switch ($action) {
Display::url( Display::url(
get_lang('Preview'), get_lang('Preview'),
'javascript:void(0)', 'javascript:void(0)',
['class' => 'btn btn-default', 'id' => 'announcement_preview'] ['class' => 'btn btn--plain', 'id' => 'announcement_preview']
).'<div id="announcement_preview_result" style="display:none"></div>' ).'<div id="announcement_preview_result" style="display:none"></div>'
); );
$form->addHtml('<div id="send_button" style="display:none">'); $form->addHtml('<div id="send_button" style="display:none">');

@ -516,7 +516,7 @@ switch ($action) {
Display::getMdiIcon('external-link', 'mdi-tool-icon-button').'&nbsp;'. Display::getMdiIcon('external-link', 'mdi-tool-icon-button').'&nbsp;'.
get_lang('GoToCourse'), get_lang('GoToCourse'),
$courseUrl.$course['directory'].'/index.php?id_session=0', $courseUrl.$course['directory'].'/index.php?id_session=0',
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
if (!$courseClosed && $course_unsubscribe_allowed && if (!$courseClosed && $course_unsubscribe_allowed &&
false === $userRegisteredInCourseAsTeacher false === $userRegisteredInCourseAsTeacher

@ -770,7 +770,7 @@ if ($blockButton) {
Display::url( Display::url(
get_lang('Validate'), get_lang('Validate'),
'javascript:void', 'javascript:void',
['class' => 'btn btn-default', 'id' => 'pre_validation'] ['class' => 'btn btn--plain', 'id' => 'pre_validation']
) )
); );
$form->addHtml('<div id="final_button" style="display: none">'); $form->addHtml('<div id="final_button" style="display: none">');
@ -1115,7 +1115,7 @@ if ($form->validate()) {
'button' => Display::button( 'button' => Display::button(
'next', 'next',
get_lang('Next'), get_lang('Next'),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
), ),
'message' => '', 'message' => '',
'action' => api_get_path(WEB_PATH).'user_portal.php', 'action' => api_get_path(WEB_PATH).'user_portal.php',
@ -1151,18 +1151,18 @@ if ($form->validate()) {
$formData['button'] = Display::button( $formData['button'] = Display::button(
'next', 'next',
get_lang('Create a course request'), get_lang('Create a course request'),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
} else { } else {
$formData['button'] = Display::button( $formData['button'] = Display::button(
'next', 'next',
get_lang('Create a course'), get_lang('Create a course'),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
$formData['go_button'] = '&nbsp;&nbsp;<a href="'.api_get_path(WEB_PATH).'index.php'.'">'. $formData['go_button'] = '&nbsp;&nbsp;<a href="'.api_get_path(WEB_PATH).'index.php'.'">'.
Display::span( Display::span(
get_lang('Next'), get_lang('Next'),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
).'</a>'; ).'</a>';
} }
} else { } else {
@ -1175,7 +1175,7 @@ if ($form->validate()) {
$formData['button'] = Display::button( $formData['button'] = Display::button(
'next', 'next',
get_lang('Next'), get_lang('Next'),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
} }
} }

@ -178,13 +178,13 @@ if (!empty($userJustifications)) {
$actions .= Display::url( $actions .= Display::url(
get_lang('Edit'), get_lang('Edit'),
api_get_self().'?a=edit_justification&justification_id='.$userJustification['id'], api_get_self().'?a=edit_justification&justification_id='.$userJustification['id'],
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
} }
$actions .= '&nbsp;'.Display::url( $actions .= '&nbsp;'.Display::url(
get_lang('Delete'), get_lang('Delete'),
api_get_self().'?a=delete_justification&justification_id='.$userJustification['id'], api_get_self().'?a=delete_justification&justification_id='.$userJustification['id'],
['class' => 'btn btn-danger'] ['class' => 'btn btn--danger']
); );
$table->setCellContents($row, $col++, $actions); $table->setCellContents($row, $col++, $actions);
$row++; $row++;

@ -40,7 +40,7 @@ if (isset($_GET['delete']) && 'yes' === $_GET['delete'] && $_GET['course_code']
$message = '<h3>'.get_lang('CourseTitle').' : '.$current_course_name.'</h3>'; $message = '<h3>'.get_lang('CourseTitle').' : '.$current_course_name.'</h3>';
$message .= '<h3>'.get_lang('CourseCode').' : '.$current_course_code.'</h3>'; $message .= '<h3>'.get_lang('CourseCode').' : '.$current_course_code.'</h3>';
$message .= '<p>'.get_lang('CourseRegistrationCodeIncorrect').'</p>'; $message .= '<p>'.get_lang('CourseRegistrationCodeIncorrect').'</p>';
$message .= '<p><a class="btn btn-primary" href="' $message .= '<p><a class="btn btn--primary" href="'
.api_get_path(WEB_CODE_PATH) .api_get_path(WEB_CODE_PATH)
.'course_info/delete_course.php?' .'course_info/delete_course.php?'
.api_get_cidreq() .api_get_cidreq()
@ -57,9 +57,9 @@ if (isset($_GET['delete']) && 'yes' === $_GET['delete'] && $_GET['course_code']
.'&nbsp;<input type="text" name="course_code" id="course_code"></p>'; .'&nbsp;<input type="text" name="course_code" id="course_code"></p>';
$message .= '<p>'; $message .= '<p>';
$message .= '<button class="btn btn-danger delete-course">'.get_lang('ValidateChanges').'</button>'; $message .= '<button class="btn btn--danger delete-course">'.get_lang('ValidateChanges').'</button>';
$message .= '&nbsp;'; $message .= '&nbsp;';
$message .= '<a class="btn btn-primary"href="' $message .= '<a class="btn btn--primary"href="'
.api_get_path(WEB_CODE_PATH) .api_get_path(WEB_CODE_PATH)
.'course_info/maintenance.php?' .'course_info/maintenance.php?'
.api_get_cidreq().'">' .api_get_cidreq().'">'

@ -609,26 +609,26 @@ switch ($action) {
ICON_SIZE_TINY ICON_SIZE_TINY
), ),
'index.php?'.api_get_cidreq().'&action=thematic_copy&thematic_id='.$id.$params.$url_token, 'index.php?'.api_get_cidreq().'&action=thematic_copy&thematic_id='.$id.$params.$url_token,
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
if (0 == api_get_session_id()) { if (0 == api_get_session_id()) {
if ($thematic->getDisplayOrder() > 1) { if ($thematic->getDisplayOrder() > 1) {
$toolbarThematic .= ' <a $toolbarThematic .= ' <a
class="btn btn-default" class="btn btn--plain"
href="'.api_get_self().'?action=moveup&'.api_get_cidreq().'&thematic_id='.$id.$params.$url_token.'">'. href="'.api_get_self().'?action=moveup&'.api_get_cidreq().'&thematic_id='.$id.$params.$url_token.'">'.
Display::return_icon('up.png', get_lang('Up'), '', ICON_SIZE_TINY).'</a>'; Display::return_icon('up.png', get_lang('Up'), '', ICON_SIZE_TINY).'</a>';
} else { } else {
$toolbarThematic .= '<div class="btn btn-default">'. $toolbarThematic .= '<div class="btn btn--plain">'.
Display::return_icon('up_na.png', '&nbsp;', '', ICON_SIZE_TINY).'</div>'; Display::return_icon('up_na.png', '&nbsp;', '', ICON_SIZE_TINY).'</div>';
} }
//$thematic->getDisplayOrder() //$thematic->getDisplayOrder()
if ($thematic->getDisplayOrder() < $max_thematic_item) { if ($thematic->getDisplayOrder() < $max_thematic_item) {
$toolbarThematic .= ' <a $toolbarThematic .= ' <a
class="btn btn-default" class="btn btn--plain"
href="'.api_get_self().'?action=movedown&a'.api_get_cidreq().'&thematic_id='.$id.$params.$url_token.'">'. href="'.api_get_self().'?action=movedown&a'.api_get_cidreq().'&thematic_id='.$id.$params.$url_token.'">'.
Display::return_icon('down.png', get_lang('down'), '', ICON_SIZE_TINY).'</a>'; Display::return_icon('down.png', get_lang('down'), '', ICON_SIZE_TINY).'</a>';
} else { } else {
$toolbarThematic .= '<div class="btn btn-default">'. $toolbarThematic .= '<div class="btn btn--plain">'.
Display::return_icon('down_na.png', '&nbsp;', '', ICON_SIZE_TINY).'</div>'; Display::return_icon('down_na.png', '&nbsp;', '', ICON_SIZE_TINY).'</div>';
} }
} }
@ -643,7 +643,7 @@ switch ($action) {
'thematic_id' => $id, 'thematic_id' => $id,
] ]
), ),
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
/*$toolbarThematic .= Display::url( /*$toolbarThematic .= Display::url(
Display::return_icon( Display::return_icon(
@ -655,14 +655,14 @@ switch ($action) {
api_get_self().'?'.api_get_cidreq().$url_token.'&'.http_build_query( api_get_self().'?'.api_get_cidreq().$url_token.'&'.http_build_query(
['action' => 'export_single_documents', 'thematic_id' => $id] ['action' => 'export_single_documents', 'thematic_id' => $id]
), ),
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
);*/ );*/
$toolbarThematic .= '<a $toolbarThematic .= '<a
class="btn btn-default" class="btn btn--plain"
href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id='.$id.$params.$url_token.'">' href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id='.$id.$params.$url_token.'">'
.Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_TINY).'</a>'; .Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_TINY).'</a>';
$toolbarThematic .= '<a $toolbarThematic .= '<a
class="btn btn-default" class="btn btn--plain"
onclick="javascript:if(!confirm(\'' onclick="javascript:if(!confirm(\''
.get_lang('Are you sure you want to delete') .get_lang('Are you sure you want to delete')
.'\')) return false;" href="index.php?'.api_get_cidreq().'&action=thematic_delete&thematic_id=' .'\')) return false;" href="index.php?'.api_get_cidreq().'&action=thematic_delete&thematic_id='

@ -136,7 +136,7 @@ function display_form()
$html .= Display::panel($options, get_lang('Type of copy')); $html .= Display::panel($options, get_lang('Type of copy'));
$html .= '<div class="form-group"><div class="col-sm-12">'; $html .= '<div class="form-group"><div class="col-sm-12">';
$html .= '<button class="btn btn-success" type="submit" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('Please confirm your choice'), ENT_QUOTES))."'".')) return false;"><em class="fa fa-files-o"></em> '.get_lang('Copy course').'</button>'; $html .= '<button class="btn btn--success" type="submit" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('Please confirm your choice'), ENT_QUOTES))."'".')) return false;"><em class="fa fa-files-o"></em> '.get_lang('Copy course').'</button>';
// Add Security token // Add Security token
$html .= '<input type="hidden" value="'.Security::get_token().'" name="sec_token">'; $html .= '<input type="hidden" value="'.Security::get_token().'" name="sec_token">';

@ -61,7 +61,7 @@ if (Security::check_token('post') &&
echo Display::url( echo Display::url(
get_lang('Download'), get_lang('Download'),
api_get_path(WEB_CODE_PATH).'course_info/download.php?archive='.$zipFile.'&'.api_get_cidreq(), api_get_path(WEB_CODE_PATH).'course_info/download.php?archive='.$zipFile.'&'.api_get_cidreq(),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
} elseif (Security::check_token('post') && 'select_items' === $backupOption) { } elseif (Security::check_token('post') && 'select_items' === $backupOption) {
// Clear token // Clear token

@ -83,13 +83,13 @@ if (Security::check_token('post') && ('course_select_form' === $action || 'full_
$cr->set_file_option($_POST['same_file_name_option']); $cr->set_file_option($_POST['same_file_name_option']);
$cr->restore(); $cr->restore();
echo Display::return_message(get_lang('Import finished')); echo Display::return_message(get_lang('Import finished'));
echo '<a class="btn btn-default" href="'.api_get_course_url(api_get_course_id()).'">'. echo '<a class="btn btn--plain" href="'.api_get_course_url(api_get_course_id()).'">'.
get_lang('Course home').'</a>'; get_lang('Course home').'</a>';
} else { } else {
if (!$error) { if (!$error) {
echo Display::return_message(get_lang('There are no resources in backup file'), 'warning'); echo Display::return_message(get_lang('There are no resources in backup file'), 'warning');
echo '<a echo '<a
class="btn btn-default" class="btn btn--plain"
href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} elseif (false === $filename) { } elseif (false === $filename) {
echo Display::return_message( echo Display::return_message(
@ -99,15 +99,15 @@ if (Security::check_token('post') && ('course_select_form' === $action || 'full_
'error' 'error'
); );
echo '<a echo '<a
class="btn btn-default" class="btn btn--plain"
href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} else { } else {
if ('' == $filename) { if ('' == $filename) {
echo Display::return_message(get_lang('Select a backup file'), 'error'); echo Display::return_message(get_lang('Select a backup file'), 'error');
echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; echo '<a class="btn btn--plain" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} else { } else {
echo Display::return_message(get_lang('Upload failed, please check maximum file size limits and folder rights.'), 'error'); echo Display::return_message(get_lang('Upload failed, please check maximum file size limits and folder rights.'), 'error');
echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; echo '<a class="btn btn--plain" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} }
} }
} }
@ -133,10 +133,10 @@ if (Security::check_token('post') && ('course_select_form' === $action || 'full_
CourseSelectForm::display_form($course, $hiddenFields); CourseSelectForm::display_form($course, $hiddenFields);
} elseif (false === $filename) { } elseif (false === $filename) {
echo Display::return_message(get_lang('The app/cache/ directory, used by this tool, is not writeable. Please contact your platform administrator.'), 'error'); echo Display::return_message(get_lang('The app/cache/ directory, used by this tool, is not writeable. Please contact your platform administrator.'), 'error');
echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; echo '<a class="btn btn--plain" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} else { } else {
echo Display::return_message(get_lang('There are no resources in backup file'), 'warning'); echo Display::return_message(get_lang('There are no resources in backup file'), 'warning');
echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>'; echo '<a class="btn btn--plain" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('Try again').'</a>';
} }
} else { } else {
$user = api_get_user_info(); $user = api_get_user_info();

@ -74,7 +74,7 @@ if (Security::check_token('post') && (
echo Display::return_message(get_lang('RecycleFinished'), 'confirm'); echo Display::return_message(get_lang('RecycleFinished'), 'confirm');
} else { } else {
$messageFailCourseCode = '<p>'.get_lang('CourseRegistrationCodeIncorrect').'</p>'; $messageFailCourseCode = '<p>'.get_lang('CourseRegistrationCodeIncorrect').'</p>';
$messageFailCourseCode .= '<p><a class="btn btn-primary" href="'.api_get_self().'?'.api_get_cidreq().'">'. $messageFailCourseCode .= '<p><a class="btn btn--primary" href="'.api_get_self().'?'.api_get_cidreq().'">'.
get_lang('BackToPreviousPage'). get_lang('BackToPreviousPage').
'</a></p>'; '</a></p>';
echo Display::return_message($messageFailCourseCode, 'error', false); echo Display::return_message($messageFailCourseCode, 'error', false);

@ -410,7 +410,7 @@ if ($form->validate()) {
Display::url( Display::url(
get_lang('Back to courses list'), get_lang('Back to courses list'),
api_get_path(WEB_PATH).'user_portal.php', api_get_path(WEB_PATH).'user_portal.php',
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
), ),
['style' => 'float: left; margin:0px; padding: 0px;'] ['style' => 'float: left; margin:0px; padding: 0px;']
); );

@ -22,7 +22,7 @@ class Block
public function getDeleteLink(): string public function getDeleteLink(): string
{ {
global $charset; global $charset;
$closeLink = '<a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes( $closeLink = '<a class="btn btn--danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(
api_htmlentities( api_htmlentities(
get_lang('Please confirm your choice'), get_lang('Please confirm your choice'),
ENT_QUOTES ENT_QUOTES

@ -1189,8 +1189,8 @@ function feedback_form($url)
$return .= '<textarea name="feedback" class="form-control" rows="4"></textarea>'; $return .= '<textarea name="feedback" class="form-control" rows="4"></textarea>';
$return .= '</div>'; $return .= '</div>';
$return .= '<div class="col-sm-3">'; $return .= '<div class="col-sm-3">';
$return .= '<div class="pull-right"><a class="btn btn-default btn-sm" href="'.$url.'"><i class="fa fa-times" aria-hidden="true"></i></a></div>'; $return .= '<div class="pull-right"><a class="btn btn--plain btn-sm" href="'.$url.'"><i class="fa fa-times" aria-hidden="true"></i></a></div>';
$return .= '<button type="submit" class="btn btn-primary btn-sm" name="store_feedback" value="'.get_lang('Validate').'" $return .= '<button type="submit" class="btn btn--primary btn-sm" name="store_feedback" value="'.get_lang('Validate').'"
onclick="javascript: document.form_dropbox.attributes.action.value = document.location;">'.get_lang('Add/Edit a comment to').'</button>'; onclick="javascript: document.form_dropbox.attributes.action.value = document.location;">'.get_lang('Add/Edit a comment to').'</button>';
$return .= '</div>'; $return .= '</div>';
$return .= '</div>'; $return .= '</div>';

@ -642,7 +642,7 @@ if ('add' != $action) {
$action_icons .= "<tr><td colspan=\"9\">"; $action_icons .= "<tr><td colspan=\"9\">";
$url = api_get_path(WEB_CODE_PATH)."dropbox/index.php?".api_get_cidreq()."&view_received_category=".$viewReceivedCategory."&view_sent_category=".$viewSentCategory."&view=".$view.'&'.$sort_params; $url = api_get_path(WEB_CODE_PATH)."dropbox/index.php?".api_get_cidreq()."&view_received_category=".$viewReceivedCategory."&view_sent_category=".$viewSentCategory."&view=".$view.'&'.$sort_params;
$action_icons .= feedback($dropbox_file->feedback2, $url); $action_icons .= feedback($dropbox_file->feedback2, $url);
//$action_icons .= "<a class=\"btn btn-default\" href=\""><i class=\"fa fa-times\" aria-hidden=\"true\"></i></a>"; //$action_icons .= "<a class=\"btn btn--plain\" href=\""><i class=\"fa fa-times\" aria-hidden=\"true\"></i></a>";
$action_icons .= "</tr>"; $action_icons .= "</tr>";
} }
$dropbox_file_data[] = $action_icons; $dropbox_file_data[] = $action_icons;

@ -48,7 +48,7 @@ if (Database::num_rows($result)) {
Display::url( Display::url(
get_lang('Recover'), get_lang('Recover'),
api_get_self().'?recover_id='.$file['id'], api_get_self().'?recover_id='.$file['id'],
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
), ),
]; ];
} }

@ -213,9 +213,9 @@ class MultipleAnswerTrueFalseDegreeCertainty extends Question
if (true === $objEx->edit_exercise_in_lp || if (true === $objEx->edit_exercise_in_lp ||
(empty($this->exerciseList) && empty($objEx->id)) (empty($this->exerciseList) && empty($objEx->id))
) { ) {
$form->addElement('submit', 'lessAnswers', get_lang('Remove answer option'), 'class="btn btn-danger minus"'); $form->addElement('submit', 'lessAnswers', get_lang('Remove answer option'), 'class="btn btn--danger minus"');
$form->addElement('submit', 'moreAnswers', get_lang('Add answer option'), 'class="btn btn-primary plus"'); $form->addElement('submit', 'moreAnswers', get_lang('Add answer option'), 'class="btn btn--primary plus"');
$form->addElement('submit', 'submitQuestion', $text, 'class = "btn btn-primary"'); $form->addElement('submit', 'submitQuestion', $text, 'class = "btn btn--primary"');
} }
$renderer->setElementTemplate('{element}&nbsp;', 'lessAnswers'); $renderer->setElementTemplate('{element}&nbsp;', 'lessAnswers');
$renderer->setElementTemplate('{element}&nbsp;', 'submitQuestion'); $renderer->setElementTemplate('{element}&nbsp;', 'submitQuestion');

@ -247,7 +247,7 @@ class UniqueAnswerImage extends UniqueAnswer
'<br><div class="form-group "> '<br><div class="form-group ">
<label for="question_admin_form_btn_add_img['.$i.']" class="col-sm-2 control-label"></label> <label for="question_admin_form_btn_add_img['.$i.']" class="col-sm-2 control-label"></label>
<div class="col-sm-8"> <div class="col-sm-8">
<button class="add_img_link btn btn-info btn-sm" <button class="add_img_link btn btn--info btn-sm"
name="btn_add_img['.$i.']" name="btn_add_img['.$i.']"
type="submit" type="submit"
id="question_admin_form_btn_add_img['.$i.']"> id="question_admin_form_btn_add_img['.$i.']">

@ -147,7 +147,7 @@ class CalculatedAnswer extends Question
get_lang('Formula notation'), get_lang('Formula notation'),
api_get_path(WEB_CODE_PATH).'exercise/evalmathnotation.php', api_get_path(WEB_CODE_PATH).'exercise/evalmathnotation.php',
[ [
'class' => 'btn btn-info ajax', 'class' => 'btn btn--info ajax',
'data-title' => get_lang('Formula notation'), 'data-title' => get_lang('Formula notation'),
'_target' => '_blank', '_target' => '_blank',
] ]

@ -3161,7 +3161,7 @@ class Exercise
); );
$params = [ $params = [
'class' => 'ajax btn btn-default no-close-button', 'class' => 'ajax btn btn--plain no-close-button',
'data-title' => Security::remove_XSS(get_lang('Comment')), 'data-title' => Security::remove_XSS(get_lang('Comment')),
'data-size' => 'md', 'data-size' => 'md',
'id' => "button_$question_id", 'id' => "button_$question_id",
@ -3197,15 +3197,15 @@ class Exercise
if (ALL_ON_ONE_PAGE == $this->type || $nbrQuestions == $questionNum || $endReminderValue) { if (ALL_ON_ONE_PAGE == $this->type || $nbrQuestions == $questionNum || $endReminderValue) {
if ($this->review_answers) { if ($this->review_answers) {
$label = get_lang('ReviewQuestions'); $label = get_lang('ReviewQuestions');
$class = 'btn btn-success'; $class = 'btn btn--success';
} else { } else {
$endTest = true; $endTest = true;
$label = get_lang('End Test'); $label = get_lang('End Test');
$class = 'btn btn-warning'; $class = 'btn btn--warning';
} }
} else { } else {
$label = get_lang('Next question'); $label = get_lang('Next question');
$class = 'btn btn-primary'; $class = 'btn btn--primary';
} }
// used to select it with jquery // used to select it with jquery
$class .= ' question-validate-btn'; $class .= ' question-validate-btn';
@ -3243,7 +3243,7 @@ class Exercise
get_lang('Previous question'), get_lang('Previous question'),
[ [
'type' => 'button', 'type' => 'button',
'class' => 'btn btn-default', 'class' => 'btn btn--plain',
'data-prev' => $prev_question, 'data-prev' => $prev_question,
'data-question' => $question_id, 'data-question' => $question_id,
] ]
@ -3283,10 +3283,10 @@ class Exercise
if ($this->review_answers) { if ($this->review_answers) {
$all_label = get_lang('Review selected questions'); $all_label = get_lang('Review selected questions');
$class = 'btn btn-success'; $class = 'btn btn--success';
} else { } else {
$all_label = get_lang('End test'); $all_label = get_lang('End test');
$class = 'btn btn-warning'; $class = 'btn btn--warning';
} }
// used to select it with jquery // used to select it with jquery
$class .= ' question-validate-btn'; $class .= ' question-validate-btn';
@ -7772,7 +7772,7 @@ class Exercise
Display::button( Display::button(
'save_now', 'save_now',
get_lang('Save and continue'), get_lang('Save and continue'),
['type' => 'button', 'class' => 'btn btn-primary', 'data-question' => $questionId] ['type' => 'button', 'class' => 'btn btn--primary', 'data-question' => $questionId]
), ),
'<span id="save_for_now_'.$questionId.'" class="exercise_save_mini_message"></span>', '<span id="save_for_now_'.$questionId.'" class="exercise_save_mini_message"></span>',
]; ];
@ -7792,7 +7792,7 @@ class Exercise
Display::button( Display::button(
'save_now', 'save_now',
get_lang('Save and continue'), get_lang('Save and continue'),
['type' => 'button', 'class' => 'btn btn-primary', 'data-question' => $questionId] ['type' => 'button', 'class' => 'btn btn--primary', 'data-question' => $questionId]
), ),
'<span id="save_for_now_'.$questionId.'" class="exercise_save_mini_message"></span>&nbsp;', '<span id="save_for_now_'.$questionId.'" class="exercise_save_mini_message"></span>&nbsp;',
]; ];

@ -171,24 +171,24 @@ if (!in_array($categoryId, $blockedCategories)) {
$exerciseActions = '&nbsp;'.Display::url( $exerciseActions = '&nbsp;'.Display::url(
get_lang('GoBack'), get_lang('GoBack'),
'javascript://', 'javascript://',
['onclick' => 'goBack();', 'class' => 'btn btn-default'] ['onclick' => 'goBack();', 'class' => 'btn btn--plain']
); );
} }
if ($objExercise->review_answers) { if ($objExercise->review_answers) {
$exerciseActions .= Display::url( $exerciseActions .= Display::url(
get_lang('ReviewQuestions'), get_lang('ReviewQuestions'),
'javascript://', 'javascript://',
['onclick' => 'reviewQuestions();', 'class' => 'btn btn-primary'] ['onclick' => 'reviewQuestions();', 'class' => 'btn btn--primary']
); );
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('SelectAll'), get_lang('SelectAll'),
'javascript://', 'javascript://',
['onclick' => 'selectAll();', 'class' => 'btn btn-default'] ['onclick' => 'selectAll();', 'class' => 'btn btn--plain']
); );
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('UnSelectAll'), get_lang('UnSelectAll'),
'javascript://', 'javascript://',
['onclick' => 'changeOptionStatus(0);', 'class' => 'btn btn-default'] ['onclick' => 'changeOptionStatus(0);', 'class' => 'btn btn--plain']
); );
} }
@ -199,13 +199,13 @@ if (key($categoryList) === $categoryId) {
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('EndTest'), get_lang('EndTest'),
'javascript://', 'javascript://',
['onclick' => 'final_submit();', 'class' => 'btn btn-warning'] ['onclick' => 'final_submit();', 'class' => 'btn btn--warning']
); );
} else { } else {
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('ContinueTest'), get_lang('ContinueTest'),
'javascript://', 'javascript://',
['onclick' => 'continueExercise();', 'class' => 'btn btn-primary'] ['onclick' => 'continueExercise();', 'class' => 'btn btn--primary']
); );
} }

@ -124,25 +124,25 @@ echo $objExercise->getReminderTable($question_list, $exercise_stat_info);
$exerciseActions = Display::url( $exerciseActions = Display::url(
get_lang('Review selected questions'), get_lang('Review selected questions'),
'javascript://', 'javascript://',
['onclick' => 'review_questions();', 'class' => 'btn btn-primary'] ['onclick' => 'review_questions();', 'class' => 'btn btn--primary']
); );
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('Select all'), get_lang('Select all'),
'javascript://', 'javascript://',
['onclick' => 'changeOptionStatus(1);', 'class' => 'btn btn-default'] ['onclick' => 'changeOptionStatus(1);', 'class' => 'btn btn--plain']
); );
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('UnSelect all'), get_lang('UnSelect all'),
'javascript://', 'javascript://',
['onclick' => 'changeOptionStatus(0);', 'class' => 'btn btn-default'] ['onclick' => 'changeOptionStatus(0);', 'class' => 'btn btn--plain']
); );
$exerciseActions .= '&nbsp;'.Display::url( $exerciseActions .= '&nbsp;'.Display::url(
get_lang('End test'), get_lang('End test'),
'javascript://', 'javascript://',
['onclick' => 'final_submit();', 'class' => 'btn btn-warning'] ['onclick' => 'final_submit();', 'class' => 'btn btn--warning']
); );
echo Display::div('', ['class' => 'clear']); echo Display::div('', ['class' => 'clear']);

@ -464,7 +464,7 @@ if ($is_allowedToEdit && 'learnpath' != $origin) {
['style' => 'display:none', 'id' => 'datepicker_span'] ['style' => 'display:none', 'id' => 'datepicker_span']
); );
} }
$actions .= '<a class="btn btn-default" href="question_stats.php?'.api_get_cidreq().'&id='.$exercise_id.'">'. $actions .= '<a class="btn btn--plain" href="question_stats.php?'.api_get_cidreq().'&id='.$exercise_id.'">'.
get_lang('QuestionStats').'</a>'; get_lang('QuestionStats').'</a>';
} }
} else { } else {

@ -268,7 +268,7 @@ if (!in_array($origin, ['learnpath', 'embeddable', 'mobileapp'])) {
$pageBottom .= Display::url( $pageBottom .= Display::url(
get_lang('Return to Course Homepage'), get_lang('Return to Course Homepage'),
api_get_course_url(), api_get_course_url(),
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
$pageBottom .= '</div>'; $pageBottom .= '</div>';

@ -618,7 +618,7 @@ foreach ($questionList as $questionId) {
$url_name, $url_name,
[ [
'type' => 'button', 'type' => 'button',
'class' => 'btn btn-default', 'class' => 'btn btn--plain',
'onclick' => "showfck('".$name."', '".$marksname."');", 'onclick' => "showfck('".$name."', '".$marksname."');",
] ]
); );

@ -1542,7 +1542,7 @@ if ($allowBlockCategory &&
$("#global-modal").modal("hide"); $("#global-modal").modal("hide");
$("#global-modal .modal-body").html(""); $("#global-modal .modal-body").html("");
} }
}).addClass("btn btn-default").appendTo("#global-modal .modal-body .btn-group"); }).addClass("btn btn--plain").appendTo("#global-modal .modal-body .btn-group");
$("<a>",{ $("<a>",{
text: "'.addslashes(get_lang('EndTest')).'", text: "'.addslashes(get_lang('EndTest')).'",
@ -1554,7 +1554,7 @@ if ($allowBlockCategory &&
save_now(questionId, urlExtra); save_now(questionId, urlExtra);
$("#global-modal .modal-body").html("<span style=\"text-align:center\">'.addslashes($loading).addslashes(get_lang('Loading')).'</span>"); $("#global-modal .modal-body").html("<span style=\"text-align:center\">'.addslashes($loading).addslashes(get_lang('Loading')).'</span>");
} }
}).addClass("btn btn-primary").appendTo("#global-modal .modal-body .btn-group"); }).addClass("btn btn--primary").appendTo("#global-modal .modal-body .btn-group");
}); });
$("#global-modal").modal("show"); $("#global-modal").modal("show");
return true; return true;
@ -1809,7 +1809,7 @@ if ($allowBlockCategory &&
get_lang('Save and continue'), get_lang('Save and continue'),
[ [
'type' => 'button', 'type' => 'button',
'class' => 'btn btn-info', 'class' => 'btn btn--info',
'data-question' => $questionId, 'data-question' => $questionId,
] ]
), ),

@ -103,7 +103,7 @@ class ScormExercise
{ {
$button = '<input $button = '<input
id="chamilo_scorm_submit" id="chamilo_scorm_submit"
class="btn btn-primary" class="btn btn--primary"
type="button" type="button"
name="chamilo_scorm_submit" name="chamilo_scorm_submit"
value="OK" />'; value="OK" />';

@ -136,8 +136,8 @@ class FillBlanks extends Question
fields += "<td>"+blanksWithColor+"</td>"; fields += "<td>"+blanksWithColor+"</td>";
fields += "<td><input class=\"form-control\" style=\"width:60px\" value=\""+value+"\" type=\"text\" id=\"weighting["+i+"]\" name=\"weighting["+i+"]\" /></td>"; fields += "<td><input class=\"form-control\" style=\"width:60px\" value=\""+value+"\" type=\"text\" id=\"weighting["+i+"]\" name=\"weighting["+i+"]\" /></td>";
fields += "<td>"; fields += "<td>";
fields += "<input class=\"btn btn-default\" type=\"button\" value=\"-\" onclick=\"changeInputSize(-1, "+i+")\">&nbsp;"; fields += "<input class=\"btn btn--plain\" type=\"button\" value=\"-\" onclick=\"changeInputSize(-1, "+i+")\">&nbsp;";
fields += "<input class=\"btn btn-default\" type=\"button\" value=\"+\" onclick=\"changeInputSize(1, "+i+")\">&nbsp;"; fields += "<input class=\"btn btn--plain\" type=\"button\" value=\"+\" onclick=\"changeInputSize(1, "+i+")\">&nbsp;";
fields += "&nbsp;&nbsp;<input class=\"sample\" id=\"samplesize["+i+"]\" data-btoa=\""+btoaValue+"\" type=\"text\" value=\""+textValue+"\" style=\"width:"+inputSize+"px\" disabled=disabled />"; fields += "&nbsp;&nbsp;<input class=\"sample\" id=\"samplesize["+i+"]\" data-btoa=\""+btoaValue+"\" type=\"text\" value=\""+textValue+"\" style=\"width:"+inputSize+"px\" disabled=disabled />";
fields += "<input id=\"sizeofinput["+i+"]\" type=\"hidden\" value=\""+inputSize+"\" name=\"sizeofinput["+i+"]\" />"; fields += "<input id=\"sizeofinput["+i+"]\" type=\"hidden\" value=\""+inputSize+"\" name=\"sizeofinput["+i+"]\" />";
fields += "</td>"; fields += "</td>";
@ -352,7 +352,7 @@ class FillBlanks extends Question
); );
$form->addLabel( $form->addLabel(
null, null,
'<input type="button" onclick="updateBlanks()" value="'.get_lang('Refresh terms').'" class="btn btn-default" />' '<input type="button" onclick="updateBlanks()" value="'.get_lang('Refresh terms').'" class="btn btn--plain" />'
); );
$form->addHtml('<div id="blanks_weighting"></div>'); $form->addHtml('<div id="blanks_weighting"></div>');

@ -578,24 +578,24 @@ if (isset($modifyAnswers)) {
<div class="col-sm-12"> <div class="col-sm-12">
<?php if (HOT_SPOT_DELINEATION == $answerType) { <?php if (HOT_SPOT_DELINEATION == $answerType) {
?> ?>
<button type="submit" class="btn btn-danger" name="lessAnswers" value="lessAnswers"> <button type="submit" class="btn btn--danger" name="lessAnswers" value="lessAnswers">
<em class="fa fa-trash"></em> <?php echo get_lang('Less areas at risk'); ?> <em class="fa fa-trash"></em> <?php echo get_lang('Less areas at risk'); ?>
</button> </button>
<button type="submit" class="btn btn-primary" name="moreArea to avoidAnswers" value="moreArea to avoidAnswers"> <button type="submit" class="btn btn--primary" name="moreArea to avoidAnswers" value="moreArea to avoidAnswers">
<em class="fa fa-plus"></em> <?php echo get_lang('More areas at risk'); ?> <em class="fa fa-plus"></em> <?php echo get_lang('More areas at risk'); ?>
</button> </button>
<?php <?php
} else { } else {
?> ?>
<button type="submit" class="btn btn-danger" name="lessAnswers" value="lessAnswers"> <button type="submit" class="btn btn--danger" name="lessAnswers" value="lessAnswers">
<em class="fa fa-trash"></em> <?php echo get_lang('Remove hotspot'); ?> <em class="fa fa-trash"></em> <?php echo get_lang('Remove hotspot'); ?>
</button> </button>
<button type="submit" class="btn btn-primary" name="moreAnswers" value="moreAnswers"> <button type="submit" class="btn btn--primary" name="moreAnswers" value="moreAnswers">
<em class="fa fa-plus"></em> <?php echo get_lang('Add hotspot'); ?> <em class="fa fa-plus"></em> <?php echo get_lang('Add hotspot'); ?>
</button> </button>
<?php <?php
} ?> } ?>
<button type="submit" class="btn btn-primary" name="submitAnswers" value="submitAnswers"> <button type="submit" class="btn btn--primary" name="submitAnswers" value="submitAnswers">
<em class="fa fa-save"></em> <?php echo get_lang('Add this question to the test'); ?> <em class="fa fa-save"></em> <?php echo get_lang('Add this question to the test'); ?>
</button> </button>
</div> </div>

@ -156,7 +156,7 @@ $exercise_url = api_get_path(WEB_CODE_PATH).'exercise/exercise_submit.php?'.
$exercise_url_button = Display::url( $exercise_url_button = Display::url(
$label, $label,
$exercise_url, $exercise_url,
['class' => 'btn btn-success btn-large'] ['class' => 'btn btn--success btn-large']
); );
$btnCheck = ''; $btnCheck = '';
@ -169,7 +169,7 @@ if ($quizCheckButtonEnabled) {
'type' => 'button', 'type' => 'button',
'role' => 'button', 'role' => 'button',
'id' => 'quiz-check-request-button', 'id' => 'quiz-check-request-button',
'class' => 'btn btn-default', 'class' => 'btn btn--plain',
'data-loading-text' => get_lang('Loading'), 'data-loading-text' => get_lang('Loading'),
'autocomplete' => 'off', 'autocomplete' => 'off',
] ]
@ -256,7 +256,7 @@ if (!empty($attempts)) {
get_lang('Show'), get_lang('Show'),
$attempt_url, $attempt_url,
[ [
'class' => $btn_class.'btn btn-default', 'class' => $btn_class.'btn btn--plain',
'data-title' => get_lang('Show'), 'data-title' => get_lang('Show'),
'data-size' => 'lg', 'data-size' => 'lg',
] ]
@ -509,7 +509,7 @@ if ($quizCheckButtonEnabled) {
btnTest.on('click', function (e) { btnTest.on('click', function (e) {
e.preventDefault(); e.preventDefault();
btnTest.prop('disabled', true).removeClass('btn-success btn-danger').addClass('btn-default'); btnTest.prop('disabled', true).removeClass('btn--success btn--danger').addClass('btn--plain');
iconBtnTest.removeClass('hidden'); iconBtnTest.removeClass('hidden');
var txtResult = $('#quiz-check-request-text').removeClass('text-success text-danger').hide(); var txtResult = $('#quiz-check-request-text').removeClass('text-success text-danger').hide();
@ -533,16 +533,16 @@ if ($quizCheckButtonEnabled) {
var xhr2IsOk = !!xhr2 && xhr2[1] === 'success' && !!xhr2[0] && 'ok' === xhr2[0]; var xhr2IsOk = !!xhr2 && xhr2[1] === 'success' && !!xhr2[0] && 'ok' === xhr2[0];
if (xhr1IsOk && xhr2IsOk) { if (xhr1IsOk && xhr2IsOk) {
btnTest.removeClass('btn-default btn-danger').addClass('btn-success'); btnTest.removeClass('btn--plain btn--danger').addClass('btn--success');
txtResult.text(\"".get_lang('QuizBrowserCheckOK')."\").addClass('text-success').show(); txtResult.text(\"".get_lang('QuizBrowserCheckOK')."\").addClass('text-success').show();
} else { } else {
btnTest.removeClass('btn-default btn-success').addClass('btn-danger'); btnTest.removeClass('btn--plain btn--success').addClass('btn--danger');
txtResult.text(\"".get_lang('QuizBrowserCheckKO')."\").addClass('text-danger').show(); txtResult.text(\"".get_lang('QuizBrowserCheckKO')."\").addClass('text-danger').show();
} }
}, },
function () { function () {
txtResult.text(\"".get_lang('QuizBrowserCheckKO')."\").addClass('text-danger').show(); txtResult.text(\"".get_lang('QuizBrowserCheckKO')."\").addClass('text-danger').show();
btnTest.removeClass('btn-default btn-success').addClass('btn-danger'); btnTest.removeClass('btn--plain btn--success').addClass('btn--danger');
} }
) )
.always(function () { .always(function () {

@ -22,7 +22,7 @@ if (is_object($objQuestion)) {
// FORM CREATION // FORM CREATION
$form = new FormValidator('question_admin_form', 'post', $action); $form = new FormValidator('question_admin_form', 'post', $action);
$class = 'btn btn-default'; $class = 'btn btn--plain';
if (isset($_GET['editQuestion'])) { if (isset($_GET['editQuestion'])) {
$text = get_lang('Save the question'); $text = get_lang('Save the question');
$type = isset($_GET['type']) ? Security::remove_XSS($_GET['type']) : null; $type = isset($_GET['type']) ? Security::remove_XSS($_GET['type']) : null;

@ -200,7 +200,7 @@ if (!$inATest) {
ICON_SIZE_TINY ICON_SIZE_TINY
), ),
api_get_self().'?'.api_get_cidreq().'&clone_question='.$id.'&page='.$page, api_get_self().'?'.api_get_cidreq().'&clone_question='.$id.'&page='.$page,
['class' => 'btn btn-default btn-sm'] ['class' => 'btn btn--plain btn-sm']
); );
$edit_link = CALCULATED_ANSWER == $objQuestionTmp->selectType() && $objQuestionTmp->isAnswered() $edit_link = CALCULATED_ANSWER == $objQuestionTmp->selectType() && $objQuestionTmp->isAnswered()
@ -211,7 +211,7 @@ if (!$inATest) {
[], [],
ICON_SIZE_TINY ICON_SIZE_TINY
), ),
['class' => 'btn btn-default btn-sm'] ['class' => 'btn btn--plain btn-sm']
) )
: Display::url( : Display::url(
Display::return_icon( Display::return_icon(
@ -226,7 +226,7 @@ if (!$inATest) {
'editQuestion' => $id, 'editQuestion' => $id,
'page' => $page, 'page' => $page,
]), ]),
['class' => 'btn btn-default btn-sm'] ['class' => 'btn btn--plain btn-sm']
); );
$delete_link = null; $delete_link = null;
if (true == $objExercise->edit_exercise_in_lp) { if (true == $objExercise->edit_exercise_in_lp) {
@ -245,7 +245,7 @@ if (!$inATest) {
]), ]),
[ [
'id' => "delete_$id", 'id' => "delete_$id",
'class' => 'delete-swal btn btn-default btn-sm', 'class' => 'delete-swal btn btn--plain btn-sm',
'data-title' => get_lang('Are you sure you want to delete'), 'data-title' => get_lang('Are you sure you want to delete'),
'title' => get_lang('Delete'), 'title' => get_lang('Delete'),
] ]

@ -1086,19 +1086,19 @@ echo '</form>';
$html = '<div class="btn-toolbar">'; $html = '<div class="btn-toolbar">';
$html .= '<div class="btn-group">'; $html .= '<div class="btn-group">';
$html .= '<a $html .= '<a
class="btn btn-default" class="btn btn--plain"
href="?'.$url.'selectall=1" href="?'.$url.'selectall=1"
onclick="javascript: setCheckbox(true, \''.$tableId.'\'); return false;"> onclick="javascript: setCheckbox(true, \''.$tableId.'\'); return false;">
'.get_lang('Select all').'</a>'; '.get_lang('Select all').'</a>';
$html .= '<a $html .= '<a
class="btn btn-default" class="btn btn--plain"
href="?'.$url.'" href="?'.$url.'"
onclick="javascript: setCheckbox(false, \''.$tableId.'\'); return false;"> onclick="javascript: setCheckbox(false, \''.$tableId.'\'); return false;">
'.get_lang('Unselect all').'</a> '; '.get_lang('Unselect all').'</a> ';
$html .= '</div>'; $html .= '</div>';
$html .= '<div class="btn-group"> $html .= '<div class="btn-group">
<button class="btn btn-default" onclick="javascript:return false;">'.get_lang('Actions').'</button> <button class="btn btn--plain" onclick="javascript:return false;">'.get_lang('Actions').'</button>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <button class="btn btn--plain dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu">'; <ul class="dropdown-menu">';

@ -152,7 +152,7 @@ $pageBottom .= Display::url(
get_lang('Back to the attempt list'), get_lang('Back to the attempt list'),
api_get_path(WEB_CODE_PATH).'exercise/overview.php?exerciseId='.$exercise_id.'&'.api_get_cidreq(). api_get_path(WEB_CODE_PATH).'exercise/overview.php?exerciseId='.$exercise_id.'&'.api_get_cidreq().
"&learnpath_id=$lpId&learnpath_item_id=$lpItemId&learnpath_item_view_id=$lpViewId", "&learnpath_id=$lpId&learnpath_item_id=$lpItemId&learnpath_item_view_id=$lpViewId",
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
$pageBottom .= '</div>'; $pageBottom .= '</div>';
$pageContent .= $pageBottom; $pageContent .= $pageBottom;

@ -5352,9 +5352,9 @@ function getAskRevisionButton(CForumPost $post, CForumThread $threadInfo): strin
$postId = $post->getIid(); $postId = $post->getIid();
$status = 'btn-default'; $status = 'btn--plain';
if (postNeedsRevision($post)) { if (postNeedsRevision($post)) {
$status = 'btn-success'; $status = 'btn--success';
} }
return Display::url( return Display::url(
@ -5397,7 +5397,7 @@ function getReportButton(int $postId, CForumThread $threadInfo): string
api_get_path(WEB_CODE_PATH).'forum/viewthread.php?'. api_get_path(WEB_CODE_PATH).'forum/viewthread.php?'.
api_get_cidreq().'&action=report&post_id='.$postId. api_get_cidreq().'&action=report&post_id='.$postId.
'&forum='.$threadInfo->getForum()->getIid().'&thread='.$threadInfo->getIid(), '&forum='.$threadInfo->getForum()->getIid().'&thread='.$threadInfo->getIid(),
['class' => 'btn btn-danger', 'title' => get_lang('Report')] ['class' => 'btn btn--danger', 'title' => get_lang('Report')]
); );
} }

@ -361,13 +361,13 @@ if (api_is_allowed_to_edit() && $counter > 0) {
echo '<h4>'.get_lang('ScoreChangesHistory').'</h4>'; echo '<h4>'.get_lang('ScoreChangesHistory').'</h4>';
if (isset($_GET['type']) && 'false' === $_GET['type']) { if (isset($_GET['type']) && 'false' === $_GET['type']) {
$buttons = '<a $buttons = '<a
class="btn btn-default" class="btn btn--plain"
href="forumqualify.php?'.api_get_cidreq().'&forum='.$forumId.'&origin='.$origin.'&thread='.$threadId.'&user='.(int) ($_GET['user']).'&user_id='.(int) ($_GET['user_id']).'&type=true&idtextqualify='.$score.'#history">'. href="forumqualify.php?'.api_get_cidreq().'&forum='.$forumId.'&origin='.$origin.'&thread='.$threadId.'&user='.(int) ($_GET['user']).'&user_id='.(int) ($_GET['user_id']).'&type=true&idtextqualify='.$score.'#history">'.
get_lang('more recent').'</a> <a class="btn btn-default disabled" >'.get_lang('older').'</a>'; get_lang('more recent').'</a> <a class="btn btn--plain disabled" >'.get_lang('older').'</a>';
} else { } else {
$buttons = '<a class="btn btn-default">'.get_lang('more recent').'</a> $buttons = '<a class="btn btn--plain">'.get_lang('more recent').'</a>
<a <a
class="btn btn-default" class="btn btn--plain"
href="forumqualify.php?'.api_get_cidreq().'&forum='.$forumId.'&origin='.$origin.'&thread='.$threadId.'&user='.(int) ($_GET['user']).'&user_id='.(int) ($_GET['user_id']).'&type=false&idtextqualify='.$score.'#history">'. href="forumqualify.php?'.api_get_cidreq().'&forum='.$forumId.'&origin='.$origin.'&thread='.$threadId.'&user='.(int) ($_GET['user']).'&user_id='.(int) ($_GET['user_id']).'&type=false&idtextqualify='.$score.'#history">'.
get_lang('older').'</a>'; get_lang('older').'</a>';
} }

@ -330,7 +330,7 @@ if (0 == count($certificate_list)) {
$certificateUrl = Display::url( $certificateUrl = Display::url(
get_lang('Certificate'), get_lang('Certificate'),
$url, $url,
['target' => '_blank', 'class' => 'btn btn-default'] ['target' => '_blank', 'class' => 'btn btn--plain']
); );
echo $certificateUrl.PHP_EOL; echo $certificateUrl.PHP_EOL;

@ -206,7 +206,7 @@ echo Display::page_header(get_lang('Students list report'));
echo '<div class="btn-group">'; echo '<div class="btn-group">';
if (count($userList) > 0) { if (count($userList) > 0) {
$url = api_get_self().'?action=export_all&'.api_get_cidreq().'&selectcat='.$cat_id; $url = api_get_self().'?action=export_all&'.api_get_cidreq().'&selectcat='.$cat_id;
echo Display::url(get_lang('Export all to PDF'), $url, ['class' => 'btn btn-default']); echo Display::url(get_lang('Export all to PDF'), $url, ['class' => 'btn btn--plain']);
} }
echo '</div>'; echo '</div>';
@ -236,7 +236,7 @@ if (0 == count($userList)) {
$link = Display::url( $link = Display::url(
get_lang('Skills'), get_lang('Skills'),
$url, $url,
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
).'&nbsp;'; ).'&nbsp;';
} }
@ -244,14 +244,14 @@ if (0 == count($userList)) {
$link .= Display::url( $link .= Display::url(
get_lang('Export to PDF'), get_lang('Export to PDF'),
$url, $url,
['target' => '_blank', 'class' => 'btn btn-default'] ['target' => '_blank', 'class' => 'btn btn--plain']
); );
if ($allowComments) { if ($allowComments) {
$url = api_get_self().'?'.api_get_cidreq().'&action=add_comment&user_id='.$value['user_id'].'&gradebook_id='.$cat_id; $url = api_get_self().'?'.api_get_cidreq().'&action=add_comment&user_id='.$value['user_id'].'&gradebook_id='.$cat_id;
$link .= '&nbsp;'.Display::url( $link .= '&nbsp;'.Display::url(
get_lang('AddGradebookComment'), get_lang('AddGradebookComment'),
$url, $url,
['target' => '_blank', 'class' => 'ajax btn btn-default'] ['target' => '_blank', 'class' => 'ajax btn btn--plain']
); );
} }
echo $link; echo $link;

@ -311,7 +311,7 @@ echo Display::return_message($warning_message, 'warning', false);
</table> </table>
<input type="hidden" name="submitted" value="1"/> <input type="hidden" name="submitted" value="1"/>
<br/> <br/>
<button class="btn btn-primary" type="submit" name="name" <button class="btn btn--primary" type="submit" name="name"
value="<?php echo get_lang('Save'); ?>"> value="<?php echo get_lang('Save'); ?>">
<?php echo get_lang('Save weights in report'); ?> <?php echo get_lang('Save weights in report'); ?>
</button> </button>

@ -819,7 +819,7 @@ if (!empty($selectCat)) {
$actionsLeft .= Display::url( $actionsLeft .= Display::url(
Display::getMdiIcon('file-pdf-box').get_lang('Download certificate in PDF'), Display::getMdiIcon('file-pdf-box').get_lang('Download certificate in PDF'),
$certificate['pdf_url'], $certificate['pdf_url'],
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
} }
@ -836,7 +836,7 @@ if (!api_is_allowed_to_edit(null, true)) {
$actionsLeft .= Display::url( $actionsLeft .= Display::url(
Display::getMdiIcon('file-pdf-box').get_lang('Download report in PDF'), Display::getMdiIcon('file-pdf-box').get_lang('Download report in PDF'),
api_get_self().'?action=export_table&'.api_get_cidreq().'&category_id='.$selectCat, api_get_self().'?action=export_table&'.api_get_cidreq().'&category_id='.$selectCat,
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
} }
} }

@ -463,7 +463,7 @@ class DisplayGradebook
$actionsLeft .= Display::url( $actionsLeft .= Display::url(
get_lang('Generate custom report'), get_lang('Generate custom report'),
api_get_path(WEB_AJAX_PATH)."gradebook.ajax.php?$my_api_cidreq&a=generate_custom_report", api_get_path(WEB_AJAX_PATH)."gradebook.ajax.php?$my_api_cidreq&a=generate_custom_report",
['class' => 'btn btn-default ajax'] ['class' => 'btn btn--plain ajax']
); );
} }

@ -86,7 +86,7 @@ $confirmationMessage = addslashes(api_htmlentities(get_lang('Please confirm your
$subscribe_group = ''; $subscribe_group = '';
if (GroupManager::is_self_registration_allowed($user_id, $groupEntity)) { if (GroupManager::is_self_registration_allowed($user_id, $groupEntity)) {
$subscribe_group = '<a $subscribe_group = '<a
class="btn btn-default" class="btn btn--plain"
href="'.api_get_self().'?selfReg=1&group_id='.$group_id.'" href="'.api_get_self().'?selfReg=1&group_id='.$group_id.'"
onclick="javascript: if(!confirm('."'".$confirmationMessage."'".')) return false;">'. onclick="javascript: if(!confirm('."'".$confirmationMessage."'".')) return false;">'.
get_lang('Add me to this group'). get_lang('Add me to this group').
@ -97,7 +97,7 @@ if (GroupManager::is_self_registration_allowed($user_id, $groupEntity)) {
$unsubscribe_group = ''; $unsubscribe_group = '';
if (GroupManager::is_self_unregistration_allowed($user_id, $groupEntity)) { if (GroupManager::is_self_unregistration_allowed($user_id, $groupEntity)) {
$unsubscribe_group = '<a $unsubscribe_group = '<a
class="btn btn-default" href="'.api_get_self().'?selfUnReg=1" class="btn btn--plain" href="'.api_get_self().'?selfUnReg=1"
onclick="javascript: if(!confirm('."'".$confirmationMessage."'".')) return false;">'. onclick="javascript: if(!confirm('."'".$confirmationMessage."'".')) return false;">'.
get_lang('Unsubscribe me from this group.').'</a>'; get_lang('Unsubscribe me from this group.').'</a>';
} }

@ -12,7 +12,7 @@ if (empty($help_name)) {
} }
?> ?>
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php"> <a class="btn btn--plain" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
<?php echo get_lang('Access to the Frequently Asked Questions'); ?> <?php echo get_lang('Access to the Frequently Asked Questions'); ?>
</a> </a>
<div class="page-header"> <div class="page-header">
@ -20,6 +20,6 @@ if (empty($help_name)) {
</div> </div>
<?php echo get_lang($help_name.'Content'); ?> <?php echo get_lang($help_name.'Content'); ?>
<hr> <hr>
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php"> <a class="btn btn--plain" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
<?php echo get_lang('Access to the Frequently Asked Questions'); ?> <?php echo get_lang('Access to the Frequently Asked Questions'); ?>
</a> </a>

@ -113,7 +113,7 @@ function version_check()
get_lang('Hide campus from public platforms list'); get_lang('Hide campus from public platforms list');
$return .= '</label> $return .= '</label>
<button type="submit" <button type="submit"
class="btn btn-primary btn-block" class="btn btn--primary btn-block"
name="Register" name="Register"
value="'.get_lang('Enable version check').'" value="'.get_lang('Enable version check').'"
id="register" >'.get_lang('Enable version check').'</button>'; id="register" >'.get_lang('Enable version check').'</button>';

@ -188,7 +188,7 @@ switch ($action) {
$html .= '</li>'; $html .= '</li>';
} }
$html .= '</ul>'; $html .= '</ul>';
$html .= Display::url(get_lang('Save'), '#', ['id' => 'link_'.$variable, 'class' => 'btn btn-primary']); $html .= Display::url(get_lang('Save'), '#', ['id' => 'link_'.$variable, 'class' => 'btn btn--primary']);
echo $html; echo $html;
} }
break; break;

@ -55,7 +55,7 @@ switch ($action) {
<a href="profile.php?u='.$friend['friend_user_id'].'">'.$user_name.'</a> <a href="profile.php?u='.$friend['friend_user_id'].'">'.$user_name.'</a>
</h3> </h3>
<p> <p>
<button class="btn btn-danger" onclick="delete_friend(this)" id=img_'.$friend['friend_user_id'].'> <button class="btn btn--danger" onclick="delete_friend(this)" id=img_'.$friend['friend_user_id'].'>
'.get_lang('Delete').' '.get_lang('Delete').'
</button> </button>
</p> </p>

@ -118,7 +118,7 @@ switch ($action) {
echo ' echo '
<div class="row"> <div class="row">
<div class="col-sm-10 col-sm-offset-2"> <div class="col-sm-10 col-sm-offset-2">
<a class="btn btn-primary" id="send_message_link"> <a class="btn btn--primary" id="send_message_link">
<em class="fa fa-envelope"></em> '.get_lang('Send message').' <em class="fa fa-envelope"></em> '.get_lang('Send message').'
</a> </a>
</div> </div>

@ -567,7 +567,7 @@ class Compilatio
.Display::url( .Display::url(
get_lang('Analyse'), get_lang('Analyse'),
$urlRapport, $urlRapport,
['class' => 'btn btn-primary btn-xs', 'target' => '_blank'] ['class' => 'btn btn--primary btn-xs', 'target' => '_blank']
); );
break; break;
case 'ANALYSE_PROCESSING': case 'ANALYSE_PROCESSING':

@ -522,7 +522,7 @@ class CourseChatUtils
if ($isMaster || $GLOBALS['is_session_general_coach']) { if ($isMaster || $GLOBALS['is_session_general_coach']) {
$history .= ' $history .= '
<div id="clear-chat"> <div id="clear-chat">
<button type="button" id="chat-reset" class="btn btn-danger btn-sm"> <button type="button" id="chat-reset" class="btn btn--danger btn-sm">
'.get_lang('Clear the chat').' '.get_lang('Clear the chat').'
</button> </button>
</div> </div>

@ -1066,7 +1066,7 @@ class CoursesAndSessionsCatalog
id="plist" id="plist"
data-trigger="focus" data-trigger="focus"
tabindex="0" role="button" tabindex="0" role="button"
class="btn btn-default panel_popover" class="btn btn--plain panel_popover"
data-toggle="popover" data-toggle="popover"
title="'.addslashes(get_lang('CourseTeachers')).'" title="'.addslashes(get_lang('CourseTeachers')).'"
data-html="true" data-html="true"
@ -1157,7 +1157,7 @@ class CoursesAndSessionsCatalog
Display::getMdiIcon('check').' '.$title, Display::getMdiIcon('check').' '.$title,
api_get_self().'?action='.$action.'&sec_token='.$stok. api_get_self().'?action='.$action.'&sec_token='.$stok.
'&course_code='.$course['code'].'&search_term='.$search_term.'&category_code='.$categoryCode, '&course_code='.$course['code'].'&search_term='.$search_term.'&category_code='.$categoryCode,
['class' => 'btn btn-success btn-sm', 'title' => $title, 'aria-label' => $title] ['class' => 'btn btn--success btn-sm', 'title' => $title, 'aria-label' => $title]
); );
} }
@ -1185,7 +1185,7 @@ class CoursesAndSessionsCatalog
return Display::url( return Display::url(
Display::getMdiIcon('login').'&nbsp;'.$title, Display::getMdiIcon('login').'&nbsp;'.$title,
$url, $url,
['class' => 'btn btn-danger', 'title' => $title, 'aria-label' => $title] ['class' => 'btn btn--danger', 'title' => $title, 'aria-label' => $title]
); );
} }
@ -1320,7 +1320,7 @@ class CoursesAndSessionsCatalog
return Display::div( return Display::div(
$icon, $icon,
[ [
'class' => 'btn btn-default btn-sm registered', 'class' => 'btn btn--plain btn-sm registered',
'title' => get_lang("AlreadyRegisteredToSession"), 'title' => get_lang("AlreadyRegisteredToSession"),
] ]
); );

@ -656,9 +656,9 @@ class TicketManager
$form = $form =
'<form action="ticket_details.php?ticket_id='.$ticketId.'" id="confirmticket" method="POST" > '<form action="ticket_details.php?ticket_id='.$ticketId.'" id="confirmticket" method="POST" >
<p>'.get_lang('Was this answer satisfactory?').'</p> <p>'.get_lang('Was this answer satisfactory?').'</p>
<button class="btn btn-primary responseyes" name="response" id="responseyes" value="1">'. <button class="btn btn--primary responseyes" name="response" id="responseyes" value="1">'.
get_lang('Yes').'</button> get_lang('Yes').'</button>
<button class="btn btn-danger responseno" name="response" id="responseno" value="0">'. <button class="btn btn--danger responseno" name="response" id="responseno" value="0">'.
get_lang('No').'</button> get_lang('No').'</button>
</form>'; </form>';
$content .= $form; $content .= $form;

@ -1082,7 +1082,7 @@ function api_block_inactive_user()
); );
$msg .= '<p class="text-center"> $msg .= '<p class="text-center">
<a class="btn btn-default" href="'.$homeUrl.'">'.get_lang('BackHome').'</a></p>'; <a class="btn btn--plain" href="'.$homeUrl.'">'.get_lang('BackHome').'</a></p>';
$tpl->assign('content', $msg); $tpl->assign('content', $msg);
$tpl->display_one_col_template(); $tpl->display_one_col_template();
@ -2965,12 +2965,12 @@ function api_is_coach($session_id = 0, $courseId = null, $check_student_view = t
if (!empty($session_id)) { if (!empty($session_id)) {
$sql = "SELECT DISTINCT s.id $sql = "SELECT DISTINCT s.id
FROM $session_table AS s FROM $session_table AS s
INNER JOIN $tblSessionRelUser sru INNER JOIN $tblSessionRelUser sru
ON s.id = sru.session_id ON s.id = sru.session_id
WHERE WHERE
sru.user_id = $userId AND sru.user_id = $userId AND
s.id = $session_id AND s.id = $session_id AND
sru.relation_type = ".SessionEntity::GENERAL_COACH." sru.relation_type = ".SessionEntity::GENERAL_COACH."
ORDER BY s.access_start_date, s.access_end_date, s.name"; ORDER BY s.access_start_date, s.access_end_date, s.name";
$result = Database::query($sql); $result = Database::query($sql);
if (!empty($sessionIsCoach)) { if (!empty($sessionIsCoach)) {
@ -3179,17 +3179,17 @@ function api_display_tool_view_option()
// We have to remove the isStudentView=true from the $sourceurl // We have to remove the isStudentView=true from the $sourceurl
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl); $sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl); $sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a class="btn btn-primary btn-sm" href="'.$sourceurl.'&isStudentView=false" target="_self">'. $output_string .= '<a class="btn btn--primary btn-sm" href="'.$sourceurl.'&isStudentView=false" target="_self">'.
Display::getMdiIcon('eye').' '.get_lang('Switch to teacher view').'</a>'; Display::getMdiIcon('eye').' '.get_lang('Switch to teacher view').'</a>';
} elseif ('teacherview' == $_SESSION['studentview']) { } elseif ('teacherview' == $_SESSION['studentview']) {
// Switching to teacherview // Switching to teacherview
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl); $sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl); $sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a class="btn btn-default btn-sm" href="'.$sourceurl.'&isStudentView=true" target="_self">'. $output_string .= '<a class="btn btn--plain btn-sm" href="'.$sourceurl.'&isStudentView=true" target="_self">'.
Display::getMdiIcon('eye').' '.get_lang('Switch to student view').'</a>'; Display::getMdiIcon('eye').' '.get_lang('Switch to student view').'</a>';
} }
} else { } else {
$output_string .= '<a class="btn btn-default btn-sm" href="'.$sourceurl.'&isStudentView=true" target="_self">'. $output_string .= '<a class="btn btn--plain btn-sm" href="'.$sourceurl.'&isStudentView=true" target="_self">'.
Display::getMdiIcon('eye').' '.get_lang('Switch to student view').'</a>'; Display::getMdiIcon('eye').' '.get_lang('Switch to student view').'</a>';
} }
$output_string = Security::remove_XSS($output_string); $output_string = Security::remove_XSS($output_string);

@ -2839,7 +2839,7 @@ class Attendance
<div class="col-md-12">'; <div class="col-md-12">';
if (!$is_locked_attendance || api_is_platform_admin()) { if (!$is_locked_attendance || api_is_platform_admin()) {
if ($allowToEdit) { if ($allowToEdit) {
$form .= '<button type="submit" class="btn btn-primary">'.get_lang('Save').'</button>'; $form .= '<button type="submit" class="btn btn--primary">'.get_lang('Save').'</button>';
} }
} }
$form .= '</div> $form .= '</div>

@ -3523,13 +3523,13 @@ class CourseManager
if (api_is_platform_admin()) { if (api_is_platform_admin()) {
$params['edit_actions'] .= api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id']; $params['edit_actions'] .= api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id'];
if ($load_dirs) { if ($load_dirs) {
$params['document'] = '<a id="document_preview_'.$courseId.'_0" class="document_preview btn btn-outline-secondary btn-sm" href="javascript:void(0);">' $params['document'] = '<a id="document_preview_'.$courseId.'_0" class="document_preview btn btn--secondary-outline btn-sm" href="javascript:void(0);">'
.Display::getMdiIcon('folder-open-outline').'</a>'; .Display::getMdiIcon('folder-open-outline').'</a>';
$params['document'] .= Display::div('', ['id' => 'document_result_'.$courseId.'_0', 'class' => 'document_preview_container']); $params['document'] .= Display::div('', ['id' => 'document_result_'.$courseId.'_0', 'class' => 'document_preview_container']);
} }
} else { } else {
if (Course::CLOSED != $course_info['visibility'] && $load_dirs) { if (Course::CLOSED != $course_info['visibility'] && $load_dirs) {
$params['document'] = '<a id="document_preview_'.$courseId.'_0" class="document_preview btn btn-outline-secondary btn-sm" href="javascript:void(0);">' $params['document'] = '<a id="document_preview_'.$courseId.'_0" class="document_preview btn btn--secondary-outline btn-sm" href="javascript:void(0);">'
.Display::getMdiIcon('folder-open-outline').'</a>'; .Display::getMdiIcon('folder-open-outline').'</a>';
$params['document'] .= Display::div('', ['id' => 'document_result_'.$courseId.'_0', 'class' => 'document_preview_container']); $params['document'] .= Display::div('', ['id' => 'document_result_'.$courseId.'_0', 'class' => 'document_preview_container']);
} }
@ -3706,7 +3706,7 @@ class CourseManager
if (api_is_platform_admin()) { if (api_is_platform_admin()) {
$params['edit_actions'] .= api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course_info['real_id']; $params['edit_actions'] .= api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course_info['real_id'];
if ($load_dirs) { if ($load_dirs) {
$params['document'] = '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview btn btn-default btn-sm" href="javascript:void(0);">' $params['document'] = '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview btn btn--plain btn-sm" href="javascript:void(0);">'
.Display::getMdiIcon('folder-open-outline').'</a>'; .Display::getMdiIcon('folder-open-outline').'</a>';
$params['document'] .= Display::div( $params['document'] .= Display::div(
'', '',
@ -3718,7 +3718,7 @@ class CourseManager
} }
} }
if ($load_dirs) { if ($load_dirs) {
$params['document'] = '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview btn btn-default btn-sm" href="javascript:void(0);">' $params['document'] = '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview btn btn--plain btn-sm" href="javascript:void(0);">'
.Display::getMdiIcon('folder-open-outline').'</a>'; .Display::getMdiIcon('folder-open-outline').'</a>';
$params['document'] .= Display::div( $params['document'] .= Display::div(
'', '',
@ -4012,7 +4012,7 @@ class CourseManager
if ($load_dirs) { if ($load_dirs) {
$params['document'] .= '<a $params['document'] .= '<a
id="document_preview_'.$course_info['real_id'].'_'.$session_id.'" id="document_preview_'.$course_info['real_id'].'_'.$session_id.'"
class="document_preview btn btn-default btn-sm" class="document_preview btn btn--plain btn-sm"
href="javascript:void(0);">'. href="javascript:void(0);">'.
Display::getMdiIcon('folder-open-outline').'</a>'; Display::getMdiIcon('folder-open-outline').'</a>';
$params['document'] .= Display::div('', [ $params['document'] .= Display::div('', [
@ -4794,7 +4794,7 @@ class CourseManager
api_get_path(WEB_COURSE_PATH).$course_info['path']. api_get_path(WEB_COURSE_PATH).$course_info['path'].
'/index.php?action=subscribe&sec_token='.$stok, '/index.php?action=subscribe&sec_token='.$stok,
[ [
'class' => 'btn btn-success btn-sm', 'class' => 'btn btn--success btn-sm',
'title' => get_lang('Subscribe'), 'title' => get_lang('Subscribe'),
'aria-label' => get_lang('Subscribe'), 'aria-label' => get_lang('Subscribe'),
] ]
@ -4809,7 +4809,7 @@ class CourseManager
Display::getMdiIcon('share'), Display::getMdiIcon('share'),
api_get_path(WEB_COURSE_PATH).$course_info['path'].'/index.php', api_get_path(WEB_COURSE_PATH).$course_info['path'].'/index.php',
[ [
'class' => 'btn btn-default btn-sm', 'class' => 'btn btn--plain btn-sm',
'title' => get_lang('Go to the course'), 'title' => get_lang('Go to the course'),
'aria-label' => get_lang('Go to the course'), 'aria-label' => get_lang('Go to the course'),
] ]
@ -4823,7 +4823,7 @@ class CourseManager
api_get_path(WEB_CODE_PATH).'auth/courses.php?action=unsubscribe&unsubscribe='.$courseCode api_get_path(WEB_CODE_PATH).'auth/courses.php?action=unsubscribe&unsubscribe='.$courseCode
.'&sec_token='.$stok.'&category_code='.$categoryCode, .'&sec_token='.$stok.'&category_code='.$categoryCode,
[ [
'class' => 'btn btn-danger btn-sm', 'class' => 'btn btn--danger btn-sm',
'title' => get_lang('Unsubscribe'), 'title' => get_lang('Unsubscribe'),
'aria-label' => get_lang('Unsubscribe'), 'aria-label' => get_lang('Unsubscribe'),
] ]
@ -5733,7 +5733,7 @@ class CourseManager
$form->addLabel( $form->addLabel(
'', '',
Display::url(get_lang('Add learners'), '#', ['id' => 'add_students', 'class' => 'btn btn-primary']) Display::url(get_lang('Add learners'), '#', ['id' => 'add_students', 'class' => 'btn btn--primary'])
); );
} }
} }
@ -6007,7 +6007,7 @@ class CourseManager
$form_data['button'] = Display::button( $form_data['button'] = Display::button(
'next', 'next',
get_lang('Go to the course', null, $_user['language']), get_lang('Go to the course', null, $_user['language']),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
$exercise_redirect = (int) Session::read('exercise_redirect'); $exercise_redirect = (int) Session::read('exercise_redirect');
@ -6023,7 +6023,7 @@ class CourseManager
$form_data['button'] = Display::button( $form_data['button'] = Display::button(
'next', 'next',
get_lang('Go', null, $_user['language']), get_lang('Go', null, $_user['language']),
['class' => 'btn btn-primary btn-large'] ['class' => 'btn btn--primary btn-large']
); );
} }
@ -6137,7 +6137,7 @@ class CourseManager
); );
} else { } else {
$params['right_actions'] .= $params['right_actions'] .=
'<a class="btn btn-default btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id'].'">'. '<a class="btn btn--plain btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id'].'">'.
Display::getMdiIcon('pencil').'</a>'; Display::getMdiIcon('pencil').'</a>';
} }
} else { } else {
@ -6155,7 +6155,7 @@ class CourseManager
} else { } else {
if (COURSEMANAGER == $course_info['status']) { if (COURSEMANAGER == $course_info['status']) {
$params['right_actions'] .= '<a $params['right_actions'] .= '<a
class="btn btn-default btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id'].'">'. class="btn btn--plain btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cid='.$course['real_id'].'">'.
Display::getMdiIcon('pencil').'</a>'; Display::getMdiIcon('pencil').'</a>';
} }
} }
@ -6362,7 +6362,7 @@ class CourseManager
Display::getMdiIcon('information'), Display::getMdiIcon('information'),
$url, $url,
[ [
'class' => "$class btn btn-default btn-sm", 'class' => "$class btn btn--plain btn-sm",
'data-title' => $title, 'data-title' => $title,
'title' => get_lang('Description'), 'title' => get_lang('Description'),
'aria-label' => get_lang('Description'), 'aria-label' => get_lang('Description'),

@ -103,7 +103,7 @@ class DashboardManager
echo '</table>'; echo '</table>';
echo '<br />'; echo '<br />';
echo '<button echo '<button
class="btn btn-default" class="btn btn--plain"
type="submit" type="submit"
name="submit_dashboard_plugins" name="submit_dashboard_plugins"
value="'.get_lang('EnableDashboard plugins').'">'. value="'.get_lang('EnableDashboard plugins').'">'.
@ -411,13 +411,13 @@ class DashboardManager
$html .= '</table>'; $html .= '</table>';
$html .= '<div class="row"><div class="col-md-12">'; $html .= '<div class="row"><div class="col-md-12">';
$html .= '<button class="btn btn-default" type="submit" name="submit_dashboard_list" value="'.get_lang('Enable dashboard block').'"><em class="fa fa-check-square"></em> '. $html .= '<button class="btn btn--plain" type="submit" name="submit_dashboard_list" value="'.get_lang('Enable dashboard block').'"><em class="fa fa-check-square"></em> '.
get_lang('Enable dashboard block').'</button></form>'; get_lang('Enable dashboard block').'</button></form>';
$html .= '</div></div>'; $html .= '</div></div>';
} else { } else {
$html .= '<div style="margin-top:20px">'.get_lang('ThereAreNoEnabledDashboard plugins').'</div>'; $html .= '<div style="margin-top:20px">'.get_lang('ThereAreNoEnabledDashboard plugins').'</div>';
if (api_is_platform_admin()) { if (api_is_platform_admin()) {
$html .= '<a class="btn btn-default" href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins">'. $html .= '<a class="btn btn--plain" href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins">'.
get_lang('Configure Dashboard Plugin').'</a>'; get_lang('Configure Dashboard Plugin').'</a>';
} }
} }

@ -2148,9 +2148,9 @@ class Display
array $attributes = [], array $attributes = [],
$includeText = true $includeText = true
) { ) {
$buttonClass = "btn btn-outline-secondary"; $buttonClass = "btn btn--secondary-outline";
if (!empty($type)) { if (!empty($type)) {
$buttonClass = "btn btn-$type"; $buttonClass = "btn btn--$type";
} }
//$icon = self::tag('i', null, ['class' => "fa fa-$icon fa-fw", 'aria-hidden' => 'true']); //$icon = self::tag('i', null, ['class' => "fa fa-$icon fa-fw", 'aria-hidden' => 'true']);
$icon = self::getMdiIcon($icon); $icon = self::getMdiIcon($icon);
@ -2455,7 +2455,7 @@ HTML;
$content .= self::url( $content .= self::url(
'<em class="fa fa-plus"></em> '.$buttonTitle, '<em class="fa fa-plus"></em> '.$buttonTitle,
$url, $url,
['class' => 'btn btn-primary'] ['class' => 'btn btn--primary']
); );
$content .= '</div>'; $content .= '</div>';
$content .= '</div>'; $content .= '</div>';

@ -1576,14 +1576,14 @@ HOTSPOT;
<div class="well well-sm" id="annotation-toolbar-'.$questionId.'"> <div class="well well-sm" id="annotation-toolbar-'.$questionId.'">
<div class="btn-toolbar"> <div class="btn-toolbar">
<div class="btn-group" data-toggle="buttons"> <div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active" <label class="btn btn--plain active"
aria-label="'.get_lang('Add annotation path').'"> aria-label="'.get_lang('Add annotation path').'">
<input <input
type="radio" value="0" type="radio" value="0"
name="'.$questionId.'-options" autocomplete="off" checked> name="'.$questionId.'-options" autocomplete="off" checked>
<span class="fas fa-pencil-alt" aria-hidden="true"></span> <span class="fas fa-pencil-alt" aria-hidden="true"></span>
</label> </label>
<label class="btn btn-default" <label class="btn btn--plain"
aria-label="'.get_lang('Add annotation text').'"> aria-label="'.get_lang('Add annotation text').'">
<input <input
type="radio" value="1" type="radio" value="1"
@ -2400,7 +2400,7 @@ HOTSPOT;
get_lang('Show'), get_lang('Show'),
$attempt_url, $attempt_url,
[ [
'class' => 'ajax btn btn-default', 'class' => 'ajax btn btn--plain',
'data-title' => get_lang('Show'), 'data-title' => get_lang('Show'),
] ]
); );

@ -515,13 +515,13 @@ class ExtraField extends Model
<label for="geolocalization_extra_'.$variable.'" <label for="geolocalization_extra_'.$variable.'"
class="col-sm-2 control-label"></label> class="col-sm-2 control-label"></label>
<div class="col-sm-8"> <div class="col-sm-8">
<button class="btn btn-default" <button class="btn btn--plain"
id="geolocalization_extra_'.$variable.'" id="geolocalization_extra_'.$variable.'"
name="geolocalization_extra_'.$variable.'" name="geolocalization_extra_'.$variable.'"
type="submit"> type="submit">
<em class="fa fa-map-marker"></em> '.get_lang('SearchGeolocalization').' <em class="fa fa-map-marker"></em> '.get_lang('SearchGeolocalization').'
</button> </button>
<button class="btn btn-default" id="myLocation_extra_'.$variable.'" <button class="btn btn--plain" id="myLocation_extra_'.$variable.'"
name="myLocation_extra_'.$variable.'" name="myLocation_extra_'.$variable.'"
type="submit"> type="submit">
<em class="fa fa-crosshairs"></em> '.get_lang('MyLocation').' <em class="fa fa-crosshairs"></em> '.get_lang('MyLocation').'

@ -46,10 +46,10 @@ class DatePicker extends HTML_QuickForm_text
<input '.$this->_getAttrString($this->_attributes).' <input '.$this->_getAttrString($this->_attributes).'
class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select date ..').'" data-input> class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select date ..').'" data-input>
<div class="ml-1" id="button-addon3"> <div class="ml-1" id="button-addon3">
<button class="btn btn-outline-secondary" type="button" data-toggle> <button class="btn btn--secondary-outline" type="button" data-toggle>
<i class="fas fa-calendar-alt"></i> <i class="fas fa-calendar-alt"></i>
</button> </button>
<button class="btn btn-outline-secondary" type="button" data-clear> <button class="btn btn--secondary-outline" type="button" data-clear>
<i class="fas fa-times"></i> <i class="fas fa-times"></i>
</button> </button>
</div> </div>

@ -55,10 +55,10 @@ class DateTimePicker extends HTML_QuickForm_text
<input '.$this->_getAttrString($this->_attributes).' <input '.$this->_getAttrString($this->_attributes).'
class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select datetime ..').'" data-input> class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select datetime ..').'" data-input>
<div class="ml-1" id="button-addon3"> <div class="ml-1" id="button-addon3">
<button class="btn btn-outline-secondary" type="button" data-toggle> <button class="btn btn--secondary-outline" type="button" data-toggle>
<i class="fas fa-calendar-alt"></i> <i class="fas fa-calendar-alt"></i>
</button> </button>
<button class="btn btn-outline-secondary" type="button" data-clear> <button class="btn btn--secondary-outline" type="button" data-clear>
<i class="fas fa-times"></i> <i class="fas fa-times"></i>
</button> </button>
</div> </div>

@ -32,10 +32,10 @@ class DateTimeRangePicker extends DateRangePicker
<input '.$this->_getAttrString($this->_attributes).' <input '.$this->_getAttrString($this->_attributes).'
class="form-control" type="text" value="'.$value.'" data-input> class="form-control" type="text" value="'.$value.'" data-input>
<div class="ml-1" id="button-addon3"> <div class="ml-1" id="button-addon3">
<button class="btn btn-outline-secondary" type="button" data-toggle> <button class="btn btn--secondary-outline" type="button" data-toggle>
<i class="fas fa-calendar-alt"></i> <i class="fas fa-calendar-alt"></i>
</button> </button>
<button class="btn btn-outline-secondary" type="button" data-clear> <button class="btn btn--secondary-outline" type="button" data-clear>
<i class="fas fa-times"></i> <i class="fas fa-times"></i>
</button> </button>
</div> </div>

@ -994,7 +994,7 @@ EOT;
<div id="'.$id.'_crop_image" class="cropCanvas"> <div id="'.$id.'_crop_image" class="cropCanvas">
<img id="'.$id.'_preview_image"> <img id="'.$id.'_preview_image">
</div> </div>
<button class="btn btn-primary" type="button" name="cropButton" id="'.$id.'_crop_button"> <button class="btn btn--primary" type="button" name="cropButton" id="'.$id.'_crop_button">
<em class="fa fa-crop"></em> '.get_lang('Crop your picture').' <em class="fa fa-crop"></em> '.get_lang('Crop your picture').'
</button> </button>
</div> </div>
@ -1649,7 +1649,7 @@ EOT;
<div class="description-upload"> <div class="description-upload">
'.get_lang('Click on the box below to select files from your computer (you can use CTRL + clic to select various files at a time), or drag and drop some files from your desktop directly over the box below. The system will handle the rest!').' '.get_lang('Click on the box below to select files from your computer (you can use CTRL + clic to select various files at a time), or drag and drop some files from your desktop directly over the box below. The system will handle the rest!').'
</div> </div>
<span class="btn btn-success fileinput-button"> <span class="btn btn--success fileinput-button">
<i class="glyphicon glyphicon-plus"></i> <i class="glyphicon glyphicon-plus"></i>
<span>'.get_lang('Add files').'</span> <span>'.get_lang('Add files').'</span>
<!-- The file input field used as target for the file upload widget --> <!-- The file input field used as target for the file upload widget -->
@ -1840,7 +1840,7 @@ EOT;
var url = '".$url."'; var url = '".$url."';
var uploadButton = $('<button/>') var uploadButton = $('<button/>')
.addClass('btn btn-primary') .addClass('btn btn--primary')
.prop('disabled', true) .prop('disabled', true)
.text('".addslashes(get_lang('Loading'))."') .text('".addslashes(get_lang('Loading'))."')
.on('click', function () { .on('click', function () {

@ -2233,12 +2233,12 @@ class GroupManager
if (!api_is_allowed_to_edit(false, true)) { if (!api_is_allowed_to_edit(false, true)) {
if (self::is_self_registration_allowed($user_id, $group)) { if (self::is_self_registration_allowed($user_id, $group)) {
$row[] = '<a $row[] = '<a
class = "btn btn-default" class = "btn btn--plain"
href="group.php?'.api_get_cidreq().'&category='.$category_id.'&action=self_reg&group_id='.$groupId.'" href="group.php?'.api_get_cidreq().'&category='.$category_id.'&action=self_reg&group_id='.$groupId.'"
onclick="javascript:if(!confirm('."'".$confirmMessage."'".')) return false;">'.get_lang('register').'</a>'; onclick="javascript:if(!confirm('."'".$confirmMessage."'".')) return false;">'.get_lang('register').'</a>';
} elseif (self::is_self_unregistration_allowed($user_id, $group)) { } elseif (self::is_self_unregistration_allowed($user_id, $group)) {
$row[] = '<a $row[] = '<a
class = "btn btn-default" class = "btn btn--plain"
href="group.php?'.api_get_cidreq().'&category='.$category_id.'&action=self_unreg&group_id='.$groupId.'" href="group.php?'.api_get_cidreq().'&category='.$category_id.'&action=self_unreg&group_id='.$groupId.'"
onclick="javascript:if(!confirm('."'".$confirmMessage."'".')) return false;">'.get_lang('unregister').'</a>'; onclick="javascript:if(!confirm('."'".$confirmMessage."'".')) return false;">'.get_lang('unregister').'</a>';
} else { } else {

@ -86,7 +86,7 @@ function initGlyphSelector() {
var glyphLog = []; var glyphLog = [];
$glyphSelectorButton = document.createElement('button'); $glyphSelectorButton = document.createElement('button');
$glyphSelectorButton.className = 'btn btn-default pull-right'; $glyphSelectorButton.className = 'btn btn--plain pull-right';
$glyphSelectorButton.id = 'search-glyphs'; $glyphSelectorButton.id = 'search-glyphs';
$glyphSelectorButton.type = 'button'; $glyphSelectorButton.type = 'button';
$glyphSelectorButton.innerHTML = '<em class="fa fa-search"></em> Search'; $glyphSelectorButton.innerHTML = '<em class="fa fa-search"></em> Search';

@ -42,7 +42,7 @@ class MessageManager
$deleteButton = Display::url( $deleteButton = Display::url(
get_lang('Delete'), get_lang('Delete'),
$url.'&action=delete_message&message_id='.$messageId, $url.'&action=delete_message&message_id='.$messageId,
['class' => 'btn btn-danger'] ['class' => 'btn btn--danger']
); );
} }
@ -750,7 +750,7 @@ class MessageManager
api_get_path( api_get_path(
WEB_CODE_PATH WEB_CODE_PATH
).'social/group_topics.php?action=delete&id='.$groupId.'&topic_id='.$topic['id'], ).'social/group_topics.php?action=delete&id='.$groupId.'&topic_id='.$topic['id'],
['class' => 'btn btn-default'] ['class' => 'btn btn--plain']
); );
} }
@ -1683,7 +1683,7 @@ class MessageManager
$countLikes = self::countLikesAndDislikes($messageId, $userId); $countLikes = self::countLikesAndDislikes($messageId, $userId);
$class = $countLikes['user_liked'] ? 'btn-primary' : 'btn-default'; $class = $countLikes['user_liked'] ? 'btn--primary' : 'btn--plain';
$btnLike = Display::button( $btnLike = Display::button(
'like', 'like',
@ -1700,7 +1700,7 @@ class MessageManager
$btnDislike = ''; $btnDislike = '';
if (false === api_get_configuration_value('disable_dislike_option')) { if (false === api_get_configuration_value('disable_dislike_option')) {
$disabled = $countLikes['user_disliked'] ? 'btn-danger' : 'btn-default'; $disabled = $countLikes['user_disliked'] ? 'btn--danger' : 'btn--plain';
$btnDislike = Display::button( $btnDislike = Display::button(
'like', 'like',

@ -47,7 +47,7 @@ class HTML_QuickForm_advanced_settings extends HTML_QuickForm_static
$html .= ' $html .= '
<div class=""> <div class="">
<button id="'.$name.'" type="button" class="btn btn-secondary advanced_options" <button id="'.$name.'" type="button" class="btn btn--secondary advanced_options"
data-toggle="button" aria-pressed="false" autocomplete="off"> data-toggle="button" aria-pressed="false" autocomplete="off">
<em class="mr-1 mdi mdi-cog"></em> '.$label.' <em class="mr-1 mdi mdi-cog"></em> '.$label.'
</button> </button>

@ -231,8 +231,8 @@ class HTML_QuickForm_advmultiselect extends HTML_QuickForm_select
// add multiple selection attribute by default if missing // add multiple selection attribute by default if missing
$class = ' $class = '
block appearance-none border border-gray-200 text-gray-700 rounded leading-tight focus:outline-none block appearance-none border border-gray-200 text-gray-700 rounded leading-tight focus:outline-none
focus:bg-white focus:border-gray-500 w-full mt-1 overflow-auto w-full border focus:bg-white focus:border-gray-500 w-full mt-1 overflow-auto w-full border
bg-white rounded px-3 py-2 outline-none text-gray-700'; bg-white rounded px-3 py-2 outline-none text-gray-700';
$this->updateAttributes(['multiple' => 'multiple']); $this->updateAttributes(['multiple' => 'multiple']);
@ -346,7 +346,7 @@ class HTML_QuickForm_advmultiselect extends HTML_QuickForm_select
'name' => 'add', 'name' => 'add',
'value' => ' ', 'value' => ' ',
'type' => 'button', 'type' => 'button',
'class'=> 'btn btn-primary' 'class'=> 'btn btn--primary'
); );
} else { } else {
$this->_updateAttrArray( $this->_updateAttrArray(
@ -361,7 +361,7 @@ class HTML_QuickForm_advmultiselect extends HTML_QuickForm_select
'name' => 'remove', 'name' => 'remove',
'value' => ' ', 'value' => ' ',
'type' => 'button', 'type' => 'button',
'class'=> 'btn btn-primary' 'class'=> 'btn btn--primary'
); );
} else { } else {
$this->_updateAttrArray($this->_removeButtonAttributes, $this->_updateAttrArray($this->_removeButtonAttributes,

@ -153,7 +153,7 @@ class HTML_QuickForm_button extends HTML_QuickForm_input
*/ */
public function setStyle($style) public function setStyle($style)
{ {
$style = !empty($style) ? 'btn btn-'.$style : null; $style = !empty($style) ? 'btn btn--'.$style : null;
$this->style = $style; $this->style = $style;
} }

@ -680,7 +680,7 @@ class HTML_QuickForm_element extends HTML_Common
{icon} {icon}
{element} {element}
<div class="input-group-btn"> <div class="input-group-btn">
<button class="btn btn-default" type="submit"> <button class="btn btn--plain" type="submit">
<em class="fa fa-search"></em> <em class="fa fa-search"></em>
</button> </button>
</div> </div>

@ -1851,7 +1851,7 @@ class SocialManager extends UserManager
); );
$result['picture'] = '<img class="img-responsive" src="'.$picture.'" />'; $result['picture'] = '<img class="img-responsive" src="'.$picture.'" />';
$group_actions = '<div class="group-more"><a class="btn btn-default" href="groups.php?#tab_browse-2">'. $group_actions = '<div class="group-more"><a class="btn btn--plain" href="groups.php?#tab_browse-2">'.
get_lang('See more').'</a></div>'; get_lang('See more').'</a></div>';
$group_info = '<div class="description"><p>'.cut($result['description'], 120, true)."</p></div>"; $group_info = '<div class="description"><p>'.cut($result['description'], 120, true)."</p></div>";
$myGroups[] = [ $myGroups[] = [
@ -2018,7 +2018,7 @@ class SocialManager extends UserManager
'id' => 'message_'.$message['id'], 'id' => 'message_'.$message['id'],
'title' => get_lang('Delete comment'), 'title' => get_lang('Delete comment'),
'onclick' => 'deleteMessage('.$message['id'].')', 'onclick' => 'deleteMessage('.$message['id'].')',
'class' => 'btn btn-default', 'class' => 'btn btn--plain',
] ]
); );

@ -423,12 +423,12 @@ class SortableTable extends HTML_Table
if (count($this->form_actions) > 0) { if (count($this->form_actions) > 0) {
$html .= '<div class="flex flex-row justify-between" role="group">'; $html .= '<div class="flex flex-row justify-between" role="group">';
$html .= '<a $html .= '<a
class="btn btn-primary" class="btn btn--primary"
href="?'.$params.'&amp;'.$this->param_prefix.'selectall=1" href="?'.$params.'&amp;'.$this->param_prefix.'selectall=1"
onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'. onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'.
get_lang('Select all').'</a>'; get_lang('Select all').'</a>';
$html .= '<a $html .= '<a
class="btn btn-primary" class="btn btn--primary"
href="?'.$params.'" href="?'.$params.'"
onclick="javascript: setCheckbox(false, \''.$table_id.'\'); return false;">'. onclick="javascript: setCheckbox(false, \''.$table_id.'\'); return false;">'.
get_lang('Deselect all').'</a> '; get_lang('Deselect all').'</a> ';
@ -797,7 +797,7 @@ class SortableTable extends HTML_Table
$result[] = '</select>'; $result[] = '</select>';
$result[] = '<noscript>'; $result[] = '<noscript>';
$result[] = '<button class="btn btn-success" type="submit">'.get_lang('Save').'</button>'; $result[] = '<button class="btn btn--success" type="submit">'.get_lang('Save').'</button>';
$result[] = '</noscript>'; $result[] = '</noscript>';
$result[] = '</form>'; $result[] = '</form>';

@ -1175,9 +1175,9 @@ class Template
if ('true' == api_get_setting('accessibility_font_resize')) { if ('true' == api_get_setting('accessibility_font_resize')) {
$resize .= '<div class="resize_font">'; $resize .= '<div class="resize_font">';
$resize .= '<div class="btn-group">'; $resize .= '<div class="btn-group">';
$resize .= '<a title="'.get_lang('Decrease the font size').'" href="#" class="decrease_font btn btn-default"><em class="fa fa-font"></em></a>'; $resize .= '<a title="'.get_lang('Decrease the font size').'" href="#" class="decrease_font btn btn--plain"><em class="fa fa-font"></em></a>';
$resize .= '<a title="'.get_lang('Reset the font size').'" href="#" class="reset_font btn btn-default"><em class="fa fa-font"></em></a>'; $resize .= '<a title="'.get_lang('Reset the font size').'" href="#" class="reset_font btn btn--plain"><em class="fa fa-font"></em></a>';
$resize .= '<a title="'.get_lang('Increase the font size').'" href="#" class="increase_font btn btn-default"><em class="fa fa-font"></em></a>'; $resize .= '<a title="'.get_lang('Increase the font size').'" href="#" class="increase_font btn btn--plain"><em class="fa fa-font"></em></a>';
$resize .= '</div>'; $resize .= '</div>';
$resize .= '</div>'; $resize .= '</div>';
} }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save