function attachAux($str, $aux1, $aux2) { return $str.(Korean::doesHaveFinalConsonant($str)?$aux1:$aux2); }
$sp_booms = $skin->parseTag('boom_author', UTF8::clear($item['author']), $sp_booms); $sp_booms = $skin->parseTag('boom_date', (Validator::is_digit($item['written']) ? date('Y-m-d', $item['written']) : $item['written']), $sp_booms); $s_booms_rep .= $sp_booms; $sp_booms = ''; } $s_booms = $skin->dressOn('boom_rep', $src_booms_rep, $s_booms_rep, $src_booms); } else { $s_booms = ''; } $skin->dress('boom', $s_booms); // ** 태그 클라우드 $skin->dress('tagcloud', SkinElement::getTagCloud($skinConfig->tagCloudOrder, $skinConfig->tagCloudLimit)); // ** 달력 $skin->replace('calendar', SkinElement::getCalendarView((($searchType=='archive')&&!empty($searchKeyword)) ? substr($searchKeyword, 0, 6) : null)); // ** 검색 $searchTypeSelector = '<select name="type"><option value="all">'._t('전체').'</option><option value="tag"'.(($searchType=='tag')?' selected="selected"':'').'>'._t('태그').'</option><option value="blogURL"'.(($searchType=='blogURL')?' selected="selected"':'').'>'._t('블로그주소').'</option><option value="archive"'.(($searchType=='archive')?' selected="selected"':'').'>'._t('날짜지정').'</option></select>'; $skin->replace('search_typeselect', $searchTypeSelector); $skin->replace('search_keyword', $searchKeyword); $src_search = $skin->cutSkinTag('search'); $s_search = '<form action="'.$servicePath.'/" enctype="application/x-www-form-urlencoded" method="get">'.$src_search.'</form>'; $skin->dress('search', $s_search); $skin->output = $skin->parseTagWithCondition('search_keyword', Korean::doesHaveFinalConsonant(UTF8::bring($searchKeyword)), '<span class="searchKeyword">"'.$searchKeyword.'"</span>', $skin->output); if(Validator::is_empty($searchKeyword)) $skin->dress('cond_search', ''); ?>