Collections functions
Encryption functions
General functions
Theme permission 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 3087 to 3097

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 15th July 2020 07:05 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.