diff --git a/plugins/archive_list/conf/info.xml b/plugins/archive_list/conf/info.xml new file mode 100644 index 000000000..95993ab58 --- /dev/null +++ b/plugins/archive_list/conf/info.xml @@ -0,0 +1,25 @@ + + + 태그 목록 출력 + + 제로 + 선택된 모듈의 태그 목록을 정해진 순위만큼 노출하여 줍니다 + + + + 제목 + text + 최근 트랙백 제목으로 출력됩니다. + + + 목록수 + text + 출력될 목록의 수를 정하실 수 있습니다. (기본 20개) + + + 대상 모듈 + mid_list + 선택하신 모듈에 등록된 태그를 대상으로 합니다. + + + diff --git a/plugins/archive_list/skins/blog_tag_list/list.html b/plugins/archive_list/skins/blog_tag_list/list.html new file mode 100644 index 000000000..9998ead31 --- /dev/null +++ b/plugins/archive_list/skins/blog_tag_list/list.html @@ -0,0 +1,24 @@ + + + + + + +
+
+ + +
+
{$plugin_info->title}
+
+ + + +
+
diff --git a/plugins/archive_list/skins/blog_tag_list/normal/style.css b/plugins/archive_list/skins/blog_tag_list/normal/style.css new file mode 100644 index 000000000..fdd4a6b5a --- /dev/null +++ b/plugins/archive_list/skins/blog_tag_list/normal/style.css @@ -0,0 +1,53 @@ +.tag_list_normal { +} + +.tag_list_normal .tag_list_box { + margin-bottom:5px; +} + +.tag_list_normal .tag_list_box .title_box { + padding:5px; + height:14px; + overflow:hidden; + color:#888888; +} + +.tag_list_normal .tag_list_box .title_box .title { + font-weight:bold; + height:14px; + float:left; +} + +.tag_list_normal .tag_list_box .tag_box { + padding:5px; + clear:both; + border:3px solid #EEEEEE; + overflow:hidden; +} + +.tag_list_normal .tag_list_box .tag { + float:left; + margin-right:5px; + color:#AAAAAA; +} + +.tag_list_normal .tag_list_box .tag A { + text-decoration:none; + color:#555555; +} + +.tag_list_normal .tag_list_box .tag A:hover { + text-decoration:underline; + color:#000000; +} + +.tag_list_normal .tag_list_box .tag A:visited { + color:#AAAAAA; +} + +.tag_list_normal .tag_list_box .tag .tag A { + font-size:7pt; + font-family:tahoma; + color:#AAAAAA; + letter-spacing:-1px; +} diff --git a/plugins/archive_list/skins/blog_tag_list/skin.xml b/plugins/archive_list/skins/blog_tag_list/skin.xml new file mode 100644 index 000000000..e3e4719d4 --- /dev/null +++ b/plugins/archive_list/skins/blog_tag_list/skin.xml @@ -0,0 +1,13 @@ + + + 태그 목록 출력 + + 제로 + 태그 목록을 출력합니다. + + + + 기본 컬러 + + + diff --git a/plugins/archive_list/tag_list.class.php b/plugins/archive_list/tag_list.class.php new file mode 100644 index 000000000..01328ca44 --- /dev/null +++ b/plugins/archive_list/tag_list.class.php @@ -0,0 +1,54 @@ +title; + $list_count = (int)$args->list_count; + if(!$list_count) $list_count = 20; + $mid_list = explode(",",$args->mid_list); + + // TagModel::getTagList()를 이용하기 위한 변수 정리 + $obj->mid = $mid_list; + $obj->list_count = $list_count; + + // tag 모듈의 model 객체를 받아서 getTagList() method를 실행 + $oTagModel = &getModel('tag'); + $output = $oTagModel->getTagList($obj); + + // 템플릿 파일에서 사용할 변수들을 세팅 + if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0]; + + $plugin_info->title = $title; + $plugin_info->tag_list = $output->data; + + preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches); + $plugin_info->width = trim($matches[3][0]); + Context::set('plugin_info', $plugin_info); + + // 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정) + $tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin); + Context::set('colorset', $args->colorset); + + // 템플릿 파일을 지정 + $tpl_file = 'list'; + + // 템플릿 컴파일 + $oTemplate = &TemplateHandler::getInstance(); + return $oTemplate->compile($tpl_path, $tpl_file); + } + } +?>