Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_tile_custom_style()

Parameters

ColumnTypeDefaultDescription
$buildstring

Location

include/dash_functions.php lines 1633 to 1650

Definition

 
function get_tile_custom_style($buildstring)
    {
    if (isset(
$buildstring['tlstylecolour']))
        {
        
$return_value="background-color: ";
        if (
preg_match('/^[a-fA-F0-9]+$/',$buildstring['tlstylecolour']))
            {
            
// this is a fix for supporting legacy hex values that do not have '#' at start
            
$return_value.='#';
            }
        
$return_value.=$buildstring['tlstylecolour'] . ';';
        return 
$return_value;
        }
    else
        {
        return 
'';
        }
    }

This article was last updated 26th April 2024 14:35 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.