Collections functions
General 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 3557 to 3567

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>";

    return 
$return;
    }

This article was last updated 8th December 2023 23:05 Europe/London time based on the source file dated 29th November 2023 14:55 Europe/London time.