Changeset 1885948
- Timestamp:
- 06/02/2018 02:07:40 PM (8 years ago)
- Location:
- advanced-footnotes/trunk
- Files:
-
- 2 edited
-
advanced-footnotes.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-footnotes/trunk/advanced-footnotes.php
r1885933 r1885948 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. 15 Version: 1.1.2 6 6 Author: Yunus Tabakoğlu 7 7 Author URI: http://yunustabakoglu.com/ -
advanced-footnotes/trunk/readme.txt
r1885933 r1885948 13 13 With its internal functions, you can also implement Advanced Footnotes on your own theme in any form you like. 14 14 15 = Main Features: = 15 # Main Features: 16 16 * Easy & flexible implementation. 17 17 * Implemented WYSIWYG editor button. … … 22 22 * Dynamically changeable interface options (JS can be fully disabled) 23 23 24 = Usage = 24 # Usage 25 25 26 **Inserting a Footnote:** 26 ## Inserting a Footnote: 27 27 In order to insert a footnote, you can either use the "Insert Footnote" button added on your WYSIWYG editor, or use the [footnote]your-footnote-here[/footnote] shortcode. 28 28 29 Shortcode Parameters:29 ### Shortcode Parameters: 30 30 *"type":* Determines the type of the reference. **Options:** *numeric* / *non-numeric*. 31 31 32 **Listing Footnotes:** 32 ## Listing Footnotes: 33 33 You can display the footnotes in two methods: 34 34 35 *Listing by Shortcode:* 35 ### Listing by Shortcode: 36 36 By simply inserting the *[footnotes]* shortcode in your post content, you can display footnotes wherever you want in your posts. 37 37 38 Shortcode Parameters:38 #### Shortcode Parameters: 39 39 40 40 *"title":* Determines the title for the footnotes list. Default value can be set through plugin settings. 41 41 42 Shortcode Usage:42 #### Shortcode Usage: 43 43 44 `[footnotes title="My Custom Footnotes Title"]45 // or46 [footnotes title="false"]` 44 [footnotes title="My Custom Footnotes Title"] 45 // or 46 [footnotes title="false"] 47 47 48 *Listing by Theme Inclusion:* 48 ### Listing by Theme Inclusion: 49 49 50 You can print the footnotes by calling print_refsfunction from the advanced_footnotes class.50 You can print the footnotes by calling *print_refs* function from the advanced_footnotes class. 51 51 52 Simple Function Usage:52 #### Simple Function Usage: 53 53 54 `call_user_func(array('advanced_footnotes', 'print_refs'));` 54 call_user_func(array('advanced_footnotes', 'print_refs')); 55 55 56 Additional Parameters:56 #### Additional Parameters: 57 57 58 58 * First parameter: "Print", whether print or return the footnotes content. (Default: "true") 59 59 * Second parameter: "Title", determines the title for the footnotes content. (Default: "false") 60 60 61 Function Usage with Parameters:61 #### Function Usage with Parameters: 62 62 63 `$footnotes = call_user_func_array(array('advanced_footnotes', 'print_refs'), array(false, 'Custom Footnotes Title'));` 63 $footnotes = call_user_func_array(array('advanced_footnotes', 'print_refs'), array(false, 'Custom Footnotes Title')); 64 64 65 = Plugin Options: = 65 ## Plugin Options: 66 66 67 67 You can access the plugin options through "Options/Advanced Footnotes". … … 76 76 * **Footnote Scroll Speed:** Sets the animation speed when a footnote is clicked. Set 0 for no animation. 77 77 78 = HTML Structure & Classes = 78 ## HTML Structure & Classes 79 79 80 ** Anchors: ** 80 ### Anchors: 81 81 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>` 82 #### Numeric Anchor: 83 84 <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 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 #### Non-numeric Anchor: 87 88 <a id="{unique id}" class="afn-footnotes-ref hook non-numeric" name="{unique id}" href="#{unique id of the reference}">footnote symbol</a> 87 89 88 ** References: ** 90 ### References: 89 91 90 92 Non-numbered references are listed before the numbered references on the list. 91 93 92 `<!-- Main Container -->93 <div class="afn-footnotes">94 <!-- Main Container --> 95 <div class="afn-footnotes"> 94 96 95 <!-- Title -->96 <h3 class="afn-footnotes-title">{Title}</h3>97 <!-- Title --> 98 <h3 class="afn-footnotes-title">{Title}</h3> 97 99 98 <!-- List of references -->99 <ul class="afn-footnotes-list">100 <!-- List of references --> 101 <ul class="afn-footnotes-list"> 100 102 101 <!-- Reference item - non-numeric -->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>104 </li>103 <!-- Reference item - non-numeric --> 104 <li class="footnote-item afn-textarea"> 105 <a id="{unique id}" class="afn-footnotes-ref reference non-numeric" name="{unique id}" href="#{unique id of the anchor}">{footnote symbol}</a> 106 </li> 105 107 106 <!-- Reference item - numeric -->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>109 </li>108 <!-- Reference item - numeric --> 109 <li class="footnote-item afn-textarea"> 110 <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> 111 </li> 110 112 111 </ul>113 </ul> 112 114 113 </div>` 115 </div> 114 116 115 = Known Issues = 117 # Known Issues 116 118 117 119 * 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 120 119 = Contribution = 121 # Contribution 120 122 121 123 <https://github.com/yutonet/wp_advanced_footnotes> … … 137 139 138 140 = 1.1 = 141 142 * **1.1.2** 143 * Fixes on the readme file. 139 144 140 145 * **1.1.1**
Note: See TracChangeset
for help on using the changeset viewer.