WAJ Copyright Year

WAJ Copyright Year Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 847 downloads
WAJ Copyright Year Icon

Try plugin: WAJ Copyright Year

We'll create fresh WordPress site with WAJ Copyright Year installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About WAJ Copyright Year

Simple class for handling auto-updating copyright year in website footers.

0


0


0


0


0

updated: 5 years ago
since: 6 years ago
author: Jaimeson Waugh

Description

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

Example

<?php

declare( strict_types = 1 );
namespace MyTheme\FooterTemplate
{
    use \WaughJ\CopyrightYear\CopyrightYear;

    ?>
        <footer class="footer">
            <p>Copyright Jaimeson Waugh &copy; <?= new CopyrightYear( 2015, '-' ); ?>.</p>
        </footer>
    <?php
}

or

[copyright-year start="2015" divider="-"]

This will print the message, Copyright Jaimeson Waugh © 2015-2018.