function __construct()
    {

        parent::__construct(
            'faqs',
            __('Faqs', 'addon-so-widgets-bundle'),
            array(
                'description' => __('FAQs Component', 'addon-so-widgets-bundle'),
                'panels_icon' => 'dashicons dashicons-exerpt-view',
                'panels_groups' => array('addonso')
            ),
            array(),
            array(
                'widget_title' => array(
                    'type' => 'text',
                    'label' => __('Widget Title.', 'addon-so-widgets-bundle'),
                    'default' => ''
                ),

                'posts' => array(
                    'type' => 'posts',
                    'label' => __('Select FAQs', 'addon-so-widgets-bundle'),
                ),

                'faqs_styling' => array(
                    'type' => 'section',
                    'label' => __( 'Widget styling' , 'widget-form-fields-text-domain' ),
                    'hide' => true,
                    'fields' => array(

                        'title_color' => array(
                            'type' => 'color',
                            'label' => __( 'Title color', 'widget-form-fields-text-domain' ),
                            'default' => ''
                        ),

                        'title_hover_color' => array(
                            'type' => 'color',
                            'label' => __( 'Title Hover color', 'widget-form-fields-text-domain' ),
                            'default' => ''
                        ),

                        'content_color' => array(
                            'type' => 'color',
                            'label' => __( 'Content color', 'widget-form-fields-text-domain' ),
                            'default' => ''
                        ),



                    )
                ),


            ),
            plugin_dir_path(__FILE__)
        );
    }
 function __construct()
 {
     $this->networks = (include plugin_dir_path(__FILE__) . 'data/networks.php');
     $network_names = array();
     foreach ($this->networks as $key => $value) {
         $network_names[$key] = $value['label'];
     }
     parent::__construct('sow-social-media-buttons', __('SiteOrigin Social Media Buttons', 'siteorigin-widgets'), array('description' => __('A social media buttons widget.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/social-media-buttons-widget-documentation/'), array(), array('networks' => array('type' => 'repeater', 'label' => __('Networks', 'siteorigin-widgets'), 'item_name' => __('Network', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='networks-name'] :selected", 'update_event' => 'change', 'value_method' => 'text'), 'fields' => array('name' => array('type' => 'select', 'label' => '', 'prompt' => __('Select network', 'siteorigin-widgets'), 'options' => $network_names), 'url' => array('type' => 'text', 'label' => __('URL', 'siteorigin-widgets')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'siteorigin-widgets')), 'button_color' => array('type' => 'color', 'label' => __('Background color', 'siteorigin-widgets')))), 'design' => array('type' => 'section', 'label' => __('Design and layout', 'siteorigin-widgets'), 'hide' => true, 'fields' => array('new_window' => array('type' => 'checkbox', 'label' => __('Open in a new window', 'siteorigin-widgets'), 'default' => true), 'theme' => array('type' => 'select', 'label' => __('Button theme', 'siteorigin-widgets'), 'default' => 'atom', 'options' => array('atom' => __('Atom', 'siteorigin-widgets'), 'flat' => __('Flat', 'siteorigin-widgets'), 'wire' => __('Wire', 'siteorigin-widgets'))), 'hover' => array('type' => 'checkbox', 'label' => __('Use hover effects'), 'default' => true), 'icon_size' => array('type' => 'select', 'label' => __('Icon size', 'siteorigin-widgets'), 'options' => array('1' => __('Normal', 'siteorigin-widgets'), '1.33' => __('Medium', 'siteorigin-widgets'), '1.66' => __('Large', 'siteorigin-widgets'), '2' => __('Extra large', 'siteorigin-widgets'))), 'rounding' => array('type' => 'select', 'label' => __('Rounding', 'siteorigin-widgets'), 'default' => '0.25', 'options' => array('0' => __('None', 'siteorigin-widgets'), '0.25' => __('Slightly rounded', 'siteorigin-widgets'), '0.5' => __('Very rounded', 'siteorigin-widgets'), '1.5' => __('Completely rounded', 'siteorigin-widgets'))), 'padding' => array('type' => 'select', 'label' => __('Padding', 'siteorigin-widgets'), 'default' => '1', 'options' => array('0.5' => __('Low', 'siteorigin-widgets'), '1' => __('Medium', 'siteorigin-widgets'), '1.4' => __('High', 'siteorigin-widgets'), '1.8' => __('Very high', 'siteorigin-widgets'))), 'align' => array('type' => 'select', 'label' => __('Align', 'siteorigin-widgets'), 'default' => 'left', 'options' => array('left' => __('Left', 'siteorigin-widgets'), 'right' => __('Right', 'siteorigin-widgets'), 'center' => __('Center', 'siteorigin-widgets'), 'justify' => __('Justify', 'siteorigin-widgets'))), 'margin' => array('type' => 'select', 'label' => __('Margin', 'siteorigin-widgets'), 'default' => '0.1', 'options' => array('0.1' => __('Low', 'siteorigin-widgets'), '0.2' => __('Medium', 'siteorigin-widgets'), '0.3' => __('High', 'siteorigin-widgets'), '0.4' => __('Very high', 'siteorigin-widgets')))))));
 }
 function __construct()
 {
     $erm_menu_args = array('post_type' => 'erm_menu', 'posts_per_page' => -1);
     $loop_menu_args = new WP_Query($erm_menu_args);
     $cate[0] = esc_html__('Create Menu', 'restaurant-wp');
     if ($loop_menu_args->have_posts()) {
         $cate = '';
         while ($loop_menu_args->have_posts()) {
             $loop_menu_args->the_post();
             $cate[get_the_ID()] = get_the_title(get_the_ID());
         }
     }
     wp_reset_postdata();
     $form_options = array('tab' => array('type' => 'repeater', 'label' => esc_html__('Tab', 'restaurant-wp'), 'item_name' => esc_html__('Tab', 'restaurant-wp'), 'fields' => array('title' => array('type' => 'text', 'label' => esc_html__('Tab Title', 'restaurant-wp')), 'sub_title' => array('type' => 'text', 'label' => esc_html__('Sub Title', 'restaurant-wp')), 'image' => array('type' => 'media', 'label' => esc_html__('Icon Image', 'restaurant-wp'), 'name' => esc_html__('Upload Icon', 'restaurant-wp')), 'quick_menu' => array('type' => 'select', 'label' => esc_html__('Select Menu', 'restaurant-wp'), 'options' => $cate))), 'columns' => array('type' => 'select', 'label' => esc_html__('Columns', 'restaurant-wp'), 'options' => array('1' => 1, '2' => 2)), 'menu_style' => array('type' => 'select', 'label' => esc_html__('Menu Style', 'restaurant-wp'), 'options' => array('regular' => esc_html__('Regular', 'restaurant-wp'), 'dotted' => esc_html__('Dotted', 'restaurant-wp')), 'default' => 'Regular'));
     parent::__construct('reswp_restaurant_filter_menu_widget', esc_html__('WPArena: Filter Restaurant Menu', 'restaurant-wp'), array('description' => esc_html__('Widget for Filter Menu', 'restaurant-wp')), array(), $form_options, plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     $erm_menu_args = array('post_type' => 'erm_menu', 'posts_per_page' => -1);
     $lop_menu_args = new WP_Query($erm_menu_args);
     $cate[0] = esc_html__('Create Menu', 'restaurant-wp');
     if ($lop_menu_args->have_posts()) {
         $cate = '';
         while ($lop_menu_args->have_posts()) {
             $lop_menu_args->the_post();
             $cate[get_the_ID()] = get_the_title(get_the_ID());
         }
     }
     wp_reset_postdata();
     $form_options = array('header_type' => array('type' => 'select', 'label' => esc_html__('Type', 'restaurant-wp'), 'default' => 'h3', 'options' => array('h2' => esc_html__('h2', 'restaurant-wp'), 'h3' => esc_html__('h3', 'restaurant-wp'), 'h4' => esc_html__('h4', 'restaurant-wp'), 'h5' => esc_html__('h5', 'restaurant-wp'), 'h6' => esc_html__('h6', 'restaurant-wp'))), 'header_color' => array('type' => 'color', 'label' => esc_html__('Choose a color', 'restaurant-wp'), 'default' => '#fff'), 'header_background' => array('type' => 'media', 'label' => esc_html__('Background image for header', 'restaurant-wp'), 'choose' => esc_html__('Choose image', 'restaurant-wp'), 'update' => esc_html__('Set image', 'restaurant-wp'), 'library' => 'image', 'fallback' => false), 'quick_menu' => array('type' => 'select', 'label' => esc_html__('Choose a menu.', 'restaurant-wp'), 'default' => 0, 'options' => $cate), 'columns' => array('type' => 'select', 'label' => esc_html__('Columns', 'restaurant-wp'), 'default' => 1, 'options' => array('1' => 1, '2' => 2)), 'menu_style' => array('type' => 'select', 'label' => esc_html__('Menu style', 'restaurant-wp'), 'default' => 'regular', 'options' => array('regular' => esc_html__('Regular', 'restaurant-wp'), 'dotted' => esc_html__('Dotted', 'restaurant-wp'))));
     parent::__construct('reswp_restaurant_menu_widget', esc_html__('WPArena: Restaurant Menu', 'restaurant-wp'), array('description' => esc_html__('Widget for Quick Restaurant Menu', 'restaurant-wp')), array(), $form_options, plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-post', __('Kreativa:Posts', 'siteorigin-widgets'), array('description' => __('Display your posts .', 'siteorigin-widgets')), array(), array('posts' => array('type' => 'posts', 'label' => __('Posts query', 'siteorigin-widgets'))), plugin_dir_path(__FILE__) . '../');
 }
 function __construct()
 {
     parent::__construct('lsow-stats-bars', __('Livemesh Stats Bars', 'livemesh-so-widgets'), array('description' => __('Display statistics or skills as a percentage stats bar.', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => 'http://portfoliotheme.org/widgets-bundle/stats-bar-widget-documentation/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'stats-bars' => array('type' => 'repeater', 'label' => __('Stats Bars', 'livemesh-so-widgets'), 'item_name' => __('Stats Bar', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='stats-bars-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('title' => array('type' => 'text', 'label' => __('Stats Title', 'livemesh-so-widgets'), 'description' => __('The title for the stats bar', 'livemesh-so-widgets')), 'value' => array('type' => 'text', 'label' => __('Percentage Value', 'livemesh-so-widgets'), 'description' => __('The percentage value for the stats.', 'livemesh-so-widgets')), 'color' => array('type' => 'color', 'label' => __('Bar color', 'livemesh-so-widgets'))))));
 }
 function __construct()
 {
     parent::__construct('sow-features', __('SiteOrigin Features', 'siteorigin-widgets'), array('description' => __('Displays a list of features.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/features-widget-documentation/'), array(), array('features' => array('type' => 'repeater', 'label' => __('Features', 'siteorigin-widgets'), 'item_name' => __('Feature', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='features-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('container_color' => array('type' => 'color', 'label' => __('Container color', 'siteorigin-widgets'), 'default' => '#404040'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'siteorigin-widgets')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'siteorigin-widgets'), 'default' => '#FFFFFF'), 'icon_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Icon image', 'siteorigin-widgets'), 'description' => __('Use your own icon image.', 'siteorigin-widgets')), 'title' => array('type' => 'text', 'label' => __('Title text', 'siteorigin-widgets')), 'text' => array('type' => 'text', 'label' => __('Text', 'siteorigin-widgets')), 'more_text' => array('type' => 'text', 'label' => __('More link text', 'siteorigin-widgets')), 'more_url' => array('type' => 'link', 'label' => __('More link URL', 'siteorigin-widgets')))), 'container_shape' => array('type' => 'select', 'label' => __('Container shape', 'siteorigin-widgets'), 'options' => array()), 'container_size' => array('type' => 'number', 'label' => __('Container size', 'siteorigin-widgets'), 'default' => 84), 'icon_size' => array('type' => 'number', 'label' => __('Icon size', 'siteorigin-widgets'), 'default' => 24), 'per_row' => array('type' => 'number', 'label' => __('Features per row', 'siteorigin-widgets'), 'default' => 3), 'responsive' => array('type' => 'checkbox', 'label' => __('Responsive layout', 'siteorigin-widgets'), 'default' => true), 'title_link' => array('type' => 'checkbox', 'label' => __('Link feature title to more URL', 'siteorigin-widgets'), 'default' => false), 'icon_link' => array('type' => 'checkbox', 'label' => __('Link icon to more URL', 'siteorigin-widgets'), 'default' => false), 'new_window' => array('type' => 'checkbox', 'label' => __('Open more URL in a new window', 'siteorigin-widgets'), 'default' => false)), plugin_dir_path(__FILE__) . '../');
 }
Exemple #8
0
 function __construct()
 {
     parent::__construct('sow-video', __('SiteOrigin Video Player', 'so-widgets-bundle'), array('description' => __('A video player widget.', 'so-widgets-bundle'), 'help' => 'http://siteorigin.com/widgets-bundle/video-widget-documentation/'), array(), false, plugin_dir_path(__FILE__));
 }
Exemple #9
0
 function __construct()
 {
     parent::__construct('sow-button', __('SiteOrigin Button', 'so-widgets-bundle'), array('description' => __('A customizable button widget.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/button-widget-documentation/'), array(), array('text' => array('type' => 'text', 'label' => __('Button text', 'so-widgets-bundle')), 'url' => array('type' => 'link', 'label' => __('Destination URL', 'so-widgets-bundle')), 'new_window' => array('type' => 'checkbox', 'default' => false, 'label' => __('Open in a new window', 'so-widgets-bundle')), 'button_icon' => array('type' => 'section', 'label' => __('Icon', 'so-widgets-bundle'), 'fields' => array('icon_selected' => array('type' => 'icon', 'label' => __('Icon', 'so-widgets-bundle')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'so-widgets-bundle')), 'icon' => array('type' => 'media', 'label' => __('Image icon', 'so-widgets-bundle'), 'description' => __('Replaces the icon with your own image icon.', 'so-widgets-bundle')))), 'design' => array('type' => 'section', 'label' => __('Design and layout', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'center' => __('Center', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))), 'theme' => array('type' => 'select', 'label' => __('Button theme', 'so-widgets-bundle'), 'default' => 'atom', 'options' => array('atom' => __('Atom', 'so-widgets-bundle'), 'flat' => __('Flat', 'so-widgets-bundle'), 'wire' => __('Wire', 'so-widgets-bundle'))), 'button_color' => array('type' => 'color', 'label' => __('Button color', 'so-widgets-bundle')), 'text_color' => array('type' => 'color', 'label' => __('Text color', 'so-widgets-bundle')), 'hover' => array('type' => 'checkbox', 'default' => true, 'label' => __('Use hover effects', 'so-widgets-bundle')), 'font_size' => array('type' => 'select', 'label' => __('Font size', 'so-widgets-bundle'), 'options' => array('1' => __('Normal', 'so-widgets-bundle'), '1.15' => __('Medium', 'so-widgets-bundle'), '1.3' => __('Large', 'so-widgets-bundle'), '1.45' => __('Extra large', 'so-widgets-bundle'))), 'rounding' => array('type' => 'select', 'label' => __('Rounding', 'so-widgets-bundle'), 'default' => '0.25', 'options' => array('0' => __('None', 'so-widgets-bundle'), '0.25' => __('Slightly rounded', 'so-widgets-bundle'), '0.5' => __('Very rounded', 'so-widgets-bundle'), '1.5' => __('Completely rounded', 'so-widgets-bundle'))), 'padding' => array('type' => 'select', 'label' => __('Padding', 'so-widgets-bundle'), 'default' => '1', 'options' => array('0.5' => __('Low', 'so-widgets-bundle'), '1' => __('Medium', 'so-widgets-bundle'), '1.4' => __('High', 'so-widgets-bundle'), '1.8' => __('Very high', 'so-widgets-bundle'))))), 'attributes' => array('type' => 'section', 'label' => __('Other attributes and SEO', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('id' => array('type' => 'text', 'label' => __('Button ID', 'so-widgets-bundle'), 'description' => __('An ID attribute allows you to target this button in Javascript.', 'so-widgets-bundle')), 'title' => array('type' => 'text', 'label' => __('Title attribute', 'so-widgets-bundle'), 'description' => __('Adds a title attribute to the button link.', 'so-widgets-bundle')), 'onclick' => array('type' => 'text', 'label' => __('Onclick', 'so-widgets-bundle'), 'description' => __('Run this Javascript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle'))))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('lsow-pricing-plans', __('Livemesh Pricing Table', 'livemesh-so-widgets'), array('description' => __('Display pricing table in a multi-column grid.', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => LSOW_PLUGIN_HELP_URL . '#pricing-table'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'pricing-plans' => array('type' => 'repeater', 'label' => __('Pricing Table', 'livemesh-so-widgets'), 'item_name' => __('Pricing Plan', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='pricing-plans-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('pricing_title' => array('type' => 'text', 'label' => __('Pricing Plan Title', 'livemesh-so-widgets'), 'description' => __('The title for the pricing plan', 'livemesh-so-widgets')), 'tagline' => array('type' => 'text', 'label' => __('Tagline Text', 'livemesh-so-widgets'), 'description' => __('Provide any subtitle or taglines like "Most Popular", "Best Value", "Best Selling", "Most Flexible" etc. that you would like to use for this pricing plan.', 'livemesh-so-widgets')), 'image' => array('type' => 'media', 'label' => __('Image', 'livemesh-so-widgets')), 'price_tag' => array('type' => 'text', 'label' => __('Price Tag', 'livemesh-so-widgets'), 'description' => __('Enter the price tag for the pricing plan. HTML is accepted.', 'livemesh-so-widgets')), 'button_text' => array('type' => 'text', 'label' => __('Text for Pricing Link/Button', 'livemesh-so-widgets'), 'description' => __('Provide the text for the link or the button shown for this pricing plan.', 'livemesh-so-widgets')), 'url' => array('type' => 'link', 'label' => __('URL for the Pricing link/button', 'livemesh-so-widgets'), 'description' => __('Provide the target URL for the link or the button shown for this pricing plan.', 'livemesh-so-widgets')), 'button_new_window' => array('type' => 'checkbox', 'label' => __('Open Button URL in a new window', 'livemesh-so-widgets')), 'highlight' => array('type' => 'checkbox', 'label' => __('Highlight Pricing Plan', 'livemesh-so-widgets'), 'description' => __('Specify if you want to highlight the pricing plan.', 'livemesh-so-widgets')), 'items' => array('type' => 'repeater', 'label' => __('Pricing Plan Details', 'livemesh-so-widgets'), 'item_name' => __('Pricing Item', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='pricing-plans-items-text']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'value' => array('type' => 'text', 'label' => __('Value', 'livemesh-so-widgets')), 'icon_new' => array('type' => 'icon', 'label' => __('Icon', 'livemesh-so-widgets')))))), 'settings' => array('type' => 'section', 'label' => __('Settings', 'livemesh-so-widgets'), 'fields' => array('per_line' => array('type' => 'slider', 'label' => __('Pricing Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 4)))));
 }
 function __construct()
 {
     parent::__construct('toggle-widget', __('Toggle Widget', 'imic-framework'), array('description' => __('A widget to add Toggle/Accordion to your pages.', 'imic-framework'), 'panels_icon' => 'dashicons dashicons-list-view', 'panels_groups' => array('framework')), array(), array('tab_id' => array('type' => 'text', 'label' => __('Toggle Name', 'imic-framework'), 'description' => __('Keep it unique if adding multiple tabs in a single page.(No spaces in name)', 'imic-framework')), 'tabs' => array('type' => 'repeater', 'label' => __('Toggles', 'imic-framework'), 'item_name' => __('Toggle', 'imic-framework'), 'item_label' => array('selector' => "[id*='tab-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('tab_nav_title' => array('type' => 'text', 'label' => __('Toggle title', 'imic-framework')), 'tab_nav_content' => array('type' => 'tinymce', 'label' => __('Toggle Content', 'imic-framework')))), 'display_type' => array('type' => 'select', 'state_name' => 'togglize', 'label' => __('Choose Type', 'imic-framework'), 'prompt' => __('Choose Type', 'framework'), 'options' => array('togglize' => __('Toggles', 'framework'), 'accordionize' => __('Accordions', 'framework')))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-headline', __('SiteOrigin Headline', 'so-widgets-bundle'), array('description' => __('A headline widget.', 'so-widgets-bundle')), array(), array('headline' => array('type' => 'section', 'label' => __('Headline', 'so-widgets-bundle'), 'hide' => false, 'fields' => array('text' => array('type' => 'text', 'label' => __('Text', 'so-widgets-bundle')), 'tag' => array('type' => 'select', 'label' => __('H Tag', 'so-widgets-bundle'), 'default' => 'h1', 'options' => array('h1' => __('H1', 'so-widgets-bundle'), 'h2' => __('H2', 'so-widgets-bundle'), 'h3' => __('H3', 'so-widgets-bundle'), 'h4' => __('H4', 'so-widgets-bundle'), 'h5' => __('H5', 'so-widgets-bundle'), 'h6' => __('H6', 'so-widgets-bundle'))), 'font' => array('type' => 'font', 'label' => __('Font', 'so-widgets-bundle'), 'default' => 'default'), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#000000'), 'align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('center' => __('Center', 'so-widgets-bundle'), 'left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))))), 'sub_headline' => array('type' => 'section', 'label' => __('Sub headline', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('text' => array('type' => 'text', 'label' => __('Text', 'so-widgets-bundle')), 'tag' => array('type' => 'select', 'label' => __('H Tag', 'so-widgets-bundle'), 'default' => 'h3', 'options' => array('h1' => __('H1', 'so-widgets-bundle'), 'h2' => __('H2', 'so-widgets-bundle'), 'h3' => __('H3', 'so-widgets-bundle'), 'h4' => __('H4', 'so-widgets-bundle'), 'h5' => __('H5', 'so-widgets-bundle'), 'h6' => __('H6', 'so-widgets-bundle'))), 'font' => array('type' => 'font', 'label' => __('Font', 'so-widgets-bundle'), 'default' => 'default'), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#000000'), 'align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('center' => __('Center', 'so-widgets-bundle'), 'left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))))), 'divider' => array('type' => 'section', 'label' => __('Divider', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('style' => array('type' => 'select', 'label' => __('Style', 'so-widgets-bundle'), 'default' => 'solid', 'options' => array('none' => __('None', 'so-widgets-bundle'), 'solid' => __('Solid', 'so-widgets-bundle'), 'dotted' => __('Dotted', 'so-widgets-bundle'), 'dashed' => __('Dashed', 'so-widgets-bundle'), 'double' => __('Double', 'so-widgets-bundle'), 'groove' => __('Groove', 'so-widgets-bundle'), 'ridge' => __('Ridge', 'so-widgets-bundle'), 'inset' => __('Inset', 'so-widgets-bundle'), 'outset' => __('Outset', 'so-widgets-bundle'))), 'weight' => array('type' => 'select', 'label' => __('Weight', 'so-widgets-bundle'), 'default' => 'thin', 'options' => array('thin' => __('Thin', 'so-widgets-bundle'), 'medium' => __('Medium', 'so-widgets-bundle'), 'thick' => __('Thick', 'so-widgets-bundle'))), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#EEEEEE')))));
 }
 function __construct()
 {
     parent::__construct('sow-clientlogo', __('Kreativa:Client\'s Image', 'siteorigin-widgets'), array('description' => __('A list of images of client\'s.', 'siteorigin-widgets')), array(), array('image' => array('type' => 'media', 'label' => __('Image file', 'siteorigin-widgets')), 'desc' => array('type' => 'text', 'label' => __('Text', 'siteorigin-widgets'))), plugin_dir_path(__FILE__) . '../');
 }
 function __construct()
 {
     parent::__construct('lsow-posts-carousel', __('Livemesh Posts Carousel', 'livemesh-so-widgets'), array('description' => __('Display blog posts or custom post types as a carousel', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => LSOW_PLUGIN_HELP_URL . '#post-carousel'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'posts' => array('type' => 'posts', 'label' => __('Posts query', 'livemesh-so-widgets')), 'settings' => array('type' => 'section', 'label' => __('General Settings', 'livemesh-so-widgets'), 'fields' => array('taxonomy_chosen' => array('type' => 'select', 'label' => __('Choose the taxonomy to display info.', 'livemesh-so-widgets'), 'description' => __('Choose the taxonomy to use for display of taxonomy information for posts/custom post types.', 'livemesh-so-widgets'), 'options' => lsow_get_taxonomies_map(), 'default' => 'category'), 'image_linkable' => array('type' => 'checkbox', 'label' => __('Link Images to Posts?', 'livemesh-so-widgets'), 'default' => true), 'display_title' => array('type' => 'checkbox', 'label' => __('Display posts title below the post item?', 'livemesh-so-widgets'), 'default' => true), 'display_summary' => array('type' => 'checkbox', 'label' => __('Display post excerpt/summary below the post item?', 'livemesh-so-widgets'), 'default' => true), 'post_meta' => array('type' => 'section', 'label' => __('Post Meta', 'livemesh-so-widgets'), 'fields' => array('display_author' => array('type' => 'checkbox', 'label' => __('Display post author info below the post item?', 'livemesh-so-widgets'), 'default' => false), 'display_post_date' => array('type' => 'checkbox', 'label' => __('Display post date info below the post item?', 'livemesh-so-widgets'), 'default' => false), 'display_taxonomy' => array('type' => 'checkbox', 'label' => __('Display taxonomy info below the post item?', 'livemesh-so-widgets'), 'default' => false))))), 'carousel_settings' => array('type' => 'section', 'label' => __('Carousel Settings', 'livemesh-so-widgets'), 'fields' => array('arrows' => array('type' => 'checkbox', 'label' => __('Prev/Next Arrows?', 'livemesh-so-widgets'), 'default' => true), 'dots' => array('type' => 'checkbox', 'label' => __('Show dot indicators for navigation?', 'livemesh-so-widgets')), 'autoplay' => array('type' => 'checkbox', 'label' => __('Autoplay?', 'livemesh-so-widgets'), 'description' => __('Should the carousel autoplay as in a slideshow.', 'livemesh-so-widgets'), 'default' => false), 'autoplay_speed' => array('type' => 'number', 'label' => __('Autoplay speed in ms', 'livemesh-so-widgets'), 'default' => 3000), 'animation_speed' => array('type' => 'number', 'label' => __('Autoplay animation speed in ms', 'livemesh-so-widgets'), 'default' => 300), 'pause_on_hover' => array('type' => 'checkbox', 'label' => __('Pause on mouse hover?', 'livemesh-so-widgets'), 'default' => true), 'display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 3), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 3), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'responsive' => array('type' => 'section', 'label' => __('Responsive', 'livemesh-so-widgets'), 'hide' => true, 'fields' => array('tablet' => array('type' => 'section', 'label' => __('Tablet', 'livemesh-so-widgets'), 'fields' => array('display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 2), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 2), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a tablet resolution.', 'livemesh-so-widgets'), 'default' => 800, 'sanitize' => 'intval'))), 'mobile' => array('type' => 'section', 'label' => __('Mobile Phone', 'livemesh-so-widgets'), 'fields' => array('display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 1), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 1), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a mobile resolution.', 'livemesh-so-widgets'), 'default' => 480, 'sanitize' => 'intval')))))))));
 }
 function __construct()
 {
     parent::__construct('ink-audio', __('Inked Audio', 'wpinked-widgets'), array('description' => __('Play self or externally hosted audios.', 'wpinked-widgets'), 'help' => 'http://docs.wpinked.com/widgets-for-siteorigin/audio-widget'), array(), array('admin' => array('type' => 'text', 'label' => __('Admin Label', 'wpinked-widgets'), 'default' => ''), 'audio' => array('type' => 'section', 'label' => __('Audio', 'wpinked-widgets'), 'hide' => true, 'fields' => array('type' => array('type' => 'select', 'label' => __('Audio Type', 'wpinked-widgets'), 'default' => 'oembed', 'options' => array('hosted' => __('Self Hosted', 'wpinked-widgets'), 'oembed' => __('oEmbed', 'wpinked-widgets')), 'state_emitter' => array('callback' => 'select', 'args' => array('audio_type'))), 'hosted' => array('type' => 'media', 'fallback' => true, 'label' => __('Audio File', 'wpinked-widgets'), 'default' => '', 'library' => 'audio', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'image' => array('type' => 'media', 'fallback' => true, 'label' => __('Background Image', 'wpinked-widgets'), 'default' => '', 'library' => 'image', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'oembed' => array('type' => 'text', 'sanitize' => 'url', 'label' => __('oEmbed Audio URL', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('hide'), 'audio_type[oembed]' => array('show'))), 'background' => array('type' => 'color', 'label' => __('Background Color', 'wpinked-widgets'), 'default' => '#3498db', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'bg-opacity' => array('type' => 'slider', 'label' => __('Background Opacity', 'wpinked-widgets'), 'default' => 0, 'min' => 0, 'max' => 100, 'integer' => true, 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'controls' => array('type' => 'select', 'label' => __('Controls Theme', 'wpinked-widgets'), 'default' => 'iw-text-center', 'options' => array('iw-so-player-light' => __('Light', 'wpinked-widgets'), 'iw-so-player-dark' => __('Dark', 'wpinked-widgets')), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'audio' => array('type' => 'text', 'label' => __('Audio Name', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'artist' => array('type' => 'text', 'label' => __('Artist', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'album' => array('type' => 'text', 'label' => __('Album', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'text' => array('type' => 'color', 'label' => __('Text Color', 'wpinked-widgets'), 'default' => '#fff', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'align' => array('type' => 'select', 'label' => __('Text Alignment', 'wpinked-widgets'), 'default' => 'iw-text-center', 'options' => array('iw-text-left' => __('Left', 'wpinked-widgets'), 'iw-text-center' => __('Center', 'wpinked-widgets'), 'iw-text-right' => __('Right', 'wpinked-widgets')), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide')))))), plugin_dir_path(__FILE__));
 }
Exemple #16
0
 function __construct()
 {
     parent::__construct('sow-taxonomy', __('SiteOrigin Taxonomy', 'so-widgets-bundle'), array('description' => __('A taxonomy widget.', 'so-widgets-bundle')), array(), false, plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('ink-alert', __('Inked Alert', 'wpinked-widgets'), array('description' => __('Communicate success, warnings, failure or just information.', 'wpinked-widgets'), 'help' => 'http://docs.wpinked.com/widgets-for-siteorigin/alert-widget'), array(), array('message' => array('type' => 'text', 'label' => __('Message', 'wpinked-widgets'), 'default' => 'This is an Alert Message'), 'close' => array('type' => 'checkbox', 'label' => __('Show Close Button ?', 'wpinked-widgets'), 'default' => true), 'icon' => array('type' => 'section', 'label' => __('Icon', 'wpinked-widgets'), 'hide' => true, 'fields' => array('select' => array('type' => 'icon', 'label' => __('Icon', 'wpinked-widgets')), 'color' => array('type' => 'color', 'label' => __('Icon Color', 'wpinked-widgets'), 'default' => ''))), 'styling' => array('type' => 'section', 'label' => __('Styling', 'wpinked-widgets'), 'hide' => true, 'fields' => array('theme' => array('type' => 'select', 'label' => __('Theme', 'wpinked-widgets'), 'default' => 'classic', 'options' => array('classic' => __('Classic', 'wpinked-widgets'), 'flat' => __('Flat', 'wpinked-widgets'), 'outline' => __('Outline', 'wpinked-widgets'), 'threed' => __('3D', 'wpinked-widgets'), 'shadow' => __('Shadow', 'wpinked-widgets'), 'modern' => __('Modern', 'wpinked-widgets'))), 'background' => array('type' => 'color', 'label' => __('Background Color', 'wpinked-widgets'), 'default' => ''), 'text' => array('type' => 'color', 'label' => __('Text Color', 'wpinked-widgets'), 'default' => ''), 'close' => array('type' => 'color', 'label' => __('Close Color', 'wpinked-widgets'), 'default' => ''), 'corners' => array('type' => 'select', 'label' => __('Corners', 'wpinked-widgets'), 'default' => '0.25em', 'options' => array('0em' => __('Sharp', 'wpinked-widgets'), '0.25em' => __('Slightly curved', 'wpinked-widgets'), '0.75em' => __('Highly curved', 'wpinked-widgets'))), 'size' => array('type' => 'select', 'label' => __('Size', 'wpinked-widgets'), 'default' => 'standard', 'options' => array('small' => __('Small', 'wpinked-widgets'), 'standard' => __('Standard', 'wpinked-widgets'), 'large' => __('Large', 'wpinked-widgets')))))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-price-table', __('SiteOrigin Price Table', 'siteorigin-widgets'), array('description' => __('A simple Price Table.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/price-table-widget/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'columns' => array('type' => 'repeater', 'label' => __('Columns', 'siteorigin-widgets'), 'item_name' => __('Column', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='columns-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('featured' => array('type' => 'checkbox', 'label' => __('Featured', 'siteorigin-widgets')), 'title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'subtitle' => array('type' => 'text', 'label' => __('Subtitle', 'siteorigin-widgets')), 'image' => array('type' => 'media', 'label' => __('Image', 'siteorigin-widgets')), 'price' => array('type' => 'text', 'label' => __('Price', 'siteorigin-widgets')), 'per' => array('type' => 'text', 'label' => __('Per', 'siteorigin-widgets')), 'button' => array('type' => 'text', 'label' => __('Button text', 'siteorigin-widgets')), 'url' => array('type' => 'link', 'label' => __('Button URL', 'siteorigin-widgets')), 'features' => array('type' => 'repeater', 'label' => __('Features', 'siteorigin-widgets'), 'item_name' => __('Feature', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='columns-features-text']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('text' => array('type' => 'text', 'label' => __('Text', 'siteorigin-widgets')), 'hover' => array('type' => 'text', 'label' => __('Hover text', 'siteorigin-widgets')), 'icon_new' => array('type' => 'icon', 'label' => __('Icon', 'siteorigin-widgets')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'siteorigin-widgets')))))), 'theme' => array('type' => 'select', 'label' => __('Price table theme', 'siteorigin-widgets'), 'options' => array('atom' => __('Atom', 'siteorigin-widgets'))), 'header_color' => array('type' => 'color', 'label' => __('Header color', 'siteorigin-widgets')), 'featured_header_color' => array('type' => 'color', 'label' => __('Featured header color', 'siteorigin-widgets')), 'button_color' => array('type' => 'color', 'label' => __('Button color', 'siteorigin-widgets')), 'featured_button_color' => array('type' => 'color', 'label' => __('Featured button color', 'siteorigin-widgets'))), plugin_dir_path(__FILE__) . '../');
 }
 function __construct()
 {
     parent::__construct('sow-post-carousel', __('SiteOrigin Post Carousel', 'so-widgets-bundle'), array('description' => __('Display your posts as a carousel.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/post-carousel-widget/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'so-widgets-bundle')), 'posts' => array('type' => 'posts', 'label' => __('Posts query', 'so-widgets-bundle'))), plugin_dir_path(__FILE__) . '../');
 }
 function __construct()
 {
     parent::__construct('ink-media-box', __('Inked Media Box', 'wpinked-widgets'), array('description' => __('Highlight important bits of information.', 'wpinked-widgets'), 'help' => 'http://docs.wpinked.com/widgets-for-siteorigin/media-box-widget'), array(), array('admin' => array('type' => 'text', 'label' => __('Admin Label', 'wpinked-widgets'), 'default' => ''), 'box' => array('type' => 'section', 'label' => __('Box Settings', 'wpinked-widgets'), 'hide' => true, 'fields' => array('media' => array('type' => 'select', 'label' => __('Media Type', 'wpinked-widgets'), 'default' => 'image', 'options' => array('image' => __('Image', 'wpinked-widgets'), 'icon' => __('Icon', 'wpinked-widgets')), 'state_emitter' => array('callback' => 'select', 'args' => array('media_type'))), 'image' => array('type' => 'media', 'fallback' => false, 'label' => __('Image', 'wpinked-widgets'), 'default' => '', 'library' => 'image', 'state_handler' => array('media_type[image]' => array('show'), 'media_type[icon]' => array('hide'))), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'wpinked-widgets'), 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'title' => array('type' => 'text', 'label' => __('Title', 'wpinked-widgets'), 'default' => ''), 'content' => array('type' => 'textarea', 'label' => __('Content', 'wpinked-widgets'), 'rows' => 5), 'btn' => array('type' => 'text', 'label' => __('Button text', 'wpinked-widgets')), 'btn-url' => array('type' => 'link', 'label' => __('Destination URL', 'wpinked-widgets')), 'btn-window' => array('type' => 'checkbox', 'default' => false, 'label' => __('Open in a new window', 'wpinked-widgets')), 'btn-id' => array('type' => 'text', 'label' => __('Button ID', 'wpinked-widgets'), 'description' => __('An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets')), 'btn-title' => array('type' => 'text', 'label' => __('Button Title attribute', 'wpinked-widgets'), 'description' => __('Adds a title attribute to the button link.', 'wpinked-widgets')), 'btn-onclick' => array('type' => 'text', 'label' => __('Button Onclick', 'wpinked-widgets'), 'description' => __('Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets')))), 'styling' => array('type' => 'section', 'label' => __('Styling', 'wpinked-widgets'), 'hide' => true, 'fields' => array('padding-top' => array('type' => 'text', 'label' => __('Padding Top', 'wpinked-widgets'), 'default' => '30px', 'description' => __('Enter the units, eg: px, em, rem, ...', 'wpinked-widgets')), 'padding-bottom' => array('type' => 'text', 'label' => __('Padding Bottom', 'wpinked-widgets'), 'default' => '30px', 'description' => __('Enter the units, eg: px, em, rem, ...', 'wpinked-widgets')), 'img-shape' => array('type' => 'select', 'label' => __('Image Shape', 'wpinked-widgets'), 'default' => '0', 'options' => array('0' => __('Sharp', 'wpinked-widgets'), '3px' => __('Slight Curve', 'wpinked-widgets'), '10px' => __('High Curve', 'wpinked-widgets'), '50%' => __('Round', 'wpinked-widgets')), 'state_handler' => array('media_type[image]' => array('show'), 'media_type[icon]' => array('hide'))), 'icon-clr' => array('type' => 'color', 'label' => __('Icon Color', 'wpinked-widgets'), 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'icon-size' => array('type' => 'text', 'label' => __('Icon Size', 'wpinked-widgets'), 'default' => '', 'description' => __('Enter the units, eg: px, em, rem, ...', 'wpinked-widgets'), 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'icon-border' => array('type' => 'checkbox', 'label' => __('Show Icon Border ?', 'wpinked-widgets'), 'default' => false, 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'icon-border-clr' => array('type' => 'color', 'label' => __('Icon Border Color', 'wpinked-widgets'), 'default' => '', 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'icon-shape' => array('type' => 'select', 'label' => __('Icon Border Shape', 'wpinked-widgets'), 'default' => '0', 'options' => array('0' => __('Sharp', 'wpinked-widgets'), '3px' => __('Slight Curve', 'wpinked-widgets'), '10px' => __('High Curve', 'wpinked-widgets'), '50%' => __('Round', 'wpinked-widgets')), 'state_handler' => array('media_type[image]' => array('hide'), 'media_type[icon]' => array('show'))), 'title' => array('type' => 'color', 'label' => __('Title Color', 'wpinked-widgets'), 'default' => ''), 'content' => array('type' => 'color', 'label' => __('Content Color', 'wpinked-widgets'), 'default' => ''), 'btn-size' => array('type' => 'select', 'label' => __('Button Size', 'wpinked-widgets'), 'default' => 'default', 'options' => array('default' => __('Default', 'wpinked-widgets'), 'full' => __('Fullwidth', 'wpinked-widgets'))), 'btn-theme' => array('type' => 'select', 'label' => __('Button Theme', 'wpinked-widgets'), 'default' => 'classic', 'options' => array('classic' => __('Classic', 'wpinked-widgets'), 'flat' => __('Flat', 'wpinked-widgets'), 'outline' => __('Outline', 'wpinked-widgets'), 'threed' => __('3D', 'wpinked-widgets'), 'shadow' => __('Shadow', 'wpinked-widgets'), 'deline' => __('Deline', 'wpinked-widgets'))), 'btn-clr' => array('type' => 'color', 'label' => __('Button Highlight Color', 'wpinked-widgets'), 'description' => __('Typically used as button background.', 'wpinked-widgets')), 'btn-base' => array('type' => 'color', 'label' => __('Button Base Color', 'wpinked-widgets'), 'description' => __('Typically used as text color.', 'wpinked-widgets')), 'btn-hover' => array('type' => 'checkbox', 'default' => true, 'label' => __('Use button hover effect ?', 'wpinked-widgets')), 'btn-click' => array('type' => 'checkbox', 'default' => true, 'label' => __('Use button click effect ?', 'wpinked-widgets')), 'btn-corners' => array('type' => 'select', 'label' => __('Button Corners', 'wpinked-widgets'), 'default' => '0.25em', 'options' => array('0em' => __('Sharp', 'wpinked-widgets'), '0.25em' => __('Slightly curved', 'wpinked-widgets'), '0.75em' => __('Highly curved', 'wpinked-widgets'), '1.5em' => __('Round', 'wpinked-widgets'))), 'background' => array('type' => 'color', 'label' => __('Media Box Background Color', 'wpinked-widgets'), 'default' => '')))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('carousel-widget', __('Carousel Widget', 'imic-framework'), array('description' => __('A widget to show a carousel or list of images/logos.', 'imic-framework'), 'panels_icon' => 'dashicons dashicons-list-view', 'panels_groups' => array('framework')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'allpostsbtn' => array('type' => 'text', 'label' => __('Button Text', 'imic-framework'), 'default' => __('Button', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'allpostsurl' => array('type' => 'link', 'label' => __('Button URL', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'images' => array('type' => 'repeater', 'label' => __('Images', 'imic-framework'), 'item_name' => __('Image', 'imic-framework'), 'item_label' => array('selector' => "[id*='image-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('icon_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Upload image', 'imic-framework')), 'icon_title' => array('type' => 'text', 'label' => __('Title text to show under the image', 'imic-framework')), 'more_url' => array('type' => 'link', 'label' => __('Image URL', 'siteorigin-widgets')), 'new_window' => array('type' => 'checkbox', 'label' => __('Open URL in a new window', 'siteorigin-widgets'), 'default' => false))), 'number_of_posts' => array('type' => 'slider', 'label' => __('Number of images/logos to show in a row', 'imic-framework'), 'default' => 4, 'min' => 1, 'max' => 5, 'integer' => true), 'autoplay' => array('type' => 'select', 'state_name' => 'list', 'label' => __('Autoplay Carousel', 'imic-framework'), 'prompt' => __('Autoplay Carousel', 'framework'), 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), 'navigation' => array('type' => 'select', 'state_name' => 'list', 'label' => __('Carousel Navigation', 'imic-framework'), 'prompt' => __('Show Carousel Navigation', 'framework'), 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), 'pagination' => array('type' => 'select', 'state_name' => 'list', 'label' => __('Carousel Pagination', 'imic-framework'), 'prompt' => __('Show Carousel Pagination', 'framework'), 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework')))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-google-map', __('SiteOrigin Google Maps', 'so-widgets-bundle'), array('description' => __('A Google Maps widget.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/google-maps-widget/'), array(), false, plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-video', __('SiteOrigin Video', 'siteorigin-widgets'), array('description' => __('A video player widget.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/video-widget-documentation/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'host_type' => array('type' => 'radio', 'label' => __('Video location', 'siteorigin-widgets'), 'default' => 'self', 'options' => array('self' => __('Self hosted', 'siteorigin-widgets'), 'external' => __('Externally hosted', 'siteorigin-widgets')), 'state_emitter' => array('callback' => 'select', 'args' => array('video_type'))), 'video' => array('type' => 'section', 'label' => __('Video File', 'siteorigin-widgets'), 'fields' => array('self_video' => array('type' => 'media', 'fallback' => true, 'label' => __('Select video', 'siteorigin-widgets'), 'description' => __('Select an uploaded video in mp4 format. Other formats, such as webm and ogv will work in some browsers. You can use an online service such as <a href="http://video.online-convert.com/convert-to-mp4" target="_blank">online-convert.com</a> to convert your videos to mp4.', 'siteorigin-widgets'), 'default' => '', 'library' => 'video', 'state_handler' => array('video_type[self]' => array('show'), 'video_type[external]' => array('hide'))), 'self_poster' => array('type' => 'media', 'label' => __('Select cover image', 'siteorigin-widgets'), 'default' => '', 'library' => 'image', 'state_handler' => array('video_type[self]' => array('show'), 'video_type[external]' => array('hide'))), 'external_video' => array('type' => 'text', 'sanitize' => 'url', 'label' => __('Video URL', 'siteorigin-widgets'), 'state_handler' => array('video_type[external]' => array('show'), 'video_type[self]' => array('hide'))))), 'playback' => array('type' => 'section', 'label' => __('Video Playback', 'siteorigin-widgets'), 'fields' => array('autoplay' => array('type' => 'checkbox', 'default' => false, 'label' => __('Autoplay', 'siteorigin-widgets')), 'oembed' => array('type' => 'checkbox', 'default' => true, 'label' => __('Use oEmbed', 'siteorigin-widgets'), 'description' => __('Always use the embedded video rather than the MediaElement player.', 'siteorigin-widgets'), 'state_handler' => array('video_type[external]' => array('show'), 'video_type[self]' => array('hide')))))));
 }
 function __construct()
 {
     parent::__construct('lsow-hero-image', __('Livemesh Hero Header', 'livemesh-so-widgets'), array('description' => __('Display a hero background with video or image background.', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => 'http://portfoliotheme.org/widgets-bundle/hero-image-widget-documentation/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'header_type' => array('type' => 'radio', 'label' => __('Header Type', 'livemesh-so-widgets'), 'default' => 'standard', 'state_emitter' => array('callback' => 'select', 'args' => array('header_type')), 'options' => array('standard' => __('Standard', 'livemesh-so-widgets'), 'custom' => __('Custom', 'livemesh-so-widgets'))), 'custom_header' => array('type' => 'section', 'label' => __('Custom Header', 'livemesh-so-widgets'), 'state_handler' => array('header_type[custom]' => array('show'), '_else[header_type]' => array('hide')), 'fields' => array('custom' => array('type' => 'tinymce', 'label' => __('Custom text', 'livemesh-so-widgets')), 'custom_css' => array('type' => 'textarea', 'label' => __('Custom CSS for presentation of the Custom header elements. Will be embedded inline with the page.', 'livemesh-so-widgets'), 'rows' => 20))), 'standard_header' => array('type' => 'section', 'label' => __('Standard Header', 'livemesh-so-widgets'), 'state_handler' => array('header_type[standard]' => array('show'), '_else[header_type]' => array('hide')), 'fields' => array('heading' => array('type' => 'text', 'label' => __('Header text', 'livemesh-so-widgets')), 'subheading' => array('type' => 'text', 'label' => __('Sub-heading text', 'livemesh-so-widgets'), 'optional' => 'true'), 'button_text' => array('type' => 'text', 'label' => __('Button text', 'livemesh-so-widgets')), 'button_url' => array('type' => 'link', 'label' => __('Button URL', 'livemesh-so-widgets')), 'new_window' => array('type' => 'checkbox', 'label' => __('Open URL in a new window', 'livemesh-so-widgets')))), 'pointer_down_url' => array('type' => 'text', 'label' => __('URL for Pointer Down', 'livemesh-so-widgets'), 'description' => __('If an URL for the pointer down is specified, the hero image will sport a pointer down indicator to help user smooth scroll to the section indicated by this URL.', 'livemesh-so-widgets')), 'background' => array('type' => 'section', 'label' => __('Background', 'livemesh-so-widgets'), 'fields' => array('bg_type' => array('type' => 'radio', 'label' => __('Background Type', 'livemesh-so-widgets'), 'default' => 'parallax', 'state_emitter' => array('callback' => 'select', 'args' => array('bg_type')), 'options' => array('cover' => __('Cover Image', 'livemesh-so-widgets'), 'parallax' => __('Parallax Image', 'livemesh-so-widgets'), 'youtube' => __('YouTube Video', 'livemesh-so-widgets'), 'html5video' => __('HTML5 Video', 'livemesh-so-widgets'))), 'youtube_video' => array('type' => 'section', 'label' => __('YouTube Background Video', 'livemesh-so-widgets'), 'state_handler' => array('bg_type[youtube]' => array('show'), '_else[bg_type]' => array('hide')), 'fields' => array('youtube_url' => array('type' => 'text', 'sanitize' => 'url', 'label' => __('YouTube URL', 'livemesh-so-widgets'), 'description' => __('An URL of the YouTube video that will act as background video for this section.', 'livemesh-so-widgets')), 'quality' => array('type' => 'select', 'label' => __('Choose the YouTube video quality', 'livemesh-so-widgets'), 'default' => 'highres', 'options' => array('highres' => __('High Resolution', 'livemesh-so-widgets'), 'default' => __('Default', 'livemesh-so-widgets'), 'small' => __('Small', 'livemesh-so-widgets'), 'medium' => __('Medium', 'livemesh-so-widgets'), 'large' => __('Large', 'livemesh-so-widgets'), 'hd720' => __('HD 720p', 'livemesh-so-widgets'), 'hd1080' => __('HD 1080p', 'livemesh-so-widgets'))), 'ratio' => array('type' => 'select', 'label' => __('Aspect ratio of the YouTube video', 'livemesh-so-widgets'), 'default' => '16/9', 'options' => array('16/9' => __('16/9', 'livemesh-so-widgets'), 'auto' => __('Auto', 'livemesh-so-widgets'), '4/3' => __('4/3', 'livemesh-so-widgets'))))), 'html5_videos' => array('type' => 'section', 'label' => __('HTML5 Background videos', 'livemesh-so-widgets'), 'state_handler' => array('bg_type[html5video]' => array('show'), '_else[bg_type]' => array('hide')), 'fields' => array('mp4_file' => array('type' => 'media', 'library' => 'video', 'label' => __('MP4 Video file', 'livemesh-so-widgets')), 'webm_file' => array('type' => 'media', 'library' => 'video', 'label' => __('WebM Video file', 'livemesh-so-widgets')), 'ogg_file' => array('type' => 'media', 'library' => 'video', 'label' => __('Ogg Video file', 'livemesh-so-widgets')))), 'bg_image' => array('type' => 'section', 'label' => __('Background Image', 'livemesh-so-widgets'), 'fields' => array('image' => array('type' => 'media', 'label' => __('Background Image', 'livemesh-so-widgets'), 'label' => __('This background image will be used as a placeholder image if YouTube or HTML5 video background option is chosen.', 'livemesh-so-widgets'), 'library' => 'image', 'fallback' => true))), 'overlay' => array('type' => 'section', 'label' => __('Background Overlay', 'livemesh-so-widgets'), 'fields' => array('overlay_color' => array('type' => 'color', 'label' => __('Overlay color', 'livemesh-so-widgets'), 'default' => '#333333'), 'overlay_opacity' => array('label' => __('Overlay opacity', 'livemesh-so-widgets'), 'type' => 'slider', 'min' => 0, 'max' => 100, 'default' => 30))))), 'settings' => array('type' => 'section', 'label' => __('Settings', 'livemesh-so-widgets'), 'fields' => array('top_padding' => array('type' => 'number', 'label' => __('Top padding', 'livemesh-so-widgets'), 'default' => 100), 'bottom_padding' => array('type' => 'number', 'label' => __('Bottom padding', 'livemesh-so-widgets'), 'default' => 100), 'responsive' => array('type' => 'section', 'label' => __('Responsive', 'livemesh-so-widgets'), 'hide' => true, 'fields' => array('tablet' => array('type' => 'section', 'label' => __('Tablet', 'livemesh-so-widgets'), 'fields' => array('top_padding' => array('type' => 'number', 'label' => __('Top padding', 'livemesh-so-widgets'), 'default' => 80), 'bottom_padding' => array('type' => 'number', 'label' => __('Bottom padding', 'livemesh-so-widgets'), 'default' => 80), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a tablet resolution.', 'livemesh-so-widgets'), 'default' => 800, 'sanitize' => 'intval'))), 'mobile' => array('type' => 'section', 'label' => __('Mobile Phone', 'livemesh-so-widgets'), 'fields' => array('top_padding' => array('type' => 'number', 'label' => __('Top padding', 'livemesh-so-widgets'), 'default' => 50), 'bottom_padding' => array('type' => 'number', 'label' => __('Bottom padding', 'livemesh-so-widgets'), 'default' => 50), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a mobile resolution.', 'livemesh-so-widgets'), 'default' => 400, 'sanitize' => 'intval')))))))));
 }
Exemple #25
0
 function __construct()
 {
     parent::__construct('blog-style-two', __('Blog Grid', 'addon-so-widgets-bundle'), array('description' => __('Display posts as grid layout.', 'addon-so-widgets-bundle'), 'panels_icon' => 'dashicons dashicons-welcome-write-blog', 'panels_groups' => array('addonso')), array(), array('widget_title' => array('type' => 'text', 'label' => __('Widget Title', 'addon-so-widgets-bundle'), 'default' => ''), 'posts' => array('type' => 'posts', 'label' => __('Select Posts', 'addon-so-widgets-bundle')), 'layout' => array('type' => 'radio', 'label' => __('Choose a Layout', 'addon-so-widgets-bundle'), 'default' => 'col-md-6', 'options' => array('six columns' => __('2 Column Layout', 'addon-so-widgets-bundle'), 'one-third column' => __('3 Column Layout', 'addon-so-widgets-bundle'), 'three columns' => __('4 Column Layout', 'addon-so-widgets-bundle'))), 'excerpt_lenght' => array('type' => 'number', 'label' => __('Excerpt length (words)', 'addon-so-widgets-bundle'), 'default' => '10'), 'read_more_text' => array('type' => 'text', 'label' => __('Read more text', 'addon-so-widgets-bundle'), 'default' => 'Read More'), 'title_linkable' => array('type' => 'checkbox', 'label' => __('Title Linkable', 'addon-so-widgets-bundle'), 'default' => true), 'image_linkable' => array('type' => 'checkbox', 'label' => __('Image Linkable', 'addon-so-widgets-bundle'), 'default' => true), 'blog_two_styling' => array('type' => 'section', 'label' => __('Widget styling', 'addon-so-widgets-bundle'), 'hide' => true, 'fields' => array('title_color' => array('type' => 'color', 'label' => __('Title color', 'addon-so-widgets-bundle'), 'default' => ''), 'content_color' => array('type' => 'color', 'label' => __('Content color', 'addon-so-widgets-bundle'), 'default' => ''), 'meta_color' => array('type' => 'color', 'label' => __('Meta color', 'addon-so-widgets-bundle'), 'default' => '')))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('lrw-progress-bar-vert', __('LRW - Progress Bar Vertical', 'lrw-so-widgets-bundle'), array('description' => __('A simple vertical animated progress bar.', 'lrw-so-widgets-bundle'), 'panels_title' => 'title'), array(), array('trigger' => array('type' => 'checkbox', 'default' => true, 'label' => __('Trigger on Viewport', 'lrw-so-widgets-bundle'), 'description' => __('Check this to trigger the counter on viewport or on pageload.', 'lrw-so-widgets-bundle')), 'settings' => array('type' => 'section', 'label' => __('Settings', 'lrw-so-widgets-bundle'), 'fields' => array('label' => array('type' => 'text', 'sanitize' => 'label', 'label' => __('Label', 'lrw-so-widgets-bundle'), 'description' => __('Enter text used as title of bar.', 'lrw-so-widgets-bundle')), 'value' => array('type' => 'slider', 'label' => __('Value', 'lrw-so-widgets-bundle'), 'description' => __('Enter value of bar.', 'lrw-so-widgets-bundle'), 'min' => 0, 'max' => 100, 'default' => 100, 'integer' => true), 'unit' => array('type' => 'text', 'sanitize' => 'unit', 'label' => __('Unit', 'lrw-so-widgets-bundle'), 'description' => __('Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'lrw-so-widgets-bundle')))), 'bar_design' => array('type' => 'section', 'label' => __('Bar design', 'lrw-so-widgets-bundle'), 'hide' => true, 'fields' => array('bar_height' => array('type' => 'number', 'label' => __('Bar height', 'lrw-so-widgets-bundle'), 'description' => __('Set a total bar height, in pixels. Default is 200px.', 'lrw-so-widgets-bundle')), 'bar_color' => array('type' => 'color', 'label' => __('Bar color', 'lrw-so-widgets-bundle'), 'description' => __('Select single bar background color.', 'lrw-so-widgets-bundle')), 'bar_background' => array('type' => 'color', 'label' => __('Bar Background color', 'lrw-so-widgets-bundle'), 'description' => __('Select bar background color.', 'lrw-so-widgets-bundle')), 'bar_rounding' => array('type' => 'select', 'label' => __('Bar rounding', 'lrw-so-widgets-bundle'), 'default' => '0', 'options' => array('0' => __('None', 'lrw-so-widgets-bundle'), '0.25' => __('Slightly rounded', 'lrw-so-widgets-bundle'), '0.5' => __('Very rounded', 'lrw-so-widgets-bundle'), '1.5' => __('Completely rounded', 'lrw-so-widgets-bundle'))))), 'value_design' => array('type' => 'section', 'label' => __('Value design', 'lrw-so-widgets-bundle'), 'hide' => true, 'fields' => array('vl_color' => array('type' => 'color', 'label' => __('Value text color', 'lrw-so-widgets-bundle'), 'description' => __('Select value text color.', 'lrw-so-widgets-bundle')), 'vl_type' => array('type' => 'select', 'label' => __('Element tag', 'lrw-so-widgets-bundle'), 'default' => 'h3', 'options' => array('h1' => __('h1', 'lrw-so-widgets-bundle'), 'h2' => __('h2', 'lrw-so-widgets-bundle'), 'h3' => __('h3', 'lrw-so-widgets-bundle'), 'h4' => __('h4', 'lrw-so-widgets-bundle'), 'h5' => __('h5', 'lrw-so-widgets-bundle'), 'h6' => __('h6', 'lrw-so-widgets-bundle'))), 'vl_fontsize' => array('type' => 'number', 'label' => __('Font size', 'lrw-so-widgets-bundle'), 'description' => __('Set a font size or keep the default.', 'lrw-so-widgets-bundle')), 'vl_lineheight' => array('type' => 'number', 'label' => __('Line height', 'lrw-so-widgets-bundle'), 'description' => __('Set a line height or keep the default.', 'lrw-so-widgets-bundle')), 'vl_fontweight' => array('type' => 'number', 'label' => __('Font Weight', 'lrw-so-widgets-bundle'), 'description' => __('Set a font weight or keep the default.', 'lrw-so-widgets-bundle')), 'vl_margin_top' => array('type' => 'measurement', 'label' => __('Margin top', 'lrw-so-widgets-bundle'), 'default' => '20px'), 'vl_margin_bottom' => array('type' => 'measurement', 'label' => __('Margin bottom', 'lrw-so-widgets-bundle'), 'default' => '20px'))), 'label_design' => array('type' => 'section', 'label' => __('Label design', 'lrw-so-widgets-bundle'), 'hide' => true, 'fields' => array('lb_color' => array('type' => 'color', 'label' => __('Label text color', 'lrw-so-widgets-bundle'), 'description' => __('Select label text color.', 'lrw-so-widgets-bundle')), 'lb_type' => array('type' => 'select', 'label' => __('Element tag', 'lrw-so-widgets-bundle'), 'default' => 'h5', 'options' => array('h1' => __('h1', 'lrw-so-widgets-bundle'), 'h2' => __('h2', 'lrw-so-widgets-bundle'), 'h3' => __('h3', 'lrw-so-widgets-bundle'), 'h4' => __('h4', 'lrw-so-widgets-bundle'), 'h5' => __('h5', 'lrw-so-widgets-bundle'), 'h6' => __('h6', 'lrw-so-widgets-bundle'))), 'lb_fontsize' => array('type' => 'number', 'label' => __('Font size', 'lrw-so-widgets-bundle'), 'description' => __('Set a font size or keep the default.', 'lrw-so-widgets-bundle')), 'lb_lineheight' => array('type' => 'number', 'label' => __('Line height', 'lrw-so-widgets-bundle'), 'description' => __('Set a line height or keep the default.', 'lrw-so-widgets-bundle')), 'lb_fontweight' => array('type' => 'number', 'label' => __('Font Weight', 'lrw-so-widgets-bundle'), 'description' => __('Set a font weight or keep the default.', 'lrw-so-widgets-bundle')), 'lb_align' => array('type' => 'select', 'label' => __('Text align', 'lrw-so-widgets-bundle'), 'default' => 'center', 'options' => array('center' => __('Center', 'lrw-so-widgets-bundle'), 'right' => __('Right', 'lrw-so-widgets-bundle'), 'left' => __('Left', 'lrw-so-widgets-bundle'))), 'lb_margin_top' => array('type' => 'measurement', 'label' => __('Margin top', 'lrw-so-widgets-bundle'), 'default' => '20px'), 'lb_margin_bottom' => array('type' => 'measurement', 'label' => __('Margin bottom', 'lrw-so-widgets-bundle'), 'default' => '20px')))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('events-list-widget', __('Events List Widget', 'imic-framework'), array('description' => __('A widget to show upcoming events list.', 'imic-framework'), 'panels_icon' => 'dashicons dashicons-list-view', 'panels_groups' => array('framework')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'allpostsbtn' => array('type' => 'text', 'label' => __('All events button text', 'imic-framework'), 'default' => __('All Events', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'allpostsurl' => array('type' => 'link', 'label' => __('All events button URL', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'categories' => array('type' => 'text', 'label' => __('Event Category slug (Enter only a single category slug)', 'imic-framework')), 'event_type' => array('type' => 'select', 'state_name' => 'future', 'prompt' => __('Choose Events Type', 'framework'), 'options' => array('future' => __('Future', 'framework'), 'past' => __('Past', 'framework'))), 'number_of_posts' => array('type' => 'slider', 'label' => __('Number of Upcoming Events to show', 'imic-framework'), 'default' => 4, 'min' => 1, 'max' => 25, 'integer' => true), 'show_post_meta' => array('type' => 'checkbox', 'default' => true, 'label' => __('Show post action icons like Share, Location, Register?', 'imic-framework'))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('posts-list-widget', __('Posts List Widget', 'imic-framework'), array('description' => __('A widget to show posts list/grid view.', 'imic-framework'), 'panels_icon' => 'dashicons dashicons-list-view', 'panels_groups' => array('framework')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'allpostsbtn' => array('type' => 'text', 'label' => __('All posts button text', 'imic-framework'), 'default' => __('All Posts', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'allpostsurl' => array('type' => 'link', 'label' => __('All posts button URL', 'imic-framework'), 'description' => __('This button will be displayed only if the widget has title.', 'imic-framework')), 'categories' => array('type' => 'text', 'label' => __('Categories (Enter comma separated post category slugs)', 'imic-framework')), 'number_of_posts' => array('type' => 'slider', 'label' => __('Number of Posts to show', 'imic-framework'), 'default' => 4, 'min' => 1, 'max' => 25, 'integer' => true), 'show_post_meta' => array('type' => 'checkbox', 'default' => true, 'label' => __('Show post meta like post date, author, categories, comments?', 'imic-framework')), 'excerpt_length' => array('type' => 'text', 'default' => 50, 'label' => __('Length of excerpt(Enter the number of words to show)? Leave blank to hide - Default is: 50', 'imic-framework')), 'read_more_text' => array('type' => 'text', 'default' => 'Continue reading', 'label' => __('Continue reading button text, Leave blank to hide button - Default is Continue Reading', 'imic-framework')), 'listing_layout' => array('type' => 'section', 'label' => __('Layout', 'siteorigin-widgets'), 'hide' => false, 'description' => __('Choose listing layout.', 'siteorigin-widgets'), 'fields' => array('layout_type' => array('type' => 'radio', 'default' => 'list', 'label' => __('Layout Type', 'siteorigin-widgets'), 'options' => array('list' => __('List View', 'siteorigin-widgets'), 'grid' => __('Grid View', 'siteorigin-widgets'))), 'grid_column' => array('type' => 'select', 'state_name' => 'grid', 'prompt' => __('Choose Grid Column', 'framework'), 'options' => array('6' => __('Two', 'framework'), '4' => __('Three', 'framework'), '3' => __('Four', 'framework')))))), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('hello-world-widget', __('Hello World Widget', 'hello-world-widget-text-domain'), array('description' => __('A hello world widget.', 'hello-world-widget-text-domain')), array(), array('text' => array('type' => 'text', 'label' => __('Hello world! goes here.', 'siteorigin-widgets'), 'default' => 'Hello world!')), plugin_dir_path(__FILE__));
 }
 function __construct()
 {
     parent::__construct('sow-editor', __('SiteOrigin Editor', 'siteorigin-widgets'), array('description' => __('A rich-text, text editor.', 'siteorigin-widgets'), 'help' => 'https://siteorigin.com/widgets-bundle/editor-widget/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'siteorigin-widgets')), 'text' => array('type' => 'tinymce', 'rows' => 20), 'autop' => array('type' => 'checkbox', 'default' => true, 'label' => __('Automatically add paragraphs', 'siteorigin-widgets'))), plugin_dir_path(__FILE__));
 }