Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 1508 to 1527

Definition

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

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

    
// Check a specific style for a type
    
if('' !== $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(isset($tile_styles[$tile_type]) && count(array_intersect($tile_styles[$tile_type], $allowed_styles)))
        {
        return 
true;
        }

    return 
false;
    }

This article was last updated 19th March 2024 05:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.