首頁 / WordPress / 部落格改頭換面!
Logo

部落格改頭換面!

啦啦啦~ 😎 這幾天花了點時間把Wordpress更新,順便也把佈景主題更新了,剔除了好幾個外掛也新增了新鮮貨,這個佈景主題我最甲意的就是畫面最下方的打開導覽選單,很趴 ㄎㄎ 🤣
順便貼依下我的加入書籤貼紙語法:

<?php if (is_single()) { ?>
<!-FunP 推推王->
<a href="http://funp.com/push/submit/add.php?url=%3C%3Fphp%20the_permalink()%20%3F%3E&tags&#91;&#93;=%E7%A7%91%E6%8A%80&tags&#91;&#93;=%E9%81%8B%E5%8B%95&tags&#91;&#93;=%E5%A8%9B%E6%A8%82&tags&#91;&#93;=%E5%BD%B1%E7%89%87&via=tools" title="貼到funP">
<img src="http://funp.com/tools/images/post_03.gif" title="訂閱到 FunP 推推王" alt="訂閱到 FunP 推推王" border="0"/></a>
<!-HEMiDEMi 黑米共享書籤->
<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)));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/hemidemi.jpg" title="訂閱到 HEMiDEMi" alt="訂閱到 HEMiDEMi 黑米共享書籤" border="0" width="16" height="16"></a>
<!-Google Bookmarks->
<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)));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/google.jpg" title="訂閱到 Google 書籤" alt="訂閱到 Google 書籤" border="0" width="16" height="16"></a>
<!-奇摩分享書籤->
<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'));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/yahoo.jpg" title="訂閱到 奇摩分享書籤" alt="訂閱到 奇摩分享書籤" border="0" width="16" height="16"></a>
<!-UDN 共享書籤->
<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)));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/udn.jpg" title="訂閱到 UDN 共享書籤" alt="訂閱到 UDN 共享書籤" border="0" width="16" height="16" /></a>
<!-MyShare 網路書籤->
<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'))})();">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/myshare.jpg" title="訂閱到 MyShare 網路書籤" alt="訂閱到 MyShare 網路書籤" border="0" width="16" height="16"></a>
<!-Windows Live Favorites->
<a href="javascript:void window.open('https://favorites.live.com/quickadd.aspx?mkt=zh-tw&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
<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>
<!-YouPush ?分享書籤->
<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'));">
<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>
<!-百度搜藏->
<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)));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/baidu.jpg" title="訂閱到 百度搜藏" alt="訂閱到 百度搜藏" border="0" width="16" height="16"></a>
<!-del.icio.us->
<a href="javascript:void window.open('http://del.icio.us/post?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
<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>
<!-digg->
<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)));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/digg.jpg" title="訂閱到 digg" alt="訂閱到 digg" border="0" width="16" height="16"></a>
<!-Technorati->
<a href="javascript:void window.open('http://technorati.com/faves?add='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))">
<img title="訂閱到 Technorati" alt="訂閱到 Technorati" src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/technorati.jpg" border="0" width="13" height="16"></a>
<!-Furl->
<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');})();">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/furl.jpg" title="訂閱到 Furl" alt="訂閱到 Furl" border="0" width="16" height="16"></a>
<!-AddThis->
<a href="javascript:void window.open('http://www.addthis.com/bookmark.php?pub=addthis&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));">
<img src="http://i164.photobucket.com/albums/u27/Twilightning/bookmarks/addthis.jpg" title="訂閱到其他更多書籤" alt="訂閱到其他更多書籤" border="0"></a>
<?php } ?>
<?php if (is_single()) { ?>

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

is_home()
is_archive()
is_page()
is_paged()
is_single()
is_search()
is_tag()

完整介紹可以參考這Conditional Tags

Comments

comments

關於 窮苦人家的小孩

In every democracy, the people get the government they deserve. ~Alexis de Tocqueville
上一篇:
下一篇:

您可能會喜歡

Logo

同分類的隨機文章程式碼

改佈景老是找不到這段程式碼,順 …

2 回應

  1. 看了頭真暈…
    都看不懂,我還是乖乖的當我的死胖子
    改天去找你~~

發佈留言