|
static | computeContrastRatio (string $color, string $background) |
|
static | contrastRatioLevel (float $ratio, string $size, bool $bold=false) |
|
static | contrastRatio (string $color, string $background, string $size='', bool $bold=false) |
|
static | adjustFontSize (string $size) |
|
static | adjustPosition (string $position) |
|
static | adjustColor (string $color) |
|
static | cleanCSS (string $css) |
|
static | cssPath (string $folder) |
|
static | cssURL (string $folder) |
|
static | canWriteCss (string $folder, bool $create=false) |
|
static | prop (array &$css, string $selector, string $prop, $value) |
|
static | backgroundImg (string $folder, array &$css, string $selector, bool $value, string $image) |
|
static | writeCss (string $folder, string $theme, string $css) |
|
static | dropCss (string $folder, string $theme) |
|
static | publicCssUrlHelper (string $folder) |
|
static | imagesPath (string $folder) |
|
static | imagesURL (string $folder) |
|
static | canWriteImages (string $folder, bool $create=false) |
|
static | uploadImage (string $folder, array $file, int $width=0) |
|
static | dropImage (string $folder, string $img) |
|
◆ computeContrastRatio()
static computeContrastRatio |
( |
string |
$color, |
|
|
string |
$background |
|
) |
| |
|
static |
Compute contrast ratio between two colors
- Parameters
-
string | $color | text color |
string | $background | background color |
- Returns
- float computed ratio
References adjustColor().
Referenced by contrastRatio().
◆ contrastRatioLevel()
static contrastRatioLevel |
( |
float |
$ratio, |
|
|
string |
$size, |
|
|
bool |
$bold = false |
|
) |
| |
|
static |
Compute WCAG contrast ration level
- Parameters
-
float | $ratio | computed ratio between foreground and backround color |
string | $size | font size as defined in CSS |
boolean | $bold | true if bold font |
- Returns
- string WCAG contrast ratio level (AAA, AA or <nothing>)
Referenced by contrastRatio().
◆ contrastRatio()
static contrastRatio |
( |
string |
$color, |
|
|
string |
$background, |
|
|
string |
$size = '' , |
|
|
bool |
$bold = false |
|
) |
| |
|
static |
◆ adjustFontSize()
static adjustFontSize |
( |
string |
$size | ) |
|
|
static |
◆ adjustPosition()
static adjustPosition |
( |
string |
$position | ) |
|
|
static |
◆ adjustColor()
static adjustColor |
( |
string |
$color | ) |
|
|
static |
◆ cleanCSS()
static cleanCSS |
( |
string |
$css | ) |
|
|
static |
◆ cssPath()
static cssPath |
( |
string |
$folder | ) |
|
|
static |
◆ cssURL()
static cssURL |
( |
string |
$folder | ) |
|
|
static |
◆ canWriteCss()
static canWriteCss |
( |
string |
$folder, |
|
|
bool |
$create = false |
|
) |
| |
|
static |
◆ prop()
static prop |
( |
array & |
$css, |
|
|
string |
$selector, |
|
|
string |
$prop, |
|
|
|
$value |
|
) |
| |
|
static |
Store CSS property value in associated array
- Parameters
-
array | $css | CSS associated array |
string | $selector | selector |
string | $prop | property |
mixed | $value | value |
Referenced by blowupConfig\createCss().
◆ backgroundImg()
static backgroundImg |
( |
string |
$folder, |
|
|
array & |
$css, |
|
|
string |
$selector, |
|
|
bool |
$value, |
|
|
string |
$image |
|
) |
| |
|
static |
Store background image property in CSS associated array
- Parameters
-
string | $folder | image folder |
array | $css | CSS associated array |
string | $selector | selector |
boolean | $value | false for default, true if image should be set |
string | $image | image filename |
References imagesPath(), and imagesURL().
Referenced by blowupConfig\backgroundImg().
◆ writeCss()
static writeCss |
( |
string |
$folder, |
|
|
string |
$theme, |
|
|
string |
$css |
|
) |
| |
|
static |
Write CSS file
- Parameters
-
string | $folder | CSS folder |
string | $theme | CSS filename |
string | $css | CSS file content |
◆ dropCss()
static dropCss |
( |
string |
$folder, |
|
|
string |
$theme |
|
) |
| |
|
static |
◆ publicCssUrlHelper()
static publicCssUrlHelper |
( |
string |
$folder | ) |
|
|
static |
◆ imagesPath()
static imagesPath |
( |
string |
$folder | ) |
|
|
static |
◆ imagesURL()
static imagesURL |
( |
string |
$folder | ) |
|
|
static |
◆ canWriteImages()
static canWriteImages |
( |
string |
$folder, |
|
|
bool |
$create = false |
|
) |
| |
|
static |
◆ uploadImage()
static uploadImage |
( |
string |
$folder, |
|
|
array |
$file, |
|
|
int |
$width = 0 |
|
) |
| |
|
static |
Upload an image in images folder
- Parameters
-
string | $folder | images folder |
array | $file | selected image file (as $_FILES[<file input fieldname>]) |
int | $width | check accurate width of uploaded image if <> 0 |
- Returns
- string full pathname of uploaded image
References files\getMimeType(), and imagesPath().
Referenced by blowupConfig\uploadImage().
◆ dropImage()
static dropImage |
( |
string |
$folder, |
|
|
string |
$img |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: