/** * @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); }
/** * @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); }
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); }
public function __construct(array $params) { parent::__construct($params); }