esc_html__( 'Displays latest posts in grid.', 'business-way-lite' ), ), array(), false, plugin_dir_path( __FILE__ ) ); } /** * Get widget form. * * @since 1.0.0 * * @return array Widget form. */ function get_widget_form() { return array( 'title' => array( 'type' => 'text', 'label' => esc_html__( 'Title', 'business-way-lite' ), ), 'subtitle' => array( 'type' => 'text', 'label' => esc_html__( 'Subtitle', 'business-way-lite' ), ), 'heading_alignment' => array( 'label' => esc_html__( 'Title/subtitle Alignment', 'business-way-lite' ), 'type' => 'select', 'default' => 'center', 'options' => business_way_get_heading_alignment_options(), ), 'post_category' => array( 'label' => esc_html__( 'Select Category:', 'business-way-lite' ), 'type' => 'taxonomy-dropdown', 'show_option_all' => esc_html__( 'All Categories', 'business-way-lite' ), ), 'post_number' => array( 'label' => esc_html__( 'Number of Posts', 'business-way-lite' ), 'type' => 'number', 'default' => 3, ), 'post_column' => array( 'label' => esc_html__( 'Number of Columns', 'business-way-lite' ), 'type' => 'select', 'default' => 3, 'options' => business_way_get_numbers_dropdown_options( 2, 4 ), ), 'featured_image' => array( 'label' => esc_html__( 'Featured Image', 'business-way-lite' ), 'type' => 'select', 'default' => 'large', 'options' => business_way_get_image_sizes_options( false ), ), 'more_text' => array( 'label' => esc_html__( 'More Text', 'business-way-lite' ), 'type' => 'text', 'default' => esc_html__( 'Know More', 'business-way-lite' ), ), 'excerpt_length' => array( 'label' => esc_html__( 'Excerpt Length', 'business-way-lite' ), 'description' => esc_html__( 'in words', 'business-way-lite' ), 'type' => 'number', 'default' => 15, ), 'explore_button_text' => array( 'label' => esc_html__( 'Explore Button Text', 'business-way-lite' ), 'type' => 'text', 'default' => esc_html__( 'Explore More', 'business-way-lite' ), ), 'explore_button_url' => array( 'label' => esc_html__( 'Explore Button URL', 'business-way-lite' ), 'type' => 'link', 'default' => '', ), ); } } siteorigin_widget_register( 'business-way-latest-news', __FILE__, 'Business_Way_Latest_News_Widget' );