Plugin Directory

Changeset 1711963


Ignore:
Timestamp:
08/11/2017 08:11:26 AM (9 years ago)
Author:
maurobringolf
Message:

Import GitHub v0.2.0beta-2 release

Location:
mnml-footnotes/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • mnml-footnotes/trunk/lib/class-mnml-version-check.php

    r1675496 r1711963  
    107107
    108108            <div class="error">
    109                 <p><?php printf( '%s requires at least PHP version %s. Please consider upgrading.', esc_html( $this->name ), esc_html( $this->wp ) ) ?></p>
     109                <p><?php printf( '%s requires at least PHP version %s. Please consider upgrading.', esc_html( $this->name ), esc_html( $this->wp ) ); ?></p>
    110110            </div>
    111111
     
    123123
    124124            <div class="error">
    125                 <p><?php printf( '%s requires at least WordPress version %s. Please consider upgrading.', esc_html( $this->name ), esc_html( $this->wp ) ) ?></p>
     125                <p><?php printf( '%s requires at least WordPress version %s. Please consider upgrading.', esc_html( $this->name ), esc_html( $this->wp ) ); ?></p>
    126126            </div>
    127127
  • mnml-footnotes/trunk/mnml-footnotes.php

    r1675496 r1711963  
    33 * Plugin Name: MNML Footnotes
    44 * Description: Auto-listed footnotes for posts.
    5  * Version:     0.1.2
     5 * Version:     0.2.0
    66 * Author:      Mauro Bringolf
    77 * Author URI:  https://maurobringolf.ch
  • mnml-footnotes/trunk/readme.txt

    r1675496 r1711963  
    44Requires at least: 3.0
    55Tested up to: 4.8
    6 Stable tag: 0.1.2
     6Stable tag: 0.2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515content, reusing all existing styles of your site. All references become anchor links guiding the user to the footnote section of the post.
    1616
    17 We would love to hear and discuss your feedback in a [review](https://wordpress.org/support/plugin/mnml-footnotes/reviews/). If you want to report a bug or have a feature request, please do so via the [GitHub repository](https://github.com/maurobringolf/mnml-footnotes).
     17We would love to hear and discuss your feedback in a [review](https://wordpress.org/support/plugin/mnml-footnotes/reviews/). If you want to report a bug or have a
     18feature request, please do so via the [GitHub repository](https://github.com/maurobringolf/mnml-footnotes).
    1819
    1920== Usage ==
     
    4041== Changelog ==
    4142
     43= v0.2.0 =
     44
     45* Added a filter called `mnml_footnote_text` that enables customizing the footnote output the via PHP. See [the developer section on GitHub](https://github.com/maurobringolf/mnml-footnotes/#developers)
     46for an example.
     47
    4248= v0.1.2 =
    4349* A sketch of another shortcode was removed in favor of simplicity for now. Nothing changes though, the shortcode for
  • mnml-footnotes/trunk/src/class-main.php

    r1675496 r1711963  
    6363
    6464        $this->prefix = 'mnml-footnotes';
    65         $this->version = '0.1.2';
     65        $this->version = '0.2.0';
    6666        $this->file = $file;
    6767        $this->settings = new Settings();
  • mnml-footnotes/trunk/src/class-settings.php

    r1675304 r1711963  
    1818     * @var Array
    1919     */
    20     private $title_tag_options;
     20    public $title_tag_options;
    2121
    2222    /**
     
    9393
    9494        <select name=<?php echo esc_attr( "mbch_mnml_footnotes[$field]" ); ?> >
    95             <?php array_map(
     95            <?php
     96            array_map(
    9697                function( $value, $selected ) {
    9798                    ?>
     
    101102                $this->title_tag_options,
    102103                array_pad( array(), count( $this->title_tag_options ), $value )
    103             ); ?>
     104            );
     105            ?>
    104106        </select>
    105107
  • mnml-footnotes/trunk/src/class-shortcodes.php

    r1675304 r1711963  
    106106                    $text = $is_url ? $that->create_footnote_anchor_tag( $note ) : $note;
    107107
    108                     $html .= "<li>$text</li>";
     108                    $filtered_text = apply_filters( 'mnml_footnote_text', $text );
     109
     110                    $html .= "<li>$filtered_text</li>";
    109111                }, $footnotes);
    110112
Note: See TracChangeset for help on using the changeset viewer.