Created
June 26, 2013 11:59
-
-
Save aristath/5866853 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<?php | |
// Display the description for this archive, if it's available. | |
woo_archive_description(); | |
?> | |
<div class="fix"></div> | |
<section id="main" class="col-left"> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'archive-question' ); ?> | |
<?php the_qa_error_notice(); ?> | |
<?php the_qa_menu(); ?> | |
<?php if ( !have_posts() ) : ?> | |
<p><?php $question_ptype = get_post_type_object( 'question' ); echo $question_ptype->labels->not_found; ?></p> | |
<?php else: ?> | |
<div id="question-list"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php do_action( 'qa_before_question_loop' ); ?> | |
<div class="question"> | |
<?php do_action( 'qa_before_question' ); ?> | |
<div class="question-stats"> | |
<?php do_action( 'qa_before_question_stats' ); ?> | |
<div class="qa-status-icon <?php echo (is_question_answered())?'qa-answered-icon':'qa-unanswered-icon'; ?>"></div> | |
<?php the_question_score(); ?> | |
<?php the_question_status(); ?> | |
<?php do_action( 'qa_after_question_stats' ); ?> | |
</div> | |
<div class="question-summary"> | |
<?php do_action( 'qa_before_question_summary' ); ?> | |
<h3><?php the_question_link(); ?></h3> | |
<?php the_question_tags( '<div class="question-tags">', ' ', '</div>' ); ?> | |
<div class="question-started"> | |
<?php the_qa_time( get_the_ID() ); ?> | |
<?php the_qa_user_link( $post->post_author ); ?> | |
</div> | |
<?php do_action( 'qa_after_question_summary' ); ?> | |
</div> | |
<?php do_action( 'qa_after_question' ); ?> | |
</div> | |
<?php do_action( 'qa_after_question_loop' ); ?> | |
<?php endwhile; $wp_query->set('posts_per_page', 6); ?> | |
</div><!--#question-list--> | |
<?php the_qa_pagination( ); ?> | |
<?php do_action( 'qa_after_content', 'archive-question' ); ?> | |
<?php endif;?> | |
</div> | |
<?php woo_pagenav(); ?> | |
</section><!-- /#main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- /#content --> | |
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Post Template | |
* | |
* This template is the default page template. It is used to display content when someone is viewing a | |
* singular view of a post ('post' post_type). | |
* @link http://codex.wordpress.org/Post_Types#Post | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
/** | |
* The Variables | |
* | |
* Setup default variables, overriding them if the "Theme Options" have been saved. | |
*/ | |
$settings = array( | |
'thumb_single' => 'false', | |
'thumb_w' => 710, | |
'thumb_h' => 180, | |
'thumb_align' => 'alignleft' | |
); | |
$settings = woo_get_dynamic_values( $settings ); | |
?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<section id="main" class="col-left"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<div id="qa-page-wrapper"> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'ask-question' ); ?> | |
<?php the_qa_menu(); ?> | |
<div id="ask-question"> | |
<?php the_question_form(); ?> | |
</div> | |
<?php do_action( 'qa_after_content', 'ask-question' ); ?> | |
</div> | |
</div><!--#qa-page-wrapper--> | |
<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?> | |
<aside id="post-author" class="fix"> | |
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div> | |
<div class="profile-content"> | |
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3> | |
<?php the_author_meta( 'description' ); ?> | |
<div class="profile-link"> | |
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?> | |
</a> | |
</div><!-- #profile-link --> | |
</div><!-- .post-entries --> | |
</aside><!-- .post-author-box --> | |
<?php } ?> | |
<?php woo_subscribe_connect(); ?> | |
<nav id="post-entries" class="fix"> | |
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> | |
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> | |
</nav><!-- #post-entries --> | |
<?php | |
// Determine wether or not to display comments here, based on "Theme Options". | |
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) { | |
comments_template(); | |
} | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- .post --> | |
<?php } ?> | |
</section><!-- #main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- #content --> | |
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Post Template | |
* | |
* This template is the default page template. It is used to display content when someone is viewing a | |
* singular view of a post ('post' post_type). | |
* @link http://codex.wordpress.org/Post_Types#Post | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
/** | |
* The Variables | |
* | |
* Setup default variables, overriding them if the "Theme Options" have been saved. | |
*/ | |
$settings = array( | |
'thumb_single' => 'false', | |
'thumb_w' => 710, | |
'thumb_h' => 180, | |
'thumb_align' => 'alignleft' | |
); | |
$settings = woo_get_dynamic_values( $settings ); | |
?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<section id="main" class="col-left"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<div id="qa-page-wrapper"> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'edit-answer' ); ?> | |
<?php the_qa_menu(); ?> | |
<?php wp_reset_postdata(); ?> | |
<div id="answer-form"> | |
<h2><?php printf( __( 'Answer for %s', QA_TEXTDOMAIN ), get_question_link( $post->post_parent ) ); ?></h2> | |
<?php the_answer_form(); ?> | |
</div> | |
<?php do_action( 'qa_after_content', 'edit-answer' ); ?> | |
</div> | |
</div><!--#qa-page-wrapper--> | |
<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?> | |
<aside id="post-author" class="fix"> | |
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div> | |
<div class="profile-content"> | |
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3> | |
<?php the_author_meta( 'description' ); ?> | |
<div class="profile-link"> | |
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?> | |
</a> | |
</div><!-- #profile-link --> | |
</div><!-- .post-entries --> | |
</aside><!-- .post-author-box --> | |
<?php } ?> | |
<?php woo_subscribe_connect(); ?> | |
<nav id="post-entries" class="fix"> | |
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> | |
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> | |
</nav><!-- #post-entries --> | |
<?php | |
// Determine wether or not to display comments here, based on "Theme Options". | |
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) { | |
comments_template(); | |
} | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- .post --> | |
<?php } ?> | |
</section><!-- #main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- #content --> | |
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Post Template | |
* | |
* This template is the default page template. It is used to display content when someone is viewing a | |
* singular view of a post ('post' post_type). | |
* @link http://codex.wordpress.org/Post_Types#Post | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
/** | |
* The Variables | |
* | |
* Setup default variables, overriding them if the "Theme Options" have been saved. | |
*/ | |
$settings = array( | |
'thumb_single' => 'false', | |
'thumb_w' => 710, | |
'thumb_h' => 180, | |
'thumb_align' => 'alignleft' | |
); | |
$settings = woo_get_dynamic_values( $settings ); | |
?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<section id="main" class="col-left"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<div id="qa-page-wrapper"> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'edit-question' ); ?> | |
<?php the_qa_menu(); ?> | |
<div id="edit-question"> | |
<?php the_question_form(); ?> | |
</div> | |
<?php do_action( 'qa_after_content', 'edit-question' ); ?> | |
</div> | |
</div><!--#qa-page-wrapper--> | |
<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?> | |
<aside id="post-author" class="fix"> | |
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div> | |
<div class="profile-content"> | |
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3> | |
<?php the_author_meta( 'description' ); ?> | |
<div class="profile-link"> | |
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?> | |
</a> | |
</div><!-- #profile-link --> | |
</div><!-- .post-entries --> | |
</aside><!-- .post-author-box --> | |
<?php } ?> | |
<?php woo_subscribe_connect(); ?> | |
<nav id="post-entries" class="fix"> | |
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> | |
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> | |
</nav><!-- #post-entries --> | |
<?php | |
// Determine wether or not to display comments here, based on "Theme Options". | |
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) { | |
comments_template(); | |
} | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- .post --> | |
<?php } ?> | |
</section><!-- #main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- #content --> | |
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Post Template | |
* | |
* This template is the default page template. It is used to display content when someone is viewing a | |
* singular view of a post ('post' post_type). | |
* @link http://codex.wordpress.org/Post_Types#Post | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
/** | |
* The Variables | |
* | |
* Setup default variables, overriding them if the "Theme Options" have been saved. | |
*/ | |
$settings = array( | |
'thumb_single' => 'false', | |
'thumb_w' => 710, | |
'thumb_h' => 180, | |
'thumb_align' => 'alignleft' | |
); | |
$settings = woo_get_dynamic_values( $settings ); | |
?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<section id="main" class="col-left"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'single-question' ); ?> | |
<?php the_qa_menu(); ?> | |
<?php if ( ($user_ID == 0 && qa_visitor_can('read_questions')) || current_user_can( 'read_questions' ) ) { ?> | |
<?php wp_reset_postdata(); ?> | |
<div id="single-question"> | |
<h1><?php the_title(); ?></h1> | |
<div id="single-question-container"> | |
<?php the_question_voting(); ?> | |
<div id="question-body"> | |
<div id="question-content"><?php echo the_content(); ?></div> | |
<?php the_question_category( __( 'Category:', QA_TEXTDOMAIN ) . ' <span class="question-category">', '', '</span>' ); ?> | |
<?php the_question_tags( __( 'Tags:', QA_TEXTDOMAIN ) . ' <span class="question-tags">', ' ', '</span>' ); ?> | |
<span id="qa-lastaction"><?php _e( 'asked', QA_TEXTDOMAIN ); ?> <?php the_qa_time( get_the_ID() ); ?></span> | |
<div class="question-meta"> | |
<?php do_action( 'qa_before_question_meta' ); ?> | |
<?php the_qa_action_links( get_the_ID() ); ?> | |
<?php the_qa_author_box( get_the_ID() ); ?> | |
<?php do_action( 'qa_after_question_meta' ); ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php } ?> | |
<?php if ( (( ($user_ID == 0 && qa_visitor_can('read_answers')) || current_user_can( 'read_answers' )) ) && is_question_answered() ) { ?> | |
<div id="answer-list"> | |
<?php do_action( 'qa_before_answers' ); ?> | |
<h2><?php the_answer_count(); ?></h2> | |
<?php the_answer_list(); ?> | |
<?php do_action( 'qa_after_answers' ); ?> | |
</div> | |
<?php } ?> | |
<?php if ( ($user_ID == 0 && qa_visitor_can('publish_answers')) || current_user_can( 'publish_answers' ) ) { ?> | |
<div id="edit-answer"> | |
<?php do_action( 'qa_before_edit_answer' ); ?> | |
<h2><?php _e( 'Your Answer', QA_TEXTDOMAIN ); ?></h2> | |
<?php the_answer_form(); ?> | |
<?php do_action( 'qa_after_edit_answer' ); ?> | |
</div> | |
<?php } ?> | |
<p><?php the_question_subscription(); ?></p> | |
<?php do_action( 'qa_after_content', 'single-question' ); ?> | |
</div> | |
<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?> | |
<aside id="post-author" class="fix"> | |
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div> | |
<div class="profile-content"> | |
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3> | |
<?php the_author_meta( 'description' ); ?> | |
<div class="profile-link"> | |
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?> | |
</a> | |
</div><!-- #profile-link --> | |
</div><!-- .post-entries --> | |
</aside><!-- .post-author-box --> | |
<?php } ?> | |
<?php woo_subscribe_connect(); ?> | |
<nav id="post-entries" class="fix"> | |
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> | |
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> | |
</nav><!-- #post-entries --> | |
<?php | |
// Determine wether or not to display comments here, based on "Theme Options". | |
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) { | |
comments_template(); | |
} | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- .post --> | |
<?php } ?> | |
</section><!-- #main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- #content --> | |
<?php get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Post Template | |
* | |
* This template is the default page template. It is used to display content when someone is viewing a | |
* singular view of a post ('post' post_type). | |
* @link http://codex.wordpress.org/Post_Types#Post | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
/** | |
* The Variables | |
* | |
* Setup default variables, overriding them if the "Theme Options" have been saved. | |
*/ | |
$settings = array( | |
'thumb_single' => 'false', | |
'thumb_w' => 710, | |
'thumb_h' => 180, | |
'thumb_align' => 'alignleft' | |
); | |
$settings = woo_get_dynamic_values( $settings ); | |
?> | |
<div id="content"> | |
<div class="col-full"> | |
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?> | |
<section id="breadcrumbs"> | |
<?php woo_breadcrumbs(); ?> | |
</section><!--/#breadcrumbs --> | |
<?php } ?> | |
<section id="main" class="col-left"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<div id="qa-content-wrapper"> | |
<?php do_action( 'qa_before_content', 'edit-question' ); ?> | |
<?php the_qa_menu(); ?> | |
<div id="qa-user-box"> | |
<?php echo get_avatar( get_queried_object_id(), 128 ); ?> | |
<?php the_qa_user_rep( get_queried_object_id() ); ?> | |
</div> | |
<table id="qa-user-details"> | |
<tr> | |
<th><?php _e( 'Name', QA_TEXTDOMAIN ); ?></th> | |
<td><strong><?php echo get_queried_object()->display_name; ?></strong></td> | |
</tr> | |
<tr> | |
<th><?php _e( 'Member for', QA_TEXTDOMAIN ); ?></th> | |
<td><?php echo human_time_diff( strtotime( get_queried_object()->user_registered ) ); ?></td> | |
</tr> | |
<tr> | |
<th><?php _e( 'Website', QA_TEXTDOMAIN ); ?></th> | |
<td><?php echo make_clickable( get_queried_object()->user_url ); ?></td> | |
</tr> | |
</table> | |
<?php | |
$answer_query = new WP_Query( array( | |
'author' => get_queried_object_id(), | |
'post_type' => 'answer', | |
'posts_per_page' => 20, | |
'update_post_term_cache' => false | |
) ); | |
$fav_query = new WP_Query( array( | |
'post_type' => 'question', | |
'meta_key' => '_fav', | |
'meta_value' => get_queried_object_id(), | |
'posts_per_page' => 20, | |
) ); | |
?> | |
<div id="qa-user-tabs-wrapper"> | |
<ul id="qa-user-tabs"> | |
<li><a href="#qa-user-questions"> | |
<span id="user-questions-total"><?php echo number_format_i18n( $wp_query->found_posts ); ?></span> | |
<?php echo _n( 'Question', 'Questions', $wp_query->found_posts, QA_TEXTDOMAIN ); ?> | |
</a></li> | |
<li><a href="#qa-user-answers"> | |
<span id="user-answers-total"><?php echo number_format_i18n( $answer_query->found_posts ); ?></span> | |
<?php echo _n( 'Answer', 'Answers', $answer_query->found_posts, QA_TEXTDOMAIN ); ?> | |
</a></li> | |
</ul> | |
<div id="qa-user-questions"> | |
<div id="question-list"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php do_action( 'qa_before_question_loop' ); ?> | |
<div class="question"> | |
<?php do_action( 'qa_before_question' ); ?> | |
<div class="question-stats"> | |
<?php do_action( 'qa_before_question_stats' ); ?> | |
<?php the_question_score(); ?> | |
<?php the_question_status(); ?> | |
<?php do_action( 'qa_after_question_stats' ); ?> | |
</div> | |
<div class="question-summary"> | |
<?php do_action( 'qa_before_question_summary' ); ?> | |
<h3><?php the_question_link(); ?></h3> | |
<?php the_question_tags(); ?> | |
<div class="question-started"> | |
<?php the_qa_time( get_the_ID() ); ?> | |
</div> | |
<?php do_action( 'qa_after_question_summary' ); ?> | |
</div> | |
<?php do_action( 'qa_after_question' ); ?> | |
</div> | |
<?php do_action( 'qa_after_question_loop' ); ?> | |
<?php endwhile; ?> | |
</div><!--#question-list--> | |
</div><!--#qa-user-questions--> | |
<div id="qa-user-answers"> | |
<ul> | |
<?php | |
while ( $answer_query->have_posts() ) : $answer_query->the_post(); | |
list( $up, $down ) = qa_get_votes( get_the_ID() ); | |
echo '<li>'; | |
echo "<div class='answer-score'>"; | |
echo number_format_i18n( $up - $down ); | |
echo "</div> "; | |
the_answer_link( get_the_ID() ); | |
echo '</li>'; | |
endwhile; | |
?> | |
</ul> | |
</div><!--#qa-user-answers--> | |
</div><!--#qa-user-tabs-wrapper--> | |
<?php do_action( 'qa_after_content', 'edit-question' ); ?> | |
</div> | |
<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?> | |
<aside id="post-author" class="fix"> | |
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div> | |
<div class="profile-content"> | |
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3> | |
<?php the_author_meta( 'description' ); ?> | |
<div class="profile-link"> | |
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?> | |
</a> | |
</div><!-- #profile-link --> | |
</div><!-- .post-entries --> | |
</aside><!-- .post-author-box --> | |
<?php } ?> | |
<?php woo_subscribe_connect(); ?> | |
<nav id="post-entries" class="fix"> | |
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> | |
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> | |
</nav><!-- #post-entries --> | |
<?php | |
// Determine wether or not to display comments here, based on "Theme Options". | |
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) { | |
comments_template(); | |
} | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- .post --> | |
<?php } ?> | |
</section><!-- #main --> | |
<?php get_sidebar(); ?> | |
</div> | |
</div><!-- #content --> | |
<?php get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment