Changeset 770431
- Timestamp:
- 09/11/2013 09:49:41 PM (12 years ago)
- Location:
- side-matter/trunk
- Files:
-
- 7 edited
-
css/side-matter-admin.css (modified) (1 diff)
-
css/side-matter.css (modified) (1 diff)
-
js/side-matter-admin.js (modified) (1 diff)
-
js/side-matter.js (modified) (2 diffs)
-
readme.txt (modified) (9 diffs)
-
side-matter.php (modified) (15 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
side-matter/trunk/css/side-matter-admin.css
r761882 r770431 1 1 /* 2 2 side-matter-admin.css 3 Version 1. 23 Version 1.3 4 4 5 5 Plugin: Side Matter -
side-matter/trunk/css/side-matter.css
r761882 r770431 1 1 /* 2 2 side-matter.css 3 Version 1. 23 Version 1.3 4 4 5 5 Plugin: Side Matter -
side-matter/trunk/js/side-matter-admin.js
r761882 r770431 1 1 /* 2 2 side-matter-admin.js 3 Version 1. 23 Version 1.3 4 4 5 5 Plugin: Side Matter -
side-matter/trunk/js/side-matter.js
r761882 r770431 1 1 /* 2 2 side-matter.js 3 Version 1. 23 Version 1.3 4 4 5 5 Plugin: Side Matter … … 25 25 var refPosition = $(ref).position().top; // Position of reference anchor 26 26 var notePosition = $(note).position().top; // Position of sidenote 27 var noteOffset = refPosition - notePosition - noteAdjust; // Get current offset between reference tonote, minus noteAdjust27 var noteOffset = refPosition - notePosition - noteAdjust; // Get current offset between reference and note, minus noteAdjust 28 28 var finalOffset = (noteOffset < 0) ? 0 : noteOffset; // If offset is negative, set to 0 (prevents layout problems) 29 29 $(note).css('marginTop', finalOffset); // Position note -
side-matter/trunk/readme.txt
r762112 r770431 14 14 Side 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. 15 15 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 linesto which they refer.16 Sidenotes 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. 17 17 18 18 Side 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: … … 22 22 == Installation == 23 23 24 1. Upload the directory `side-matter` to ` wp-content/plugins`.24 1. Upload the directory `side-matter` to `/wp-content/plugins`. 25 25 2. Activate Side Matter using the Plugins screen. 26 26 3. Place the Side Matter widget in your sidebar using the Widgets screen. … … 29 29 To change the plugin's default settings, use the Side Matter options menu on your Reading Settings screen. 30 30 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/).31 For information on changing the appearance of Side Matter elements using CSS, see [Other Notes](http://wordpress.org/extend/plugins/side-matter/other_notes/). 32 32 33 33 == Frequently Asked Questions == … … 39 39 = My notes don't appear. = 40 40 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 th issidebar.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 that sidebar. 42 42 43 43 = My notes just sit at the top of the sidebar. = 44 44 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. 45 This 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).) 54 49 55 50 = Why doesn't the plugin work with my theme? = 56 51 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. 52 Not 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 56 Some 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 60 Browser 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. 58 61 59 62 = Does Side Matter work with responsive layouts? = 60 63 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.64 Side 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. 62 65 63 66 = Can sidenotes be displayed without using the widget? = … … 66 69 67 70 <?php 68 do_action( 'side_matter_list_notes' );71 do_action( 'side_matter_list_notes' ); 69 72 ?> 70 73 … … 73 76 1. Side Matter extracts note text with a shortcode, then magically places each note in the sidebar beside its corresponding reference in the text. 74 77 75 2. Modifydefault settings using Side Matter's options menu on the Reading Settings screen.78 2. Change default settings using Side Matter's options menu on the Reading Settings screen. 76 79 77 80 == 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. 78 86 79 87 = 1.2 = … … 133 141 * Initial release. 134 142 143 == Upgrade Notice == 144 145 = 1.3 = 146 Version 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 135 148 == Styling Side Matter with CSS == 136 149 … … 166 179 Here is a complete list of Side Matter element class selectors and their uses: 167 180 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 sidenotenumerals.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 188 WordPress 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`. 176 189 177 190 = 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.191 Side 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. 179 192 180 193 The first rule removes underlines from reference numeral links: … … 187 200 } 188 201 189 The second rule specifies a consistent cross- theme appearance for superscript figures:202 The second rule specifies a consistent cross-browser, cross-theme appearance for superscript figures: 190 203 191 204 sup.side-matter-sup { -
side-matter/trunk/side-matter.php
r761882 r770431 4 4 Plugin URI: http://wordpress.org/extend/plugins/side-matter/ 5 5 Description: Turns footnotes into sidenotes, magically positioning each note in the sidebar next to its corresponding reference in the text. 6 Version: 1. 26 Version: 1.3 7 7 Author: Christopher Setzer 8 8 Author URI: http://christophersetzer.com … … 73 73 ); 74 74 $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 plugin75 $this->version = '1.3'; // Current version of plugin 76 76 77 77 } … … 114 114 'georgian' => __( 'Georgian: ა, ბ, გ, დ, ე, ვ, …', 'side-matter' ), 115 115 '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 reversal116 'hebrew' => _x( 'Hebrew: ו ,ה ,ד ,ג ,ב ,א, …', 'Note RTL text reversal of Hebrew characters', 'side-matter' ), // Comma placement is due to RTL text reversal of Hebrew characters 117 117 'hiragana' => __( 'Hiragana: あ, い, う, え, お, か, …', 'side-matter' ), 118 118 'hiragana-iroha' => __( 'Hiragana (Iroha): い, ろ, は, に, ほ, へ, …' ), … … 185 185 <div class='side-matter-preview-content'> 186 186 <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. 188 188 </div> 189 189 <div class='side-matter-preview-side'> 190 190 <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; ?>;'> 192 192 <div class='side-matter-preview-text'> 193 193 Velit esse cillum dolore eu fugiat nulla pariatur. … … 203 203 ?> 204 204 <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> 206 206 <ul class='side-matter-user-colors'> 207 207 <?php … … 209 209 ?> 210 210 <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> 213 213 </li> 214 214 <?php … … 221 221 case 'figure_style': 222 222 ?> 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; ?>]'> 224 224 <?php 225 225 foreach ( $styles as $style => $style_title ) { 226 226 ?> 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> 228 228 <?php 229 229 } … … 234 234 case 'note_adjust': 235 235 ?> 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> 237 237 <p class='description'> 238 <?php echo $description ?>238 <?php echo $description; ?> 239 239 </p> 240 240 <?php … … 243 243 case 'use_effects': 244 244 ?> 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> 246 246 <?php 247 247 break; … … 249 249 foreach ( $pages as $page => $page_label ) { 250 250 ?> 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> 252 252 <?php 253 253 } … … 354 354 public $figures = array(); 355 355 356 public function __construct() { // Register custom action 'side_matter_list_notes' for use in widget or elsewhere356 public function __construct() { 357 357 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 359 359 $this->options = $side_matter_admin->options; 360 360 $this->figures = array( … … 373 373 374 374 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'] ); 376 376 $check_pages = array( 377 377 ( is_front_page() && $front ), … … 480 480 static $lists_count = 0; // Keep static count of Side Matter lists in case of multiple widget instances 481 481 482 if ( ! $this->check_page() ) {482 if ( ! $this->check_page() || empty ( $this->notes ) ) { 483 483 return; 484 484 } else { … … 498 498 499 499 ?> 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; ?>'> 501 501 <?php 502 502 foreach ( $this->notes as $note_id => $note_text ) { 503 503 $note_text = wpautop( $note_text ); // Re-enclose notes in paragraph tags to fix tags broken by shortcode 504 504 ?> 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; ?> 508 508 </div> 509 509 </li> … … 523 523 524 524 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' ) ) ); 526 526 } 527 527 528 528 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 529 533 global $side_matter; 530 if ( ! $side_matter->check_page() ) {534 if ( ! $side_matter->check_page() || empty ( $side_matter->notes ) ) { 531 535 return; 532 536 } else { 533 537 global $side_matter_admin; 534 538 $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 539 545 } 540 546 541 547 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 542 556 $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 544 559 } 545 560 -
side-matter/trunk/uninstall.php
r761882 r770431 2 2 /* 3 3 uninstall.php 4 Version 1. 24 Version 1.3 5 5 6 6 Plugin: Side Matter
Note: See TracChangeset
for help on using the changeset viewer.