@version(2) @load('./css/board.css') @load('./lang') @php /* 목록 모양은 게시판 설정에서 고른다. 사진이 주인공이면 gallery, 글이 주인공이면 journal */ $hbd_mode = (string)($module_info->hairsalon_list_mode ?? 'journal'); if (!in_array($hbd_mode, ['gallery', 'journal'], true)) { $hbd_mode = 'journal'; } $hbd_thumb_w = (int)($module_info->hairsalon_thumb_width ?? 560) ?: 560; $hbd_thumb_h = (int)($module_info->hairsalon_thumb_height ?? 700) ?: 700; /* 목록과 분류는 게시판에 따라 null 로 올 수 있다. 배열로 맞춰 두고 쓴다 */ $hbd_cats = (array)($category_list ?? []); /* 화면에서 계산하지 않는다. 필요한 값을 먼저 만들어 둔다 */ $hbd_rows = []; foreach ((array)($notice_list ?? []) as $hbd_doc) { $hbd_rows[] = ['doc' => $hbd_doc, 'notice' => true]; } foreach ((array)($document_list ?? []) as $hbd_doc) { $hbd_rows[] = ['doc' => $hbd_doc, 'notice' => false]; } $hbd_items = []; foreach ($hbd_rows as $hbd_row) { $hbd_doc = $hbd_row['doc']; $hbd_items[] = [ 'srl' => (int)$hbd_doc->document_srl, 'title' => $hbd_doc->getTitle(), 'href' => getUrl('document_srl', $hbd_doc->document_srl, 'listStyle', $listStyle, 'cpage', ''), 'thumb' => $hbd_doc->getThumbnail($hbd_thumb_w, $hbd_thumb_h, 'crop'), 'summary' => trim((string)$hbd_doc->getSummary(90, '')), 'nick' => $hbd_doc->getNickName(), 'date' => $hbd_doc->getRegdate($lang->hbd_date_format), 'comments' => (int)$hbd_doc->getCommentCount(), 'notice' => $hbd_row['notice'], ]; } $hbd_cur = (int)($page ?: 1); @endphp {{-- 라이믹스 게시판은 읽기 화면도 이 파일이 그린다. 빼면 글이 열리지 않는다 --}} @if ($oDocument->isExists())
{{ $lang->no_documents }}
@elseif ($hbd_mode === 'gallery')