|
153 | 153 | }
|
154 | 154 | if(Acl::check('group.editors')) {
|
155 | 155 | $blogContentMenuItem['entry'] = array(
|
156 |
| - array('menu'=>'post','title'=>_t('글쓰기'),'link'=>'/owner/entry/post'), |
157 | 156 | 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'), |
158 | 161 | array('menu'=>'category','title'=>_t('분류 관리'),'link'=>'/owner/entry/category'),
|
159 | 162 | array('menu'=>'tag','title'=>_t('태그 관리'),'link'=>'/owner/entry/tag')
|
160 | 163 | );
|
161 | 164 | } else {
|
162 | 165 | $blogContentMenuItem['entry'] = array(
|
| 166 | + array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry'), |
163 | 167 | 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') |
165 | 171 | );
|
166 | 172 | }
|
167 | 173 | if(Acl::check('group.administrators')) {
|
|
381 | 387 | <?php
|
382 | 388 | }
|
383 | 389 | }
|
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'))) { |
385 | 391 | ?>
|
386 | 392 | <script type="text/javascript" src="<?php echo $service['path'];?>/resources/script/editor3.js"></script>
|
387 | 393 | <?php
|
|
455 | 461 | <ul id="submenu-<?php echo $menuItem['menu'];?>" class="sub-menu">
|
456 | 462 | <?php
|
457 | 463 | $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']; |
459 | 468 | 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; |
461 | 485 | if(isset($_POST['status'])) {
|
462 | 486 | if(($blogMenu['contentMenu'] == 'comment') && ($_POST['status'] == 'guestbook'))
|
463 | 487 | $blogMenu['contentMenu'] = 'guestbook';
|
|
470 | 494 | else if(in_array($blogMenu['contentMenu'],array('coverpage','sidebar')))
|
471 | 495 | $blogMenu['contentMenu'] = 'widget';
|
472 | 496 |
|
473 |
| - foreach($blogContentMenuItem[$menuItem['menu']] as $contentMenuItem) { |
| 497 | + foreach($blogContentMenuItem[$menuItem['menu']] as &$contentMenuItem) { |
474 | 498 | $PostIdStr = null;
|
475 | 499 | if(strstr($contentMenuItem['menu'], 'adminMenu?name=') !== false) {
|
476 | 500 | $pluginMenuValue = explode('/',substr($contentMenuItem['menu'], 15));
|
|
0 commit comments