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( if (api_get_setting('allow_public_certificates') == 'true') {
'actions', $template->assign(
Display::toolbarButton( 'actions',
get_lang('SearchCertificates'), Display::toolbarButton(
api_get_path(WEB_CODE_PATH) . "gradebook/search.php", get_lang('SearchCertificates'),
'search', api_get_path(WEB_CODE_PATH) . "gradebook/search.php",
'info' 'search',
) 'info'
); )
);
}
$template->assign('content', $content); $template->assign('content', $content);
$template->display_one_col_template(); $template->display_one_col_template();

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

Loading…
Cancel
Save