Changeset 1885933
- Timestamp:
- 06/02/2018 01:50:32 PM (8 years ago)
- Location:
- advanced-footnotes/trunk
- Files:
-
- 3 edited
-
advanced-footnotes.php (modified) (2 diffs)
-
assets/js/tinymce.advanced-footnotes.js (modified) (3 diffs)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-footnotes/trunk/advanced-footnotes.php
r1885926 r1885933 3 3 Plugin Name: Advanced Footnotes 4 4 Description: Simple yet powerful footnotes integration on your WordPress site or theme itself. 5 Version: 1.1. 05 Version: 1.1.1 6 6 Author: Yunus Tabakoğlu 7 7 Author URI: http://yunustabakoglu.com/ … … 66 66 ), $atts ); 67 67 68 if($a['title'] === 'false' || $a['title'] === ''){ 69 $a['title'] = false; 70 } 71 68 72 return self::print_refs(false, $a['title']); 69 73 } -
advanced-footnotes/trunk/assets/js/tinymce.advanced-footnotes.js
r1885926 r1885933 15 15 ed.addCommand("footnote_command", function() { 16 16 var selected_text = ed.selection.getContent(); 17 if( selected_text == false || selected_text == ""){17 if(!selected_text){ selected_text = ''; } 18 18 ed.windowManager.open({ 19 19 title: 'Insert Footnote', … … 23 23 name: 'content', 24 24 label: 'Footnote', 25 value: "",25 value: selected_text, 26 26 multiline: true, 27 27 minWidth: 300, … … 42 42 } 43 43 }); 44 }45 else{46 var return_text = "[footnote type=\"numeric\"]" + selected_text + "[/footnote]";47 ed.execCommand("mceInsertContent", false, return_text);48 }49 44 }); 50 45 -
advanced-footnotes/trunk/readme.txt
r1885926 r1885933 44 44 `[footnotes title="My Custom Footnotes Title"] 45 45 // or 46 [footnotes title=" False"]`46 [footnotes title="false"]` 47 47 48 48 *Listing by Theme Inclusion:* … … 81 81 82 82 *Numeric Anchor:* 83 `<a id=" [unique id]" class="afn-footnotes-ref hook numeric" name="[unique id]" href="#[unique id of the reference]">[number - automatically incremented by the order]</a>`83 `<a id="{unique id}" class="afn-footnotes-ref hook numeric" name="{unique id}" href="#{unique id of the reference}">{number - automatically incremented by the order}</a>` 84 84 85 85 *Non-numeric Anchor:* 86 `<a id=" [unique id]" class="afn-footnotes-ref hook non-numeric" name="[unique id]" href="#[unique id of the reference]">[footnote symbol]</a>`86 `<a id="{unique id}" class="afn-footnotes-ref hook non-numeric" name="{unique id}" href="#{unique id of the reference}">footnote symbol</a>` 87 87 88 88 ** References: ** … … 94 94 95 95 <!-- Title --> 96 <h3 class="afn-footnotes-title"> [Title]</h3>96 <h3 class="afn-footnotes-title">{Title}</h3> 97 97 98 98 <!-- List of references --> … … 101 101 <!-- Reference item - non-numeric --> 102 102 <li class="footnote-item afn-textarea"> 103 <a id=" [unique id]" class="afn-footnotes-ref reference non-numeric" name="[unique id]" href="#[unique id of the anchor]">[footnote symbol]</a>103 <a id="{unique id}" class="afn-footnotes-ref reference non-numeric" name="{unique id}" href="#{unique id of the anchor}">{footnote symbol}</a> 104 104 </li> 105 105 106 106 <!-- Reference item - numeric --> 107 107 <li class="footnote-item afn-textarea"> 108 <a id=" [unique id]" class="afn-footnotes-ref reference numeric" name="[unique id]" href="#[unique id of the anchor]">[number - automatically incremented by the order]</a>108 <a id="{unique id}" class="afn-footnotes-ref reference numeric" name="{unique id}" href="#{unique id of the anchor}">{number - automatically incremented by the order}</a> 109 109 </li> 110 110 … … 117 117 * WYSIWYG Button doesn't work on the plugin [TinyMCE Advanced](https://wordpress.org/plugins/tinymce-advanced/) (and probably on some other -WYSIWYG editor modifying- plugins). 118 118 119 = Contribution = 120 121 <https://github.com/yutonet/wp_advanced_footnotes> 122 119 123 == Installation == 120 124 Install and activate Advanced Footnotes like any other plugin. … … 126 130 Yes you can. You can either get the footnotes as an object array, or simply print it with the Advanced Footnotes\' functions. 127 131 128 = Can I use itwithout editing my theme files? =132 = Can I use Advanced Footnotes without editing my theme files? = 129 133 130 134 Yes, you can simply use *[footnote]your note here[/footnote]* shortcode for each footnote you want to place, and [footnotes] shortcode to use put the footnotes wherever you want them to be. 131 132 = Contribution =133 <https://github.com/yutonet/wp_advanced_footnotes>134 135 135 136 == Changelog == 136 137 137 138 = 1.1 = 139 140 * **1.1.1** 141 * Empty title display bug fixed. 142 * WYSIWYG dialog enabled on selected text. 138 143 139 144 * **1.1.0**
Note: See TracChangeset
for help on using the changeset viewer.