Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_fixed_list_as_pills()

Parameters

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

Location

include/render_functions.php lines 4475 to 4489

Definition

 
function render_fixed_list_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=\"fixedlistnodepill\">" escape($nodedata["name"]) . "</div>";
            
$display_html .= "</a>";
        }
        return 
"<div>" $display_html "</div>";
    }
    return 
'';
}

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 3rd December 2024 11:55 Europe/London time.