list.blade.php
@php
$maxLength
= 350;
if
(mb_strlen(
strip_tags
(
$document
->getContent(false))) >
$maxLength
){
// $content = preg_replace('/<img[^>]*>/', '', $document->variables['content']);
// $shortContent = mb_substr($content, 0, $maxLength) . '...';
$fullUrl
= getUrl(
'document_srl'
,
$document
->document_srl);
// 문서의 URL 생성
$content
=
$document
->getSummary(
$maxLength
);
$content
.=
" <a href='"
.
$fullUrl
.
"' class='read-more'>더보기</a>"
;
echo
$content
;
}
else
{
// echo '이하';
$content
= preg_replace(
'/<img[^>]*>/'
,
''
,
$document
->variables[
'content'
]);
// echo $document->getContent(false);
echo
$content
;
}
@endphp
제목 | 날짜 | ||
---|---|---|---|
3 | [대기] 모듈 개발 추가 요청 | 2025/01/06 | 17 |
2 | [구인] <초기 창업팀 팀원모집(항공/기상 분야)> : Data Scientist (Part-Time) | 2025/01/08 | 27 |
1 | [구인] [모집] 💻 다국어지식나눔 조인어스월드 웹 IT 봉사단 동아리 6기를 모집합니다! (~ 2025.02.14) | 2025/01/28 | 47 |