コード例 #1
0
 function initialize()
 {
     // This widget requires the button widget
     if (!class_exists('SiteOrigin_Widget_Button_Widget')) {
         SiteOrigin_Widgets_Bundle::single()->include_widget('so-button-widget');
     }
     // Let the slider base class do its initialization
     parent::initialize();
 }
コード例 #2
0
ファイル: hero.php プロジェクト: JasonAJames/jasonajamescom
 function initialize()
 {
     // This widget requires the button widget
     if (!class_exists('SiteOrigin_Widget_Button_Widget')) {
         SiteOrigin_Widgets_Bundle::single()->include_widget('button');
     }
     add_filter('siteorigin_widgets_wrapper_classes_' . $this->id_base, array($this, 'wrapper_class_filter'), 10, 2);
     // Let the slider base class do its initialization
     parent::initialize();
 }
コード例 #3
0
 function initialize()
 {
     if (!class_exists('SiteOrigin_Widget_Button_Widget')) {
         // We need to include the button
         include plugin_dir_path(SOW_BUNDLE_BASE_FILE) . 'widgets/so-button-widget/so-button-widget.php';
         siteorigin_widget_register('button', plugin_dir_path(SOW_BUNDLE_BASE_FILE) . 'widgets/so-button-widget/so-button-widget.php');
     }
     // Let the slider base class do its initialization
     parent::initialize();
 }
コード例 #4
0
 function __construct()
 {
     parent::__construct('sow-slider', __('SiteOrigin Slider', 'siteorigin-widgets'), array('description' => __('A responsive slider widget that supports images and video.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/slider-widget-documentation/', 'panels_title' => false), array(), array('frames' => array('type' => 'repeater', 'label' => __('Slider frames', 'siteorigin-widgets'), 'item_name' => __('Frame', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('background_videos' => array('type' => 'repeater', 'item_name' => __('Video', 'siteorigin-widgets'), 'label' => __('Background videos', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='frames-background_videos-url']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => $this->video_form_fields()), 'background_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Background image', 'siteorigin-widgets')), 'background_color' => array('type' => 'color', 'label' => __('Background Color', 'siteorigin-widgets')), 'background_image_type' => array('type' => 'select', 'label' => __('Background image type', 'siteorigin-widgets'), 'options' => array('cover' => __('Cover', 'siteorigin-widgets'), 'tile' => __('Tile', 'siteorigin-widgets')), 'default' => 'cover'), 'foreground_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Foreground image', 'siteorigin-widgets')), 'url' => array('type' => 'link', 'label' => __('Destination URL', 'siteorigin-widgets')), 'new_window' => array('type' => 'checkbox', 'label' => __('Open in new window', 'siteorigin-widgets'), 'default' => false))), 'controls' => array('type' => 'section', 'label' => __('Controls', 'siteorigin-widget'), 'fields' => $this->control_form_fields())), plugin_dir_path(__FILE__) . '../');
 }
コード例 #5
0
ファイル: slider.php プロジェクト: Tagern/Individual-Project
 function __construct()
 {
     parent::__construct('sow-slider', __('SiteOrigin Slider', 'so-widgets-bundle'), array('description' => __('A responsive slider widget that supports images and video.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/slider-widget-documentation/', 'panels_title' => false), array(), false, plugin_dir_path(__FILE__));
 }
コード例 #6
0
ファイル: layout-slider.php プロジェクト: spielhoelle/amnesty
 function __construct()
 {
     parent::__construct('sow-layout-slider', __('SiteOrigin Layout Slider', 'so-widgets-bundle'), array('description' => __('A slider that allows you to create responsive columnized content for each slide.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/layout-slider-widget/', 'panels_title' => false), array(), false, plugin_dir_path(__FILE__));
 }