Changeset 1972923
- Timestamp:
- 11/12/2018 11:14:51 AM (7 years ago)
- Location:
- blank-footnotes/trunk
- Files:
-
- 4 edited
-
blank-footnotes.php (modified) (3 diffs)
-
changelog.txt (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blank-footnotes/trunk/blank-footnotes.php
r1630294 r1972923 75 75 76 76 // Regex to convert markdown footnotes to HTML. 77 $content = preg_replace( '/\[\^(\d+)\]:/' , "<span class='footnote' id='fn-$post_id-$1'><a href='#fnref-$post_id-$1'>$1</a>.</span>", $content );77 $content = preg_replace( '/\[\^(\d+)\]:/', "<span class='footnote' id='fn-$post_id-$1'><a href='#fnref-$post_id-$1'>$1</a>.</span>", $content ); 78 78 79 79 // Regex to convert markdown reference notes to HTML. 80 $content = preg_replace( '/\[\^(\d+)\]/' , "<sup class='footnote' id='fnref-$post_id-$1'><a href='#fn-$post_id-$1' rel='footnote'>$1</a></sup>", $content );81 82 return( $content);80 $content = preg_replace( '/\[\^(\d+)\]/', "<sup class='footnote' id='fnref-$post_id-$1'><a href='#fn-$post_id-$1' rel='footnote'>$1</a></sup>", $content ); 81 82 return( $content ); 83 83 84 84 } … … 92 92 * } 93 93 */ 94 if ( get_option( 'jetpack_active_modules')) {94 if ( get_option( 'jetpack_active_modules' ) ) { 95 95 if ( ! in_array( 'markdown', get_option( 'jetpack_active_modules' ), true ) ) { 96 96 add_action( 'the_content', 'bfn_markdown_convert', 1 ); … … 142 142 } 143 143 </script> 144 <?php144 <?php 145 145 } 146 146 } -
blank-footnotes/trunk/changelog.txt
r1630294 r1972923 1 1 *** Blank Footnotes *** 2 3 2018-11-10 version 1.6.1 4 5 * Added note for Gutenberg. 6 * Fixed style according to WordPress Coding Standards for 7 PHP_CodeSniffer. 8 * Tested with Wordpress 5.0 classic editor 2 9 3 10 2017-04.05 version 1.6 -
blank-footnotes/trunk/index.php
r1345974 r1972923 8 8 */ 9 9 10 ?> 10 // Silent is god! -
blank-footnotes/trunk/readme.txt
r1761715 r1972923 4 4 Tags: footnotes, footnote, notes, reference, endnotes, formatting 5 5 Requires at least: 4.4 6 Tested up to: 4.97 Stable tag: 1.6 6 Tested up to: 5.0 7 Stable tag: 1.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 Unlike jetpack-markdown, footnotes will appear in the exact point where they have been inserted. To go back to text mode click on the footnote number. 26 26 27 Work only with Classic Editor, in visual and html mode. Not work with Gutenberg. 28 27 29 == Installation == 28 30 29 31 This section describes how to install the plugin and get it working. 30 32 31 1. Upload the plugin files to the '/wp-content/plugins/ plugin-name' directory, or install the plugin through the WordPress plugins screen directly.33 1. Upload the plugin files to the '/wp-content/plugins/blank-footnotes' directory, or install the plugin through the WordPress plugins screen directly. 32 34 2. Activate the plugin through the 'Plugins' screen in WordPress 33 35
Note: See TracChangeset
for help on using the changeset viewer.