Exemplo n.º 1
0
 public function __construct()
 {
     # Stup description
     $this->widget_params = array('description' => __('Use this widget to add a simple vCard', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'), array('address', 'text', '', 'label' => __('Address', 'dfd')), array('phones', 'text', '', 'label' => __('Phones', 'dfd')), array('display_email_as_link', 'text', '', 'label' => __('Display Email as link', 'dfd'), 'input' => 'checkbox'), array('email', 'text', '', 'label' => __('Email', 'dfd')));
     parent::__construct();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     # Stup description
     $this->widget_params = array('description' => __('Display site logo.', 'dfd'));
     $this->options = array();
     parent::__construct();
 }
Exemplo n.º 3
0
 function __construct()
 {
     $this->widget_params = array('description' => __('Add tabs widget with the posts of chosen category', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'), array('first_col_title', 'text', '', 'label' => __('First col title', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('first_col_categories', 'text', '', 'label' => __('First col categories (slugs)', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('first_col_num', 'int', 5, 'label' => __('First col posts number', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('second_col_title', 'text', '', 'label' => __('Second col title', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('second_col_categories', 'text', '', 'label' => __('Second col categories (slugs)', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('second_col_num', 'int', 5, 'label' => __('Second col posts number', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('third_col_title', 'text', '', 'label' => __('Third col title', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('third_col_categories', 'text', '', 'label' => __('Third col categories (slugs)', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'), array('third_col_num', 'int', 5, 'label' => __('Third col posts number', 'dfd'), 'input' => 'text', 'on_update' => 'esc_attr'));
     parent::__construct();
 }
Exemplo n.º 4
0
 function __construct()
 {
     $this->widget_params = array('description' => __('Displays login form', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'), array('description', 'text', '', 'label' => __('Description', 'dfd'), 'input' => 'textarea', 'on_update' => 'esc_attr'), array('lost_password', 'text', '', 'label' => __('Hide "Lost password"', 'dfd'), 'input' => 'checkbox'));
     parent::__construct();
 }
Exemplo n.º 5
0
 /**
  * Register widget with WordPress.
  */
 public function __construct()
 {
     $this->widget_params = array('description' => __('Last Testimonials', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'));
     parent::__construct();
 }
 public function __construct()
 {
     $this->widget_params = array('description' => __('News categories list widget', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'), array('cat', 'array', '', 'label' => __('News categories IDs', 'dfd'), 'input' => 'wp_category_checklist'));
     parent::__construct();
 }
Exemplo n.º 7
0
 /**
  * Register widget with WordPress.
  */
 public function __construct()
 {
     $this->widget_params = array('description' => __('Advanced recent posts widget.', 'dfd'));
     $this->options = array(array('title', 'text', '', 'label' => __('Title', 'dfd'), 'input' => 'text', 'filters' => 'widget_title', 'on_update' => 'esc_attr'), array('limit', 'int', 5, 'label' => __('Limit', 'dfd'), 'input' => 'select', 'values' => array('range', 'from' => 1, 'to' => 20)), array('date', 'text', '', 'label' => __('Display date', 'dfd'), 'input' => 'checkbox'), array('comments', 'text', '', 'label' => __('Display comments', 'dfd'), 'input' => 'checkbox'), array('author', 'text', '', 'label' => __('Display author', 'dfd'), 'input' => 'checkbox'), array('excerpt', 'text', '', 'label' => __('Display excerpt', 'dfd'), 'input' => 'checkbox'), array('length', 'int', 10, 'label' => __('Excerpt length', 'dfd'), 'input' => 'text'), array('thumb', 'text', '', 'label' => __('Display thumbnail', 'dfd'), 'input' => 'checkbox'), array('cat', 'text', '', 'label' => __('Limit to category', 'dfd'), 'input' => 'wp_dropdown_categories'));
     parent::__construct();
 }