Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource 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 1695 to 1717

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 19th March 2024 11:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.