當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Redux_Functions::parseCSS方法代碼示例

本文整理匯總了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;
         }
     }
 }
開發者ID:cimocimocimo,項目名稱:staydrysystems.com,代碼行數:22,代碼來源:field_color_rgba.php

示例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;
         }
     }
 }
開發者ID:venturepact,項目名稱:blog,代碼行數:26,代碼來源:field_color_rgba.php

示例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;
         }
     }
 }
開發者ID:robwri32,項目名稱:garland,代碼行數:16,代碼來源:field_color.php


注:本文中的Redux_Functions::parseCSS方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。