本文整理匯總了PHP中Redux_Functions::parseCSS方法的典型用法代碼示例。如果您正苦於以下問題:PHP Redux_Functions::parseCSS方法的具體用法?PHP Redux_Functions::parseCSS怎麽用?PHP Redux_Functions::parseCSS使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Redux_Functions
的用法示例。
在下文中一共展示了Redux_Functions::parseCSS方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: output
public function output()
{
if ((!isset($this->field['output']) || !is_array($this->field['output'])) && !isset($this->field['compiler'])) {
return;
}
if (!empty($this->value)) {
$mode = isset($this->field['mode']) && !empty($this->field['mode']) ? $this->field['mode'] : 'color';
if ($this->value['alpha'] == "0.00" || empty($this->value['color'])) {
$style = $mode . ':transparent;';
} elseif (!empty($this->value['color'])) {
$style = $mode . ':rgba(' . Redux_Helpers::hex2rgba($this->value['color']) . ',' . $this->value['alpha'] . ');';
}
if (!empty($this->field['output']) && is_array($this->field['output'])) {
$css = Redux_Functions::parseCSS($this->field['output'], $style, $this->value);
$this->parent->outputCSS .= $css;
}
if (!empty($this->field['compiler']) && is_array($this->field['compiler'])) {
$css = Redux_Functions::parseCSS($this->field['compiler'], $style, $this->value);
$this->parent->compilerCSS .= $css;
}
}
}
示例2: output
/**
* Output Function.
*
* Used to enqueue to the front-end
*
* @since 1.0.0
* @access public
* @return void
*/
public function output()
{
if (!empty($this->value)) {
$style = '';
$mode = isset($this->field['mode']) && !empty($this->field['mode']) ? $this->field['mode'] : 'color';
$color_val = $this->getColorVal();
$style .= $mode . ':' . $color_val . ';';
if (!empty($this->field['output']) && true == $this->field['output']) {
$css = Redux_Functions::parseCSS($this->field['output'], $style, $color_val);
$this->parent->outputCSS .= $css;
}
if (!empty($this->field['compiler']) && true == $this->field['compiler']) {
$css = Redux_Functions::parseCSS($this->field['compiler'], $style, $color_val);
$this->parent->compilerCSS .= $css;
}
}
}
示例3: output
public function output()
{
$style = '';
if (!empty($this->value)) {
$mode = isset($this->field['mode']) && !empty($this->field['mode']) ? $this->field['mode'] : 'color';
$style .= $mode . ':' . $this->value . ';';
if (!empty($this->field['output']) && is_array($this->field['output'])) {
$css = Redux_Functions::parseCSS($this->field['output'], $style, $this->value);
$this->parent->outputCSS .= $css;
}
if (!empty($this->field['compiler']) && is_array($this->field['compiler'])) {
$css = Redux_Functions::parseCSS($this->field['compiler'], $style, $this->value);
$this->parent->compilerCSS .= $css;
}
}
}