[WordPress] 外掛分享: PCF Christmas Countdown

WordPress 外掛 PCF Christmas Countdown 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「PCF Christmas Countdown」是 2015-09-06 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2015-10-06,距離現在已有 3498 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pcfdev |

外掛標籤

date | down | count | christmas | countdown |

內容簡介

基本指示

這個外掛可以立即使用,安裝好後,您可以把簡碼放在任何位置。

使用簡碼 [pcf_xmas_countdown] 以輸出倒數計時。

預設輸出單位為日 (例如: '‘距離聖誕節還剩下 105 天!')

更改輸出單位

簡碼可以加上 ‘type’ 參數,如下所示:

[pcf_xmas_countdown type="days|weeks|sleeps"]

這樣可以改變輸出單位。

您可以選擇以下 3 個輸出單位:



夜晚

如果您沒有指定 type 參數,或是設定之內容無效,它將預設為 ‘日’。

例如:

[pcf_xmas_countdown type="weeks"]

輸出內容日為:

距離聖誕節還剩下 `x` 週與 `y` 天!

設定輸出樣式

輸出樣式是進階設定,需要使用自訂的 CSS 樣式。

您可以加上 ‘id’ 參數,這樣就可以使用 CSS 語法設計輸出樣式。

例如:

[pcf_xmas_countdown id="my-id"]

HTML中相對應的內容為:

...

然後您就可以在 外觀 > 編輯器 中加上自訂 CSS,如果您的佈景主題支援自訂 CSS,也可以在佈景主題選項中加上樣式。如果編輯器中有一個自定義的 CSS 檔案,建議使用它來添加自訂樣式。

以下是一些自訂樣式的範例:

#my-id{
color: 紅色;
font-size: 16px;
text-decoration: underline;
}

這樣就可以設定輸出內容為紅色,有下劃線,且字體大小為16px。

原文外掛簡介

Basic Instructions
This plugin works out-of-the-box, so once the plugin is installed, you can place a shortcode wherever you want.
Use the shortcode [pcf_xmas_countdown] to output the countdown.
The countdown will output in days by default (e.g ‘105 days until Christmas!’).
Changing output type
The shortcode can be given a ‘type’ attribute, like so:
[pcf_xmas_countdown type="days|weeks|sleeps"]

This enables you to change the output type.
There are 3 types to choose from:

Days
Weeks
Sleeps

If you do not specify the type attribute, or specify an invalid type, it will default to ‘days’.
Example:
[pcf_xmas_countdown type="weeks"]

will output as
It's `x` weeks and `y` days until Christmas!

Styling the output
Styling the output is an advanced setting, that involves writing custom CSS.
The shortcode can be given an ‘id’ attribute, which can then be used to style the output using CSS.
For example,
[pcf_xmas_countdown id="my-id"]

would output in HTML as

...

You can then add custom CSS through Appearance > Editor. If your theme supports custom CSS, you may be able to add your styles in Theme Options. If there is a custom css file in Editor, it is advised to use that for custom styles.
Here is an example of some custom styles:
#my-id{
color: red;
font-size: 16px;
text-decoration: underline;
}

This will set the output to be red, underlined, and to have a font size of 16px.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PCF Christmas Countdown」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.3 | 2.0 | 2.1 | 2.2 |

延伸相關外掛(你可能也想知道)

  • Simple Download Monitor 》我開發了「Simple Download Monitor」外掛,因為我需要一個好的方式來管理我的數位下載,並監測我檔案和文件的下載次數。, , 此外掛非常適用於管理和追蹤您的...。
  • Post Views Count (Support caching plugins!) 》重要提示:3.0 版本支援快取外掛!, 當有人訪問一則文章或頁面(不包括搜尋引擎爬蟲時),它會將瀏覽次數加 1。, 但這還不是全部,這些計數器會分成逐日、逐...。
  • Waiting: One-click countdowns 》一鍵倒數計時。, 倒數計時到一個日期或特定持續時間(例如從頁面加載開始的 60 秒)。, 功能:, , 無限的倒數計時。, 易於使用的可視化構建器,具有實時預覽...。
  • GravityWP – Count 》請造訪 GravityWP.com 取得文件。, 最簡單的短代碼版本(計數並顯示指定 Gravity Form 表單的條目數量):, [gravitywp_count formid=''], , 當您需要數字欄...。
  • WooCommerce Cart Count Shortcode 》如果您正在尋找在您的網站的 WooCommerce 購物車中靈活顯示項目的方法,那就不用再尋找了!此外掛可讓您在網站的任何位置插入短碼,以生成 a href 鏈接。, 參...。
  • Posts Character Count Admin 》此外掛會在文章管理子面板中加入一個欄位,顯示每篇文章中的字元計數。, 在文章編輯子面板中,此外掛同樣會在「字數計算」附近提供每篇文章的字元計數,協助...。
  • Easy CountDowner 》Easy Countdowner 讓你能夠在你的文章或網頁上顯示倒數計時器。將全定制的 HTML5 倒數計時器放置到最簡單地方。只需點擊 tinyMce 編輯器中的 countDowner 按...。
  • Countdown Timer 》倒數計時器可讓您設置一個或多個要倒數至或倒數離開的日期。, 事件可以使用小工具插入側邊欄,或使用短碼插入文章和頁面中。, 目前支援22種語言。, 翻譯, 使...。
  • AJAX Hits Counter + Popular Posts Widget 》本外掛使用外部 AJAX 計數器腳本來記錄文章的瀏覽次數,是最適合快取整個頁面或使用其他快取外掛的解決方案。, 此外,外掛還包含了「熱門文章」小工具,可根...。
  • Simple Post Views Count 》插件被棄用了, 現在,我們終於確信谷歌分析統計和追蹤系統是無與倫比的先進做法(其他插件也是,例如:Google Analytics [by MonsterInsights]),相較於無用...。
  • Dashboard Wordcount 》更新儀表板的 At a Glance 小工具,以顯示此 WordPress 網站中所有已發表文章的總字數(及每篇文章的平均字數)。還會顯示網站的年齡(自最老的文章以來的時...。
  • Posts Social Shares Count 》關於, 您可以使用此外掛程式,透過文章 ID 取得某篇文章的分享數量。, 如何使用, 例如,在迴圈中使用 echo pssc_facebook() 函數,或是在任何地方使用 echo p...。
  • bbp topic count 》這個 bbPress 外掛可以在每個主題/回覆檢視中,顯示主題總數、回覆總數和總計數的任意組合,並且允許您自訂標籤,例如「已建立的主題:253」或「主題 — 253」...。
  • Most Read Posts in XX days 》「最多閱讀文章」外掛可以計算文章和頁面的點擊次數,並讓你在以下頁面上展示它們:, , 單篇文章頁面, 頁面, 索引頁面和存檔頁面, 可配置的小工具,也可帶有...。
  • WordPress Word Count and Limit 》這個外掛可以在編輯文章視窗的底部即時將字數資訊替換為字元/單字計算。此外,您可以將字元/單字計算限制在指定的使用者角色中。, 這裡列出了設定清單(詳細...。

文章
Filter
Apply Filters
Mastodon