Ejemplo n.º 1
0
 /**
  * Class constructor
  *
  * @param string $name
  *
  * @access public
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $css_path = FileSystem::getDirectory('fonts_path') . 'fontello.css';
     $items = SectionAbstract::flipSourceData(MetaBox::getFontelloIcons('icon', $css_path, 'silverwp_fontello_icons'));
     $this->setOptions($items);
 }
Ejemplo n.º 2
0
 public function __construct($control_name)
 {
     parent::__construct($control_name);
     //set up drop-down options for fonts
     $fonts_tmp = silverwp_get_font_family();
     $fonts = array();
     foreach ($fonts_tmp as $value) {
         $fonts[Gwf::addQuote($value['value'])] = $value['label'];
         //$fonts[ $value['value'] ] = $value['label'];
     }
     $this->setOptions($fonts);
 }