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

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 1578 to 1597

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 17th November 2024 15:05 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.