Skip to content

A plugin for October CMS that provides the component for calculation and displaying of copyright years

License

Notifications You must be signed in to change notification settings

thewizardplusplus/october-copyright-years

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright Years

A plugin for October CMS that provides the component for calculation and displaying of copyright years.

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.

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">&copy; {% 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

Screenshots

Footer markup:

Footer markup

Footer view:

Footer view

License

The MIT License (MIT)

Copyright © 2016 thewizardplusplus thewizardplusplus@yandex.ru

About

A plugin for October CMS that provides the component for calculation and displaying of copyright years

Resources

License

Stars

Watchers

Forks

Packages

No packages published