International Namedays
v2.3kgyt · 2009年4月6日 上架
This plugin displays namedays for different countries.
- 正在使用
- 300+
- 评分
- 5.0 / 5
- 累计下载
- 7,723
- 最近更新
- 2014年7月20日
2 条评价需要 WordPress 1.0+已测试到 3.9.40
贡献者
截图
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:
<!-- kgyt_nameday -->
or
Print today’s nameday from special country:
<!-- kgyt_nameday COUNTRY -->
or
Print Hungarian nameday of special time:
<!-- kgyt_nameday TIMESTAMP -->
or
Print customized nameday:
<!-- kgyt_nameday COUNTRY TIMESTAMP -->
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:
<?php kgyt_nameday(); ?>
Get yesterday Swedish nameday:
<?php
$nameday = kgyt_nameday( false, 'se', time() - ( 3600 * 24 ) );
echo $nameday;
?>

