コード例 #1
0
 /**
  * @param array $params
  */
 public function __construct(array $params)
 {
     $this->fonts[__("Custom...", AI1EC_PLUGIN_NAME)] = self::CUSTOM_FONT;
     $select = Ai1ec_Helper_Factory::create_select_instance($params['id']);
     $select->add_class('ai1ec_font');
     parent::__construct($params);
     $this->renderable = $this->set_up_renderable($select);
 }
コード例 #2
0
ファイル: font.php プロジェクト: sedici/wpmu-istec
 /**
  * @param Ai1ec_Registry_Object $registry
  * @param array $params
  */
 public function __construct(Ai1ec_Registry_Object $registry, array $params)
 {
     $this->fonts[__("Custom...", AI1EC_PLUGIN_NAME)] = self::CUSTOM_FONT;
     // Allow extensions to add options to the font list.
     $this->fonts = apply_filters('ai1ec_font_options', $this->fonts);
     if (!in_array($params['value'], $this->fonts)) {
         $this->use_custom_value = true;
         $this->custom_value = $params['value'];
         $this->value = self::CUSTOM_FONT;
     }
     parent::__construct($registry, $params);
 }
コード例 #3
0
 public function __construct($params)
 {
     $bootstrap_colorpicker = Ai1ec_Helper_Factory::create_bootstrap_colorpicker_instance($params['value'], $params['id']);
     parent::__construct($params);
     $this->renderable = $this->set_up_renderable($bootstrap_colorpicker);
 }
コード例 #4
0
 public function __construct(array $params)
 {
     parent::__construct($params);
 }