/** * Get the form options and allow child widgets to modify that form. * * @param bool|SiteOrigin_Widget $parent * * @return mixed */ function form_options($parent = false) { $form_options = $this->modify_form($this->form_options); if (!empty($parent)) { $form_options = $parent->modify_child_widget_form($form_options, $this); } // Give other plugins a way to modify this form. $form_options = apply_filters('siteorigin_widgets_form_options', $form_options, $this); $form_options = apply_filters('siteorigin_widgets_form_options_' . $this->id_base, $form_options, $this); return $form_options; }
public function create_field($field_name, $field_options, SiteOrigin_Widget $for_widget, $for_repeater = array(), $is_template = false) { $element_id = $for_widget->so_get_field_id($field_name, $for_repeater, $is_template); $element_name = $for_widget->so_get_field_name($field_name, $for_repeater); $field_class = $this->get_field_class_name($field_options['type']); if ($this->is_container_type($field_options['type'])) { return new $field_class($field_name, $element_id, $element_name, $field_options, $for_widget, $for_repeater); } else { return new $field_class($field_name, $element_id, $element_name, $field_options); } }
public function create_field($field_name, $field_options, SiteOrigin_Widget $for_widget, $for_repeater = array(), $is_template = false) { $element_id = $for_widget->so_get_field_id($field_name, $for_repeater, $is_template); $element_name = $for_widget->so_get_field_name($field_name, $for_repeater); if (empty($field_options['type'])) { $field_options['type'] = 'text'; $field_options['label'] = __('This field does not have a type. Please specify a type for it to be rendered correctly.', 'so-widgets-bundle'); } $field_class = $this->get_field_class_name($field_options['type']); // If we still don't have a class use the 'SiteOrigin_Widget_Field_Error' class to indicate this to the user. if (!class_exists($field_class)) { return new SiteOrigin_Widget_Field_Error('', '', '', array('type' => 'error', 'message' => 'The class \'' . $field_class . '\' could not be found. Please make sure you specified the correct field type and that the class exists.')); } return new $field_class($field_name, $element_id, $element_name, $field_options, $for_widget, $for_repeater); }
public function create_field($field_name, $field_options, SiteOrigin_Widget $for_widget, $for_repeater = array(), $is_template = false) { $element_id = $for_widget->so_get_field_id($field_name, $for_repeater, $is_template); $element_name = $for_widget->so_get_field_name($field_name, $for_repeater); if (empty($field_options['type'])) { $field_options['type'] = 'text'; $field_options['label'] = __('This field does not have a type. Please specify a type for it to be rendered correctly.', 'siteorigin-widgets'); } $field_class = $this->get_field_class_name($field_options['type']); if ($this->is_container_type($field_options['type'])) { return new $field_class($field_name, $element_id, $element_name, $field_options, $for_widget, $for_repeater); } else { return new $field_class($field_name, $element_id, $element_name, $field_options); } }
function enqueue_frontend_scripts($instance) { wp_enqueue_script('iw-folio-js', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'scripts/folio.js', array('iw-mixitup-js'), INKED_SO_WIDGETS); wp_enqueue_script('ink-folio-init', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'scripts/equalizer.init.js', array('iw-equalizer-js'), INKED_SO_WIDGETS, true); wp_enqueue_style('iw-folio', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'styles/folio.css', array(), INKED_SO_WIDGETS); parent::enqueue_frontend_scripts($instance); }
protected function render_after_field($value, $instance) { if (!empty($this->fallback)) { $fallback_name = $this->get_fallback_field_name($this->base_name); $fallback_url = !empty($instance[$fallback_name]) ? $instance[$fallback_name] : ''; ?> <input type="text" value="<?php echo esc_url($fallback_url); ?> " placeholder="<?php esc_attr_e('External URL', 'siteorigin-widgets'); ?> " name="<?php echo esc_attr($this->for_widget->so_get_field_name($this->base_name . '_fallback', $this->parent_repeater)); ?> " class="media-fallback-external siteorigin-widget-input" /> <div class="clear"></div> <?php } else { ?> <div class="clear"></div> <?php } //Still want the default description, if there is one. parent::render_after_field($value, $instance); }
function enqueue_frontend_scripts($instance) { wp_register_script('iw-alert-js', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'scripts/alert.js', array('iw-foundation-js'), INKED_SO_WIDGETS, true); wp_enqueue_script('iw-alert-init', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'scripts/alert.init.js', array('iw-alert-js'), INKED_SO_WIDGETS, true); wp_enqueue_style('iw-alert', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'styles/alert.css', array(), INKED_SO_WIDGETS); parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { parent::enqueue_frontend_scripts($instance); wp_enqueue_style('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/css/magnific-popup.css'); wp_enqueue_script('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/jquery.magnific-popup.min.js', array('jquery'), '1.0.0', true); wp_enqueue_script('erm-front', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/erm-front-scripts.js', array('jquery'), '', true); }
function enqueue_frontend_scripts($instance) { wp_register_script('iw-accordion-js', siteorigin_widget_get_plugin_dir_url('ink-accordion') . 'scripts/accordion.js', array('iw-foundation-js'), INKED_SO_WIDGETS, true); wp_enqueue_script('iw-filter-init', siteorigin_widget_get_plugin_dir_url('ink-filt-ardn') . 'scripts/filter.init.js', array('iw-accordion-js', 'iw-mixitup-js'), INKED_SO_WIDGETS, true); wp_enqueue_style('iw-filt-ardn', siteorigin_widget_get_plugin_dir_url('ink-filt-ardn') . 'styles/accordion.css', array(), INKED_SO_WIDGETS); parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { if (isset($instance['visibility']) && $instance['visibility'] == 'yes') { wp_enqueue_script('emptyspace', siteorigin_widget_get_plugin_dir_url('lrw-empty-space') . 'assets/js/jquery.emptyspace.js', array('jquery'), LRW_BUNDLE_VERSION); } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { if (!empty($instance['trigger'])) { wp_enqueue_script('waypoints', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/waypoints.min.js', array('jquery'), LRW_BUNDLE_VERSION); } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { parent::enqueue_frontend_scripts($instance); wp_enqueue_style('Google-MrDeHaviland-Font', '//fonts.googleapis.com/css?family=Mr+De+Haviland'); wp_enqueue_script('ResWP-Moment', RESWP_THEME_URL . 'inc/siteorigin-widgets/open-table/js/moment.js', array('jquery'), '2.10.6', true); wp_enqueue_script('ResWP-Pikaday', RESWP_THEME_URL . 'inc/siteorigin-widgets/open-table/js/pikaday.js', array('ResWP-Moment'), '1.4.0', true); }
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 enqueue_frontend_scripts($instance) { wp_enqueue_style('lsow-button', siteorigin_widget_get_plugin_dir_url('lsow-button') . 'css/style.css', array(), LSOW_VERSION); $custom_css = $this->custom_css($instance); if (!empty($custom_css)) { wp_add_inline_style('lsow-button', $custom_css); } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { parent::enqueue_frontend_scripts($instance); wp_enqueue_style('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/css/magnific-popup.css'); wp_enqueue_script('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/jquery.magnific-popup.min.js', array('jquery'), '', true); wp_enqueue_script('erm-front', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/erm-front-scripts.js', array('jquery'), '', true); wp_enqueue_script('jquery-mixitup', RESWP_THEME_URL . 'inc/siteorigin-widgets/filter-restaurant-menu/js/jquery.mixitup.min.js', array('jquery'), '2.1.11', true); wp_enqueue_script('restaurant_wp_mixitup', RESWP_THEME_URL . 'inc/siteorigin-widgets/filter-restaurant-menu/js/restaurant_wp_mixitup.js', array('jquery-mixitup'), RESWP_THEME_VERSION, true); }
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 enqueue_frontend_scripts($instance) { if ($instance['audio']['type'] == 'hosted') { wp_enqueue_style('iw-audio', siteorigin_widget_get_plugin_dir_url('ink-audio') . 'styles/audio.css', array(), INKED_SO_WIDGETS); } elseif ($instance['audio']['type'] == 'oembed') { wp_enqueue_style('iw-audio-oembed', siteorigin_widget_get_plugin_dir_url('ink-audio') . 'styles/audio-oembed.css', array(), INKED_SO_WIDGETS); } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { if (!empty($instance['trigger'])) { wp_enqueue_script('waypoints', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/waypoints.min.js', array('jquery'), LRW_BUNDLE_VERSION); } if (isset($instance['settings']['e_easing']) && $instance['settings']['e_easing'] == 'yes') { wp_enqueue_script('easing', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/jquery.easing.1.3.js', array('jquery'), LRW_BUNDLE_VERSION); } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { $video_host = !empty($instance['video']['external_video']) ? $this->get_host_from_url($instance['video']['external_video']) : ''; if ($this->is_skinnable_video_host($video_host)) { if ($video_host == 'vimeo' && !wp_script_is('froogaloop')) { wp_enqueue_script('froogaloop'); } if (!wp_style_is('wp-mediaelement')) { wp_enqueue_style('wp-mediaelement'); } if (!wp_script_is('so-video-widget')) { wp_enqueue_script('so-video-widget', siteorigin_widget_get_plugin_dir_url('video') . 'js/so-video-widget' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery', 'mediaelement'), SOW_BUNDLE_VERSION); } } parent::enqueue_frontend_scripts($instance); }
function enqueue_frontend_scripts($instance) { $video_host = $instance['host_type']; if ($video_host == 'external') { $video_host = !empty($instance['video']['external_video']) ? $this->get_host_from_url($instance['video']['external_video']) : ''; } if ($this->is_skinnable_video_host($video_host)) { if ($video_host == 'vimeo' && !wp_script_is('froogaloop')) { wp_enqueue_script('froogaloop'); } if (!wp_style_is('sow-html-player-responsive')) { wp_enqueue_style('html-player-responsive', plugin_dir_url(__FILE__) . 'css/html-player-responsive.css', array(), SOW_BUNDLE_VERSION); } if (!wp_style_is('wp-mediaelement')) { wp_enqueue_style('wp-mediaelement'); } if (!wp_script_is('so-video-widget')) { wp_enqueue_script('so-video-widget', plugin_dir_url(__FILE__) . 'js/so-video-widget' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery', 'mediaelement'), SOW_BUNDLE_VERSION); } } parent::enqueue_frontend_scripts($instance); }
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-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('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('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('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('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__) . '../'); }
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-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('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('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))))); }