You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
![]()
10 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
![]()
10 years ago
|
|
||
![]()
10 years ago
|
/**
|
||
![]()
7 years ago
|
* Show information about Mozilla OpenBadges.
|
||
|
*
|
||
![]()
10 years ago
|
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
|
||
![]()
7 years ago
|
*
|
||
![]()
10 years ago
|
* @package chamilo.admin.openbadges
|
||
![]()
7 years ago
|
*
|
||
![]()
7 years ago
|
* @deprecated use skill_list.php
|
||
![]()
10 years ago
|
*/
|
||
|
$cidReset = true;
|
||
|
|
||
![]()
8 years ago
|
require_once __DIR__.'/../inc/global.inc.php';
|
||
![]()
10 years ago
|
|
||
![]()
8 years ago
|
api_protect_admin_script();
|
||
![]()
7 years ago
|
Skill::isAllowed();
|
||
![]()
10 years ago
|
|
||
![]()
10 years ago
|
$this_section = SECTION_PLATFORM_ADMIN;
|
||
|
|
||
|
$objSkill = new Skill();
|
||
|
$skills = $objSkill->get_all();
|
||
|
|
||
![]()
7 years ago
|
$interbreadcrumb = [
|
||
|
[
|
||
![]()
8 years ago
|
'url' => api_get_path(WEB_CODE_PATH).'admin/index.php',
|
||
![]()
7 years ago
|
'name' => get_lang('Administration'),
|
||
![]()
7 years ago
|
],
|
||
|
[
|
||
![]()
8 years ago
|
'url' => api_get_path(WEB_CODE_PATH).'admin/skill_badge.php',
|
||
![]()
7 years ago
|
'name' => get_lang('Badges'),
|
||
|
],
|
||
![]()
7 years ago
|
];
|
||
![]()
10 years ago
|
|
||
![]()
8 years ago
|
$toolbar = Display::url(
|
||
|
Display::return_icon(
|
||
|
'list_badges.png',
|
||
![]()
5 years ago
|
get_lang('Manage skills'),
|
||
![]()
8 years ago
|
null,
|
||
![]()
8 years ago
|
ICON_SIZE_MEDIUM
|
||
|
),
|
||
![]()
8 years ago
|
api_get_path(WEB_CODE_PATH).'admin/skill_list.php',
|
||
![]()
5 years ago
|
['title' => get_lang('Manage skills')]
|
||
![]()
8 years ago
|
);
|
||
![]()
8 years ago
|
|
||
![]()
10 years ago
|
$tpl = new Template(get_lang('Skills'));
|
||
![]()
10 years ago
|
$tpl->assign('skills', $skills);
|
||
![]()
8 years ago
|
$templateName = $tpl->get_template('skill/badge_list.tpl');
|
||
|
$contentTemplate = $tpl->fetch($templateName);
|
||
![]()
10 years ago
|
|
||
![]()
8 years ago
|
$tpl->assign(
|
||
|
'actions',
|
||
|
Display::toolbarAction('toolbar', [$toolbar])
|
||
|
);
|
||
![]()
10 years ago
|
$tpl->assign('content', $contentTemplate);
|
||
|
$tpl->display_one_col_template();
|