Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

render_selected_resources_counter()

Description

Generates HTML for the "X Selected" in the search results found part pointing to the special collection COLLECTION_TYPE_SELECTION

Parameters

ColumnTypeDefaultDescription
$i integer Counter to display

Return

string Returns HTML

Location

include/render_functions.php lines 3534 to 3542

Definition

 
function render_selected_resources_counter($i)
    {
    global 
$baseurl$lang$USER_SELECTION_COLLECTION;

    
$url generateURL("{$baseurl}", array("c" => $USER_SELECTION_COLLECTION));

    
$x_selected '<span class="Selected">' number_format($i) . "</span> {$lang["selected"]}";
    return 
"<a href=\"{$url}\" class=\"SelectionCollectionLink\" onclick=\"return CentralSpaceLoad(this, true);\">{$x_selected}</a>";
    }

This article was last updated 19th March 2024 07:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.