<?php
if (!defined("_GNUBOARD_")) {
    exit;
} // 개별 페이지 접근 불가
?>

<section class="reply">
    <h2 class="sub-title">답변: <?php echo get_text($answer['qa_subject']); ?></h2>
    <div id="ans_datetime">
        <?php echo $answer['qa_datetime']; ?>
    </div>
    <div class="reply-contents">
        <?php echo conv_content($answer['qa_content'], $answer['qa_html']); ?>
    </div>
    <div class="button-container">
        <div class="button-group float-left">
            <?php if ($answer_update_href) { ?>
                <a href="<?php echo $answer_update_href; ?>" class="button"><i class="fa fa-pencil"></i> <span class='show-for-medium'>답변수정</span></a>
            <?php } ?>
            <?php if ($answer_delete_href) { ?>
                <a href="<?php echo $answer_delete_href; ?>" class="button" onclick="del(this.href); return false;"><i class="fa fa-trash"></i> <span class='show-for-medium'>답변삭제</span></a>
            <?php } ?>
        </div>
        <div class="button-group float-right">
            <a href="<?php echo $rewrite_href; ?>" class="button"><i class="fa fa-pencil-square-o"></i><span> 추가질문등록</span></a>
        </div>
    </div>
</section>