Small improvements to visualization of skills in social profile home - refs BT#9082

1.10.x
Yannick Warnier 10 years ago
parent 4e3c76aee7
commit 557206ee1f
  1. 14
      main/social/home.php

@ -146,6 +146,12 @@ if (api_get_setting('allow_skills_tool') == 'true') {
api_get_path(WEB_DATA_PATH) . $skill['iconThumb'],
$skill['name']
);
} else {
$badgeImage = Display::return_icon(
'award_red.png',
$skill['name'],
array('title' => $skill['name'])
);
}
$lis .= Display::tag(
@ -156,9 +162,9 @@ if (api_get_setting('allow_skills_tool') == 'true') {
)
);
}
$socialRightInformation .= Display::tag('ul', $lis);
$socialRightInformation .= Display::tag('ul', $lis, array('class' => 'menulist'));
}
$socialRightInformation .= "<div class=\"btn-group\">";
$socialRightInformation .= '<div class="menulist">';
if (api_is_student() || api_is_student_boss() || api_is_drh()) {
$socialRightInformation .= Display::url(
get_lang('SkillsReport'),
@ -167,7 +173,7 @@ if (api_get_setting('allow_skills_tool') == 'true') {
);
}
$socialRightInformation .= Display::url(
get_lang('ViewSkillsWheel'),
get_lang('SkillsWheel'),
api_get_path(WEB_CODE_PATH) . 'social/skills_wheel.php',
array('class' => 'btn')
);
@ -176,7 +182,7 @@ if (api_get_setting('allow_skills_tool') == 'true') {
api_get_path(WEB_CODE_PATH) . 'social/skills_ranking.php',
array('class' => 'btn')
);
$socialRightInformation .= '</div>';
$socialRightInformation .= '</div><br />';
}

Loading…
Cancel
Save