Plugin Directory

Changeset 1885933


Ignore:
Timestamp:
06/02/2018 01:50:32 PM (8 years ago)
Author:
yutonet
Message:

Version 1.1.1

Location:
advanced-footnotes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-footnotes/trunk/advanced-footnotes.php

    r1885926 r1885933  
    33        Plugin Name: Advanced Footnotes
    44        Description: Simple yet powerful footnotes integration on your WordPress site or theme itself.
    5         Version: 1.1.0
     5        Version: 1.1.1
    66        Author: Yunus Tabakoğlu
    77        Author URI: http://yunustabakoglu.com/
     
    6666            ), $atts );
    6767
     68            if($a['title'] === 'false' || $a['title'] === ''){
     69                $a['title'] = false;
     70            }
     71
    6872            return self::print_refs(false, $a['title']);
    6973        }
  • advanced-footnotes/trunk/assets/js/tinymce.advanced-footnotes.js

    r1885926 r1885933  
    1515            ed.addCommand("footnote_command", function() {
    1616                var selected_text = ed.selection.getContent();
    17                 if(selected_text == false || selected_text == ""){
     17                if(!selected_text){ selected_text = ''; }
    1818                    ed.windowManager.open({
    1919                        title: 'Insert Footnote',
     
    2323                                name: 'content',
    2424                                label: 'Footnote',
    25                                 value: "",
     25                                value: selected_text,
    2626                                multiline: true,
    2727                                minWidth: 300,
     
    4242                        }
    4343                    });
    44                 }
    45                 else{
    46                     var return_text = "[footnote type=\"numeric\"]" + selected_text + "[/footnote]";
    47                     ed.execCommand("mceInsertContent", false, return_text);
    48                 }
    4944            });
    5045
  • advanced-footnotes/trunk/readme.txt

    r1885926 r1885933  
    4444`[footnotes title="My Custom Footnotes Title"]
    4545// or
    46 [footnotes title="False"]`
     46[footnotes title="false"]`
    4747
    4848*Listing by Theme Inclusion:*
     
    8181
    8282*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>`
    8484
    8585*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>`
    8787
    8888** References: **
     
    9494
    9595    <!-- Title -->
    96     <h3 class="afn-footnotes-title">[Title]</h3>
     96    <h3 class="afn-footnotes-title">{Title}</h3>
    9797
    9898    <!-- List of references -->
     
    101101        <!-- Reference item - non-numeric -->
    102102        <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>
    104104        </li>
    105105
    106106        <!-- Reference item - numeric -->
    107107        <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>
    109109        </li>
    110110
     
    117117* 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).
    118118
     119= Contribution =
     120
     121<https://github.com/yutonet/wp_advanced_footnotes>
     122
    119123== Installation ==
    120124Install and activate Advanced Footnotes like any other plugin.
     
    126130Yes you can. You can either get the footnotes as an object array, or simply print it with the Advanced Footnotes\' functions.
    127131
    128 = Can I use it without editing my theme files? =
     132= Can I use Advanced Footnotes without editing my theme files? =
    129133
    130134Yes, 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>
    134135
    135136== Changelog ==
    136137
    137138= 1.1 =
     139
     140* **1.1.1**
     141    * Empty title display bug fixed.
     142    * WYSIWYG dialog enabled on selected text.
    138143
    139144* **1.1.0**
Note: See TracChangeset for help on using the changeset viewer.