make(); $TMPL['items']=$html; } $skin=new skin('list'); $result['list_notice']=$skin->make(); } else { $result['list_notice']=''; } $html=''; if ($NUM) { foreach ($RCD as $R) { $TMPL['subject']=$R['subject']; $TMPL['uid']=$R['uid']; $TMPL['mbruid']=$R['mbruid']; $TMPL['name']= getStrCut($R[$_HS['nametype']],10,'..'); $TMPL['hit']=$R['hit']; $TMPL['comment']=$R['comment'].($R['oneline']?'+'.$R['oneline']:''); $TMPL['likes']=$R['likes']; $TMPL['d_regis']=getDateFormat($R['d_regis'],'Y.m.d H:i'); $TMPL['d_regis_c']=getDateFormat($R['d_regis'],'c'); $TMPL['new']=getNew($R['d_regis'],24)?'':'d-none'; $TMPL['hidden']=$R['hidden']?'':'d-none'; $TMPL['notice']=$R['notice']?'':'d-none'; $TMPL['upload']=$R['upload']?'':'d-none'; $TMPL['category']=$R['category']; $TMPL['timeago']=$d['theme']['timeago']?'data-plugin="timeago"':''; $TMPL['avatar']=getAvatarSrc($R['mbruid'],'150'); $TMPL['featured_img_sm'] = getPreviewResize(getUpImageSrc($R),'240x180'); $TMPL['featured_img'] = getPreviewResize(getUpImageSrc($R),'480x270'); //16:9 $TMPL['featured_img_lg'] = getPreviewResize(getUpImageSrc($R),'686x386'); $TMPL['featured_img_1by1_200'] = getPreviewResize(getUpImageSrc($R),'200x200'); $TMPL['featured_img_1by1_300'] = getPreviewResize(getUpImageSrc($R),'300x300'); $TMPL['featured_img_1by1_600'] = getPreviewResize(getUpImageSrc($R),'600x600'); $TMPL['has_featured_img'] = getUpImageSrc($R)=='/files/noimage.png'?'d-none':''; $TMPL['url'] = '/'.$r.'/b/'.$bid.'/'.$R['uid']; //업로드 파일갯수 $d['upload'] = getArrayString($R['upload']); $TMPL['upload_count'] = $d['upload']['count']; if ($collapse) $TMPL['article'] = getContents($R['content'],$R['html']); $skin_item=new skin($markup_item); $html.=$skin_item->make(); } $TMPL['items']=$html; if ($p==1) { $TMPL['page']=$p; $skin=new skin($markup_list); $result['list_post']=$skin->make(); } else { $result['list_post']=$html; } } else { $skin_item=new skin('none'); $result['list_post']=$skin_item->make(); } if($my['admin'] || $my['uid']==$R['mbruid']) { // 수정,삭제 버튼 출력여부를 위한 참조 $result['bbsadmin'] = 1; } if ($B['category']) { $_catexp = explode(',',$B['category']); $_catnum=count($_catexp); $category=''; for ($i = 1; $i < $_catnum; $i++) { if(!$_catexp[$i])continue; $category.= '