Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_tile_custom_style()

Parameters

ColumnTypeDefaultDescription
$buildstring

Location

include/dash_functions.php lines 1569 to 1586

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 10th July 2020 20:35 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.