document.php 입니다.

이번엔 document.php 입니다.

미리 감사드려요...저도 어디가 잘못된건지 너무 궁금해요.ㅠ

 

<div id="kboard-document">
 <div id="kboard-customer-document">
  <div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
   <div class="kboard-title" itemprop="name">
    <h1><?php echo $content->title?></h1>
   </div>
   
   <div class="kboard-detail">
    <?php if($content->category1):?>
    <div class="detail-attr detail-category1">
     <div class="detail-name"><?php echo $content->category1?></div>
    </div>
    <?php endif?>
    <?php if($content->category2):?>
    <div class="detail-attr detail-category2">
     <div class="detail-name"><?php echo $content->category2?></div>
    </div>
    <?php endif?>
    <div class="detail-attr detail-writer">
     <div class="detail-name"><?php echo __('Author', 'kboard')?></div>
     <div class="detail-value"><?php echo $content->member_display?></div>
    </div>
    <div class="detail-attr detail-date">
     <div class="detail-name"><?php echo __('Date', 'kboard')?></div>
     <div class="detail-value"><?php echo date('Y-m-d H:i', strtotime($content->date))?></div>
    </div>
    <div class="detail-attr detail-view">
     <div class="detail-name"><?php echo __('Views', 'kboard')?></div>
     <div class="detail-value"><?php echo $content->view?></div>
    </div>

 

   </div>
   
   <div class="kboard-content" itemprop="description">
    <div class="content-view">
     <?php if($board->isEditor($content->member_uid)):?>
     <p>
         <?php echo __('연락처', 'kboard')?> : <?php echo $content->option->tel?><br>
      <?php echo __('촬영날짜(요일)', 'kboard')?> : <?php echo $content->option->dday?><br>
      <?php echo __('촬영시작시간', 'kboard')?> : <?php echo $content->option->stime?><br>
      <?php echo __('촬영지역(장소)', 'kboard')?> : <?php echo $content->option->where?><br>
      <?php echo __('아기이름(영문포함)', 'kboard')?> : <?php echo $content->option->bname?><br>
      <?php echo $content->option->fam; ?> <br>
      <?php echo $content->option->cate; ?> <br>
      <?php echo $content->option->product; ?> <br>
         <?php echo __('예약금 입금자명', 'kboard')?> : <?php echo $content->option->deposit?><br>
      <?php echo __('E-mail', 'kboard')?> : <?php echo $content->option->email?><br>
      <?php echo __('알게된 경로', 'kboard')?> : <?php echo $content->option->way?><br>

     </p>
     <?php endif?>
     
     <?php echo $content->content?>

    </div>
   </div>
   
   <div class="kboard-document-action">
    <div class="left">
     <button type="button" class="kboard-button-action kboard-button-like" onclick="kboard_document_like(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Like', 'kboard')?>"><?php echo __('Like', 'kboard')?> <span class="kboard-document-like-count"><?php echo intval($content->like)?></span></button>
     <button type="button" class="kboard-button-action kboard-button-unlike" onclick="kboard_document_unlike(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Unlike', 'kboard')?>"><?php echo __('Unlike', 'kboard')?> <span class="kboard-document-unlike-count"><?php echo intval($content->unlike)?></span></button>
    </div>
    <div class="right">
     <button type="button" class="kboard-button-action kboard-button-print" onclick="kboard_document_print('<?php echo $url->getDocumentPrint($content->uid)?>')" title="<?php echo __('Print', 'kboard')?>"><?php echo __('Print', 'kboard')?></button>
    </div>
   </div>
   
   <?php if($content->isAttached()):?>
   <div class="kboard-attach">
    <?php foreach($content->attach as $key=>$attach):?>
    <button type="button" class="kboard-button-action kboard-button-download" onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo sprintf(__('Download %s', 'kboard'), $attach[1])?>"><?php echo $attach[1]?></button>
    <?php endforeach?>
   </div>
   <?php endif?>
  </div>
  
  <?php if($content->visibleComments()):?>
  <div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
  <?php endif?>
  
  <div class="kboard-document-navi">
   <div class="kboard-prev-document">
    <?php
    $bottom_content_uid = $content->getPrevUID();
    if($bottom_content_uid):
    $bottom_content = new KBContent();
    $bottom_content->initWithUID($bottom_content_uid);
    ?>
    <a href="<?php echo $url->getDocumentURLWithUID($bottom_content_uid)?>">
     <span class="navi-arrow">«</span>
     <span class="navi-document-title kboard-customer-cut-strings"><?php echo $bottom_content->title?></span>
    </a>
    <?php endif?>
   </div>
   
   <div class="kboard-next-document">
    <?php
    $top_content_uid = $content->getNextUID();
    if($top_content_uid):
    $top_content = new KBContent();
    $top_content->initWithUID($top_content_uid);
    ?>
    <a href="<?php echo $url->getDocumentURLWithUID($top_content_uid)?>">
     <span class="navi-document-title kboard-customer-cut-strings"><?php echo $top_content->title?></span>
     <span class="navi-arrow">»</span>
    </a>
    <?php endif?>
   </div>
  </div>
  
  <div class="kboard-control">
   <div class="left">
    <a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-customer-button-small"><?php echo __('List', 'kboard')?></a>
    <?php if($board->isWriter() && !$content->notice):?><a href="<?php echo $url->set('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-customer-button-small"><?php echo __('Reply', 'kboard')?></a><?php endif?>
   </div>
   <?php if($board->isEditor($content->member_uid) || $board->permission_write=='all'):?>
   <div class="right">
    <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-customer-button-small"><?php echo __('Edit', 'kboard')?></a>
    <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'remove')->toString()?>" class="kboard-customer-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
   </div>
   <?php endif?>
  </div>
  
  <?php if(!$board->meta->always_view_list):?>
  <div class="kboard-customer-poweredby">
   <a href="http://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return false;" title="<?php echo __('KBoard is the best community software available for WordPress', 'kboard')?>">Powered by KBoard</a>
  </div>
  <?php endif?>
 </div>
</div>

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요