'asterisk_lite_author_widget', 'description' => esc_html__('Displays Author Details.', 'asterisk-lite'), 'customize_selective_refresh' => true, ); $category_list = asterisk_lite_post_category_list(); $fields = array( 'title' => array( 'label' => esc_html__('Author Name:', 'asterisk-lite'), 'type' => 'text', 'class' => 'widefat', ), 'author_image' => array( 'label' => esc_html__('Author Image:', 'asterisk-lite'), 'type' => 'image', 'class' => 'widefat', ), 'author_autograph' => array( 'label' => esc_html__('Signature Image', 'asterisk-lite'), 'type' => 'image', 'class' => 'widefat', ), 'description' => array( 'label' => esc_html__('Description:', 'asterisk-lite'), 'type' => 'textarea', 'class' => 'widefat', ), 'facebook_link' => array( 'label' => esc_html__('Facebook Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'twitter_link' => array( 'label' => esc_html__('Twitter Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'instagram_link' => array( 'label' => esc_html__('Instagram Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'pinterest_link' => array( 'label' => esc_html__('Pinterest Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'youtube_link' => array( 'label' => esc_html__('Youtube Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'linkedin_link' => array( 'label' => esc_html__('LinkedIn Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'vk_link' => array( 'label' => esc_html__('VK Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'reddit_link' => array( 'label' => esc_html__('Reddit Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), 'wordpress_link' => array( 'label' => esc_html__('WordPress Link:', 'asterisk-lite'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct( 'asterisk-lite-author', esc_html__('Devs: Sidebar Author Widget', 'asterisk-lite'), $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']; $title = isset( $params['title'] ) ? $params['title'] : ''; $description = isset( $params['description'] ) ? $params['description'] : ''; $facebook_link = isset( $params['facebook_link'] ) ? $params['facebook_link'] : ''; $twitter_link = isset( $params['twitter_link'] ) ? $params['twitter_link'] : ''; $instagram_link = isset( $params['instagram_link'] ) ? $params['instagram_link'] : ''; $pinterest_link = isset( $params['pinterest_link'] ) ? $params['pinterest_link'] : ''; $youtube_link = isset( $params['youtube_link'] ) ? $params['youtube_link'] : ''; $linkedin_link = isset( $params['linkedin_link'] ) ? $params['linkedin_link'] : ''; $vk_link = isset( $params['vk_link'] ) ? $params['vk_link'] : ''; $wordpress_link = isset( $params['wordpress_link'] ) ? $params['wordpress_link'] : ''; $reddit_link = isset( $params['reddit_link'] ) ? $params['reddit_link'] : ''; $author_image = isset( $params['author_image'] ) ? $params['author_image'] : ''; $author_autograph = isset( $params['author_autograph'] ) ? $params['author_autograph'] : ''; ?>