Changeset 3291

Show
Ignore:
Timestamp:
05/17/07 02:36:32 (20 months ago)
Author:
graphittie
Message:

#16 : More Support for XHTML Spec.

  • entry list의 XHTML 구조가 많이 어긋나 있어 바로 잡음.
  • 이올린 팝업의 위치 이동 및 버튼 부분을 JavaScript화. 버튼부를 JavaScript화 한 것은 CSS를 벗겨낸 상황을 고려한 조치임.
  • 헤더 텍스트에 탭 정보를 포함하도록 변경. CSS를 벗겼을 경우 어느 탭이 선택된 것인지 알 수가 없음.
Location:
sandbox
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • sandbox/blog/owner/entry/index.php

    r3277 r3291  
    4949        $visibility = '>=1'; 
    5050        $tabsClass['public'] = true; 
     51        $visibilityText = _t('공개'); 
    5152    } else if($_POST['visibility']=='protected') { 
    5253        $visibility = '=1'; 
    5354        $tabsClass['protected'] = true; 
     55        $visibilityText = _t('보호'); 
    5456    } else if($_POST['visibility']=='private') { 
    5557        $visibility = '0'; 
    5658        $tabsClass['private'] = true; 
     59        $visibilityText = _t('비공개'); 
    5760    } 
    5861} else { 
    5962    $visibility = '>=1'; 
    6063    $tabsClass['all'] = true; 
     64    $visibilityText = _t('모든'); 
    6165} 
    6266 
     
    627631                                function execLoadFunction() { 
    628632                                    document.getElementById('allChecked').disabled = false; 
    629                                     removeItselfById('category-move-button'); 
     633                                     
     634                                    if (document.getElementById('eolinDialog').style.display == 'none') { 
     635                                        // eolin button 
     636                                        if (STD.isIE) { 
     637                                            var tempBUTTON = document.createElement('<button onclick="window.open(\'http://www.eolin.com\'); return false;">'); 
     638                                        } else { 
     639                                            var tempBUTTON = document.createElement('BUTTON'); 
     640                                            tempBUTTON.setAttribute('onclick', 'window.open(\'http://www.eolin.com\'); return false;'); 
     641                                        } 
     642                                     
     643                                        tempBUTTON.id = 'eolin-button'; 
     644                                        tempBUTTON.className = 'eolin-button input-button'; 
     645                                        tempBUTTON.setAttribute('title', '<?php echo _t('이올린으로 연결합니다.');?>'); 
     646                                        tempSPAN = document.createElement('SPAN'); 
     647                                        tempSPAN.className = 'text'; 
     648                                        tempSPAN.innerHTML = '<?php echo _t('이올린, 지금 만나보세요');?>'; 
     649                                        tempBUTTON.appendChild(tempSPAN); 
     650                                     
     651                                        document.getElementById('eolin-button-box').appendChild(tempBUTTON); 
     652                                         
     653                                        // close button 
     654                                        if (STD.isIE) { 
     655                                            var tempBUTTON = document.createElement('<button onclick="closeWhatIsEolin(); return false;">'); 
     656                                        } else { 
     657                                            var tempBUTTON = document.createElement('BUTTON'); 
     658                                            tempBUTTON.setAttribute('onclick', 'closeWhatIsEolin(); return false;'); 
     659                                        } 
     660                                     
     661                                        tempBUTTON.id = 'close-button'; 
     662                                        tempBUTTON.className = 'close-button input-button'; 
     663                                        tempBUTTON.setAttribute('title', '<?php echo _t('이 대화상자를 닫습니다.');?>'); 
     664                                        tempSPAN = document.createElement('SPAN'); 
     665                                        tempSPAN.className = 'text'; 
     666                                        tempSPAN.innerHTML = '<?php echo _t('닫기');?>'; 
     667                                        tempBUTTON.appendChild(tempSPAN); 
     668                                     
     669                                        document.getElementById('eolin-button-box').appendChild(tempBUTTON); 
     670                                    } 
    630671                                } 
    631672                                 
     
    643684                                 
    644685                                function viewWhatIsEolin() { 
    645                                     dialog = document.getElementById('eolinDialog'); 
    646                                     PM.showPanel(dialog); 
     686                                    if (document.getElementById('eolinDialog').style.display == 'none') { 
     687                                        dialog = document.getElementById('eolinDialog'); 
     688                                        PM.showPanel(dialog); 
     689                                 
     690                                        if (STD.isIE) { 
     691                                            document.getElementById('commandBox').style.visibility = 'hidden'; 
     692                                        } 
     693                                    } else { 
     694                                        window.open('http://www.eolin.com'); 
     695                                    } 
    647696                                } 
    648697                                 
    649698                                function closeWhatIsEolin() { 
    650699                                    document.getElementById('eolinDialog').style.display = 'none'; 
     700                                    if (STD.isIE) { 
     701                                        document.getElementById('commandBox').style.visibility = 'hidden'; 
     702                                    } 
    651703                                } 
    652704                            //]]> 
     
    654706                         
    655707                        <div id="part-post-list" class="part"> 
    656                             <h2 class="caption"><span class="main-text"><?php 
     708                            <h2 class="caption"><span class="main-text"> 
     709<?php 
     710     
    657711    if ($categoryId == -1) {  
    658         echo _t('등록된 키워드 목록입니다'); 
     712        echo _f('등록된 %1 키워드 목록입니다', $visibilityText); 
    659713    } else if ($categoryId == -2) { 
    660         echo _t('등록된 공지 목록입니다'); 
     714        echo _f('등록된 %1 공지 목록입니다', $visibilityText); 
    661715    } else if ($categoryId == -5) { 
    662         echo _t('공지와 키로그를 포함한 모든 글의 목록입니다'); 
     716        echo _f('공지와 키로그를 포함한 %1 글의 목록입니다', $visibilityText); 
    663717    } else { 
    664         echo _t('등록된 글 목록입니다'); 
     718        echo _f('등록된 %1 글 목록입니다', $visibilityText); 
    665719    } 
    666 ?></span></h2> 
     720?> 
     721                            </span></h2> 
    667722                             
    668723                            <ul id="entry-tabs-box"> 
     
    675730                                <div class="section"> 
    676731                                    <input type="hidden" name="page" value="<?php echo $suri['page'];?>" /> 
    677  
     732                                     
     733                                    <label for="category"><?php echo _t('종류');?></label> 
    678734                                    <select id="category" name="category" onchange="document.getElementById('category-form').page.value=1; document.getElementById('category-form').submit()"> 
    679735                                        <option value="-5"<?php echo ($categoryId == -5 ? ' selected="selected"' : '');?>><?php echo _t('모든 글');?></option> 
     
    703759                                        </optgroup> 
    704760                                    </select> 
    705                                     <input type="submit" id="category-move-button" class="move-button button" value="<?php echo _t('이동');?>" /> 
    706761                                </div> 
    707762                            </form> 
     
    829884                                     
    830885                                    <div id="change-section" class="section"> 
    831                                         <h2><?php echo _t('페이지 네비게이션');?></h2> 
    832                                          
    833886                                        <span class="label"><?php echo _t('선택한 글을');?></span> 
    834887                                        <select name="commandBox" id="commandBox" onchange="toggleDeleteButton(this)">  
     
    875928                                    </div> 
    876929                                     
    877                                     <div id="data-description"> 
     930                                    <hr class="hidden" /> 
     931                                     
     932                                    <div id="data-description" class="section"> 
     933                                        <h2><?php echo _t('기능 설명');?></h2> 
     934 
    878935                                        <dl class="eolin-description"> 
    879936                                            <dt><?php echo _t('발행');?></dt> 
    880                                             <dd><?php echo _t('<a href="#void" onclick="viewWhatIsEolin()">이올린</a>에 글을 공개합니다.');?></dd> 
     937                                            <dd><?php echo _f('%1에 글을 공개합니다.', '<a href="http://www.eolin.com" onclick="viewWhatIsEolin(); return false;">' . _t('이올린') . '</a>');?></dd> 
    881938                                        </dl> 
    882939                                        <dl class="trackback-description"> 
     
    888945                                            <dd><?php echo _t('보호글의 패스워드를 설정합니다.');?></dd> 
    889946                                        </dl> 
     947                                         
     948                                        <div id="eolinDialog" class="dialog" style="position: absolute; display: none; z-index: 100;"> 
     949                                            <div class="temp-box"> 
     950                                                <h3><?php echo _t('이올린이란?');?></h4> 
     951 
     952                                                <p class="message"> 
     953                                                    <?php echo _t('이올린은 텍스트큐브와 텍스트큐브 기반의 블로그에서 "발행"을 통해 보내진 글들을 다양한 방법으로 만날 수 있는 텍스트큐브 블로거들의 열린 공간입니다.');?> 
     954                                                </p> 
     955 
     956                                                <h3><?php echo _t('발행 방법');?></h4> 
     957 
     958                                                <p class="message"> 
     959                                                    <em><?php echo _t('텍스트큐브 글목록에서 발행버튼을 클릭하시거나 글쓰기시 공개범위를 "발행"으로 체크하시면 됩니다.');?></em> 
     960                                                    <?php echo _t('발행을 통해 이올린으로 보내진 게시물들의 저작권을 포함한 일체에 관한 권리는 별도의 의사표시가 없는 한 각 회원에게 있습니다. 이올린에서는 발행된 게시물을 블로거의 동의 없이 상업적으로 이용하지 않습니다. 다만 비영리적 목적인 경우는 이용이 가능하며, 또한 이올린 서비스 내의 게재권, 사용권을 갖습니다.');?> 
     961                                                </p> 
     962 
     963                                                <div id="eolin-button-box" class="button-box"></div> 
     964                                            </div> 
     965                                        </div> 
    890966                                    </div> 
    891967                                     
     968                                    <hr class="hidden" /> 
     969                                     
    892970                                    <div id="page-section" class="section"> 
     971                                        <h2><?php echo _t('페이지 네비게이션');?></h2> 
     972                                         
    893973                                        <div id="page-navigation"> 
    894974                                            <span id="page-list"> 
     
    9381018                            </form> 
    9391019                        </div> 
    940                          
    941                         <div id="eolinDialog" class="dialog" style="position: absolute; display: none; z-index: 100;"> 
    942                             <div class="temp-box"> 
    943                                 <h4><?php echo _t('이올린이란?');?></h4> 
    944                                  
    945                                 <p class="message"> 
    946                                     <?php echo _t('이올린은 텍스트큐브와 텍스트큐브 기반의 블로그에서 "발행"을 통해 보내진 글들을 다양한 방법으로 만날 수 있는 텍스트큐브 블로거들의 열린 공간입니다.');?> 
    947                                 </p> 
    948                                  
    949                                 <h4><?php echo _t('발행 방법');?></h4> 
    950                                  
    951                                 <p class="message"> 
    952                                     <em><?php echo _t('텍스트큐브 글목록에서 발행버튼을 클릭하시거나 글쓰기시 공개범위를 "발행"으로 체크하시면 됩니다.');?></em> 
    953                                     <?php echo _t('발행을 통해 이올린으로 보내진 게시물들의 저작권을 포함한 일체에 관한 권리는 별도의 의사표시가 없는 한 각 회원에게 있습니다. 이올린에서는 발행된 게시물을 블로거의 동의 없이 상업적으로 이용하지 않습니다. 다만 비영리적 목적인 경우는 이용이 가능하며, 또한 이올린 서비스 내의 게재권, 사용권을 갖습니다.');?> 
    954                                 </p> 
    955                              
    956                                 <div class="button-box"> 
    957                                     <button id="eolin-button" class="eolin-button input-button" onclick="window.open('http://www.eolin.com');" title="<?php echo _t('이올린으로 연결합니다.');?>"><span class="text"><?php echo _t('이올린, 지금 만나보세요');?></span></button> 
    958                                     <button id="close-button" class="close-button input-button" onclick="closeWhatIsEolin()" title="<?php echo _t('이 대화상자를 닫습니다.');?>"><span class="text"><?php echo _t('닫기');?></span></button> 
    959                                 </div> 
    960                             </div> 
    961                         </div> 
    9621020<?php 
    9631021require ROOT . '/lib/piece/owner/footer.php'; 
  • sandbox/style/admin/default/post.css

    r3260 r3291  
    137137    list-style-type: none; 
    138138    margin: 0 1px; 
     139} 
     140 
     141#entry-tabs-box li a 
     142{ 
    139143    padding: 0 1em; 
     144    text-decoration: none; 
    140145} 
    141146 
     
    144149    background-color: #FFFFFF; 
    145150    border-bottom: 1px solid #FFFFFF; 
     151} 
     152 
     153#entry-tabs-box li.selected a 
     154{ 
    146155    cursor: default; 
    147156} 
     
    649658    border                           : 1px solid #666666; 
    650659    padding                          : 58px 8px 15px 8px; 
    651     position                         : relative; 
     660    position                         : absolute; 
     661    top                              : -300px !important; 
    652662    width                            : 492px; 
    653663} 
     
    658668} 
    659669 
    660 #eolinDialog .temp-box h4 
     670#eolinDialog .temp-box h3 
    661671{ 
    662672    border-bottom                    : 1px solid #E6E6E6; 
    663673    color                            : #284A9F; 
     674    display                          : block; 
    664675    font-size                        : 1em; 
    665676    font-weight                      : bold;