[WordPress] 外掛分享: WallpaperChanger

首頁外掛目錄 › WallpaperChanger
10+
安裝啟用
尚無評分
3591 天前
最後更新
問題解決
WordPress 3.2+ v1.0 上架:2016-05-17

內容簡介

這是一個小型的 WordPress 外掛程式,可以根據伺服器當前時間,自動更改桌布(早上/晚上)。

使用下列語法獲得伺服器時間:
$Hour = date(‘G’);

當時間在早上 5 點到下午 6 點之間,顯示早上的圖片或桌布:
$Hour >= 5 && $Hour <= 18

當時間在下午 7 點到隔天早上 4 點之間,顯示晚上的圖片或桌布:
$Hour >= 19 || $Hour <= 4

**你可以自行更改時間和圖片。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WallpaperChanger」→ 直接安裝(推薦)

原文外掛簡介

A small WordPress plugin allows you to automatically change the wallpaper(morning,evening) according to server daytime.

get server time by using
$Hour = date(‘G’);

for morning image/wallpaper : $Hour >= 5 && $Hour <= 18 for evening image/wallpaper : $Hour >= 19 || $Hour <= 4 **You can change the hour value and images

文章
Filter
Mastodon