Skip to content

Commit 770657c

Browse files
committed
refs #1288
* 글 추가 메뉴를 세분화함. * 처음 사용자들이 어려워하는 부분 수정합니다.
1 parent cee5c71 commit 770657c

File tree

3 files changed

+50
-15
lines changed

3 files changed

+50
-15
lines changed

interface/common/owner/header.php

+30-6
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,21 @@
153153
}
154154
if(Acl::check('group.editors')) {
155155
$blogContentMenuItem['entry'] = array(
156-
array('menu'=>'post','title'=>_t('글쓰기'),'link'=>'/owner/entry/post'),
157156
array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry'),
157+
array('menu'=>'post','title'=>_t('글 쓰기'),'link'=>'/owner/entry/post'),
158+
array('menu'=>'notice','title'=>_t('공지 쓰기'),'link'=>'/owner/entry/post?category=-2'),
159+
array('menu'=>'keylog','title'=>_t('키워드 만들기'),'link'=>'/owner/entry/post?category=-1'),
160+
array('menu'=>'template','title'=>_t('서식 만들기'),'link'=>'/owner/entry/post?category=-4'),
158161
array('menu'=>'category','title'=>_t('분류 관리'),'link'=>'/owner/entry/category'),
159162
array('menu'=>'tag','title'=>_t('태그 관리'),'link'=>'/owner/entry/tag')
160163
);
161164
} else {
162165
$blogContentMenuItem['entry'] = array(
166+
array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry'),
163167
array('menu'=>'post','title'=>_t('글쓰기'),'link'=>'/owner/entry/post'),
164-
array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry')
168+
array('menu'=>'post','title'=>_t('공지 쓰기'),'link'=>'/owner/entry/post?category=-2'),
169+
array('menu'=>'post','title'=>_t('키워드 만들기'),'link'=>'/owner/entry/post?category=-1'),
170+
array('menu'=>'post','title'=>_t('서식 만들기'),'link'=>'/owner/entry/post?category=-4')
165171
);
166172
}
167173
if(Acl::check('group.administrators')) {
@@ -381,7 +387,7 @@
381387
<?php
382388
}
383389
}
384-
if($blogMenu['topMenu']=='entry' && in_array($blogMenu['contentMenu'],array('post','edit'))) {
390+
if($blogMenu['topMenu']=='entry' && in_array($blogMenu['contentMenu'],array('post','edit','keylog','template','notice'))) {
385391
?>
386392
<script type="text/javascript" src="<?php echo $service['path'];?>/resources/script/editor3.js"></script>
387393
<?php
@@ -455,9 +461,27 @@
455461
<ul id="submenu-<?php echo $menuItem['menu'];?>" class="sub-menu">
456462
<?php
457463
$firstChildClass = ' firstChild';
458-
if (isset($_POST['category'])) $currentCategory = $_POST['category'];
464+
if(isset($_POST['category']) && isset($_GET['category'])) {
465+
$_POST['category'] == $_GET['category'];
466+
}
467+
/* if (isset($_POST['category'])) $currentCategory = $_POST['category'];
459468
else if (isset($_GET['category'])) $currentCategory = $_GET['category'];
460-
else $currentCategory = null;
469+
else $currentCategory = null;*/
470+
if($blogMenu['contentMenu'] == 'post' && isset($_GET['category'])) {
471+
switch($_GET['category']) {
472+
case -1:
473+
$blogMenu['contentMenu'] = 'keylog';
474+
break;
475+
case -2:
476+
$blogMenu['contentMenu'] = 'notice';
477+
break;
478+
case -4:
479+
$blogMenu['contentMenu'] = 'template';
480+
break;
481+
default:
482+
}
483+
}
484+
$currentCategory = null;
461485
if(isset($_POST['status'])) {
462486
if(($blogMenu['contentMenu'] == 'comment') && ($_POST['status'] == 'guestbook'))
463487
$blogMenu['contentMenu'] = 'guestbook';
@@ -470,7 +494,7 @@
470494
else if(in_array($blogMenu['contentMenu'],array('coverpage','sidebar')))
471495
$blogMenu['contentMenu'] = 'widget';
472496

473-
foreach($blogContentMenuItem[$menuItem['menu']] as $contentMenuItem) {
497+
foreach($blogContentMenuItem[$menuItem['menu']] as &$contentMenuItem) {
474498
$PostIdStr = null;
475499
if(strstr($contentMenuItem['menu'], 'adminMenu?name=') !== false) {
476500
$pluginMenuValue = explode('/',substr($contentMenuItem['menu'], 15));

interface/owner/entry/edit/index.php

+15-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,19 @@
6868
if (isset($_POST['returnURL']) && !empty($_POST['returnURL'])) {
6969
$_GET['returnURL'] = $_POST['returnURL'];
7070
}
71-
71+
switch($entry['category']) {
72+
case -1:
73+
$titleText = _t('키워드');
74+
break;
75+
case -2:
76+
$titleText = _t('공지');
77+
break;
78+
case -4:
79+
$titleText = _t('서식');
80+
break;
81+
default:
82+
$titleText = _t('');
83+
}
7284

7385
if (defined('__TEXTCUBE_POST__')) {
7486
printOwnerEditorScript();
@@ -583,11 +595,10 @@ function returnToList() {
583595
<div id="part-editor" class="part">
584596
<h2 class="caption"><span class="main-text"><?php
585597

586-
587598
if (defined('__TEXTCUBE_POST__')) {
588-
echo _t('글을 작성합니다');
599+
echo _f('%1 작성',$titleText);
589600
} else {
590-
echo _t('선택한 글을 수정합니다');
601+
echo _f('선택한 %1 수정',$titleText);
591602
}
592603
?></span></h2>
593604

interface/owner/entry/index.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -715,15 +715,15 @@ function closeWhatIsEolin() {
715715
<h2 class="caption"><span class="main-text">
716716
<?php
717717
if(isset($tabsClass['template']) && $tabsClass['template'] == true) {
718-
echo _t('등록된 서식 목록입니다');
718+
echo _t('서식 목록입니다');
719719
} else if ($categoryId == -1) {
720-
echo _f('등록된 %1 키워드 목록입니다', $visibilityText);
720+
echo _f('%1 키워드 목록입니다', $visibilityText);
721721
} else if ($categoryId == -2) {
722-
echo _f('등록된 %1 공지 목록입니다', $visibilityText);
722+
echo _f('%1 공지 목록입니다', $visibilityText);
723723
} else if ($categoryId == -5) {
724724
echo _f('공지와 키로그를 포함한 %1 글의 목록입니다', $visibilityText);
725725
} else {
726-
echo _f('등록된 %1 글 목록입니다', $visibilityText);
726+
echo _f('%1 글 목록입니다', $visibilityText);
727727
}
728728
?>
729729
</span></h2>
@@ -733,7 +733,7 @@ function closeWhatIsEolin() {
733733
<input type="hidden" name="visibility" value="<?php echo $_POST['visibility'];?>" />
734734

735735
<ul id="entry-tabs-box" class="tabs-box">
736-
<li class="entry-post"><a href="<?php echo $blogURL;?>/owner/entry/post"><?php echo _t('새 글 쓰기');?></a></li>
736+
<li class="entry-post"><a href="<?php echo $blogURL;?>/owner/entry/post<?php echo (isset($_POST['category']) ? '?category='.$_POST['category'] : '')?>"><?php echo _t('새 글 쓰기');?></a></li>
737737
<li class="entry-all<?php echo isset($tabsClass['all']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a>
738738
<label for="category"><?php echo _t('종류');?></label>
739739
<select id="category" name="category" onchange="document.getElementById('category-form-top').page.value=1; document.getElementById('category-form-top').submit()">

0 commit comments

Comments
 (0)