Collections functions
Encryption functions
General functions
Theme permission 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 1631 to 1655

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 htmlspecialchars($GLOBALS['lang']['upgrade_available_title']); ?></h2>
            <p> echo htmlspecialchars($GLOBALS['lang']['upgrade_available_text']); ?></p>
        </div>
    </a>
    

    
return;
    }

This article was last updated 11th July 2020 22:35 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.