Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

generate_browse_bar_item()

Description

Generates a root row item for the browse bar

Parameters

ColumnTypeDefaultDescription
$id
$text

Return

void

Location

include/render_functions.php lines 2966 to 2982

Definition

 
function generate_browse_bar_item($id$text)
    {
    
//global $browse_bar_elements;
    
$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 30th November 2020 13:05 Europe/London time based on the source file dated 13th November 2020 15:00 Europe/London time.