2017 © Pedro Peláez
 

yii2-extension yii2-footnotes

Yii2 Extension that simplies adding and management of footnotes on a web page

image

beastbytes/yii2-footnotes

Yii2 Extension that simplies adding and management of footnotes on a web page

  • Sunday, July 26, 2015
  • by BeastBytes
  • Repository
  • 2 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 25 % Grown

The README.md

yii2-footnotes

Yii2 Extension that simplies adding and management of footnotes on a web page; it generates accessible, automatically numbered footnotes., (*1)

Inspired by the Accessible Footnotes with CSS article., (*2)

For license information check the LICENSE-file., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist beastbytes/yii2-footnotes

or add, (*6)

"beastbytes/yii2-footnotes": "*"

to the require section of your composer.json., (*7)

Usage

In a view:, (*8)

$footnotes = Footnotes::begin(); // Before any footnote references on the page
echo $footnotes->add('Local text', 'Footnote text'); // at every footnote reference
Footnotes::end(); // where the footnotes are to be rendered

Example

 $footnotes = Footnotes::begin();
// Can be other view stuff here
echo Html::tag('p', strtr('This example shows how to use the {Footnotes widget}.', [
    '{Footnotes widget}' => $footnotes->add('Footnotes widget', 'The Footnotes widget makes it easy to add accessible footnotes.'),
]));
// More view stuff
echo Html::tag('p', strtr('The Footnotes widget uses the {Yii2 framework}.', [
    '{Yii2 framework}' => $footnotes->add('Yii 2 framework', 'The Yii2 framework is the best framework for developing web applications.'),
]));
// More view stuff, maybe with some more footnote references
Footnotes::end(); // renders the footnotes

The Versions

26/07 2015

dev-master

9999999-dev

Yii2 Extension that simplies adding and management of footnotes on a web page

  Sources   Download

BSD-3-Clause

The Requires

 

by Chris Yates

yii2 widget footnotes

26/07 2015

v1.0.0

1.0.0.0

Yii2 Extension that simplies adding and management of footnotes on a web page

  Sources   Download

BSD-3-Clause

The Requires

 

by Chris Yates

yii2 widget footnotes