[WordPress] 外掛分享: Around this date in the past… – Widget Edition

首頁外掛目錄 › Around this date in the past… – Widget Edition
30+
安裝啟用
尚無評分
5648 天前
最後更新
問題解決
WordPress 2.0+ v0.8 上架:2007-03-15

內容簡介

[ 網站上的西班牙文註記 ] [ 網站上的加泰羅尼亞文註記 ]

該外掛可顯示過去的日期(如果存在)。可以高度自定義。默認情況下,它會檢索一周前在一年前的留言/文章。

使用方法

您可以從小工具面板中設置參數

配置參數
$before = 連結之前顯示的代碼。默認為 'This week last year…: '
$after = 連結之後顯示的代碼。默認為 ''
$daysbefore = 在一年前的幾天內顯示的帖子。默認為 '3'(三天前)
$daysafter = 在一年前的幾天內顯示的帖子。默認為 '3'(三天後)
$mode = 選擇您希望小工具運作的模式。默認為“1”(X年前)
模式1:從X年前的這個日期得到帖子。
模式2:為過去X年的日期得到帖子。
模式3:從X年開始得到帖子。
$yearsago = 顯示“X”年前的帖子。默認為 '1'(1年)。僅當選擇模式1時。
$lastxyears = 顯示過去“X”年的帖子。默認為 '1'(1年)。僅當選擇模式2時。
$sinceyear = 自“X”年起顯示帖子。默認為 '2005'(從2005年開始)。僅當選擇模式3時。
$limit = 要檢索的帖子數。默認為“4”。
$none = 當沒有發布帖子時顯示的文本。默認為 'none'。
$showdate = 在連結旁顯示日期。默認為未勾選。
$dateformat = 顯示在連結旁的日期格式(如果已勾選)。請參閱 http://www.php.net/date
$showexcerpt = 在連結旁顯示摘要。默認為未勾選。自定義顯示

除了從小工具控制面板中提供的選項外,還可以通過使用CSS高度自定義輸出的外觀。這些是可用的類:
ul.atd-list {} // 基本列表容器。
li.atd-year {} // 每年的標題。
atd-yXXXX {} // 基於年的類,例如 atd-y2006、atd-y2005 …
ul.atd-yearlylist {} // 每年周圍帖子的列表容器。
li.atd-entry {} // 包含每個周圍此日期帖子的列表項。
atd-yXXXX {} // 基於年的類,例如 atd-y2006、atd-y2005 …
atd-mXX {} // 基於月份的類,例如 atd-m01、atd-m02 … atd-m12。
atd-dXX {} // 基於每日的類,例如 adt-d01、atd-d02 … atd-d31。
atd-XXXXXXXX {} // 基於日期的類,例如 atd-20061205、atd-20050304 …
li.atd-noentries {} // 没有帖子時的列表項。
a.atd-entry-title {} // 文章連結。
.atd-entry-date {} // 如果啟用了 $showdate,則包含日期的 span。
.atd-entry-excerpt {} // 如果啟用了 $showexcerpt,則包含摘錄的 span。

許可證
此外掛是免費軟件,您可以根據GPL許可條款重新分發或修改它(請不要刪除作者的信用)。
有關詳細信息,請參閱license.txt<h3>學分和謝意</h3>

此外掛基於以下外掛:
– Borja Fernandez 發布的“一年前”的外掛。 [ http://www.lamateporunyogur.net/wp-plugins/one-year-ago/ ] [ http://www.lamateporunyogur.net ]
– Chris Goringe 發布的“Wayback”的外掛。 [ http://code.goringe.net/WordPress/ ] [ http://tis.goringe.net ]
– Sven Weidauer 發布的 Wayback Widget。 [ http://dergraf.net/computer/wordpress/wayback-widget/ ] [ http://dergraf.net/ ]
– 我的 Around this date in the past 外掛。 [ http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-plugin/ ]

感謝Borja F

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Around this date in the past… – Widget Edition」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

[ Notas en castellano en la web ] [ Notes en català a la web ]
It shows around this date entries/posts in the past (if they exist). It is highly customizable. By default it retreives a week around the current day 1 year ago.
Usage
You can set the parameters from the widgets panel
Configuration parameters
$before = Code will show before links. Defaults to 'This week last year…: '
$after = Code will show after links. Defaults to ''
$daysbefore = Days' posts that will show before one year ago. By default '3' (3 days before)
$daysafter = Days' posts that will show after one year ago. By default '3' (3 days after)
$mode = Select the mode that you want the widget to work. By default '1' (X years ago)
Mode 1: get posts around this date from X years ago.
Mode 2: get posts around this date for the last X years.
Mode 3: get posts around this date since year X.
$yearsago = It shows “X” years ago posts. By default '1' (1 year). ONLY IF MODE 1 IS SELECTED.
$lastxyears = It shows posts por the last "X" years. By default '1' (1 year). ONLY IF MODE 2 IS SELECTED.
$sinceyear = It shows posts since the year "X". By default '2005' (since year 2005). ONLY IF MODE 3 IS SELECTED.
$limit = Number of posts to retrieve. By default '4'.
$none = Text shown when there are no posts. By default 'none'.
$showdate = Show dates next to the links. By default unchecked.
$dateformat = Format of the date displayed next to the links (if checked). See http://www.php.net/date
$showexcerpt = Show the excerpt next to the links. By default unchecked.

Customize display

In adition to the options avaliable from the widget control panel you can highly customize the apearance of the output by using CSS. These are the classes avaliable:
ul.atd-list {} // base list container.
li.atd-year {} // Yearly headers.
atd-yXXXX {} //yearly based class, eg. atd-y2006, atd-y2005 …
ul.atd-yearlylist {} // list container for each year around this date posts.
li.atd-entry {} // list items containing each around this date posts.
atd-yXXXX {} //yearly based class, eg. atd-y2006, atd-y2005 …
atd-mXX {} //montly based class, eg. atd-m01, atd-m02 … atd-m12.
atd-dXX {} //dayly based class, eg. adt-d01, atd-d02 … atd-d31.
atd-XXXXXXXX {} //date based class, eg. atd-20061205, atd-20050304 …
li.atd-noentries {} // list item when there are no entries
a.atd-entry-title {} // Link to the post.
.atd-entry-date {} // span containing the date, if $showdate enabled.
.atd-entry-excerpt {} // span containing the excerpt, if $showexcerpt enabled.
License
This plugin is free software; you can redistribute it and/or modify it under the terms of the GPL License (don't remove credits to author, please)
See license.txt for details

Credits and Acknowledgments

This plugin is based on:
– “One year ago” plugin released by Borja Fernandez. [ http://www.lamateporunyogur.net/wp-plugins/one-year-ago/ ] [ http://www.lamateporunyogur.net ]
– “Wayback” plugin released by Chris Goringe. [ http://code.goringe.net/WordPress/ ] [ http://tis.goringe.net ]
– Wayback Widget released by Sven Weidauer. [ http://dergraf.net/computer/wordpress/wayback-widget/ ] [ http://dergraf.net/ ]
– My plugin Around this date in the past. [ http://www.junyent.org/blog/arxius/2006/05/20/around-this-date-in-the-past-wordpress-plugin/ ]
Thanks to Borja Fernandez, Chris Goringe and Sven Weidauer for writing their plugins and to Luis Pérez and Mike Koepke for their contributions.
ToDo
Nothing else planed by now.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon