mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1143 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
da8661872b
commit
2efc96a061
5 changed files with 17 additions and 6 deletions
|
|
@ -34,7 +34,7 @@
|
|||
</var>
|
||||
</extra_vars>
|
||||
<menus>
|
||||
<menu id="main_menu">
|
||||
<menu id="main_menu" default="true">
|
||||
<name xml:lang="ko">주 메뉴</name>
|
||||
<maxdepth>2</maxdepth>
|
||||
</menu>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
class board extends ModuleObject {
|
||||
|
||||
var $search_option = array('title','content','title_content','user_name','user_id'); ///< 검색 옵션
|
||||
var $search_option = array('title','content','title_content','user_name','user_id','tag'); ///< 검색 옵션
|
||||
|
||||
var $skin = "default"; ///< 스킨 이름
|
||||
var $list_count = 20; ///< 한 페이지에 나타날 글의 수
|
||||
|
|
|
|||
|
|
@ -61,10 +61,14 @@
|
|||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->tags)-->
|
||||
<!--@if($document->tag_list)-->
|
||||
<tr>
|
||||
<th>{$lang->tag}</th>
|
||||
<td>{htmlspecialchars($document->tags)}</td>
|
||||
<td>
|
||||
<!--@foreach($document->tag_list as $val)-->
|
||||
<a href="{getUrl('search_target','tag','search_keyword',$val,'document_srl','')}">{htmlspecialchars($val)}</a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,13 @@
|
|||
$document->uploaded_list = $file_list;
|
||||
}
|
||||
|
||||
// 태그 정리
|
||||
if($document->tags) {
|
||||
$tag_list = explode(',',$document->tags);
|
||||
$tag_count = count($tag_list);
|
||||
for($i=0;$i<$tag_count;$i++) if(trim($tag_list[$i])) $document->tag_list[] = trim($tag_list[$i]);
|
||||
}
|
||||
|
||||
$document->content = sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $document_srl, $document->member_srl, $document->content, $document_srl, $document->member_srl);
|
||||
|
||||
return $document;
|
||||
|
|
@ -181,7 +188,7 @@
|
|||
if($search_keyword=='Y') $args->s_is_secret = 'Y';
|
||||
else $args->s_is_secret = '';
|
||||
break;
|
||||
case 'tags' :
|
||||
case 'tag' :
|
||||
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
|
||||
$args->s_tags = $search_keyword;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@
|
|||
$buff .= sprintf('$layout_info->menu_count = "%s";', $menu_count);
|
||||
for($i=0;$i<$menu_count;$i++) {
|
||||
$id = $menus[$i]->attrs->id;
|
||||
|
||||
if($menus[$i]->attrs->default == "true") $buff .= sprintf('$layout_info->default_menu = "%s";', $id);
|
||||
$buff .= sprintf('$layout_info->menu->{%s}->id = "%s";',$id, $menus[$i]->attrs->id);
|
||||
$buff .= sprintf('$layout_info->menu->{%s}->name = "%s";',$id, $menus[$i]->name->body);
|
||||
$buff .= sprintf('$layout_info->menu->{%s}->maxdepth = "%s";',$id, $menus[$i]->maxdepth->body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue