'best_education_author_widget', 'description' => __('Displays message details in post.', 'best-education'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'best-education'), 'type' => 'text', 'class' => 'widefat', ), 'author-name' => array( 'label' => __('Name:', 'best-education'), 'type' => 'text', 'class' => 'widefat', ), 'discription' => array( 'label' => __('Discription:', 'best-education'), 'type' => 'text', 'class' => 'widget-content widefat' ), 'image_url' => array( 'label' => __('Image:', 'best-education'), 'type' => 'image', ), 'signature_image_url' => array( 'label' => __('Signature Image:', 'best-education'), 'type' => 'image', ), 'url-fb' => array( 'label' => __('Facebook URL:', 'best-education'), 'type' => 'url', 'class' => 'widefat', ), 'url-tw' => array( 'label' => __('Twitter URL:', 'best-education'), 'type' => 'url', 'class' => 'widefat', ), 'url-insta' => array( 'label' => __('Instagram URL:', 'best-education'), 'type' => 'url', 'class' => 'widefat', ), ); parent::__construct('best-education-author-layout', __('BE: Message Widget', 'best-education'), $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'] . $params['title'] . $args['after_title']; } ?>
'best_education_social_widget', 'description' => __('Displays social menu if you have set it(social menu)', 'best-education'), 'customize_selective_refresh' => true, ); $fields = array( 'title' => array( 'label' => __('Title:', 'best-education'), 'description' => __('Note: Displays social menu if you have set it(social menu)', 'best-education'), 'type' => 'text', 'class' => 'widefat', ), 'description' => array( 'label' => __('Description:', 'best-education'), 'type' => 'text', 'class' => 'widefat', ), ); parent::__construct('best-education-social-layout', __('BE: Social Menu Widget', 'best-education'), $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']; echo ""; ?>