footnotes aims to be the all-in-one solution for displaying an automatically-generated list of references on your WordPress Page or Post. [NB - clone of https://github.com/markcheret/footnotes, no longer mirroring] https://bengoldsworthy.net/portfolio/programs/footnotes/
This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Mark Cheret b14a2d80bb
Merge pull request #83 from markcheret/cache-busting
fix: add separate prod/dev cache-busters
2021-04-15 01:18:23 +02:00
.github feat: re-add caching command, add linting command 2021-04-14 23:40:30 +01:00
_tools style: rename production flag variable 2021-04-14 22:47:44 +01:00
class fix: correct relative filepaths 2021-04-14 22:52:56 +01:00
contrib Sync trunk/ with staging branch. **Stable Tag 2.5.10** 2021-03-13 22:21:26 +00:00
css Merge branch 'main' into svn-update 2021-04-10 20:02:10 +01:00
docs Generate HTML documentation using phpDocumentor 2021-04-10 19:27:52 +01:00
img Add footnotes header image 2021-04-10 19:27:50 +01:00
js Merge branch 'main' into svn-update 2021-04-10 20:02:10 +01:00
languages urgent release 2.5.2 2021-01-19 23:45:34 +00:00
templates Release bugfix v2.6.3 Stable Tag 2.6.3. 2021-03-31 00:49:17 +00:00
.distignore chore: add php-commitizen (#76) 2021-04-12 21:14:13 +01:00
.gitignore Add authorsfile to gitignore 2021-04-10 19:28:03 +01:00
.php-commitizen.php chore: add php-commitizen (#76) 2021-04-12 21:14:13 +01:00
composer.json fix: correct license 2021-04-14 23:34:09 +01:00
composer.lock chore: update lockfile 2021-04-14 23:34:20 +01:00
CONTRIBUTING.md chore: add php-commitizen (#76) 2021-04-12 21:14:13 +01:00
customized-documentation-schema.txt Sync trunk/ with staging branch. **Stable Tag 2.5.10** 2021-03-13 22:21:26 +00:00
customized-template-stack.txt Accessibility added, v2.6.0d6 (S.T. 2.5.10). 2021-03-18 10:53:57 +00:00
features.txt WordPress Coding Standards compliance update. Stable Tag 2.5.10. Package version: 2.5.11d0. 2021-03-03 18:58:03 +00:00
footnotes.php style: rename production flag variable 2021-04-14 22:47:44 +01:00
includes.php Sync filenames with SVN repo (#57) 2021-03-04 07:46:19 +00:00
LICENSE Create LICENSE 2021-04-10 19:27:52 +01:00
license.txt WordPress Coding Standards compliance update. Stable Tag 2.5.10. Package version: 2.5.11d0. 2021-03-03 18:58:03 +00:00
README.md chore: re-write developer readme 2021-04-14 23:21:01 +01:00
readme.txt chore: fix character misencodings (#78) 2021-04-14 17:27:15 +01:00
SECURITY.md WordPress Coding Standards compliance update. Stable Tag 2.5.10. Package version: 2.5.11d0. 2021-03-03 18:58:03 +00:00
wpml-config.xml - Add: WPML Config XML file for the string translation plugin 2014-09-03 15:49:40 +00:00

footnotes

footnotes

Featured on wpmudev — cheers for the review, folks!

footnotes aims to be the all-in-one solution for displaying an automatically-generated list of references on your Page or Post. The Plugin ships with a set of defaults while also empowering you to control how your footnotes will be displayed.

footnotes gives you the ability to display well-formatted footnotes on your WordPress Pages and Posts — those footnotes we know from offline publishing.

Table of Contents

Features

This Plugin provides:

  • fully customizable footnote start and end shortcodes;
  • stylable tooltips supporting hyperlinks and dedicated text;
  • a responsive 'reference container', with customisable positioning;
  • a wide choice of different numbering styles;
  • a freely-configurable and optional backlink symbol;
  • footnote appearance customisation via dashboard settings and custom CSS style rules; and
  • editor buttons for easily adding shortcode tags.

Getting Started

  1. Read the contributing guidelines;
  2. clone this repository (git clone git@github.com:markcheret/footnotes.git):
    • we recommend that you use VVV for your local testing environment.
  3. install Composer, if you don't have it already; and
  4. install all dependencies (composer install):
    • you will have to install php-mbstring manually if you do not already have it.

Deploying

Automated release deployments will be introduced soon.

Building

  1. Run _tools/build-stylesheets.sh -c to concatenate stylesheets;
  2. manually minify the output files in css/tmp/, saving them as .min.css files:
    • the intention is to replace this with automated minification, meaning that all of these steps can be rolled into a single build command.
  3. run _tools/build-stylesheets.sh -d to deploy the minified files to dist/:
    • this will delete any existing dist/ folder!
  4. run composer run build to move over the remaining files to dist/:
    • currently, the files to include in a distribution are hard-coded in _tools/build.sh; but
    • the intention is to replace this with a proper parsing of the .distignore file

Releasing

  1. Ensure that you have configured your Git config. with SVN credentials;
  2. run the above build commands; and
  3. run composer run release and follow the prompts.

Testing

Automated testing will be introduced soon.

Code Formatting

This repo. uses pre-commit code formatting and linting on all staged files. This ensures that only style-conformant code can be committed.

The individual commands used by the pre-commit hook can also be called manually:

PHP Code

PHP code must follow the WordPress PHP Coding Standards.

  1. Run composer run lint:php to lint all JS/TS files with PHP CodeSniffer
  2. Run composer run lint:php:fix to attempt to automatically fix warnings and errors with the PHP Code Beautifier and Formatter.

JavaScript Code

JavaScript code must follow the WordPress JavaScript Coding Standards.

Automated linting and formatting will be introduced soon.

CSS Stylesheets

JavaScript code must follow the WordPress CSS Coding Standards.

Automated linting and formatting will be introduced soon.

Documentation

Run composer run docs to automatically generate HTML documentation with phpDocumentor.

View the current docs here.

Acknowledgements

Huge thanks to every footnotes user, contributor, bug reporter, feature requester and fan!

License

This project is licensed under the GNU GPL v3.

Contact Information

Name Link(s)
Mark Cheret Email