October Copyright Years, v1.0.0
Posted on

A plugin for October CMS that provides the component for calculation and displaying of copyright years.
Major release.
Description
Copyright years contains years when posts have been published. The component considers only published posts. It finds the minimum and maximum years of a publication.
Plugin icon — 
Available components
CopyrightYears
Use the copyrightYears component to calculate and display of copyright years.
The copyrightYears component injects the following variables to the page where it's used:
startYear— a minimum year of a publication;endYear— a maximum year of a publication.
The next example shows the basic component usage in the footer partial (from the Demo theme):
[copyrightYears]
==
<div id="footer">
<div class="container">
<hr />
<p class="muted credit">© {% component 'copyrightYears' %} admin.</p>
</div>
</div>
The default markup (plugins/thewizardplusplus/copyrightyears/components/copyrightyears/default.htm) displays the start and end years hyphenated:
© 2015-2016 admin.
If the start and end years are equals it displays only one:
© 2016 admin.
Available languages
- en — English;
- ru — Russian.
Requirements
- RainLab Blog plugin.
Repository
Link: https://github.com/thewizardplusplus/october-copyright-years/tree/v1.0.0.
Content: code.
License: MIT.
Screenshots
Footer view:

Copyrights
- plugin icon — CC0 1.0, Copyright © 2015 sixsixfive, https://openclipart.org/detail/212148/rodentiaiconstextxcopying.