Merge serious game / gamification switch #tmi

1.10.x
Yannick Warnier 10 years ago
parent 4a102fea97
commit 1fa0950a1b
  1. 8
      main/newscorm/lp_list.php
  2. 2
      main/template/default/learnpath/list.tpl

@ -713,7 +713,7 @@ foreach ($categories as $item) {
$start_time = $end_time = ''; $start_time = $end_time = '';
} }
if (api_get_setting('gamification_mode') != 0) { if (api_get_setting('gamification_mode') == 'true') {
if ($details['seriousgame_mode'] == 0) { if ($details['seriousgame_mode'] == 0) {
$actionSeriousGame = Display::toolbarButton( $actionSeriousGame = Display::toolbarButton(
null, null,
@ -722,7 +722,7 @@ foreach ($categories as $item) {
'default', 'default',
[ [
'class' => 'btn-xs', 'class' => 'btn-xs',
'title' => get_lang('ActivateSeriousGame') 'title' => get_lang('EnableGamificationMode')
] ]
); );
} else { } else {
@ -733,7 +733,7 @@ foreach ($categories as $item) {
'warning', 'warning',
[ [
'class' => 'btn-xs active', 'class' => 'btn-xs active',
'title' => get_lang('DeactivateSeriousGame') 'title' => get_lang('DisableGamificationMode')
] ]
); );
} }
@ -783,7 +783,7 @@ foreach ($categories as $item) {
'action_pdf' => $export_icon, 'action_pdf' => $export_icon,
'action_delete' => $dsp_delete, 'action_delete' => $dsp_delete,
'action_order' => $dsp_order, 'action_order' => $dsp_order,
'action_seriousgame' => $actionSeriousGame, 'action_serious_game' => $actionSeriousGame,
'action_subscribe_users' => $subscribeUsers 'action_subscribe_users' => $subscribeUsers
]; ];

@ -102,7 +102,7 @@
{{ row.action_visible }} {{ row.action_visible }}
{{ row.action_publish }} {{ row.action_publish }}
{{ row.action_subscribe_users }} {{ row.action_subscribe_users }}
{{ row.action_seriousgame }} {{ row.action_serious_game }}
{{ row.action_reinit }} {{ row.action_reinit }}
{{ row.action_default_view }} {{ row.action_default_view }}
{{ row.action_debug }} {{ row.action_debug }}

Loading…
Cancel
Save