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

render_browse_bar()

Description

Renders the browse bar

Parameters

This function accepts no parameters.

Return

void

Location

include/render_functions.php lines 3323 to 3374

Definition

 
function render_browse_bar()
    {
    global 
$lang$browse_bar_workflow$enable_themes;
    
$bb_html '<div id="BrowseBarContainer" style="display:none;">';
    
$bb_html .= '<div id="BrowseBar" class="BrowseBar">';
    
$bb_html .= '<div id="BrowseBarContent" >'
    
    
//Browse row template
    // script will replace %BROWSE_TYPE%, %BROWSE_EXPAND_CLASS%, %BROWSE_CLASS% %BROWSE_LEVEL%, %BROWSE_EXPAND%, %BROWSE_NAME%, %BROWSE_TEXT%, %BROWSE_ID%
    
$bb_html .= "
            <div id='BrowseBarTemplate' style='display: none;'>
            <div class='BrowseBarItem BrowseRowOuter %BROWSE_DROP%' data-browse-id='%BROWSE_ID%' data-browse-parent='%BROWSE_PARENT%'  data-browse-loaded='0' data-browse-status='closed' data-browse-level='%BROWSE_LEVEL%' style='display: none;'>
                <div class='BrowseRowInner' >
                    %BROWSE_INDENT%
                    %BROWSE_EXPAND%
                    %BROWSE_TEXT%
                    %BROWSE_REFRESH%
                </div><!-- End of BrowseRowInner -->
            </div><!-- End of BrowseRowOuter -->
            </div><!-- End of BrowseBarTemplate -->
            "
;

    
// Add root elements
    
$bb_html .= generate_browse_bar_item("R"$lang['browse_by_tag']);
    if(
$enable_themes)
        {
        
$bb_html .= generate_browse_bar_item("FC"$lang["themes"]);
        }
    if(!
checkperm('b'))
        {
        
$bb_html .= generate_browse_bar_item("C"$lang["mycollections"]);
        }
        
    if(
$browse_bar_workflow)
        {
        
$bb_html .= generate_browse_bar_item("WF"$lang['browse_by_workflow_state']);
        }

    
$bb_html .= '</div><!-- End of BrowseBarContent -->
                </div><!-- End of BrowseBar -->
                </div><!-- End of BrowseBarContainer -->'
;
    echo 
$bb_html;
    
    echo 
'<script>
        b_loading = new Array();
        // Expand tree to previous state based on stored cookie
        jQuery(document).ready(function()
            {
            ReloadBrowseBar();
            });
        </script>'
;
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 14:05 Europe/London time.