예제 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_id = 'stag_widget_site_contributors';
     $this->widget_cssclass = 'site-contributors full-wrap';
     $this->widget_description = __('Print a list of all site contributors who published at least one post.', 'stag');
     $this->widget_name = __('Section: Contributors', 'stag');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Our Contributors', 'label' => __('Title:', 'stag')), 'description' => array('type' => 'textarea', 'std' => null, 'rows' => '5', 'label' => __('Description:', 'stag')));
     parent::__construct();
 }
예제 #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_id = 'stag_widget_recent_posts';
     $this->widget_cssclass = 'stag_widget_recent_posts full-wrap';
     $this->widget_description = __('Displays recent posts from Blog.', 'stag');
     $this->widget_name = __('Section: Recent Posts', 'stag');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Latest Posts', 'label' => __('Title:', 'stag')), 'count' => array('type' => 'number', 'std' => '3', 'label' => __('Number of posts to show:', 'stag')), 'post_date' => array('type' => 'checkbox', 'std' => 'on', 'label' => __('Display Post Date?', 'stag')), 'bg_color' => array('type' => 'colorpicker', 'std' => stag_theme_mod('colors', 'accent'), 'label' => __('Background Color:', 'stag')), 'bg_opacity' => array('type' => 'number', 'std' => '20', 'step' => '5', 'min' => '0', 'max' => '100', 'label' => __('Background Opacity:', 'stag')), 'bg_image' => array('type' => 'text', 'std' => '', 'label' => __('Background Image URL:', 'stag')), 'text_color' => array('type' => 'colorpicker', 'std' => '#ffffff', 'label' => __('Text Color:', 'stag')), 'link_color' => array('type' => 'colorpicker', 'std' => '#f8f8f8', 'label' => __('Link Color:', 'stag')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_id = 'stag_widget_recent_posts_grid';
     $this->widget_cssclass = 'stag_widget_recent_posts_grid full-wrap';
     $this->widget_description = __('Displays recent posts from Blog in grid style.', 'stag');
     $this->widget_name = __('Section: Recent Posts (Grid)', 'stag');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Latest Posts', 'label' => __('Title:', 'stag')), 'count' => array('type' => 'number', 'std' => '3', 'label' => __('Number of posts to show:', 'stag')), 'category' => array('type' => 'categories', 'std' => '0', 'label' => __('Post Category:', 'stag')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_id = 'stag_widget_static_content';
     $this->widget_cssclass = 'stag_widget_static_content full-wrap';
     $this->widget_description = __('Displays content from a specific page.', 'stag');
     $this->widget_name = __('Section: Static Content', 'stag');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'stag')), 'page' => array('type' => 'page', 'std' => '', 'label' => __('Select Page:', 'stag')), 'bg_color' => array('type' => 'colorpicker', 'std' => stag_theme_mod('colors', 'accent'), 'label' => __('Background Color:', 'stag')), 'bg_opacity' => array('type' => 'number', 'std' => '20', 'step' => '5', 'min' => '0', 'max' => '100', 'label' => __('Background Opacity:', 'stag')), 'bg_image' => array('type' => 'text', 'std' => '', 'label' => __('Background Image URL:', 'stag')), 'text_color' => array('type' => 'colorpicker', 'std' => '#ffffff', 'label' => __('Text Color:', 'stag')), 'link_color' => array('type' => 'colorpicker', 'std' => '#f8f8f8', 'label' => __('Link Color:', 'stag')));
     parent::__construct();
 }