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 3477 to 3485

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 27th April 2024 10:05 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.