'userswp', 'block-icon' => 'admin-site', 'block-wrap' => '', 'block-category'=> 'layout', 'block-keywords'=> "['userswp','profile']", 'class_name' => __CLASS__, 'base_id' => 'uwp_profile_section', 'name' => __('UWP > Profile Section','userswp'), 'no_wrap' => true, 'widget_ops' => array( 'classname' => 'uwp-profile-section', 'description' => esc_html__('Display section to contain other elements.','userswp'), ), 'arguments' => array( 'type' => array( 'title' => __('Type:', 'userswp'), 'desc' => __('This is the opening or closing section.', 'userswp'), 'type' => 'select', 'options' => array( "open" => __('Open', 'userswp'), "close" => __('Close', 'userswp'), ), 'default' => 'open', 'desc_tip' => true, 'advanced' => false ), 'position' => array( 'title' => __('Position:', 'userswp'), 'desc' => __('This is position of the section.', 'userswp'), 'type' => 'select', 'options' => array( "left" => __('Left', 'userswp'), "right" => __('Right', 'userswp'), "full" => __('Full', 'userswp'), ), 'default' => 'full', 'desc_tip' => true, 'advanced' => false ), ) ); parent::__construct( $options ); } public function output( $args = array(), $widget_args = array(), $content = '' ) { $defaults = array( 'type' => 'open', 'position' => 'full', ); $args = wp_parse_args( $args, $defaults ); $output = ''; $design_style = uwp_get_option("design_style",'bootstrap'); if($design_style){ return $output; } if(isset($args['type']) && $args['type']=='open'){ $class = !empty($args['class']) ? esc_attr($args['class']) : ''; $position = isset($args['position']) ? $args['position'] : 'full'; $output = '