Exemple #1
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 #2
0
 public function __construct()
 {
     $this->path = dirname(__FILE__);
     // Widget variable settings
     $this->description = __('Tab Builder.', 'spyropress');
     $this->id_base = 'tab';
     $this->name = __('Tabs', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Tab Position', 'spyropress'), 'id' => 'tab_position', 'type' => 'select', 'options' => array('top' => __('Top', 'spyropress'), 'bottom' => __('Bottom', 'spyropress'), 'vertical' => __('Vertical', 'spyropress'))), array('label' => __('Tab Alignment', 'spyropress'), 'id' => 'tab_align', 'type' => 'select', 'options' => array('left' => __('Left', 'spyropress'), 'right' => __('Right', 'spyropress'), 'justified' => __('Justified', 'spyropress'))), array('label' => __('Tab', 'spyropress'), 'id' => 'tabs', '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' => __('Tab Bucket', 'spyropress'), 'id' => 'bucket', 'type' => 'select', 'desc' => __('If you want to use 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->path = dirname(__FILE__);
     $this->description = __('List your text with icons.', 'spyropress');
     $this->id_base = 'icon_list';
     $this->name = __('Icon List', 'spyropress');
     // Fields
     $this->fields = array(array('label' => __('Same Icon for All', 'spyropress'), 'id' => 'same_icon', 'type' => 'select', 'options' => spyropress_get_options_fontawesome_icons()), array('label' => __('Style', 'spyropress'), 'id' => 'style', 'type' => 'select', 'options' => array('in' => __('Indent', 'spyropress'), 'list-unstyled' => __('Unindent', 'spyropress')), 'std' => 'in'), array('label' => __('List', 'spyropress'), 'id' => 'list', 'type' => 'repeater', 'item_title' => 'title', 'fields' => array(array('label' => __('Content', 'spyropress'), 'id' => 'content', 'type' => 'textarea', 'rows' => 7), array('label' => __('Icon', 'spyropress'), 'id' => 'icon', 'type' => 'select', 'options' => spyropress_get_options_fontawesome_icons()))));
     $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();
 }
Exemple #5
0
 * Tables Config
 */
$spyropress_shortcodes['tables'] = array('no_preview' => true, 'params' => array('cls' => array('type' => 'multi_select', 'label' => __('Style', 'spyropress'), 'desc' => __('Select the table\'s style', 'spyropress'), 'options' => array('table-striped' => 'Table Striped', 'table-bordered' => 'Table Bordered', 'table-hover' => 'Table Hover', 'table-condensed' => 'Table Condensed'))), 'shortcode' => 'tables', 'defaultContent' => '<table><thead><tr><th>#</th><th>First Name</th><th>Last Name</th><th>Username</th></tr></thead><tbody><tr><td>1</td><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><td>2</td><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><td>3</td><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table>');
/**
 * Tooltip Config
 */
$spyropress_shortcodes['tooltip'] = array('no_preview' => true, 'params' => array('content' => array('type' => 'text', 'label' => __('Title', 'spyropress'), 'desc' => '', 'std' => ''), 'tip' => array('type' => 'textarea', 'label' => __('Tooltip', 'spyropress'), 'desc' => '', 'std' => ''), 'position' => array('type' => 'select', 'label' => __('Position', 'spyropress'), 'desc' => '', 'options' => array('top' => 'Top', 'bottom' => 'Bottom', 'left' => 'Left', 'right' => 'Right'))), 'shortcode' => 'tooltip');
/**
 * Alternative Font Config
 */
$spyropress_shortcodes['typo_alt_font'] = array('no_preview' => true, 'params' => array('content' => array('type' => 'text', 'label' => __('Content', 'spyropress'), 'desc' => '', 'std' => 'Content goes here'), 'animation' => array('type' => 'select', 'label' => __('Animation', 'spyropress'), 'desc' => '', 'options' => $spyropress_sc_animation)), 'shortcode' => 'alt_font');
/**
 * Inverted Font Config
 */
$spyropress_shortcodes['typo_inverted'] = array('no_preview' => true, 'params' => array('content' => array('type' => 'text', 'label' => __('Content', 'spyropress'), 'desc' => '', 'std' => 'Content goes here'), 'animation' => array('type' => 'select', 'label' => __('Animation', 'spyropress'), 'desc' => '', 'options' => $spyropress_sc_animation)), 'shortcode' => 'inverted');
/**
 * Label Config
 */
$spyropress_shortcodes['typo_labels'] = array('no_preview' => true, 'params' => array('content' => array('type' => 'text', 'label' => __('Title', 'spyropress'), 'desc' => '', 'std' => 'Label goes here'), 'cls' => array('type' => 'select', 'label' => __('Variation', 'spyropress'), 'desc' => '', 'options' => $spyropress_sc_variations)), 'shortcode' => 'label');
/**
 * Icon List Config
 */
$spyropress_shortcodes['icon_list'] = array('no_preview' => true, 'params' => array('icon' => array('type' => 'select', 'label' => __('Icon', 'spyropress'), 'desc' => '', 'options' => spyropress_get_options_fontawesome_icons())), 'shortcode' => 'icon_list', 'defaultContent' => '<ul><li>content goes here.</li><li>content goes here.</li><li>content goes here.</li></ul>');
/**
 * Icon Config
 */
$spyropress_shortcodes['icon'] = array('no_preview' => true, 'params' => array('icon' => array('type' => 'select', 'label' => __('Icon', 'spyropress'), 'desc' => '', 'options' => spyropress_get_options_fontawesome_icons())), 'shortcode' => 'icon');
/**
 * Blockquote Config
 */
$spyropress_shortcodes['typo_blockquote'] = array('no_preview' => true, 'params' => array('content' => array('type' => 'textarea', 'label' => __('Quote', 'spyropress'), 'desc' => '', 'std' => ''), 'author' => array('type' => 'text', 'label' => __('Author', 'spyropress'), 'desc' => '', 'std' => ''), 'source' => array('type' => 'text', 'label' => __('Source', 'spyropress'), 'desc' => '', 'std' => ''), 'style' => array('type' => 'select', 'label' => __('Style', 'spyropress'), 'desc' => '', 'options' => array('' => 'default', 's1' => 'Style 1', 'left' => 'Left', 'right' => 'Right'))), 'shortcode' => 'blockquote');