function form($instance)
 {
     echo Util::html('p', $this->input(array('type' => 'text', 'name' => 'title', 'desc' => __('Title:', DIRESS_DOMAIN)), $instance));
     echo Util::html('p', $this->input(array('type' => 'url', 'name' => 'facebook_url', 'desc' => __('Facebook Url:', DIRESS_DOMAIN)), $instance));
     echo Util::html('p', $this->input(array('type' => 'url', 'name' => 'twitter_url', 'desc' => __('Twitter Url:', DIRESS_DOMAIN)), $instance));
     echo Util::html('p', $this->input(array('type' => 'url', 'name' => 'linkedin_url', 'desc' => __('LinkedIn Url:', DIRESS_DOMAIN)), $instance));
     echo Util::html('p', $this->input(array('type' => 'url', 'name' => 'gplus_url', 'desc' => __('Google plus Url:', DIRESS_DOMAIN)), $instance));
 }
Example #2
0
 public function __construct()
 {
     $this->postType = 'feature';
     $this->singularName = 'Feature';
     $this->pluralName = 'Features';
     $this->menuName = 'Feature';
     $this->slug = 'feature';
     $this->args = array('supports' => array('title', 'editor', 'thumbnail'));
     $this->meta_fields = array('feature_icon' => array('type' => 'select', 'name' => 'feature_icon', 'title' => 'Feature\'s icon', 'value' => 'icon-book-open', 'choices' => Util::getElegantIconList()));
 }