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
Rumperuu e780d817c1
docs: update WP readme (#139)
* docs: split changelog into separate file

See #137

* docs: add information to Plugin header

Fix #138

* docs: update WP readme

* docs: remove FAQs

* docs: remove installation instructions

These were causing the FAQ section to render incorrectly
when viewed in the [preview validator][validator].

Also, the [WP Plugin Handbook][wp-handbook] says that:
> If your plugin has no custom install settings, it's
> okay to omit this section.

[validator]: https://wpreadme.com/
[wp-handbook]: https://developer.wordpress.org/plugins/wordpress-org/how-your-readme-txt-works/#installation

* docs: update links, versions, add extra changelog items

* docs: lower version to stable ver
2021-04-23 16:27:39 +01:00
.github Merge pull request #130 from markcheret/security_add_snyk 2021-04-22 21:03:53 +02:00
_tools fix: fix release and build scripts 2021-04-19 20:05:33 +01:00
class Merge branch 'main' into review-codebase 2021-04-19 12:27:24 +01:00
contrib fix: fix pre-commit hook 2021-04-16 03:12:06 +01:00
css fix: replicate 2.7.1 CSS fix from SVN repo 2021-04-15 22:56:39 +01:00
docs docs: update readme and PHPDoc settings (#120) 2021-04-18 20:30:42 +01:00
img refactor: delete now-unused files 2021-04-16 03:11:24 +01:00
js fix: add correct version tag 2021-04-19 20:04:18 +01:00
languages urgent release 2.5.2 2021-01-19 23:45:34 +00:00
templates refactor: delete now-unused files 2021-04-16 03:11:24 +01:00
.distignore chore: add php-commitizen (#76) 2021-04-12 21:14:13 +01:00
.eslintignore build: add JS and CSS linters 2021-04-15 03:06:08 +01:00
.eslintrc.js build: add JS and CSS linters 2021-04-15 03:06:08 +01:00
.gitignore Add authorsfile to gitignore 2021-04-15 15:30:21 +00:00
.php-commitizen.php build: increase commitizen lengths 2021-04-17 00:00:21 +01:00
.prettierignore build: add JS formatting commands 2021-04-15 03:20:58 +01:00
.prettierrc build: add JS and CSS linters 2021-04-15 03:06:08 +01:00
.stylelintignore build: correct stylelint settings 2021-04-15 03:10:02 +01:00
.stylelintrc.json build: correct stylelint settings 2021-04-15 03:10:02 +01:00
CHANGELOG.md docs: update WP readme (#139) 2021-04-23 16:27:39 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2021-04-18 22:02:30 +02:00
composer.json Merge branch 'main' into review-codebase 2021-04-19 12:27:24 +01:00
composer.lock build(deps-dev): bump marcocesarato/php-conventional-changelog 2021-04-19 09:33:05 +00:00
CONTRIBUTING.md chore: add php-commitizen (#76) 2021-04-12 21:14:13 +01:00
customized-documentation-schema.txt chore: remove date info (#94) 2021-04-15 05:09:23 +01:00
customized-template-stack.txt chore: remove date info (#94) 2021-04-15 05:09:23 +01:00
footnotes.php docs: update WP readme (#139) 2021-04-23 16:27:39 +01:00
includes.php Revert "refactor: remove Hungarian notation and MCI prefixes" 2021-04-19 12:15:17 +01:00
LICENSE Create LICENSE 2021-04-15 15:30:21 +00:00
license.txt Append line endings 2021-02-23 16:00:59 +00:00
package-lock.json build: add JS and CSS linters 2021-04-15 03:06:08 +01:00
package.json added license info in package 2021-04-20 03:48:16 +02:00
phpdoc.dist.xml docs: update readme and PHPDoc settings (#120) 2021-04-18 20:30:42 +01:00
README.md doc: add snyk shield 2021-04-20 04:21:37 +02:00
readme.txt docs: update WP readme (#139) 2021-04-23 16:27:39 +01:00
SECURITY.md Create SECURITY.md 2021-02-20 20:09:46 +00:00
wpml-config.xml - Add: WPML Config XML file for the string translation plugin 2014-09-03 15:49:40 +00:00

footnotes

stable tag WP rating Reqd PHP Reqd WP WordPress Plugin: Tested WP Version

GitHub contributors GitHub commits since tagged version GitHub commit activity issues PRs

License: GPL v3 Snyk Vulnerabilities for GitHub Repo OSSAR PHP Composer

footnotes

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.

Featured on wpmudev — cheers for the review, folks!

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 and NPM; 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 can also be called manually:

  • Run composer run format to run all format commands.

  • Run composer run format:fix to attempt to automatically fix all formatter warnings and errors.

  • Run composer run lint to run all linting commands.

  • Run composer run lint:fix to attempt to automatically fix all linter warnings and errors.

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.

  • Run composer run format:js to format all JS files with Prettier.

  • Run composer run format:js:fix to attempt to automatically fix warnings and errors.

  • Run composer run lint:js to lint all JS files with ESLint.

  • Run composer run lint:js:fix to attempt to automatically fix warnings and errors.

Prettier configuration settings are found in .prettierrc.

ESLint configuration settings are found in .eslintrc.js. File ignore rules are found in .eslintignore.

CSS Stylesheets

JavaScript code must follow the WordPress CSS Coding Standards.

  • Run composer run lint:css to format all CSS files with stylelint.
  • Run npcomposerm run lint:css:fix to attempt to automatically fix warnings and errors.

stylelint configuration settings are found in .stylelint.json.

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