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

generate_browse_bar_item()

Description

Generates a root row item for the browse bar

Parameters

ColumnTypeDefaultDescription
$id
$text

Return

string $html

Location

include/render_functions.php lines 3357 to 3372

Definition

 
function generate_browse_bar_item($id$text)
    {
    
$html '<div class="BrowseBarItem BrowseRowOuter BrowseBarRoot" data-browse-id="' $id '" data-browse-parent="root" data-browse-loaded="0" data-browse-status="closed" data-browse-level="0" >';
    
$html .= '<div class="BrowseRowInner" >';
    
    
$html .= '<div class="BrowseBarStructure">
            <a href="#" class="browse_expand browse_closed" onclick="toggleBrowseElements(\'' 
$id '\',false,true);" ></a>
            </div><!-- End of BrowseBarStructure -->'
;  
    
$html .= '<div onclick="toggleBrowseElements(\'' $id '\',false,true);" class="BrowseBarLink" >' $text '</div>';
    
    
$html .= '<a href="#" class="BrowseRefresh " onclick="toggleBrowseElements(\'' $id '\',true, true);" ><i class="fas fa-sync reloadicon"></i></a>';  
    
    
$html .= "</div><!-- End of BrowseRowInner -->
            </div><!-- End of BrowseRowOuter -->"
;
    return 
$html;
    }

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