Home > PC > ScuttleをmicroformatでAutopagerize

ScuttleをmicroformatでAutopagerize

autopagerizeのVer上がるたびに自分のsiteinfo_inport_urlを書き加えるのもめんどいし
scuttelのtemplateを少し弄ってmicroformatでAutopagerizeってみた

軽く変更

編集するファイル

path/to/scuttle/templates/bookmarks.tpl.php

追加するtag

pageElement

class="autopagerize_page_element"

insertBefore

class="autopagerize_insert_before"

nextLink

"a"tagにrel="next"を追加

tagを追加する場所

流れ

path/to/scuttle/templates/bookmarks.tpl.phpを開く

自分はlinuxに設置してるので

vi path/to/scuttle/templates/bookmarks.tpl.php

28行目

<ol<?php echo ($start > 0 ? ' start="'. ++$start .'"' : ''); ?> id="bookmarks"

の最後にclass="autopagerize_page_element"を追加

<ol<?php echo ($start > 0 ? ' start="'. ++$start .'"' : ''); ?> id="bookmarks" class="autopagerize_page_element">

151行目

$bnext = '<a href="'. sprintf($nav_url, $user, $currenttag, '?page=') . $next . $sortAmp .'">'

の最後にrel="next"を追加

$bnext = '<a href="'. sprintf($nav_url, $user, $currenttag, '?page=') . $next . $sortAmp .'" rel="next">'

154行目

echo '<p class="paging">'
autopagerize_insert_beforeを追加
echo '<p class="paging autopagerize_insert_before">'

ついでにlinkをtarget="_blank"に

107行目のecho文に追加

echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink" target="_blank">'

以上。

siteinfo_inport_urlと違ってLan内ですむのでむちゃ速い。
このBlogげーRの独り言のスキンも対応させてみた。

よく考えたらなんでclass名増やすだけなのにdivふやしてるんだ。。
いや必要な場合もあるな。。w

  • Posted : 2007-09-06 (Thu)
  • ブログパーツ
Comment Form
Web Services by Yahoo! JAPAN
Trackback:0
TrackBack URL for this entry
http://www.sowhats.net/trackback/item_986.html
Listed below are links to weblogs that reference
ScuttleをmicroformatでAutopagerize from Not renewal
トラックバック

このエントリにトラックバックはありません

このトラックバックURLを使ってこの記事にトラックバックを送ることができます。
もしあなたのブログがトラックバック送信に対応していない場合にはこちらのフォームからトラックバックを送信することができます。

Home > PC > ScuttleをmicroformatでAutopagerize

Page Top