Exemplo n.º 1
0
function do_qa_edit()
{
    ?>
  <div class="post_box top">
    <div class="format_text">
      <?php 
    //get_header( 'question' );
    ?>
      <div id="qa-page-wrapper">
        <div id="qa_banner"></div>
        <?php 
    the_qa_menu();
    ?>

        <?php 
    the_post();
    ?>

        <div id="answer-form">
          <h2><?php 
    printf(__('Answer for %s', QA_TEXTDOMAIN), get_question_link($post->post_parent));
    ?>
</h2>
          <?php 
    the_answer_form();
    ?>
        </div>

      </div><!--#qa-page-wrapper-->
      <?php 
    //get_sidebar( 'question' );
    ?>

      <?php 
    //get_footer( 'question' );
    ?>
    </div>
  </div>
  <?php 
}
Exemplo n.º 2
0
function the_question_link($question_id = 0)
{
    global $post;
    if (!$question_id) {
        $question_id = $post->ID;
    }
    if (!$question_id) {
        $question_id = get_the_ID();
    }
    echo get_question_link($question_id);
}
Exemplo n.º 3
0
	<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 
global $qa_general_settings;