內容簡介
此外掛可顯示各國的名字節日。
用法
kgyt_nameday([DISPLAY], [COUNTRY], [TIMESTAMP]);
display (boolean) – 如果為 true(預設),則會顯示名字節日
country (string) – 選擇其中一個兩位數國家代碼(hu,pl,no,se,dk,cz,sk)
timestamp (int) – 設定日期或時區
在文章中使用方法
列印今天的匈牙利名字節日:
<!-- kgyt_nameday -->
或
列印特定國家今天的名字節日:
<!-- kgyt_nameday COUNTRY -->
或
列印特定時區的匈牙利名字節日:
<!-- kgyt_nameday TIMESTAMP -->
或
列印自訂的名字節日:
<!-- kgyt_nameday COUNTRY TIMESTAMP -->
country (string) – 選擇其中一個兩位數國家代碼(hu,pl,no,se,dk,cz,sk)
timestamp (int) – 設定日期或時區
範例
列印今天的匈牙利名字節日:
<?php kgyt_nameday(); ?>
獲取前一天瑞典名字節日:
<?php
$nameday = kgyt_nameday( false, 'se', time() - ( 3600 * 24 ) );
echo $nameday;
?>
外掛標籤
開發者團隊
原文外掛簡介
This plugin displays namedays for different countries.
Usage
kgyt_nameday( [DISPLAY], [COUNTRY], [TIMESTAMP] );
display (boolean) – if true (default) the nameday is visible
country (string) – select two letter countrycode (hu, pl, no, se, dk, cz, sk)
timestamp (int) – set the date or timezone
Usage in posts
Print today’s Hungarian nameday:
or
Print today’s nameday from special country:
or
Print Hungarian nameday of special time:
or
Print customized nameday:
country (string) – select two letter countrycode (hu, pl, no, se, dk, cz, sk)
timestamp (int) – set the date or timezone
Examples
Print today’s Hungarian nameday:
Get yesterday Swedish nameday:
