Пример #1
0
 function __construct()
 {
     // Widget variable settings
     $this->id_base = 'spyropress_faqs';
     $this->cssclass = 'toogle';
     $this->name = __('FAQs', 'spyropress');
     $this->description = __('A module to display faqs.', 'spyropress');
     $this->fields = array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text', 'std' => $this->name), array('label' => __('Number of items', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'std' => 6), array('label' => __('Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('faq_category')));
     $this->create_widget();
 }
Пример #2
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of portfolio.', 'spyropress');
     $this->id_base = 'recent_works';
     $this->name = __('Recent Works', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text', 'std' => $this->name), array('label' => __('Number of items', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'max' => 30, 'std' => 4), array('label' => __('Portfolio Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('portfolio_category')), array('id' => 'url_enable', 'type' => 'checkbox', 'options' => array('1' => __('Show Archive Link', 'spyropress'))), array('label' => __('Link to Text', 'spyropress'), 'id' => 'url_text', 'type' => 'text', 'std' => 'View More'));
     $this->create_widget();
 }
Пример #3
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of recent posts.', 'spyropress');
     $this->id_base = 'srecent_posts';
     $this->cssclass = 'recent-posts push-bottom';
     $this->name = __('Recent Posts', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text', 'std' => $this->name), array('label' => __('Number of items per page', 'spyropress'), 'id' => 'limit', 'type' => 'text', 'std' => 6), array('label' => __('Columns', 'spyropress'), 'id' => 'columns', 'type' => 'select', 'options' => array(1 => __('1 Column', 'spyropress'), 2 => __('2 Column', 'spyropress'), 3 => __('3 Column', 'spyropress'), 4 => __('4 Column', 'spyropress'))), array('label' => __('Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('category')), array('id' => 'url_enable', 'type' => 'checkbox', 'options' => array('1' => __('Show Archive Link', 'spyropress'))), array('label' => __('Link to Text', 'spyropress'), 'id' => 'url_text', 'type' => 'text', 'std' => 'View All'), array('label' => __('Excerpt Length', 'spyropress'), 'id' => 'excerpt_length', 'type' => 'range_slider', 'std' => 18), array('label' => __('Auto Play', 'spyropress'), 'id' => 'auto_play', 'type' => 'checkbox', 'options' => array(1 => __('Enabe Crousel Auto play effect.', 'spyropress'))));
     $this->create_widget();
 }
Пример #4
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of testimonials.', 'spyropress');
     $this->id_base = 'recent_testimonials';
     $this->name = __('Testimonials', 'spyropress');
     // Templates
     $this->templates['columns'] = array('label' => __('Columns', 'spyropress'), 'view' => 'columns.php');
     // Fields
     $this->fields = array(array('label' => __('Styles', 'spyropress'), 'id' => 'template', 'type' => 'select', 'class' => 'enable_changer section-full', 'options' => $this->get_option_templates()), array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text', 'std' => $this->name), array('label' => __('Number of items', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'std' => 4), array('label' => __('Number of columns', 'spyropress'), 'id' => 'columns', 'type' => 'range_slider', 'class' => 'template columns section-full', 'std' => 3, 'max' => 6), array('label' => __('Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('testimonial_category')), array('label' => __('Auto Play', 'spyropress'), 'id' => 'auto_play', 'type' => 'checkbox', 'options' => array(1 => __('Enabe Crousel Auto play effect.', 'spyropress'))));
     $this->create_widget();
 }
Пример #5
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of posts', 'spyropress');
     $this->id_base = 'recent_posts';
     $this->name = __('Blog', 'spyropress');
     // Templates
     $this->templates['full'] = array('label' => __('Full Width', 'spyropress'));
     $this->templates['large'] = array('label' => __('Large Image', 'spyropress'));
     $this->templates['medium'] = array('label' => __('Medium Image', 'spyropress'), 'view' => 'medium.php');
     $this->templates['timeline'] = array('label' => __('Timeline', 'spyropress'), 'view' => 'timeline.php');
     // Fields
     $this->fields = array(array('label' => __('Templates', 'spyropress'), 'id' => 'layout', 'type' => 'select', 'class' => 'enable_changer section-full', 'options' => $this->get_option_templates(), 'std' => 'full'), array('label' => __('Number of items per page', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'std' => 6), array('label' => __('Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('category')));
     $this->create_widget();
 }
Пример #6
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of portfolio.', 'spyropress');
     $this->id_base = 'recent_portfolio';
     $this->name = __('Portfolio', 'spyropress');
     // Templates
     $this->templates['carousel'] = array('label' => __('Carousel', 'spyropress'), 'view' => 'carousel.php');
     $this->templates['fullwidth'] = array('label' => __('Full Width', 'spyropress'), 'view' => 'fullwidth.php');
     $this->templates['lightbox'] = array('label' => __('Lightbox', 'spyropress'), 'view' => 'lightbox.php');
     $this->templates['listing'] = array('label' => __('Listing', 'spyropress'));
     $this->templates['timeline'] = array('label' => __('Timeline', 'spyropress'), 'view' => 'timeline.php');
     // Fields
     $this->fields = array(array('label' => __('Templates', 'spyropress'), 'id' => 'template', 'type' => 'select', 'options' => $this->get_option_templates(), 'std' => 'listing', 'class' => 'enable_changer section-full'), array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text', 'std' => $this->name), array('label' => __('Number of items', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'std' => 6), array('id' => 'pagination', 'type' => 'checkbox', 'options' => array(1 => __('Show pagination', 'spyropress'))), array('label' => __('Number of Columns', 'spyropress'), 'id' => 'columns', 'class' => 'template lightbox listing section-full', 'type' => 'range_slider', 'std' => 2, 'max' => 4), array('label' => __('Portfolio Category', 'spyropress'), 'id' => 'cat', 'type' => 'multi_select', 'options' => spyropress_get_taxonomies('portfolio_category')), array('id' => 'filters', 'type' => 'checkbox', 'class' => 'template lightbox fullwidth listing section-full', 'options' => array(1 => __('Show portfolio filters', 'spyropress'))), array('label' => __('All Label', 'spyropress'), 'id' => 'show_all', 'type' => 'text', 'std' => 'Show All'));
     $this->create_widget();
 }