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_upgrade_available_tile()

Description

Render "Upgrade available" tile for Administrators and Super Admins. This tile cannot be deleted or removed unless
ResourceSpace version is up to date

Parameters

ColumnTypeDefaultDescription
$user integer User ID, normally this is the $userref

Return

void

Location

include/dash_functions.php lines 1771 to 1793

Definition

 
function render_upgrade_available_tile($user)
    {
    if(!(
checkperm("t") || checkperm("a")))
        {
        return;
        }

    if(!
is_resourcespace_upgrade_available())
        {
        return;
        }
    
?>
    <a href="https://www.resourcespace.com/versions"
       target="_blank"
       class="HomePanel DashTile"
       id="upgrade_available_tile">
        <div id="contents_user_tile_upgrade_available" class="HomePanelIN HomePanelDynamicDash">
            <h2> echo escape($GLOBALS['lang']['upgrade_available_title']); ?></h2>
            <p> echo escape($GLOBALS['lang']['upgrade_available_text']); ?></p>
        </div>
    </a>
    
    
}

This article was last updated 11th December 2024 09:05 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.