Skip to content

WordPress Plugin: Looks for Links in a posts / pages and displays them in a citation box at the end of each site

License

Notifications You must be signed in to change notification settings

obstschale/citationbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Citation Box

Author: Hans-Helge Buerger
Date: 21. March 2014
Version: v0.1.1
License: GPLv2 or later


This is a simple WordPress Plugin which takes the content and scans it for links and puts them at the end of a page in a box. And this looks like this.

Example of a Citation Box

Installation

  • Download the ZIP File and upload it via your backend in WordPress
  • Upload the citation-box folder to /wp-content/plugins/ directory

In more detail

This plugin uses the_content filter and goes through the DOM Tree to look for <a> tags (exceptions are: images and WordPress more-link). The link is extracted form the content and a number is added after the former link. The link itself will be added to a list at the end of each site.

In the settings you can decide where this box is displayed. The first option will add a box at each post if the single post is viewed. The second is for pages and Home is referring to the main page where you can browser your articles. In addition, it is possible to choose own colors to fit perfectly to your theme.

BTW: If no links are found in a post / page also no Citation Box is shown.

Settings

Screenshot of settings

Languages

Citation Box is translated in:

  • German: special thanks to myself.

Changelog

v0.1.1 - 21. March 2014

  • [FIX] Load Farbtastic and JS-Script only on CB Settings page otherwise an Uncaught TypeError is thrown because farbtastic is undefined

v0.1 - 20. March 2014

  • [FEATURE] Citation Box for posts, pages, and home page
  • [FEATURE] Settings: choose where Citation Box should be displayed and choose own colors

License

Citation Box is licensed under the MIT license. Please see LICENSE.

About

WordPress Plugin: Looks for Links in a posts / pages and displays them in a citation box at the end of each site

Topics

Resources

License

Stars

Watchers

Forks

Packages