Changeset 3586

Show
Ignore:
Timestamp:
07/01/07 05:27:55 (2 years ago)
Author:
graphittie
Message:

#61 : 플러그인 패널들의 UI 변경.

  • 센터 화면에 '독립패널 설정' 체크박스와 '플러그인 설정 바로가기' 추가.
  • 플러그인 설정의 센터 탭에 '센터로 바로가기' 추가.
  • 관련 CSS 보정 및 이미지 등록.
  • 센터 서브메뉴에서 '센터 플러그인 설정' 메뉴 삭제.
Location:
trunk
Files:
2 added
1 removed
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/blog/owner/center/dashboard/index.php

    r3509 r3586  
    123123<?php 
    124124} 
    125  
    126 if (!file_exists(ROOT . '/cache/CHECKUP')) { 
    127125?> 
    128126                        <script type="text/javascript"> 
    129127                            //<![CDATA[ 
     128                                function changeList() { 
     129                                    document.getElementById("tempForm").submit(); 
     130                                } 
     131<?php 
     132if (!file_exists(ROOT . '/cache/CHECKUP')) { 
     133?> 
     134                                 
    130135                                window.addEventListener("load", checkTextcubeVersion, false); 
    131136                                function checkTextcubeVersion() { 
     
    133138                                        window.location.href = "<?php echo $blogURL;?>/checkup"; 
    134139                                } 
    135                             //]]> 
    136                         </script> 
    137140<?php 
    138141} else if (file_get_contents(ROOT . '/cache/CHECKUP') != TEXTCUBE_VERSION) { 
    139142?> 
    140                         <script type="text/javascript"> 
    141                             //<![CDATA[ 
     143                                 
    142144                                window.addEventListener("load", checkTextcubeVersion, false); 
    143145                                function checkTextcubeVersion() { 
     
    145147                                        window.location.href = "<?php echo $blogURL;?>/checkup"; 
    146148                                } 
     149<?php 
     150} 
     151?> 
    147152                            //]]> 
    148153                        </script> 
    149154<?php 
    150 } 
    151  
    152155if (false) { 
    153156    fetchConfigVal(); 
    154157} 
    155158?>   
    156                         <form method="post" action="<?php echo $blogURL;?>/owner/center/dashboard"> 
    157 <?php 
    158 $textcubeDashboard = getBlogSetting("textcubeDashboard"); 
    159 if (is_null($textcubeDashboard)) { 
    160     setBlogSetting("textcubeDashboard", 1); 
    161     $textcubeDashboard = 1; 
    162 } 
     159                        <form id="tempForm" method="post" action="<?php echo $blogURL;?>/owner/center/dashboard"> 
     160<?php 
     161if (($_SERVER['REQUEST_METHOD'] == 'POST') && (empty($_POST['useTTdashboard']))) { 
     162    $textcubeDashboard = getBlogSetting("textcubeDashboard"); 
     163    if (is_null($textcubeDashboard)) { 
     164        setBlogSetting("textcubeDashboard", 1); 
     165        $textcubeDashboard = 1; 
     166    } else { 
     167        setBlogSetting("textcubeDashboard", 0); 
     168        $textcubeDashboard = 0; 
     169    } 
     170} else if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
     171        setBlogSetting("textcubeDashboard", 1); 
     172        $textcubeDashboard = 1; 
     173} else { 
     174    $textcubeDashboard = getBlogSetting("textcubeDashboard"); 
     175} 
     176 
     177//$textcubeDashboard = getBlogSetting("textcubeDashboard"); 
     178//if (is_null($textcubeDashboard)) { 
     179//  setBlogSetting("textcubeDashboard", 1); 
     180//  $textcubeDashboard = 1; 
     181//} 
    163182 
    164183if($textcubeDashboard) { 
     
    409428                            <div id="part-center-quilt<?php echo $editClass;?>" class="part"> 
    410429                                <h2 class="caption"><span class="main-text"><?php echo _t('조각보를 봅니다');?></span></h2> 
    411                                      
     430                                 
     431<?php 
     432if (!isset($_REQUEST['edit'])) { 
     433?> 
     434                                <dl id="independent-notice-line" class="line"> 
     435                                    <dt><?php echo _t('독립패널 설정');?></dt> 
     436                                    <dd> 
     437                                        <input type="checkbox" class="checkbox" id="useTTdashboard" name="useTTdashboard" value="on" onclick="changeList()"<?php echo $textcubeDashboard == 1 ? " checked" : NULL;?> /> 
     438                                        <label for="useTTdashboard"><?php echo _t('독립 패널을 표시합니다');?></label> 
     439                                    </dd> 
     440                                </dl> 
     441<?php 
     442} 
     443?> 
     444                                <dl id="direct-link-line" class="line"> 
     445                                    <dt><?php echo _t('플러그인 설정');?></dt> 
     446                                    <dd> 
     447                                        <a class="button" href="<?php echo $blogURL;?>/owner/plugin?visibility=center"><?php echo _t('플러그인 설정 페이지로 바로가기');?></a> 
     448                                    </dd> 
     449                                </dl> 
    412450<?php 
    413451$boardbarNumber = 0; 
  • trunk/blog/owner/plugin/index.php

    r3526 r3586  
    364364                                    </dd> 
    365365                                </dl> 
     366                                 
     367<?php 
     368if (defined('__TAB_CENTER__') || defined('__TAB_METAPAGE__')) { 
     369    $text = defined('__TAB_CENTER__') ? _t('센터로 바로 가기') : _t('메타 페이지로 바로가기'); 
     370    $link = defined('__TAB_CENTER__') ? $blogURL . '/owner/center/dashboard' : $blogURL . '/owner/center/metapage'; 
     371?> 
     372                                <dl id="direct-link-line" class="line"> 
     373                                    <dt><?php echo _t('메인 화면으로 이동');?></dt> 
     374                                    <dd> 
     375                                        <a class="button" href="<?php echo $link;?>"><?php echo $text;?></a> 
     376                                    </dd> 
     377                                </dl> 
     378<?php 
     379} 
     380?> 
    366381                            </fieldset> 
    367382                             
  • trunk/lib/piece/owner/contentMenu.php

    r3500 r3586  
    66                $blogContentMenuItem = array( 
    77                    array('menu'=>'dashboard','title'=>_t('조각보'),'link'=>'/owner/center/dashboard'), 
    8                     array('menu'=>'setting','title'=>_t('자투리'),'link'=>'/owner/center/setting'), 
    98                    array('menu'=>'metapage','title'=>_t('색동'),'link'=>'/owner/center/metapage'), 
    109                    array('menu'=>'metaSetting','title'=>_t('두루마기'),'link'=>'/owner/center/metaSetting'), 
  • trunk/style/admin/default/center.css

    r3219 r3586  
    521521} 
    522522 
     523#independent-notice-line 
     524{ 
     525    margin: -37px 10px 0 0; 
     526} 
     527 
     528#independent-notice-line dt, #direct-link-line dt 
     529{ 
     530    display: none; 
     531} 
     532 
     533#direct-link-line 
     534{ 
     535    margin: 20px 10px; 
     536    text-align: right;   
     537} 
     538 
     539#direct-link-line dd 
     540{ 
     541    border                           : 3px solid #EFEFEF; 
     542    display: inline; 
     543    padding: 10px; 
     544    text-align: right; 
     545} 
     546 
     547#direct-link-line dd .button 
     548{ 
     549    background-image                 : url('./image/img_link_bullet.jpg'); 
     550    background-position              : right center; 
     551    background-repeat                : no-repeat; 
     552    padding-right                    : 15px; 
     553} 
     554 
    523555/* Setting ***************************************************************************************/ 
    524556 
  • trunk/style/admin/default/plugin.css

    r3525 r3586  
    9999    position                         : absolute !important; 
    100100    top                              : 6.5em; 
     101} 
     102 
     103#direct-link-line dt 
     104{ 
     105    display: none; 
     106} 
     107 
     108#direct-link-line dd 
     109{ 
     110    border-width: 3px !important; 
     111} 
     112 
     113#direct-link-line dd .button 
     114{ 
     115    background-image                 : url('./image/img_link_bullet2.jpg'); 
     116    background-position              : left center; 
     117    background-repeat                : no-repeat; 
     118    padding-left                     : 15px; 
    101119} 
    102120