You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
4.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. <div class="container">
  2. <div class="page-header">
  3. <h2 class="page-title"><?=$board['brd_title']?></h2>
  4. </div>
  5. <article class="panel panel-default">
  6. <header class="panel-heading">
  7. <h1 class="panel-title"><?=$view['post_title']?></h1>
  8. </header>
  9. <div class="panel-body">
  10. <ul class="post-info">
  11. <dl>
  12. <dt>작성자</dt>
  13. <dd><?=$view['post_nickname']?></dd>
  14. </dl>
  15. <dl>
  16. <dt>조회수</dt>
  17. <dd><?=$view['post_hit']?></dd>
  18. </dl>
  19. <dl>
  20. <dt>작성일</dt>
  21. <dd><?=$view['post_datetime']?></dd>
  22. </dl>
  23. </ul>
  24. </div>
  25. <!-- START:: 글내용-->
  26. <div class="panel-body">
  27. <?php if( $view['post_status'] == 'Y' ) :
  28. echo display_html_content($view['post_content']);
  29. else : ?>
  30. <p class="alert alert-danger">해당 글은 블라인드 처리된 글입니다.</p>
  31. <?php endif;?>
  32. <div class="sns-share-wrap">
  33. <ul class="sns-share-list">
  34. <li><a href="javascript:;" data-toggle="sns-share" data-service="facebook" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">페이스북 공유하기</a></li>
  35. <li><a href="javascript:;" data-toggle="sns-share" data-service="google" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">구글+ 공유하기</a></li>
  36. <li><a href="javascript:;" data-toggle="sns-share" data-service="pinterest" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">핀터레스트 공유하기</a></li>
  37. <li><a href="javascript:;" data-toggle="sns-share" data-service="kakaostory" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">카카오 스토리 공유하기</a></li>
  38. <li><a href="javascript:;" data-toggle="sns-share" data-service="band" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">밴드 공유하기</a></li>
  39. <li><a href="javascript:;" data-toggle="sns-share" data-service="naver" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">네이버 공유하기</a></li>
  40. <li><a href="javascript:;" data-toggle="sns-share" data-service="line" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">네이버 라인 공유하기</a></li>
  41. <li><a href="javascript:;" data-toggle="sns-share" data-service="link" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">현재 링크 복사하기</a></li>
  42. </ul>
  43. </div>
  44. </div>
  45. <!-- END:: 글내용-->
  46. <?php if( count($view['file']) > 0 ) :?>
  47. <!-- START :: 첨부파일 목록 -->
  48. <div class="panel-body">
  49. <h4>첨부파일</h4>
  50. <ul class="nav nav-pills nav-stacked">
  51. <?php foreach($view['file'] as $f) :?>
  52. <li><a href="<?=$f['link']?>"><i class="fa fa-download"></i> <?=$f['att_origin']?> (<?=format_size($f['att_filesize'])?>) <small>다운로드수 : <?=number_format($f['att_downloads'])?></small></a></li>
  53. <?php endforeach;?>
  54. </ul>
  55. </div>
  56. <!-- END :: 첨부파일 목록 -->
  57. <?php endif;?>
  58. <div class="panel-footer">
  59. <div class="pull-left">
  60. <?php if($view['prev']) :?>
  61. <a class="btn btn-sm btn-default" href="<?=$view['prev']['link']?>">이전글</a>
  62. <?php endif;?>
  63. <a class="btn btn-sm btn-default" href="<?=$board['link']['list']?>">목록으로</a>
  64. <?php if($view['next']) :?>
  65. <a class="btn btn-sm btn-default" href="<?=$view['next']['link']?>">다음글</a>
  66. <?php endif;?>
  67. </div>
  68. <div class="pull-right">
  69. <?php if($board['auth']['reply']) :?>
  70. <a class="btn btn-sm btn-default" href="<?=$board['link']['reply']?>">답글</a>
  71. <?php endif;?>
  72. <a class="btn btn-sm btn-default" href="<?=$board['link']['modify']?>">수정</a>
  73. <a class="btn btn-sm btn-danger" href="<?=$board['link']['delete']?>">삭제</a>
  74. </div>
  75. <div class="clearfix"></div>
  76. </div>
  77. </article>
  78. <div class="H10"></div>
  79. <!-- START :: 코멘트 입력 -->
  80. <?=$comment_write?>
  81. <!-- END:: 코멘트 -->
  82. <!-- START :: 코멘트 목록 -->
  83. <?=$comment_list?>
  84. <!-- END:: 코멘트 -->
  85. </div>