public function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); $avatar_size = $instance['avatar_size']; echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } ap_get_all_parti($avatar_size); echo $args['after_widget']; }
<div class="ap-question-side"> <h3 class="ap-question-side-title"><?php _e('Tags', 'ap'); ?> </h3> <?php ap_question_tags_html(get_question_id()); ?> </div> <?php } ?> <!-- End Tags --> <!-- Start participants --> <div class="ap-question-side"> <?php ap_get_all_parti(30, get_question_id()); ?> </div> <!-- End participants --> </div> </div> </div> </div> <?php } else { echo '<div class="ap-pending-notice ap-icon-clock">' . __('You do not have permission to view this question.') . '</div>'; } }