Elgg  Version 5.1
Variables
color.php File Reference

Go to the source code of this file.

Variables

 $value = (string) elgg_extract('value', $vars)
 Displays the input color. More...
 
if(!preg_match('/^# $vars [a-f0-9]{6}$/i', $value))['style'] = "background-color: {$value}"
 
 $vars ['value'] = strtoupper($vars['value'])
 
 $vars ['class'] = 'elgg-color-box'
 

Variable Documentation

$value = (string) elgg_extract('value', $vars)

Displays the input color.

$vars['value'] Color code in HexCode format

Definition at line 8 of file color.php.

if (!preg_match('/^# $vars[a-f0-9]{6}$/i', $value))['style'] = "background-color: {$value}"

Definition at line 13 of file color.php.

$vars['value'] = strtoupper($vars['value'])

Definition at line 14 of file color.php.

$vars['class'] = 'elgg-color-box'

Definition at line 15 of file color.php.