Show certificates search when allow_public_certificates is true - refs #7363

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent fc96f8f12c
commit 7895a0a785
  1. 20
      main/gradebook/my_certificates.php
  2. 18
      main/inc/lib/userportal.lib.php

@ -32,15 +32,17 @@ if (empty($courseList) || empty($sessionList)) {
);
}
$template->assign(
'actions',
Display::toolbarButton(
get_lang('SearchCertificates'),
api_get_path(WEB_CODE_PATH) . "gradebook/search.php",
'search',
'info'
)
);
if (api_get_setting('allow_public_certificates') == 'true') {
$template->assign(
'actions',
Display::toolbarButton(
get_lang('SearchCertificates'),
api_get_path(WEB_CODE_PATH) . "gradebook/search.php",
'search',
'info'
)
);
}
$template->assign('content', $content);
$template->display_one_col_template();

@ -1440,13 +1440,17 @@ class IndexManager
)
);
$searchItem = Display::tag(
'li',
Display::url(
get_lang('Search'),
api_get_path(WEB_CODE_PATH) . "gradebook/search.php"
)
);
$searchItem = null;
if (api_get_setting('allow_public_certificates') == 'true') {
$searchItem = Display::tag(
'li',
Display::url(
get_lang('Search'),
api_get_path(WEB_CODE_PATH) . "gradebook/search.php"
)
);
}
return Display::panel(
Display::tag(

Loading…
Cancel
Save