Exemple #1
0
 public function __construct()
 {
     $this->description = __('Parallax section creator.', 'spyropress');
     $this->id_base = 'parallax';
     $this->name = __('Parallax', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Skin', 'spyropress'), 'id' => 'skin', 'type' => 'select', 'options' => array('dark' => __('Light', 'spyropress'), 'white' => __('Dark', 'spyropress')), 'std' => 'white'), array('label' => __('Background Image', 'spyropress'), 'id' => 'background', 'type' => 'upload'), array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Title Animation', 'spyropress'), 'id' => 'title_animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Teaser', 'spyropress'), 'id' => 'teaser', 'type' => 'text'), array('label' => __('Teaser Animation', 'spyropress'), 'id' => 'teaser_animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Icon', 'spyropress'), 'id' => 'icon', 'type' => 'text'), array('label' => __('Icon Animation', 'spyropress'), 'id' => 'icon_animation', 'type' => 'select', 'options' => spyropress_get_options_animation()));
     $this->create_widget();
 }
Exemple #2
0
 public function __construct()
 {
     // Widget variable settings.
     $this->cssclass = '';
     $this->description = __('Accordion Builder.', 'spyropress');
     $this->id_base = 'accordion';
     $this->name = __('Accordions', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Style', 'spyropress'), 'id' => 'style', 'type' => 'select', 'options' => array('secundary' => 'Secundary')), array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Animation', 'spyropress'), 'id' => 'animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Active', 'spyropress'), 'id' => 'is_active', 'type' => 'checkbox', 'options' => array(1 => __('Disable first slide active effect on page load', 'spyropress'))), array('label' => __('Accordion', 'spyropress'), 'id' => 'accordions', 'type' => 'repeater', 'item_title' => 'title', 'fields' => array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Icon', 'spyropress'), 'id' => 'icon', 'type' => 'select', 'options' => spyropress_get_options_fontawesome_icons(), 'desc' => __('See the <a target="_blank" href="http://fontawesome.io/icons/">icons here</a>.', 'spyropress')), array('label' => __('Accordion Bucket', 'spyropress'), 'id' => 'bucket', 'type' => 'select', 'desc' => __('If you want to use complex html instead of plain text.', 'spyropress'), 'options' => spyropress_get_buckets()), array('label' => __('Content', 'spyropress'), 'id' => 'content', 'type' => 'textarea', 'rows' => 7))));
     $this->create_widget();
 }
Exemple #3
0
 public function __construct()
 {
     // Widget variable settings
     $this->cssclass = 'module-heading';
     $this->description = __('Add headings into the page layout wherever needed.', 'spyropress');
     $this->id_base = 'spyropress_heading';
     $this->name = __('Heading', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Heading Text', 'spyropress'), 'id' => 'heading', 'type' => 'text'), array('label' => __('HTML Tag', 'spyropress'), 'id' => 'html_tag', 'type' => 'select', 'options' => array(1 => __('H1', 'spyropress'), 2 => __('H2', 'spyropress'), 3 => __('H3', 'spyropress'), 4 => __('H4', 'spyropress'), 5 => __('H5', 'spyropress'), 6 => __('H6', 'spyropress')), 'std' => 2), array('label' => __('Animation', 'spyropress'), 'id' => 'animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Styles', 'spyropress'), 'id' => 'styles', 'type' => 'multi_select', 'options' => array('short' => __('Short', 'spyropress'), 'push-top' => __('Push Top', 'spyropress'), 'spaced' => __('Spaced', 'spyropress'), 'more-spaced' => __('More Spaced', 'spyropress'))));
     $this->create_widget();
 }
Exemple #4
0
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->description = __('Display a list of staff.', 'spyropress');
     $this->id_base = 'spyropress_staff';
     $this->name = __('Our Team', 'spyropress');
     // Templates
     $this->templates['columns'] = array('label' => __('Columns', 'spyropress'));
     $this->templates['carousel'] = array('label' => __('Carousel', 'spyropress'), 'view' => 'carousel.php');
     // Fields
     $this->fields = array(array('label' => __('Templates', 'spyropress'), 'id' => 'template', 'type' => 'select', 'options' => $this->get_option_templates(), 'std' => 'columns', 'class' => 'enable_changer section-full'), array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Animation', 'spyropress'), 'id' => 'animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Number of items', 'spyropress'), 'id' => 'limit', 'type' => 'range_slider', 'std' => 4), array('label' => __('Number of Columns', 'spyropress'), 'id' => 'columns', 'type' => 'range_slider', 'std' => 4, 'max' => 4), array('id' => 'enable', 'type' => 'checkbox', 'class' => 'template columns section-full', 'options' => array(1 => __('Show filters', 'spyropress'))), array('label' => __('All Label', 'spyropress'), 'id' => 'all_label', 'class' => 'template columns section-full', 'type' => 'text', 'std' => 'Show All'));
     $this->create_widget();
 }
 public function __construct()
 {
     // Widget variable settings.
     $this->path = dirname(__FILE__);
     $this->cssclass = 'feature';
     $this->description = __('List your features.', 'spyropress');
     $this->id_base = 'feature';
     $this->name = __('Features', 'spyropress');
     $this->templates['list'] = array('label' => __('Features List', 'spyropress'));
     $this->templates['list2'] = array('label' => __('Features List 2', 'spyropress'));
     $this->templates['boxes'] = array('label' => __('Features Boxes', 'spyropress'), 'view' => 'boxes.php');
     // Fields
     $this->fields = array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Animation', 'spyropress'), 'id' => 'animation', 'type' => 'select', 'options' => spyropress_get_options_animation()), array('label' => __('Styles', 'spyropress'), 'id' => 'style', 'type' => 'select', 'options' => $this->get_option_templates(), 'std' => 'list'), 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' => __('Feature', 'spyropress'), 'id' => 'features', 'type' => 'repeater', 'item_title' => 'title', 'fields' => array(array('label' => __('Title', 'spyropress'), 'id' => 'title', 'type' => 'text'), array('label' => __('Teaser', 'spyropress'), 'id' => 'teaser', 'type' => 'textarea', 'rows' => 5), array('label' => __('Icon', 'spyropress'), 'id' => 'icon', 'type' => 'select', 'options' => spyropress_get_options_fontawesome_icons(), 'desc' => __('See the <a target="_blank" href="http://fontawesome.io/icons/">icons here</a>.', 'spyropress')), array('label' => __('Skin', 'spyropress'), 'id' => 'skin', 'type' => 'select', 'options' => array('primary' => __('Primary', 'spyropress'), 'secundary' => __('Secondary', 'spyropress'), 'tertiary' => __('Tertiary', 'spyropress'), 'quartenary' => __('Quartenary', 'spyropress')), 'std' => 'primary'))));
     $this->create_widget();
 }