Changeset 5243

Show
Ignore:
Timestamp:
02/13/08 00:43:14 (9 months ago)
Author:
inureyes
Message:

#236, #822

  • 스킨 - 출력설정에 microformat 설정 패널 추가. (끌 수 있게 함)
Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/skin/setting/index.php

    r5138 r5243  
    7171                                    else  
    7272                                        useRelTag = 0; 
     73                                     
     74                                    if(document.getElementById('useXFN').checked) 
     75                                        useXFN = 1; 
     76                                    else  
     77                                        useXFN = 0; 
     78                                     
     79                                    if(document.getElementById('useFOAF').checked) 
     80                                        useFOAF = 1; 
     81                                    else  
     82                                        useFOAF = 0; 
    7383                                     
    7484                                    var tagboxAlign = 1; 
     
    104114                                    param += 'linkLength='+getValueById('linkLength') +'&'; 
    105115                                    param += 'useRelTag='+ useRelTag +'&'; 
     116                                    param += 'useXFN='+ useRelTag +'&'; 
     117                                    param += 'useFOAF='+ useRelTag +'&'; 
    106118                                    var request = new HTTPRequest("POST", '<?php echo $blogURL;?>/owner/skin/setting/skin/'); 
    107119                                    request.onSuccess = function() { 
     
    600612                                            <dd><?php echo _f('태그상자의 태그를 %1개 표시합니다.', $arg);?></dd> 
    601613                                        </dl> 
    602                                         <dl id="tag-rel-line" class="line"> 
    603                                             <dt><span class="label"><?php echo _t('태그 연관성 명시');?></span></dt> 
    604                                             <dd> 
    605                                                 <input type="checkbox" id="useRelTag" class="checkbox" name="useRelTag"<?php echo getBlogSetting('useRelTag',1) ? ' checked="checked"' : '';?> /><label for="useRelTag"><?php echo _t('검색엔진이 태그를 따로 인식할 수 있도록 글의 태그에 rel=tag 를 표시합니다. 태그 상자에는 적용되지 않습니다.');?></label> 
    606                                             </dd> 
    607                                         </dl> 
    608614                                    </fieldset> 
    609615                                     
     
    636642                                        </dl> 
    637643                                    </fieldset> 
    638                                  
     644                                    <fieldset id="microformat-setting-container" class="container"> 
     645                                        <legend><?php echo _t('Microformat 지원');?></legend> 
     646                                        <dl id="tag-rel-line" class="line"> 
     647                                            <dt><span class="label"><?php echo _t('태그 연관성 명시');?></span></dt> 
     648                                            <dd> 
     649                                                <input type="checkbox" id="useRelTag" class="checkbox" name="useRelTag"<?php echo getBlogSetting('useRelTag',1) ? ' checked="checked"' : '';?> /><label for="useRelTag"><?php echo _t('검색엔진이 태그를 따로 인식할 수 있도록 글의 태그에 rel=tag 를 표시합니다. 태그 상자에는 적용되지 않습니다.');?></label> 
     650                                            </dd> 
     651                                        </dl> 
     652                                        <dl id="microformat-xfn-line" class="line"> 
     653                                            <dt><span class="label"><?php echo _t('XFN 지원');?></span></dt> 
     654                                            <dd> 
     655                                                <input type="checkbox" id="useXFN" class="checkbox" name="useXFN"<?php echo getBlogSetting('useXFN',1) ? ' checked="checked"' : '';?> /><label for="useXFN"><?php echo _t('검색엔진이 링크 관계를 인식할 수 있도록 링크에 XFN 마이크로포맷을 추가합니다.');?></label> 
     656                                            </dd> 
     657                                        </dl> 
     658                                        <dl id="microformat-foaf-line" class="line"> 
     659                                            <dt><span class="label"><?php echo _t('FOAF 지원');?></span></dt> 
     660                                            <dd> 
     661                                                <input type="checkbox" id="useFOAF" class="checkbox" name="useFOAF"<?php echo getBlogSetting('useFOAF',1) ? ' checked="checked"' : '';?> /><label for="useFOAF"><?php echo _t('검색엔진이 링크 관계를 인식할 수 있도록 링크에 FOAF를 추가합니다.');?></label> 
     662                                            </dd> 
     663                                        </dl> 
     664                                    </fieldset> 
    639665                                    <div class="button-box"> 
    640666                                        <input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" onclick="setSkin(); return false;" /> 
  • trunk/interface/owner/skin/setting/skin/index.php

    r5138 r5243  
    2626        'recentTrackbackLength' => array('int'), 
    2727        'linkLength' => array('int'), 
    28         'useRelTag' => array('int') 
     28        'useRelTag' => array('int'), 
     29        'useFOAF' => array('int'), 
     30        'useXFN' => array('int') 
    2931    ) 
    3032); 
  • trunk/lib/model/blog.skin.php

    r5138 r5243  
    289289    } 
    290290    setBlogSetting('useRelTag',(($setting['useRelTag'] == 1) ? 1: 0)); 
     291    setBlogSetting('useFOAF',(($setting['useFOAF'] == 1) ? 1: 0)); 
     292    setBlogSetting('useXFN',(($setting['useXFN'] == 1) ? 1: 0)); 
    291293    setBlogSetting('entriesOnPage',$setting['entriesOnPage']); 
    292294    setBlogSetting('entriesOnList',$setting['entriesOnList']); 
  • trunk/lib/piece/blog/entries.php

    r5240 r5243  
    2020            "href='$defaultURL/rss/comment/{$entry['id']}' />".CRLF; 
    2121    } 
    22     if( rtrim( $suri['url'], '/' ) == $pathURL ) { 
     22    if( getBlogSetting('useFOAF',1) && rtrim( $suri['url'], '/' ) == $pathURL ) { 
    2323        /* same code exists in cover.php */ 
    2424        $foafDiscovery = "<link rel=\"meta\" type=\"application/rdf+xml\" title=\"FOAF\" href=\"$defaultURL/foaf\" />\n"; 
     
    2828    dress('SKIN_head_end', $foafDiscovery.$entryRsses."[##_SKIN_head_end_##]", $view); 
    2929    dress('foaf_url', "$defaultURL/foaf", $view); 
     30     
    3031    foreach ($entries as $entry) { 
    3132        if ($suri['directive'] == '/notice') 
  • trunk/lib/view/view.php

    r5214 r5243  
    975975        $view = "$template"; 
    976976        dress('link_url', htmlspecialchars($link['url']), $view); 
    977         if( $home && $link['xfn'] ) { 
     977        if( getBlogSetting('useXFN',1) && $home && $link['xfn'] ) { 
    978978            addXfnAttrs( htmlspecialchars($link['url']), htmlspecialchars($link['xfn']), $view ); 
    979979        } 
  • trunk/style/admin/default/skin.css

    r5138 r5243  
    240240/* Setting ***************************************************************************************/ 
    241241 
     242#part-skin-setting  
     243{ 
     244    height                           : 650px; 
     245} 
     246 
    242247#part-skin-setting .caption 
    243248{ 
     
    274279#part-skin-setting .section .button-box 
    275280{ 
    276     clear                            : both; 
     281    position                         : absolute; 
     282    top                              : 600px; 
     283    left                             : 455px; 
    277284    padding-bottom                   : 30px; 
    278285} 
     
    294301#per-page-container 
    295302{ 
    296     float                            : right; 
     303    position                         : absolute; 
     304    top                              : 60px; 
     305    left                             : 500px; 
    297306} 
    298307 
     
    300309{ 
    301310    display                          : block; 
    302     float                            : left; 
     311    position                         : absolute; 
     312    top                              : 60px; 
     313    left                             : 20px; 
    303314} 
    304315 
     
    310321#length-container 
    311322{ 
    312     float                            : right; 
    313     margin-left                      : 22px; 
     323    position                         : absolute; 
     324    top                              : 260px; 
     325    left                             : 500px; 
    314326} 
    315327 
    316328#tag-setting-container 
    317329{ 
    318     float                            : right; 
     330    position                         : absolute; 
     331    top                              : 475px; 
     332    left                             : 500px; 
    319333} 
    320334 
    321335#guestbook-setting-container 
    322336{ 
    323     float                            : left; 
    324 } 
    325      
     337    position                         : absolute; 
     338    top                              : 430px; 
     339    left                             : 500px; 
     340} 
     341 
     342#microformat-setting-container 
     343{ 
     344    position                         : absolute; 
     345    top                              : 460px; 
     346    left                             : 20px; 
     347} 
     348 
    326349/* Tree -----------------------------------------------------------------------------------------*/ 
    327350