function __construct() { parent::__construct('sow-hero', __('SiteOrigin Hero', 'so-widgets-bundle'), array('description' => __('A big hero image with a few settings to make it your own.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/hero-image-widget/', 'panels_title' => false), array(), false, plugin_dir_path(__FILE__)); }
function __construct() { parent::__construct('sow-slider', __('SiteOrigin Slider', 'siteorigin-widgets'), array('description' => __('A responsive slider widget that supports images and video.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/slider-widget-documentation/', 'panels_title' => false), array(), array('frames' => array('type' => 'repeater', 'label' => __('Slider frames', 'siteorigin-widgets'), 'item_name' => __('Frame', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('background_videos' => array('type' => 'repeater', 'item_name' => __('Video', 'siteorigin-widgets'), 'label' => __('Background videos', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-background_videos-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => $this->video_form_fields()), 'background_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Background image', 'siteorigin-widgets')), 'background_color' => array('type' => 'color', 'label' => __('Background Color', 'siteorigin-widgets')), 'background_image_type' => array('type' => 'select', 'label' => __('Background image type', 'siteorigin-widgets'), 'options' => array('cover' => __('Cover', 'siteorigin-widgets'), 'tile' => __('Tile', 'siteorigin-widgets')), 'default' => 'cover'), 'foreground_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Foreground image', 'siteorigin-widgets')), 'url' => array('type' => 'link', 'label' => __('Destination URL', 'siteorigin-widgets')), 'new_window' => array('type' => 'checkbox', 'label' => __('Open in new window', 'siteorigin-widgets'), 'default' => false))), 'controls' => array('type' => 'section', 'label' => __('Controls', 'siteorigin-widget'), 'fields' => $this->control_form_fields())), plugin_dir_path(__FILE__) . '../'); }
function __construct() { parent::__construct('sow-hero', __('SiteOrigin Hero', 'so-widgets-bundle'), array('description' => __('A big hero image with a few settings to make it your own.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/hero-image-widget/', 'panels_title' => false), array(), array('frames' => array('type' => 'repeater', 'label' => __('Hero frames', 'so-widgets-bundle'), 'item_name' => __('Frame', 'so-widgets-bundle'), 'item_label' => array('selector' => "[id*='frames-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('content' => array('type' => 'tinymce', 'label' => __('Content', 'so-widgets-bundle')), 'buttons' => array('type' => 'repeater', 'label' => __('Buttons', 'so-widgets-bundle'), 'item_name' => __('Button', 'so-widgets-bundle'), 'description' => __('Add [buttons] shortcode to the content to insert these buttons.', 'so-widgets-bundle'), 'item_label' => array('selector' => "[id*='buttons-button-text']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('button' => array('type' => 'widget', 'class' => 'SiteOrigin_Widget_Button_Widget', 'label' => __('Button', 'so-widgets-bundle'), 'collapsible' => false))), 'background' => array('type' => 'section', 'label' => __('Background', 'so-widgets-bundle'), 'fields' => array('image' => array('type' => 'media', 'label' => __('Background image', 'so-widgets-bundle'), 'library' => 'image', 'fallback' => true), 'opacity' => array('label' => __('Background image opacity', 'so-widgets-bundle'), 'type' => 'slider', 'min' => 0, 'max' => 100, 'default' => 100), 'color' => array('type' => 'color', 'label' => __('Background color', 'so-widgets-bundle'), 'default' => '#333333'), 'url' => array('type' => 'link', 'label' => __('Destination URL', 'so-widgets-bundle')), 'new_window' => array('type' => 'checkbox', 'label' => __('Open URL in a new window', 'so-widgets-bundle')), 'videos' => array('type' => 'repeater', 'item_name' => __('Video', 'so-widgets-bundle'), 'label' => __('Background videos', 'so-widgets-bundle'), 'item_label' => array('selector' => "[id*='frames-background_videos-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => $this->video_form_fields()))))), 'controls' => array('type' => 'section', 'label' => __('Slider Controls', 'so-widgets-bundle'), 'fields' => $this->control_form_fields()), 'design' => array('type' => 'section', 'label' => __('Design and Layout', 'so-widgets-bundle'), 'fields' => array('padding' => array('type' => 'number', 'label' => __('Top and bottom padding', 'so-widgets-bundle'), 'default' => 50), 'extra_top_padding' => array('type' => 'number', 'label' => __('Extra top padding', 'so-widgets-bundle'), 'description' => __('Additional padding added to the top of the slider', 'so-widgets-bundle'), 'default' => 0), 'padding_sides' => array('type' => 'number', 'label' => __('Side padding', 'so-widgets-bundle'), 'default' => 20), 'width' => array('type' => 'number', 'label' => __('Maximum container width', 'so-widgets-bundle'), 'default' => 1280), 'heading_font' => array('type' => 'font', 'label' => __('Heading font', 'so-widgets-bundle'), 'default' => ''), 'heading_size' => array('type' => 'number', 'label' => __('Heading size', 'so-widgets-bundle'), 'default' => 38), 'heading_shadow' => array('type' => 'slider', 'label' => __('Heading shadow intensity', 'so-widgets-bundle'), 'max' => 100, 'min' => 0, 'default' => 50), 'text_size' => array('type' => 'number', 'label' => __('Text size', 'so-widgets-bundle'), 'default' => 16))))); }
function __construct() { parent::__construct('sow-slider', __('SiteOrigin Slider', 'so-widgets-bundle'), array('description' => __('A responsive slider widget that supports images and video.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/slider-widget-documentation/', 'panels_title' => false), array(), false, plugin_dir_path(__FILE__)); }
function __construct() { parent::__construct('sow-hero', __('SiteOrigin Hero', 'siteorigin-widgets'), array('description' => __('A big hero image with a few settings to make it your own.', 'siteorigin-widgets'), 'help' => 'https://siteorigin.com/widgets-bundle/hero-image-widget/', 'panels_title' => false), array(), array('frames' => array('type' => 'repeater', 'label' => __('Hero frames', 'siteorigin-widgets'), 'item_name' => __('Frame', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('content' => array('type' => 'tinymce', 'label' => __('Content', 'siteorigin-widgets')), 'buttons' => array('type' => 'repeater', 'label' => __('Buttons', 'siteorigin-widgets'), 'item_name' => __('Button', 'siteorigin-widgets'), 'description' => __('Add [buttons] shortcode to the content to insert these buttons.', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='buttons-button-text']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('button' => array('type' => 'widget', 'class' => 'SiteOrigin_Widget_Button_Widget', 'label' => __('Button', 'siteorigin-widgets'), 'collapsible' => false))), 'background' => array('type' => 'section', 'label' => __('Background', 'siteorigin-widget'), 'fields' => array('image' => array('type' => 'media', 'label' => __('Background image', 'siteorigin-widgets'), 'library' => 'image'), 'opacity' => array('label' => __('Background image opacity', 'siteorigin-widgets'), 'type' => 'slider', 'min' => 0, 'max' => 100, 'default' => 100), 'color' => array('type' => 'color', 'label' => __('Background color', 'siteorigin-widgets'), 'default' => '#333333'), 'videos' => array('type' => 'repeater', 'item_name' => __('Video', 'siteorigin-widgets'), 'label' => __('Background videos', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-background_videos-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => $this->video_form_fields()))))), 'controls' => array('type' => 'section', 'label' => __('Slider Controls', 'siteorigin-widget'), 'fields' => $this->control_form_fields()), 'design' => array('type' => 'section', 'label' => __('Design and Layout', 'siteorigin-widgets'), 'fields' => array('padding' => array('type' => 'slider', 'label' => __('Padding', 'siteorigin-widgets'), 'max' => 150, 'min' => 0, 'default' => 50), 'width' => array('type' => 'slider', 'label' => __('Maximum Container Width', 'siteorigin-widgets'), 'max' => 1920, 'min' => 280, 'default' => 1280), 'heading_size' => array('type' => 'slider', 'label' => __('Heading Size', 'siteorigin-widgets'), 'max' => 72, 'min' => 6, 'default' => 38), 'text_size' => array('type' => 'slider', 'label' => __('Text Size', 'siteorigin-widgets'), 'max' => 48, 'min' => 6, 'default' => 16))))); }
function __construct() { parent::__construct('sow-layout-slider', __('SiteOrigin Layout Slider', 'so-widgets-bundle'), array('description' => __('A slider that allows you to create responsive columnized content for each slide.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/layout-slider-widget/', 'panels_title' => false), array(), false, plugin_dir_path(__FILE__)); }