Plugin Directory

Changeset 770431


Ignore:
Timestamp:
09/11/2013 09:49:41 PM (12 years ago)
Author:
setzer
Message:

1.3 to trunk

Location:
side-matter/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • side-matter/trunk/css/side-matter-admin.css

    r761882 r770431  
    11/*
    22side-matter-admin.css
    3 Version 1.2
     3Version 1.3
    44
    55Plugin: Side Matter
  • side-matter/trunk/css/side-matter.css

    r761882 r770431  
    11/*
    22side-matter.css
    3 Version 1.2
     3Version 1.3
    44
    55Plugin: Side Matter
  • side-matter/trunk/js/side-matter-admin.js

    r761882 r770431  
    11/*
    22side-matter-admin.js
    3 Version 1.2
     3Version 1.3
    44
    55Plugin: Side Matter
  • side-matter/trunk/js/side-matter.js

    r761882 r770431  
    11/*
    22side-matter.js
    3 Version 1.2
     3Version 1.3
    44
    55Plugin: Side Matter
     
    2525        var refPosition = $(ref).position().top; // Position of reference anchor
    2626        var notePosition = $(note).position().top; // Position of sidenote
    27         var noteOffset = refPosition - notePosition - noteAdjust; // Get current offset between reference to note, minus noteAdjust
     27        var noteOffset = refPosition - notePosition - noteAdjust; // Get current offset between reference and note, minus noteAdjust
    2828        var finalOffset = (noteOffset < 0) ? 0 : noteOffset; // If offset is negative, set to 0 (prevents layout problems)
    2929        $(note).css('marginTop', finalOffset); // Position note
  • side-matter/trunk/readme.txt

    r762112 r770431  
    1414Side Matter turns footnotes into sidenotes, magically aligning each note in the sidebar next to its corresponding reference in the text. Easily add citations, digressions, or editorial remarks to pages and posts with a simple shortcode and widget. Scholars, editors, and writers of all kinds will find the plugin of particular use.
    1515
    16 Sidenotes have been used in printed texts for centuries, and are equally well suited to the Web. Unlike hyperlinked footnotes or endnotes, sidenotes do not require a jump down the page to pursue each reference; instead, they perch humbly and accessibly beside the lines to which they refer.
     16Sidenotes have been used in printed texts for centuries, and are equally at home on the Web. Unlike hyperlinked footnotes, sidenotes do not require a jump down the page to look up each reference; instead, they perch humbly and accessibly beside the material to which they refer.
    1717
    1818Side Matter includes an options menu as well as a set of built-in classes for [styling with CSS](http://wordpress.org/extend/plugins/side-matter/other_notes/). To use, place the Side Matter widget in your sidebar, then enclose sidenote text in a page or post using the `[ref]` shortcode, like so:
     
    2222== Installation ==
    2323
    24 1. Upload the directory `side-matter` to `wp-content/plugins`.
     241. Upload the directory `side-matter` to `/wp-content/plugins`.
    25252. Activate Side Matter using the Plugins screen.
    26263. Place the Side Matter widget in your sidebar using the Widgets screen.
     
    2929To change the plugin's default settings, use the Side Matter options menu on your Reading Settings screen.
    3030
    31 For information on specifying the appearance of Side Matter elements using custom CSS, consult [Other Notes](http://wordpress.org/extend/plugins/side-matter/other_notes/).
     31For information on changing the appearance of Side Matter elements using CSS, see [Other Notes](http://wordpress.org/extend/plugins/side-matter/other_notes/).
    3232
    3333== Frequently Asked Questions ==
     
    3939= My notes don't appear. =
    4040
    41 Some themes are one-column by design and do not include a sidebar. Without a sidebar, Side Matter has no place to generate your notes. Make sure that your theme includes a sidebar and that you've placed the Side Matter widget within this sidebar.
     41Some themes are one-column by design and do not include a sidebar. Without a sidebar, Side Matter has no place to generate your notes. Make sure that your theme includes a sidebar and that you've placed the Side Matter widget within that sidebar.
    4242
    4343= My notes just sit at the top of the sidebar. =
    4444
    45 This most commonly occurs when your theme has not loaded `side-matter/js/side-matter.js`, the script that aligns sidenotes. Check the page source to make sure that `side-matter.js` has been linked. (If you're developing a custom theme, your templates must include calls to [`wp_head`](http://codex.wordpress.org/Function_Reference/wp_head) and [`wp_footer`](http://codex.wordpress.org/Function_Reference/wp_footer) to load plugin assets.)
    46 
    47 = My notes appear at a vertical offset from their proper position. =
    48 
    49 Some themes idiosyncratically display notes at an offset from their corresponding references in the text. As a workaround for this problem, Side Matter's options menu includes a field for arbitrarily adjusting your notes' vertical offset.
    50 
    51 = Some numeral figures don't display properly in my browser. =
    52 
    53 Browser support for the CSS `armenian`, `georgian`, `lower-greek`, `hebrew`, `hiragana`, and `katakana` list styles is not universal. (See the [`list-style-type` documentation on Web Platform Docs](http://docs.webplatform.org/wiki/css/properties/list-style-type#Compatibility_notes) for more information.) Use Decimal, Latin, or Roman figures if this becomes a problem.
     45This most commonly occurs for one of the following reasons:
     46* Your theme has not loaded `side-matter.js`, the script that aligns sidenotes. Theme templates must include calls to [`wp_head`](http://codex.wordpress.org/Function_Reference/wp_head) and [`wp_footer`](http://codex.wordpress.org/Function_Reference/wp_footer) to load Side Matter assets.
     47* A caching or minification plugin is in conflict with Side Matter. This can usually be resolved by adding `/wp-content/side-matter/js/side-matter.js` to the caching plugin's exclusion list.
     48* There's a conflict with your theme. Most often, the culprit is some idiosyncratic bit of theme CSS or JS. (For example, [Twenty Eleven](http://wordpress.org/themes/twentyeleven) can be made to work with Side Matter using [a few lines of CSS](http://wordpress.org/support/topic/sidenotes-not-aligning).)
    5449
    5550= Why doesn't the plugin work with my theme? =
    5651
    57 Not all layouts are built to incorporate a component like Side Matter. The plugin works well with most base themes that include a conventional sidebar, but it isn't guaranteed to display notes perfectly on all sites. A little tinkering with note offset or CSS will fix most problems; in other cases, it's best to consult your theme's developer.
     52Not all themes are built to incorporate a component like Side Matter. The plugin works well with most base themes that include a conventional sidebar, but it isn't guaranteed to display notes perfectly under all themes. A little tinkering with note offset or CSS will fix most problems; in other cases, it's best to consult your theme's developer.
     53
     54= My notes appear at a vertical offset. =
     55
     56Some themes mysteriously display sidenotes at an offset from their corresponding references in the text. As a workaround for this problem, Side Matter's options menu includes a field for arbitrarily adjusting your notes' vertical offset.
     57
     58= Some list numerals don't display properly in all browsers. =
     59
     60Browser support for some values of the CSS `list-style-type` property is mixed. (See [`list-style-type` documentation on Web Platform Docs](http://docs.webplatform.org/wiki/css/properties/list-style-type#Compatibility_notes) for details.) Use Decimal, Latin, or Roman figures if this becomes a problem.
    5861
    5962= Does Side Matter work with responsive layouts? =
    6063
    61 Side Matter includes an option, turned off by default, to responsively re-position sidenotes upon browser resize or zoom. Enable this function using the Responsive Positioning control in Side Matter's options menu.
     64Side Matter includes an option, turned off by default, to responsively re-position sidenotes upon viewport resize or zoom. You can enable this function using the Responsive Positioning control in Side Matter's options menu.
    6265
    6366= Can sidenotes be displayed without using the widget? =
     
    6669
    6770    <?php
    68     do_action( 'side_matter_list_notes' );
     71        do_action( 'side_matter_list_notes' );
    6972    ?>
    7073
     
    73761. Side Matter extracts note text with a shortcode, then magically places each note in the sidebar beside its corresponding reference in the text.
    7477
    75 2. Modify default settings using Side Matter's options menu on the Reading Settings screen.
     782. Change default settings using Side Matter's options menu on the Reading Settings screen.
    7679
    7780== Changelog ==
     81
     82= 1.3 =
     83* A title heading may now be added to the Side Matter widget using the Widgets admin screen.
     84* Plugin no longer generates an empty `ol` element on pages without notes.
     85* Widget container markup now follows WordPress convention. This breaks the old `div.side-matter-widget` CSS class selector; use `.widget_side_matter` instead.
    7886
    7987= 1.2 =
     
    133141* Initial release.
    134142
     143== Upgrade Notice ==
     144
     145= 1.3 =
     146Version 1.3 includes the option to add a title heading to the Side Matter widget, along with some fixes. This update will break CSS that uses the `div.side-matter-widget` class selector; use `.widget_side_matter` instead.
     147
    135148== Styling Side Matter with CSS ==
    136149
     
    166179Here is a complete list of Side Matter element class selectors and their uses:
    167180
    168 * `a.side-matter-ref` selects the link tags that enclose in-text reference numerals. Use this class to modify the links' colors, underline, etc.
    169 * `sup.side-matter-sup` selects the `sup` (superscript) tags that enclose in-text reference numerals. Use this class to modify the numerals' typographic properties, such as size, offset, and font.
    170 * `div.side-matter-widget` selects the `div` element that encloses the Side Matter widget.
    171 * `ol.side-matter-list` selects the `ol` (ordered list) element that encloses notes in the sidebar, including note numeral figures.
    172 * `li.side-matter-note` selects individual sidenote `li` (list item) elements.
    173 * `div.side-matter-text` selects the `div` elements that enclose sidenote text, but not sidenote list numerals. Use this to style sidenote text separately from sidenote numerals.
    174 
    175 Note that while WordPress further wraps each note paragraph in a tag of its own, these `p` elements cannot be selected directly using the `side-matter` class. Instead, select them indirectly: `div.side-matter-text > p`.
     181* `a.side-matter-ref` selects the link elements that enclose in-text reference numerals. Use this class to modify the links' colors, underline, etc.
     182* `sup.side-matter-sup` selects the `sup` (superscript) elements that enclose in-text reference numerals. Use this class to modify the numerals' typographic properties, such as size, offset, and font.
     183* `.widget_side_matter` (note the underscores) selects the widget container element, which may be an `aside` or a `div`.
     184* `ol.side-matter-list` selects the `ol` (ordered list) element that encloses notes in the sidebar, including all list numerals.
     185* `li.side-matter-note` selects sidenote `li` (list item) elements, including each note's numeral.
     186* `div.side-matter-text` selects the `div` elements that enclose sidenote text, but not sidenote list numerals. Use this to style sidenote text separately from numerals.
     187
     188WordPress further wraps each note paragraph in a tag of its own, but these `p` elements cannot be selected directly using the `side-matter` class. Instead, select them indirectly, e.g. `div.side-matter-text > p`.
    176189
    177190= Default CSS =
    178 Side Matter sets a few basic rules by default in the included stylesheet `side-matter/css/side-matter.css`. These rules will generally defer to your theme or custom stylesheets.
     191Side Matter sets a few basic rules by default in the included stylesheet `side-matter.css`. These rules will generally defer to your theme or custom stylesheets.
    179192
    180193The first rule removes underlines from reference numeral links:
     
    187200    }
    188201
    189 The second rule specifies a consistent cross-theme appearance for superscript figures:
     202The second rule specifies a consistent cross-browser, cross-theme appearance for superscript figures:
    190203   
    191204    sup.side-matter-sup {
  • side-matter/trunk/side-matter.php

    r761882 r770431  
    44Plugin URI: http://wordpress.org/extend/plugins/side-matter/
    55Description: Turns footnotes into sidenotes, magically positioning each note in the sidebar next to its corresponding reference in the text.
    6 Version: 1.2
     6Version: 1.3
    77Author: Christopher Setzer
    88Author URI: http://christophersetzer.com
     
    7373            );
    7474        $this->options = wp_parse_args( get_option( 'side_matter_options' ), $this->defaults ); // Get options from database and apply defaults in place of any that are not set
    75         $this->version = '1.2'; // Current version of plugin
     75        $this->version = '1.3'; // Current version of plugin
    7676
    7777    }
     
    114114                    'georgian' => __( 'Georgian: ა, ბ, გ, დ, ე, ვ, …', 'side-matter' ),
    115115                    'lower-greek' => __( 'Greek: α, β, γ, δ, ε, ζ, …', 'side-matter' ),
    116                     'hebrew' => _x( 'Hebrew: ו ,ה ,ד ,ג ,ב ,א, …', 'Comma placement is due to RTL text reversal', 'side-matter' ), // Comma placement is due to RTL text reversal
     116                    'hebrew' => _x( 'Hebrew: ו ,ה ,ד ,ג ,ב ,א, …', 'Note RTL text reversal of Hebrew characters', 'side-matter' ), // Comma placement is due to RTL text reversal of Hebrew characters
    117117                    'hiragana' => __( 'Hiragana: あ, い, う, え, お, か, …', 'side-matter' ),
    118118                    'hiragana-iroha' => __( 'Hiragana (Iroha): い, ろ, は, に, ほ, へ, …' ),
     
    185185                    <div class='side-matter-preview-content'>
    186186                        <div class='side-matter-preview-main'>
    187                             Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor tincidunt ut labore et dolore nostrud.<sup class='side-matter-preview-ref'><?php echo $side_matter->get_figure( 1, $figure_style ) ?></sup> Ut enim ad minim veniam, quis ullamco laboris nisi ut aliquip ex ea consequat. Cras ante lacus, libero et commodo sit magna aliqua.
     187                            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor tincidunt ut labore et dolore nostrud.<sup class='side-matter-preview-ref'><?php echo $side_matter->get_figure( 1, $figure_style ); ?></sup> Ut enim ad minim veniam, quis ullamco laboris nisi ut aliquip ex ea consequat. Cras ante lacus, libero et commodo sit magna aliqua.
    188188                        </div>
    189189                        <div class='side-matter-preview-side'>
    190190                            <ol class='side-matter-preview-list'>
    191                                 <li class='side-matter-preview-note' style='list-style-type: <?php echo $figure_style ?>;'>
     191                                <li class='side-matter-preview-note' style='list-style-type: <?php echo $figure_style; ?>;'>
    192192                                    <div class='side-matter-preview-text'>
    193193                                        Velit esse cillum dolore eu fugiat nulla pariatur.
     
    203203                ?>
    204204                <fieldset>
    205                     <label><input id='side-matter-colors-enabled' class='side-matter-colors-enabled' type='checkbox' name='side_matter_options[<?php echo $id ?>][colors_enabled]' value='1' <?php checked( 1, $state['colors_enabled'] ) ?> /> <?php echo $label ?></label>
     205                    <label><input id='side-matter-colors-enabled' class='side-matter-colors-enabled' type='checkbox' name='side_matter_options[<?php echo $id; ?>][colors_enabled]' value='1' <?php checked( 1, $state['colors_enabled'] ); ?> /> <?php echo $label; ?></label>
    206206                    <ul class='side-matter-user-colors'>
    207207                    <?php
     
    209209                        ?>
    210210                        <li>
    211                             <label><?php echo $color_label ?>:<br>
    212                             <input class='color-input side-matter-<?php echo str_replace( '_', '-', $color ) ?>' type='text' name='side_matter_options[<?php echo $id ?>][colors][<?php echo $color ?>]' maxlength='7' data-default-color='<?php echo $this->defaults['user_colors']['colors'][ $color ] ?>' value='<?php echo $state['colors'][ $color ] ?>' /></label>
     211                            <label><?php echo $color_label; ?>:<br>
     212                            <input class='color-input side-matter-<?php echo str_replace( '_', '-', $color ); ?>' type='text' name='side_matter_options[<?php echo $id; ?>][colors][<?php echo $color; ?>]' maxlength='7' data-default-color='<?php echo $this->defaults['user_colors']['colors'][ $color ]; ?>' value='<?php echo $state['colors'][ $color ]; ?>' /></label>
    213213                        </li>
    214214                        <?php
     
    221221            case 'figure_style':
    222222                ?>
    223                 <select id='<?php echo $label_for ?>' class='<?php echo $label_for ?>' name='side_matter_options[<?php echo $id ?>]'>
     223                <select id='<?php echo $label_for; ?>' class='<?php echo $label_for; ?>' name='side_matter_options[<?php echo $id; ?>]'>
    224224                <?php
    225225                foreach ( $styles as $style => $style_title ) {
    226226                    ?>
    227                     <option value='<?php echo $style ?>' <?php selected( $style, $state ) ?>><?php echo $style_title ?></option>
     227                    <option value='<?php echo $style; ?>' <?php selected( $style, $state ); ?>><?php echo $style_title; ?></option>
    228228                    <?php
    229229                }
     
    234234            case 'note_adjust':
    235235                ?>
    236                 <label><input id='<?php echo $label_for ?>' class='<?php echo $label_for ?>' type='number' name='side_matter_options[<?php echo $id ?>]' value='<?php echo $state ?>' step='1' max='<?php echo $max ?>' min='<?php echo $min ?>' class='small-text' /> <?php echo $label ?></label>
     236                <label><input id='<?php echo $label_for; ?>' class='<?php echo $label_for; ?>' type='number' name='side_matter_options[<?php echo $id; ?>]' value='<?php echo $state; ?>' step='1' max='<?php echo $max; ?>' min='<?php echo $min; ?>' class='small-text' /> <?php echo $label; ?></label>
    237237                <p class='description'>
    238                     <?php echo $description ?>
     238                    <?php echo $description; ?>
    239239                </p>
    240240                <?php
     
    243243            case 'use_effects':
    244244                ?>
    245                 <label><input id='<?php echo $label_for ?>' class='<?php echo $label_for ?>' type='checkbox' name='side_matter_options[<?php echo $id ?>]' value='1' <?php checked( 1, $state ) ?> /> <?php echo $label ?></label>
     245                <label><input id='<?php echo $label_for; ?>' class='<?php echo $label_for; ?>' type='checkbox' name='side_matter_options[<?php echo $id; ?>]' value='1' <?php checked( 1, $state ); ?> /> <?php echo $label; ?></label>
    246246                <?php
    247247                break;
     
    249249                foreach ( $pages as $page => $page_label ) {
    250250                    ?>
    251                     <label><input class='side-matter-pages-active-<?php echo str_replace( '_', '-', $page ) ?>' type='checkbox' name='side_matter_options[<?php echo $id ?>][<?php echo $page ?>]' value='1' <?php checked( 1, $state[ $page ] ) ?>/> <?php echo $page_label ?></label><br>
     251                    <label><input class='side-matter-pages-active-<?php echo str_replace( '_', '-', $page ); ?>' type='checkbox' name='side_matter_options[<?php echo $id; ?>][<?php echo $page; ?>]' value='1' <?php checked( 1, $state[ $page ] ); ?>/> <?php echo $page_label; ?></label><br>
    252252                    <?php
    253253                }
     
    354354    public $figures = array();
    355355
    356     public function __construct() { // Register custom action 'side_matter_list_notes' for use in widget or elsewhere
     356    public function __construct() {
    357357        global $side_matter_admin;
    358         add_action( 'side_matter_list_notes', array( &$this, 'list_notes' ) );
     358        add_action( 'side_matter_list_notes', array( &$this, 'list_notes' ) ); // Register custom action 'side_matter_list_notes' for use in widget or elsewhere
    359359        $this->options = $side_matter_admin->options;
    360360        $this->figures = array(
     
    373373
    374374    public function check_page() { // Check whether to display Side Matter elements on current page based on user settings
    375         extract( $this->options['pages_active'], EXTR_SKIP );
     375        extract( $this->options['pages_active'] );
    376376        $check_pages = array(
    377377            ( is_front_page() && $front ),
     
    480480        static $lists_count = 0; // Keep static count of Side Matter lists in case of multiple widget instances
    481481
    482         if ( ! $this->check_page() ) {
     482        if ( ! $this->check_page() || empty ( $this->notes ) ) {
    483483            return;
    484484        } else {
     
    498498
    499499            ?>
    500             <ol class='<?php echo $html_class ?> <?php echo $html_class ?>-list' style='<?php echo $list_style_type ?><?php if ( $options['user_colors']['colors_enabled'] ) echo ' ' . $figure_color_style ?>'>
     500            <ol class='<?php echo $html_class; ?> <?php echo $html_class; ?>-list' style='<?php echo $list_style_type; ?><?php if ( $options['user_colors']['colors_enabled'] ) echo ' ' . $figure_color_style; ?>'>
    501501            <?php
    502502            foreach ( $this->notes as $note_id => $note_text ) {
    503503                $note_text = wpautop( $note_text ); // Re-enclose notes in paragraph tags to fix tags broken by shortcode
    504504                ?>
    505                 <li id='note-<?php echo $note_id . $append_list ?>' class='<?php echo $html_class ?> <?php echo $html_class ?>-note'>
    506                     <div class='<?php echo $html_class ?> <?php echo $html_class ?>-text'<?php if ( $options['user_colors']['colors_enabled'] ) echo " style='{$text_color_style}'" ?>>
    507                         <?php echo $note_text ?>
     505                <li id='note-<?php echo $note_id . $append_list; ?>' class='<?php echo $html_class; ?> <?php echo $html_class; ?>-note'>
     506                    <div class='<?php echo $html_class; ?> <?php echo $html_class; ?>-text'<?php if ( $options['user_colors']['colors_enabled'] ) echo " style='{$text_color_style}'"; ?>>
     507                        <?php echo $note_text; ?>
    508508                    </div>
    509509                </li>
     
    523523
    524524    public function __construct() { // Register widget name and description
    525         parent::__construct( 'side-matter', __( 'Side Matter', 'side-matter' ), array( 'description' => __( 'Display Side Matter notes in an ordered list', 'side-matter' ) ) );
     525        parent::__construct( 'side-matter', __( 'Side Matter', 'side-matter' ), array( 'classname' => 'widget_side_matter side-matter', 'description' => __( 'Display Side Matter notes in an ordered list', 'side-matter' ) ) );
    526526    }
    527527
    528528    public function widget( $args, $instance ) { // Widget output
     529
     530        extract( $args );
     531        $title = apply_filters( 'widget_title', empty ( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
     532
    529533        global $side_matter;
    530         if ( ! $side_matter->check_page() ) {
     534        if ( ! $side_matter->check_page() || empty ( $side_matter->notes ) ) {
    531535            return;
    532536        } else {
    533537            global $side_matter_admin;
    534538            $class = $side_matter_admin->options['html_class'];
    535             ?>
    536             <div id='<?php echo $this->id ?>' class='widget <?php echo $class ?> <?php echo $class ?>-widget'><?php do_action( 'side_matter_list_notes' ) ?></div>
    537             <?php
    538         }
     539            echo $before_widget;
     540            echo $before_title . $title . $after_title;
     541            do_action( 'side_matter_list_notes' );
     542            echo $after_widget;
     543        }
     544
    539545    }
    540546
    541547    public function form( $instance ) { // Widget admin panel
     548
     549        $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
     550        $title = $instance['title'];
     551
     552        ?>
     553        <p><label for='<?php echo $this->get_field_id( 'title' ); ?>'><?php _e( 'Title:', 'side-matter' ); ?> <input class='widefat' id='<?php echo $this->get_field_id( 'title' ); ?>' name='<?php echo $this->get_field_name( 'title' ); ?>' type='text' value='<?php echo esc_attr( $title ); ?>' /></label></p>
     554        <?php
     555
    542556        $options_url = admin_url( 'options-reading.php' );
    543         printf( __( 'Modify default settings using the options menu on your %1$sReading Settings%2$s screen.', 'side-matter' ), "<a href='{$options_url}'>", '</a>' );
     557        printf( __( '%sModify default settings using the options menu on your %sReading Settings%s screen.%s', 'side-matter' ), '<p>', "<a href='{$options_url}'>", '</a>', '</p>' );
     558
    544559    }
    545560
  • side-matter/trunk/uninstall.php

    r761882 r770431  
    22/*
    33uninstall.php
    4 Version 1.2
     4Version 1.3
    55
    66Plugin: Side Matter
Note: See TracChangeset for help on using the changeset viewer.