Linux 软件免费装

WAJ Copyright Year

开发者 waughjai
更新时间 2019年5月8日 07:00
PHP版本: 7.0 及以上
WordPress版本: 5.2
版权: GPLv2 or later
版权网址: 版权信息

标签

footer copyright year auto-update new year

下载

1.0.2 1.0.3 1.0.4 1.0.0 1.0.1

详情介绍:

Adds copyright year or interval o' years where desired. By default, it just shows the current year, as specified by the server ( which is hopefully keeping accurate track o' time ). Optionally, you can include a start year. If the start year is different from the current year, then it will show an interval 'tween the start year & current year. For instance, if you set the start year to 2015, in 2018 you will get the following: 2015 - 2018 You can also set a custom divider if you want the interval sign to look different. For instance, if you don't want the hyphen to have spaces round it, you could set the divider to "-", & you will get the following: 2015-2018

安装:

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Copyright year can be directly added to PHP files by creating an instance o' the \WaughJ\CopyrightYear\CopyrightYear class & using it like a string or calling the "getText()". Optional arguments to its constructor are 1st the starting year o' your website & 2nd the divider you want 'tween the start year & current year if they are different. The defaults for these, respectively, are the current year & a hyphen with spaces round it.
You can also add a copyright year to a WordPress document using a shortcode. Add [copyright-year] to add the current year & [copyright-year start="%year%" divider="%divider%"] with %year% replaced by the starting year & %divider% replaced by the divider that appears 'tween the start & current year if they are different.

更新日志:

1.0.4 1.0.3 1.0.2 1.0.1 1.0