__('Tabs Component.', 'addon-so-widgets-bundle'), 'panels_groups' => array('addonso') ), array( ), array( 'widget_title' => array( 'type' => 'text', 'label' => __('Widget Title', 'addon-so-widgets-bundle'), 'default' => '' ), 'repeater' => array( 'type' => 'repeater', 'label' => __( 'Tabs' , 'addon-so-widgets-bundle' ), 'item_name' => __( 'Tab', 'addon-so-widgets-bundle' ), 'item_label' => array( 'selector' => "[id*='repeat_text']", 'update_event' => 'change', 'value_method' => 'val' ), 'fields' => array( 'tab_title' => array( 'type' => 'text', 'label' => __('Tab Title', 'addon-so-widgets-bundle'), 'default' => '' ), 'tab_content' => array( 'type' => 'textarea', 'label' => __( 'Tab Content', 'addon-so-widgets-bundle' ), 'default' => '', 'allow_html_formatting' => true, 'rows' => 10 ), ) ), 'tabs_selection' => array( 'type' => 'radio', 'label' => __( 'Choose Tabs Style', 'addon-so-widgets-bundle' ), 'default' => 'horizontal', 'options' => array( 'horizontal' => __( 'Horizontal Tabs', 'addon-so-widgets-bundle' ), 'vertical' => __( 'Vertical Tabs', 'addon-so-widgets-bundle' ), ) ), 'custom_class' => array( 'type' => 'text', 'label' => __('Custom Class', 'addon-so-widgets-bundle'), 'default' => '' ), ), plugin_dir_path(__FILE__) ); } function get_template_name($instance) { return 'tabs-template'; } function get_style_name($instance) { return 'tabs-style'; } } require_once( '/tpl/tabs-options.php' ); siteorigin_widget_register('tabs', __FILE__, 'Tabs');