render_fixedlist_as_pills()

Parameters

ColumnTypeDefaultDescription
{ $nodes:string ""; if count$nodes > 0

Location

include/render_functions.php lines 4399 to 4413

Definition

 
function render_fixedlist_as_pills($nodes):string 

    global 
$baseurl;
    
$display_html "";
    if (
count($nodes) > 0) {
        foreach (
$nodes as $nodedata) {
            
$search_url generateURL($baseurl '/pages/search.php', ['search' => NODE_TOKEN_PREFIX $nodedata['ref']]);
            
$display_html .= "<a href=\"{$search_url}\" onclick=\"CentralSpaceLoad(this)\"</a>";
            
$display_html .= "<div class=\"categorytreenode\">" escape($nodedata["name"]) . "</div>";
            
$display_html .= "</a>";
        }
        return 
"<div>" $display_html "</div>";
    }
    return 
'';
}

This article was last updated 14th October 2024 09:35 Europe/London time based on the source file dated 11th October 2024 13:30 Europe/London time.