Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

allow_tile_colour_change()

Description

Check whether we allow a colour change of a tile from the interface.
At the moment it is only available for blank search tiles and text
text only tiles.

Parameters

ColumnTypeDefaultDescription
$tile_type string
$tile_style string '' Examples: thmbs, multi, blank, ftxt

Return

boolean

Location

include/dash_functions.php lines 1448 to 1467

Definition

 
function allow_tile_colour_change($tile_type$tile_style '')
    {
    global 
$lang$dash_tile_colour$dash_tile_colour_options$tile_styles;

    
$allowed_styles = array('blank''ftxt');

    
// Check a specific style for a type
    
if($dash_tile_colour && '' !== $tile_style && !in_array($tile_style$allowed_styles))
        {
        return 
false;
        }

    
// Is one of the allowed styles in the styles available for this tile type?
    
if($dash_tile_colour && isset($tile_styles[$tile_type]) && count(array_intersect($tile_styles[$tile_type], $allowed_styles)))
        {
        return 
true;
        }

    return 
false;
    }

This article was last updated 24th November 2020 18:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.