Changeset 5243
- Timestamp:
- 02/13/08 00:43:14 (9 months ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
interface/owner/skin/setting/index.php (modified) (4 diffs)
-
interface/owner/skin/setting/skin/index.php (modified) (1 diff)
-
lib/model/blog.skin.php (modified) (1 diff)
-
lib/piece/blog/entries.php (modified) (2 diffs)
-
lib/view/view.php (modified) (1 diff)
-
style/admin/default/skin.css (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/skin/setting/index.php
r5138 r5243 71 71 else 72 72 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; 73 83 74 84 var tagboxAlign = 1; … … 104 114 param += 'linkLength='+getValueById('linkLength') +'&'; 105 115 param += 'useRelTag='+ useRelTag +'&'; 116 param += 'useXFN='+ useRelTag +'&'; 117 param += 'useFOAF='+ useRelTag +'&'; 106 118 var request = new HTTPRequest("POST", '<?php echo $blogURL;?>/owner/skin/setting/skin/'); 107 119 request.onSuccess = function() { … … 600 612 <dd><?php echo _f('태그상자의 태그를 %1개 표시합니다.', $arg);?></dd> 601 613 </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>608 614 </fieldset> 609 615 … … 636 642 </dl> 637 643 </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> 639 665 <div class="button-box"> 640 666 <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 26 26 'recentTrackbackLength' => array('int'), 27 27 'linkLength' => array('int'), 28 'useRelTag' => array('int') 28 'useRelTag' => array('int'), 29 'useFOAF' => array('int'), 30 'useXFN' => array('int') 29 31 ) 30 32 ); -
trunk/lib/model/blog.skin.php
r5138 r5243 289 289 } 290 290 setBlogSetting('useRelTag',(($setting['useRelTag'] == 1) ? 1: 0)); 291 setBlogSetting('useFOAF',(($setting['useFOAF'] == 1) ? 1: 0)); 292 setBlogSetting('useXFN',(($setting['useXFN'] == 1) ? 1: 0)); 291 293 setBlogSetting('entriesOnPage',$setting['entriesOnPage']); 292 294 setBlogSetting('entriesOnList',$setting['entriesOnList']); -
trunk/lib/piece/blog/entries.php
r5240 r5243 20 20 "href='$defaultURL/rss/comment/{$entry['id']}' />".CRLF; 21 21 } 22 if( rtrim( $suri['url'], '/' ) == $pathURL ) {22 if( getBlogSetting('useFOAF',1) && rtrim( $suri['url'], '/' ) == $pathURL ) { 23 23 /* same code exists in cover.php */ 24 24 $foafDiscovery = "<link rel=\"meta\" type=\"application/rdf+xml\" title=\"FOAF\" href=\"$defaultURL/foaf\" />\n"; … … 28 28 dress('SKIN_head_end', $foafDiscovery.$entryRsses."[##_SKIN_head_end_##]", $view); 29 29 dress('foaf_url', "$defaultURL/foaf", $view); 30 30 31 foreach ($entries as $entry) { 31 32 if ($suri['directive'] == '/notice') -
trunk/lib/view/view.php
r5214 r5243 975 975 $view = "$template"; 976 976 dress('link_url', htmlspecialchars($link['url']), $view); 977 if( $home && $link['xfn'] ) {977 if( getBlogSetting('useXFN',1) && $home && $link['xfn'] ) { 978 978 addXfnAttrs( htmlspecialchars($link['url']), htmlspecialchars($link['xfn']), $view ); 979 979 } -
trunk/style/admin/default/skin.css
r5138 r5243 240 240 /* Setting ***************************************************************************************/ 241 241 242 #part-skin-setting 243 { 244 height : 650px; 245 } 246 242 247 #part-skin-setting .caption 243 248 { … … 274 279 #part-skin-setting .section .button-box 275 280 { 276 clear : both; 281 position : absolute; 282 top : 600px; 283 left : 455px; 277 284 padding-bottom : 30px; 278 285 } … … 294 301 #per-page-container 295 302 { 296 float : right; 303 position : absolute; 304 top : 60px; 305 left : 500px; 297 306 } 298 307 … … 300 309 { 301 310 display : block; 302 float : left; 311 position : absolute; 312 top : 60px; 313 left : 20px; 303 314 } 304 315 … … 310 321 #length-container 311 322 { 312 float : right; 313 margin-left : 22px; 323 position : absolute; 324 top : 260px; 325 left : 500px; 314 326 } 315 327 316 328 #tag-setting-container 317 329 { 318 float : right; 330 position : absolute; 331 top : 475px; 332 left : 500px; 319 333 } 320 334 321 335 #guestbook-setting-container 322 336 { 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 326 349 /* Tree -----------------------------------------------------------------------------------------*/ 327 350
