public function widget($args, $instance) { $title = apply_filters('widget_title', @$instance['title']); echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } ap_subscribe_btn_html(); ap_question_subscribers(); echo $args['after_widget']; }
<?php if ($question_category->description != '') { ?> <p class="ap-taxo-description"><?php echo $question_category->description; ?> </p> <?php } ?> <?php ap_subscribe_btn_html($question_category->term_id, 'category'); ?> <?php ap_question_subscribers($question_category->term_id, 'category'); ?> <?php $sub_cat_count = count(get_term_children($question_category->term_id, 'question_category')); if ($sub_cat_count > 0) { echo '<div class="ap-term-sub">'; echo '<div class="sub-taxo-label">' . $sub_cat_count . ' ' . __('Sub Categories', 'categories-for-anspress') . '</div>'; ap_sub_category_list($question_category->term_id); echo '</div>'; } ?> </div><!-- close .ap-taxo-detail --> <?php ap_get_template_part('list-head');
</span></h2> <?php if ($question_tag->description != '') { ?> <p class="ap-taxo-description"><?php echo $question_tag->description; ?> </p> <?php } ?> <?php ap_subscribe_btn_html($question_tag->term_id, 'tag'); ?> <?php ap_question_subscribers($question_tag->term_id, 'tag'); ?> </div> <?php ap_get_template_part('list-head'); ?> <?php if (ap_have_questions()) { ?> <div class="ap-questions"> <?php /* Start the Loop */ while (ap_questions()) { ap_the_question(); global $post; include ap_get_theme_location('content-list.php');