Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 3399 to 3414

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 4th December 2024 08:35 Europe/London time based on the source file dated 3rd December 2024 11:55 Europe/London time.