Version 1.0.4
* Updated replacing function when footnote is a link (bugfix) * Footnote hover box remains until cursor leaves footnote or hover box * Links in the footnote hover box are click able * New setting to allow footnotes on Summarized Posts * New setting to tell the world you're using footnotes plugin * New setting for the counter style of the footnote index ** Arabic Numbers (1, 2, 3, 4, 5, ...) ** Arabic Numbers leading 0 (01, 02, 03, 04, 05, ...) ** Latin Characters lower-case (a, b, c, d, e, ...) ** Latin Characters upper-case (A, B, C, D, E, ...) ** Roman Numerals (I, II, III, IV, V, ...) * Adding a link to the WordPress plugin in the footer if the WP-admin accepts it * Updated translations for the new settings * re-changed the version number to have 3 digits git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@917816 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
5d475abfc3
commit
660d32edc3
14 changed files with 288 additions and 88 deletions
20
index.php
20
index.php
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
/*
|
||||
Plugin Name: footnotes
|
||||
Plugin URI: http://www.herndler.org
|
||||
Plugin URI: https://github.com/media-competence-institute/footnotes
|
||||
Description: simple adding footnotes to your pages
|
||||
Author: Mark Cheret, Stefan Herndler
|
||||
Version: 1.0.3
|
||||
Author URI: http://www.cheret.de
|
||||
Version: 1.0.4
|
||||
Author URI: https://github.com/media-competence-institute/footnotes
|
||||
Text Domain: footnotes
|
||||
Domain Path: /languages
|
||||
*/
|
||||
|
@ -45,6 +45,8 @@ require_once( dirname( __FILE__ ) . "/includes/plugin-settings.php" );
|
|||
/* include script and stylesheet functions */
|
||||
require_once( dirname( __FILE__ ) . "/includes/scripts.php" );
|
||||
/* include script and stylesheet functions */
|
||||
require_once( dirname( __FILE__ ) . "/includes/convert.php" );
|
||||
/* include script and stylesheet functions */
|
||||
require_once( dirname( __FILE__ ) . "/includes/replacer.php" );
|
||||
|
||||
/* require plugin class */
|
||||
|
@ -52,16 +54,8 @@ require_once( dirname( __FILE__ ) . "/classes/footnotes.php" );
|
|||
/* require plugin settings class */
|
||||
require_once( dirname( __FILE__ ) . "/classes/footnotes_settings.php" );
|
||||
|
||||
/* calls the wordpress filter function to replace page content before displayed on public pages */
|
||||
add_filter( 'the_content', 'footnotes_startReplacing' );
|
||||
add_filter( 'the_excerpt', 'footnotes_DummyReplacing' );
|
||||
|
||||
/* calls the wordpress filter function to replace widget text before displayed on public pages */
|
||||
add_filter( 'widget_title', 'footnotes_DummyReplacing' );
|
||||
add_filter( 'widget_text', 'footnotes_DummyReplacing' );
|
||||
|
||||
/* calls the wordpress action to display the footer */
|
||||
add_action( 'get_footer', 'footnotes_StopReplacing' );
|
||||
/* register functions for the footnote replacement */
|
||||
footnotes_RegisterReplacementFunctions();
|
||||
|
||||
/* adds javascript and stylesheets to the public page */
|
||||
add_action( 'wp_enqueue_scripts', 'footnotes_add_public_stylesheet' );
|
||||
|
|
Reference in a new issue