@version(2) @load('./lang') @if ($oDocument->isExists()) @endif @if (isset($list_config)) @php $hrb_style = $module_info->hr_list_style ?? 'list'; if (!function_exists('hrb_relative_time')) { function hrb_relative_time($regdate) { $ts = ztime($regdate); if (!$ts) { return ''; } $diff = time() - $ts; // 문구는 스킨 언어 파일에서 받는다. 여기 박으면 다른 언어에서 한국어가 나온다 if ($diff < 60) { return lang('hrb_just_now'); } if ($diff < 3600) { return sprintf(lang('hrb_minutes_ago'), floor($diff / 60)); } if ($diff < 86400) { return sprintf(lang('hrb_hours_ago'), floor($diff / 3600)); } if ($diff < 86400 * 30) { return sprintf(lang('hrb_days_ago'), floor($diff / 86400)); } return date('y.m.d', $ts); } } $hrb_author = true; $hrb_count = true; $hrb_cat = ($module_info->use_category ?? 'N') === 'Y'; $hrb_docs = []; foreach ($notice_list ?: [] as $hrb_nd) { $hrb_docs['notice_' . $hrb_nd->document_srl] = $hrb_nd; } foreach ($document_list ?: [] as $hrb_dk => $hrb_dd) { $hrb_docs[$hrb_dk] = $hrb_dd; } @endphp
@if (!$oDocument->isExists() && (!empty($module_info->board_title) || !empty($module_info->board_desc)))

{{ Context::replaceUserLang($module_info->board_title ?: $module_info->browser_title) }}

@if (!empty($module_info->board_desc))

{{ $module_info->board_desc }}

@endif
@endif {{-- 목록이 길면 아래 글쓰기 버튼까지 내려가야 한다. 그래서 위에도 둔다 --}} {{-- 단, 타이틀 헤더를 쓰는 게시판은 글쓰기 버튼이 헤더에 있으므로 여기서는 뺀다 --}} @php $hrb_head_on = trim($module_info->hr_board_title ?? '') !== ''; @endphp @if (($hrb_cat && count($category_list)) || (!$hrb_head_on && $grant->write_document))
@if ($hrb_cat && count($category_list)) @endif @if (!$hrb_head_on && $grant->write_document) {{ $lang->cmd_write_post ?? $lang->cmd_write ?? $lang->hrb_write }} @endif
@endif @if (count($hrb_docs)) @if ($hrb_style === 'list') @foreach ($list_config as $hrb_col) @if ($hrb_col->idx != -1) @elseif ($hrb_col->type === 'no') @elseif ($hrb_col->type === 'module_title') @elseif ($hrb_col->type === 'title') @elseif ($hrb_col->type === 'nick_name') @elseif ($hrb_col->type === 'user_id') @elseif ($hrb_col->type === 'user_name') @elseif ($hrb_col->type === 'regdate') @elseif ($hrb_col->type === 'last_update') @elseif ($hrb_col->type === 'last_post') @elseif ($hrb_col->type === 'readed_count') @elseif ($hrb_col->type === 'voted_count') @elseif ($hrb_col->type === 'blamed_count') @endif @endforeach @if ($grant->manager) @endif @foreach ($hrb_docs as $hrb_no => $document) @foreach ($list_config as $hrb_col) @if ($hrb_col->idx != -1) @elseif ($hrb_col->type === 'no') @elseif ($hrb_col->type === 'module_title') @elseif ($hrb_col->type === 'title') @elseif ($hrb_col->type === 'nick_name') @elseif ($hrb_col->type === 'user_id') @elseif ($hrb_col->type === 'user_name') @elseif ($hrb_col->type === 'regdate') @elseif ($hrb_col->type === 'last_update') @elseif ($hrb_col->type === 'last_post') @elseif ($hrb_col->type === 'readed_count') @elseif ($hrb_col->type === 'voted_count') @elseif ($hrb_col->type === 'blamed_count') @endif @endforeach @if ($grant->manager) @endif @endforeach
{{ $hrb_col->name }}{{ $lang->no }}{{ $lang->module_title }}{{ $lang->title }}{{ $lang->writer }}{{ $lang->user_id }}{{ $lang->user_name }}{{ $lang->date }}{{ $lang->last_update }}{{ $lang->last_post }}{{ $lang->readed_count }}{{ $lang->voted_count }}{{ $lang->blamed_count }}
{!! $document->getExtraValueHTML($hrb_col->idx) !!} @if ($document_srl == $document->document_srl)» @elseif ($document->isNotice()){{ $lang->notice }} @else{{ $hrb_no }}@endif {{ $document->get('module_title') }} @if ($hrb_cat && $document->get('category_srl') && isset($category_list[$document->get('category_srl')])) {{ $category_list[$document->get('category_srl')]->title }} @endif @if ($document->isSecret())@endif {!! $document->getTitle() !!} @if ($document->getCommentCount())+{{ $document->getCommentCount() }}@endif @if ($document->hasUploadedFiles())@endif @if ($document->getRegdateTime() > time() - 60 * 60 * ($module_info->duration_new ?? 24))N@endif @php $hrb_row_photo = (($module_info->hr_show_photo ?? 'Y') === 'Y') ? $document->getProfileImage() : ''; @endphp @if ($hrb_row_photo)@endif {{-- 기여 뱃지 애드온이 member_ 요소 안쪽을 다시 쓴다. 이 안에 태그를 더 넣으면 안 된다 --}} @if ($document->get('member_srl') > 0) {{ $document->getNickName() }} @else{{ $document->getNickName() }}@endif {{ $document->getUserID() }}{{ $document->getUserName() }}{{ hrb_relative_time($document->get("regdate")) }}{{ zdate($document->get('last_update'), 'Y.m.d') }} @if ((int)$document->get('comment_count') > 0) {{ zdate($document->get('last_update'), 'Y.m.d') }} @if ($document->getLastUpdater()){{ $document->getLastUpdater() }}@endif @else @endif {{ number_format((int)$document->get('readed_count')) }}{{ number_format((int)$document->get('voted_count')) }}{{ number_format((int)$document->get('blamed_count')) }}isCarted()) checked @endif />
@else @if ($notice_list) @include("_notices") @endif @if ($hrb_style === "faq")
    @foreach ($document_list ?: [] as $document)
  • Q @if ($hrb_cat && $document->get('category_srl') && isset($category_list[$document->get('category_srl')])){{ $category_list[$document->get('category_srl')]->title }}@endif {{ $document->getTitleText() }}
    A
    {!! $document->getContent(false) !!}
  • @endforeach
@elseif ($hrb_style === "webzine") @else
@foreach ($document_list ?: [] as $document) @include("_card") @endforeach
@endif @endif @else

{{ $lang->msg_not_founded ?? $lang->hrb_empty }}

@endif @if (count($hrb_docs)) @endif @if ($last_division)

{{ $lang->cmd_search_next ?? $lang->hrb_search_next }}

@endif
@if ($grant->view) @endif
@endif