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.
56 lines
1.3 KiB
56 lines
1.3 KiB
10 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
/**
|
||
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
|
||
|
*/
|
||
|
$cidReset = true;
|
||
|
|
||
8 years ago
|
require_once __DIR__.'/../inc/global.inc.php';
|
||
10 years ago
|
|
||
|
$this_section = SECTION_PLATFORM_ADMIN;
|
||
|
|
||
7 years ago
|
api_protect_admin_script();
|
||
7 years ago
|
Skill::isAllowed();
|
||
7 years ago
|
|
||
10 years ago
|
$backpack = 'https://backpack.openbadges.org/';
|
||
|
|
||
10 years ago
|
$configBackpack = api_get_setting('openbadges_backpack');
|
||
10 years ago
|
if (strcmp($backpack, $configBackpack) !== 0) {
|
||
|
$backpack = $configBackpack;
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
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
|
];
|
||
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,
|
||
7 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')]
|
||
7 years ago
|
);
|
||
8 years ago
|
|
||
10 years ago
|
$tpl = new Template(get_lang('Badges'));
|
||
10 years ago
|
$tpl->assign('backpack', $backpack);
|
||
8 years ago
|
|
||
|
$templateName = $tpl->get_template('skill/badge.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();
|