'business_startup_service_widget', 'description' => __('Displays post form selected pages as service page', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'image_url' => array( 'label' => esc_html__('Section Featured Image:', 'business-startup'), 'type' => 'image', ), 'image_side' => array( 'label' => __( 'Move Image to Right', 'business-startup' ), 'type' => 'checkbox', 'default' => true, ), 'excerpt_length' => array( 'label' => __('Excerpt Length:', 'business-startup'), 'description' => __('Number of words', 'business-startup'), 'type' => 'number', 'css' => 'max-width:60px;', 'default' => 20, 'min' => 0, 'max' => 200, ), 'enable_featured_image' => array( 'label' => __( 'Switch to Feature Image', 'business-startup' ), 'description' => __('Font Icon will be replaced by featured image of particular pages', 'business-startup'), 'type' => 'checkbox', 'default' => false, ), 'service_page_1' => array( 'label' => __( 'Select Page 1:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'service_icon_1' => array( 'label' => __('Service Icon 1:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'service_page_2' => array( 'label' => __( 'Select Page 2:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'service_icon_2' => array( 'label' => __('Service Icon 2:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'service_page_3' => array( 'label' => __( 'Select Page 3:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'service_icon_3' => array( 'label' => __('Service Icon 3:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'service_page_4' => array( 'label' => __( 'Select Page 4:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'service_icon_4' => array( 'label' => __('Service Icon 4:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), ); parent::__construct('business-startup-service-layout', __('BS :- Service Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; ?>
'business_startup_intro_widget', 'description' => __('Displays post form selected pages as intro page', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'image_url' => array( 'label' => esc_html__('Section Background Image:', 'business-startup'), 'type' => 'image', ), 'excerpt_length' => array( 'label' => __('Excerpt Length:', 'business-startup'), 'description' => __('Number of words', 'business-startup'), 'type' => 'number', 'css' => 'max-width:60px;', 'default' => 20, 'min' => 0, 'max' => 200, ), 'enable_featured_image' => array( 'label' => __( 'Switch to Feature Image', 'business-startup' ), 'description' => __('Font Icon will be replaced by featured image of particular pages', 'business-startup'), 'type' => 'checkbox', 'default' => false, ), 'intro_page_1' => array( 'label' => __( 'Select Page 1:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_1' => array( 'label' => __('Intro Icon 1:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'intro_page_2' => array( 'label' => __( 'Select Page 2:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_2' => array( 'label' => __('Intro Icon 2:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'intro_page_3' => array( 'label' => __( 'Select Page 3:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_3' => array( 'label' => __('Intro Icon 3:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'intro_page_4' => array( 'label' => __( 'Select Page 4:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_4' => array( 'label' => __('Intro Icon 4:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'intro_page_5' => array( 'label' => __( 'Select Page 5:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_5' => array( 'label' => __('Intro Icon 5:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), 'intro_page_6' => array( 'label' => __( 'Select Page 6:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'intro_icon_6' => array( 'label' => __('Intro Icon 6:', 'business-startup'), 'description' => __('please get icon form https://ionicons.com/v2/cheatsheet.html', 'business-startup'), 'type' => 'text', 'class' => 'widefat', 'default' => 'ion-images', ), ); parent::__construct('business-startup-intro-layout', __('BS :- Intro Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; ?> 'business_startup_testimonial_widget', 'description' => __('Displays page as testimonial form selected pages', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'default' => __('Testimonial', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'excerpt_length' => array( 'label' => __('Excerpt Length:', 'business-startup'), 'description' => __('Number of words', 'business-startup'), 'type' => 'number', 'css' => 'max-width:60px;', 'default' => 30, 'min' => 0, 'max' => 200, ), 'testimonial_page_1' => array( 'label' => __( 'Select Page 1:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'testimonial_page_2' => array( 'label' => __( 'Select Page 2:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'testimonial_page_3' => array( 'label' => __( 'Select Page 3:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'testimonial_page_4' => array( 'label' => __( 'Select Page 4:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'testimonial_page_5' => array( 'label' => __( 'Select Page 5:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), 'testimonial_page_6' => array( 'label' => __( 'Select Page 6:', 'business-startup' ), 'type' => 'dropdown-pages', 'class' => 'widefat', 'show_option_none' => __( '— Select —', 'business-startup' ), ), ); parent::__construct('business-startup-testimonial-widget', __("BS :- Testimonial Widget", 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; ?> 'business_startup_call_to_action_widget', 'description' => __('Displays call-to-action section on the basis of information listed here', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'image_urls' => array( 'label' => __('Background Image:', 'business-startup'), 'type' => 'image', ), 'button_text' => array( 'label' => __('Button Text:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'button_url' => array( 'label' => __('Button URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct('business-startup-call-to-action-widget', __('BS :- Call To Action Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; if (! empty( $params['image_urls'] )) { $image_url = esc_url( $params['image_urls'] ); } else{ $image_url = ''; } ?> 'business_startup_blog_widgets', 'description' => __('Displays post form selected category As Blog Post', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'short_description' => array( 'label' => __('Short Discription:', 'business-startup'), 'type' => 'text', 'class' => 'widget-content widefat' ), 'post_category' => array( 'label' => __('Select Category:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_number' => array( 'label' => __('Number of Posts:', 'business-startup'), 'type' => 'number', 'default' => 3, 'css' => 'max-width:60px;', 'min' => 1, 'max' => 12, ), 'excerpt_length' => array( 'label' => __('Excerpt Length:', 'business-startup'), 'description' => __('Number of words', 'business-startup'), 'type' => 'number', 'css' => 'max-width:60px;', 'default' => 20, 'min' => 0, 'max' => 200, ), ); parent::__construct('business-startup-blog-layout', __('BS :- Blog Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; $qargs = array( 'posts_per_page' => esc_attr($params['post_number']), 'no_found_rows' => true, ); if (absint($params['post_category']) > 0) { $qargs['category'] = absint($params['post_category']); } global $post; $all_posts = get_posts($qargs); ?> 'business_startup_client_widgets', 'description' => __('Displays post form selected category As Client Post', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'post_category' => array( 'label' => __('Select Category For Client:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'short_description' => array( 'label' => __('Short Discription:', 'business-startup'), 'type' => 'text', 'class' => 'widget-content widefat' ), 'post_number' => array( 'label' => __('Number of Clients:', 'business-startup'), 'type' => 'number', 'default' => 6, 'css' => 'max-width:60px;', 'min' => 1, 'max' => 12, ), ); parent::__construct('business-startup-client-layout', __('BS :- Client Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; $qargs = array( 'posts_per_page' => esc_attr($params['post_number']), 'no_found_rows' => true, ); if (absint($params['post_category']) > 0) { $qargs['category'] = absint($params['post_category']); } global $post; $all_posts = get_posts($qargs); ?> 'business_startup_popular_post_widget', 'description' => esc_html__('Displays post form selected category specific for popular post in sidebars.', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => esc_html__('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'post_category' => array( 'label' => esc_html__('Select Category:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => esc_html__('All Categories', 'business-startup'), ), 'post_number' => array( 'label' => esc_html__('Number of Posts:', 'business-startup'), 'type' => 'number', 'default' => 4, 'css' => 'max-width:60px;', 'min' => 1, 'max' => 10, ), ); parent::__construct('business-startup-popular-sidebar-layout', esc_html__('BS :- Recent Post', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; if (!empty($params['title'])) { echo $args['before_title'] . esc_html( $params['title'] ) . $args['after_title']; } $qargs = array( 'posts_per_page' => esc_attr($params['post_number']), 'no_found_rows' => true, ); if (absint($params['post_category']) > 0) { $qargs['category'] = absint($params['post_category']); } $all_posts = get_posts($qargs); ?> 'business_startup_author_widget', 'description' => esc_html__('Displays authors details in post.', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => esc_html__('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'author-name' => array( 'label' => esc_html__('Name:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'description' => array( 'label' => esc_html__('Discription:', 'business-startup'), 'type' => 'text', 'class' => 'widget-content widefat' ), 'image_url' => array( 'label' => esc_html__('Author Image:', 'business-startup'), 'type' => 'image', ), 'url-fb' => array( 'label' => esc_html__('Facebook URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-tw' => array( 'label' => esc_html__('Twitter URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-gp' => array( 'label' => esc_html__('Googleplus URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-ins' => array( 'label' => esc_html__('Instagram URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-pin' => array( 'label' => esc_html__('Pinterest URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct('business-startup-author-layout', esc_html__('BS :- Author Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; if (!empty($params['title'])) { echo $args['before_title'] . esc_html( $params['title'] ) . $args['after_title']; } ?> 'business_startup_social_widget', 'description' => esc_html__('Displays Social share.', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => esc_html__('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'url-fb' => array( 'label' => esc_html__('Facebook URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-tw' => array( 'label' => esc_html__('Twitter URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-gp' => array( 'label' => esc_html__('Googleplus URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-lt' => array( 'label' => esc_html__('Linkedin URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-ig' => array( 'label' => esc_html__('Instagram URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-pt' => array( 'label' => esc_html__('Pinterest URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-rt' => array( 'label' => esc_html__('Reddit URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-sk' => array( 'label' => esc_html__('Skype URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-sc' => array( 'label' => esc_html__('Snapchat URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-tr' => array( 'label' => esc_html__('Tumblr URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-th' => array( 'label' => esc_html__('Twitch URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-yt' => array( 'label' => esc_html__('Youtube URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-vo' => array( 'label' => esc_html__('Vimeo URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-wa' => array( 'label' => esc_html__('Whatsapp URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-wp' => array( 'label' => esc_html__('WordPress URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-gh' => array( 'label' => esc_html__('Github URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-fs' => array( 'label' => esc_html__('FourSquare URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), 'url-db' => array( 'label' => esc_html__('Dribbble URL:', 'business-startup'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct('business-startup-social-layout', esc_html__('BS :- Social Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; if (!empty($params['title'])) { echo $args['before_title'] . esc_html( $params['title'] ) . $args['after_title']; } ?> 'business_startup_portfolio_widgets', 'description' => __('Displays post form selected category As Project', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'description' => array( 'label' => esc_html__('Discription:', 'business-startup'), 'type' => 'text', 'class' => 'widget-content widefat' ), 'post_category_1' => array( 'label' => __('Select Category 1:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_category_2' => array( 'label' => __('Select Category 2:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_category_3' => array( 'label' => __('Select Category 3:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_category_4' => array( 'label' => __('Select Category 4:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_category_5' => array( 'label' => __('Select Category 5:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_category_6' => array( 'label' => __('Select Category 6:', 'business-startup'), 'type' => 'dropdown-taxonomies', 'show_option_all' => __('All Categories', 'business-startup'), ), 'post_number' => array( 'label' => __('Number of Posts from each:', 'business-startup'), 'type' => 'number', 'default' => 9, 'css' => 'max-width:60px;', 'min' => 1, 'max' => 12, ), ); parent::__construct('business-startup-portfolio-layout', __('BS :- Portfolio Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance) { $params = $this->get_params($instance); echo $args['before_widget']; global $post; ?> 'business_startup_Contact_widgets', 'description' => __('Displays post form selected category As Project', 'business-startup'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'business-startup'), 'type' => 'text', 'class' => 'widefat', ), 'description' => array( 'label' => __('Description:', 'business-startup'), 'type' => 'textarea', 'class' => 'widefat', ), 'contact_form_shortcode' => array( 'label' => __( 'Contact Form Shortcodes:', 'business-startup' ), 'type' => 'text', 'class' => 'widefat', ), 'google_map_shortcode' => array( 'label' => __( 'Google Map Shortcodes:', 'business-startup' ), 'description' => __('Leave this field empty if you do not want to use mag feature','business-startup'), 'type' => 'text', 'class' => 'widefat', ), ); parent::__construct('business_startup-contact-layout', __('BS :- Contact Widget', 'business-startup'), $opts, array(), $fields); } /** * Outputs the content for the current widget instance. * * @since 1.0.0 * * @param array $args Display arguments. * @param array $instance Settings for the current widget instance. */ function widget($args, $instance){ $params = $this->get_params($instance); echo $args['before_widget']; ?>