啦啦啦~ (H) 這幾天花了點時間把Wordpress更新,順便也把佈景主題更新了,剔除了好幾個外掛也新增了新鮮貨,這個佈景主題我最甲意的就是畫面最下方的打開導覽選單,很趴 ㄎㄎ :D

順便貼依下我的加入書籤貼紙語法:

HTML:
  1. <?php if (is_single()) { ?>
  2.  
  3. <!-FunP 推推王->
  4. <a href="http://funp.com/push/submit/add.php?url=%3C%3Fphp%20the_permalink()%20%3F%3E&tags[]=%E7%A7%91%E6%8A%80&tags[]=%E9%81%8B%E5%8B%95&tags[]=%E5%A8%9B%E6%A8%82&tags[]=%E5%BD%B1%E7%89%87&via=tools" title="貼到funP">
  5. <img src="http://funp.com/tools/images/post_03.gif" title="訂閱到 FunP 推推王" alt="訂閱到 FunP 推推王" border="0"/></a>
  6.  
  7. <!-HEMiDEMi 黑米共享書籤->
  8. <a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.hemidemi.com/user_bookmark/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));">
  9. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/hemidemi.jpg" title="訂閱到 HEMiDEMi" alt="訂閱到 HEMiDEMi 黑米共享書籤" border="0" width="16" height="16"></a>
  10.  
  11. <!-Google Bookmarks->
  12. <a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&annotation='+encodeURIComponent(desc)));">
  13. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/google.jpg" title="訂閱到 Google 書籤" alt="訂閱到 Google 書籤" border="0" width="16" height="16"></a>
  14.  
  15. <!-奇摩分享書籤->
  16. <a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(window.location.href)+'&d='+encodeURIComponent(desc)+'&ei=UTF-8'));">
  17. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/yahoo.jpg" title="訂閱到 奇摩分享書籤" alt="訂閱到 奇摩分享書籤" border="0" width="16" height="16"></a>
  18.  
  19. <!-UDN 共享書籤->
  20. <a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://bookmark.udn.com/add?f_TITLE='+encodeURIComponent(document.title)+'&f_URL='+encodeURIComponent(location.href)+'&f_DIGEST='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));">
  21. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/udn.jpg" title="訂閱到 UDN 共享書籤" alt="訂閱到 UDN 共享書籤" border="0" width="16" height="16" /></a>
  22.  
  23. <!-MyShare 網路書籤->
  24. <a href="javascript:(function(){d=document;w=window;t='';if(d.selection){t=d.selection.createRange().text;}else{if(d.getSelection){t=d.getSelection();}else{if(w.getSelection){t=w.getSelection()}}}void(window.open('http://myshare.url.com.tw/index.php?func=newurl&url='+encodeURIComponent(location.href)+'&desc='+escape(document.title)+'&contents='+escape(t),'newwin'))})();">
  25. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/myshare.jpg" title="訂閱到 MyShare 網路書籤" alt="訂閱到 MyShare 網路書籤" border="0" width="16" height="16"></a>
  26.  
  27. <!-Windows Live Favorites->
  28. <a href="javascript:void window.open('https://favorites.live.com/quickadd.aspx?mkt=zh-tw&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
  29. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/windows.jpg" title="訂閱到 Windows Live Favorites" alt="訂閱到 Windows Live Favorites" border="0" width="16" height="16"></a>
  30.  
  31. <!-YouPush ?分享書籤->
  32. <a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.youpush.net/login.php?return=/submit.php?url='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(window.location.href)+'&n='+encodeURIComponent(desc)+'&ei=UTF-8'));">
  33. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/youpush.jpg" title="訂閱到 YouPush ?分享書籤" alt="訂閱到 YouPush ?分享書籤" class="bkimg" border="0" width="16" height="16"></a>
  34.  
  35. <!-百度搜藏->
  36. <a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://cang.baidu.com/do/add?iu='+encodeURIComponent(location.href)+'&it='+encodeURIComponent(document.title)+'&dc='+encodeURIComponent(desc)));">
  37. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/baidu.jpg" title="訂閱到 百度搜藏" alt="訂閱到 百度搜藏" border="0" width="16" height="16"></a>
  38.  
  39. <!-del.icio.us->
  40. <a href="javascript:void window.open('http://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
  41. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/delicious.jpg" title="訂閱到 del.icio.us" alt="訂閱到 del.icio.us" border="0" width="16" height="16"></a>
  42.  
  43. <!-digg->
  44. <a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(desc)));">
  45. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/digg.jpg" title="訂閱到 digg" alt="訂閱到 digg" border="0" width="16" height="16"></a>
  46.  
  47. <!-Technorati->
  48. <a href="javascript:void window.open('http://technorati.com/faves?add='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
  49. <img title="訂閱到 Technorati" alt="訂閱到 Technorati" src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/technorati.jpg" border="0" width="13" height="16"></a>
  50.  
  51. <!-Furl->
  52. <a href="javascript:(function(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');var%20furlit=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(d.title)+'&u='+escape(d.location.href)+'&r='+escape(d.referrer)+'&c='+encodeURIComponent(t)+'&p=1');})();">
  53. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/furl.jpg" title="訂閱到 Furl" alt="訂閱到 Furl" border="0" width="16" height="16"></a>
  54.  
  55. <!-AddThis->
  56. <a href="javascript:void window.open('http://www.addthis.com/bookmark.php?pub=addthis&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));">
  57. <img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/addthis.jpg" title="訂閱到其他更多書籤" alt="訂閱到其他更多書籤" border="0"></a>
  58.  
  59. <?php } ?>

PHP:
  1. <?php if (is_single()) { ?>

就是只有在單篇文章中會顯示,在瀏覽首頁、分類之類的時候就不會出現。 (Y) 其他還有:

PHP:
  1. is_home()
  2. is_archive()
  3. is_page()
  4. is_paged()
  5. is_single()
  6. is_search()
  7. is_tag()

完整介紹可以參考這Conditional Tags