This commit is contained in:
Huong Nguyen
2024-12-16 09:50:12 +07:00
7 changed files with 84 additions and 16 deletions
+4 -2
View File
@@ -4553,6 +4553,7 @@ EOD;
* will be appended to the end, JS will toggle the rest of the tags
* @param context $pagecontext specify if needed to overwrite the current page context for the view tag link
* @param bool $accesshidelabel if true, the label should have class="accesshide" added.
* @param bool $displaylink Indicates whether the tag should be displayed as a link.
* @return string
*/
public function tag_list(
@@ -4561,9 +4562,10 @@ EOD;
$classes = '',
$limit = 10,
$pagecontext = null,
$accesshidelabel = false
$accesshidelabel = false,
$displaylink = true,
) {
$list = new taglist($tags, $label, $classes, $limit, $pagecontext, $accesshidelabel);
$list = new taglist($tags, $label, $classes, $limit, $pagecontext, $accesshidelabel, $displaylink);
return $this->render_from_template('core_tag/taglist', $list->export_for_template($this));
}