Example #1
0
<h1 class="entry-title">
	<?php 
if (!ap_opt('double_titles')) {
    the_title();
} else {
    echo '<span style="visibility:hidden">' . get_the_title() . '</span>';
}
?>
	<?php 
ap_ask_btn();
?>
</h1>
<?php 
dynamic_sidebar('ap-top');
?>
<div id="ap-lists" class="clearfix">
	<?php 
ap_questions_tab();
?>
	<?php 
if ($question->have_posts()) {
    ?>
		<div class="question-list">
	<?php 
    /* Start the Loop */
    while ($question->have_posts()) {
        $question->the_post();
        global $post;
        include ap_get_theme_location('content-list.php');
    }
    ?>
Example #2
0
<h1 class="entry-title">
	<?php 
if (!ap_opt('double_titles')) {
    ?>
	<?php 
    printf(__('Discussion on "%s"', 'ap'), get_the_title());
    ?>
	<?php 
}
?>
	<?php 
ap_ask_btn(get_the_ID());
?>
</h1>

<div id="ap-lists" class="clearfix">
	<?php 
ap_questions_tab(get_permalink());
?>
	<?php 
if ($questions->have_posts()) {
    ?>
		<div class="question-list">
			<?php 
    /* Start the Loop */
    while ($questions->have_posts()) {
        $questions->the_post();
        global $post;
        include ap_get_theme_location('content-list.php');
    }