WordPress.org

Plugin Directory

Changeset 947135


Ignore:
Timestamp:
07/11/14 21:45:04 (12 months ago)
Author:
aaroncampbell
Message:

0874d48e - Updates plugin URI to point to author's site instead of ran.ge props Martin Cozzi (maraca)
a30fc0b8 - Make the 'forward' shortcode parameter work like the 'back' one
cf6d0c21 - Fix list of shortcode attributes in readmes

Location:
pull-quotes/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pull-quotes/trunk/README.md

    r928706 r947135  
    2929Currently there's no UI for this, but you can add a few attributes to the 
    3030shortcode to customize: 
    31 align - Possible values are left, right or empty. Default is left. 
    32 width - Specifies the width of the pull quote.  Can be any CSS width string such as 50%, 400px, or 10em. 
    33 back - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs back to put it.  Can be any number. 
    34 forward - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs forward to put it.  Can be any number. 
    35 wrap - Used to wrap the pull quote in a paragraph tag.  Good for inserting between paragraphs.  Set to "true" defaults to "" 
     31 
     32* align - Possible values are left, right or empty. Default is left. 
     33* width - Specifies the width of the pull quote.  Can be any CSS width string such as 50%, 400px, or 10em. 
     34* back - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs back to put it.  Can be any number. 
     35* forward - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs forward to put it.  Can be any number. 
     36* wrap - Used to wrap the pull quote in a paragraph tag.  Good for inserting between paragraphs.  Set to "true" defaults to "" 
    3637 
    3738**This looks ugly!** 
  • pull-quotes/trunk/js/pull-quotes.js

    r706281 r947135  
    2020            $pel.before( $el.clone() ); 
    2121            $el.remove(); 
     22        } else if ( $(this).data( 'forward' ) ) { 
     23            var $forward = parseInt($(this).data( 'forward' )); 
     24            var $pel = $el.parents( 'p' ); 
     25            while( $forward > 0 ) { 
     26                $pel = $pel.next( 'p' ); 
     27                --$forward; 
     28            } 
     29            $pel.before( $el.clone() ); 
     30            $el.remove(); 
    2231        } else { 
    2332            $el.parents('p').css( 'position', 'relative' ); 
  • pull-quotes/trunk/pull-quotes.php

    r885671 r947135  
    22/** 
    33 * Plugin Name: Pull Quotes 
    4  * Plugin URI: http://ran.ge 
     4 * Plugin URI: http://aarondcampbell.com/wordpress-plugin/pull-quotes/ 
    55 * Description: Pull Quotes done right 
    66 * Version: 1.0.1 
  • pull-quotes/trunk/readme.txt

    r928871 r947135  
    3939Currently there's no UI for this, but you can add a few attributes to the 
    4040shortcode to customize: 
    41 align - Possible values are left, right or empty. Default is left. 
    42 width - Specifies the width of the pull quote.  Can be any CSS width string such as 50%, 400px, or 10em. 
    43 back - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs back to put it.  Can be any number. 
    44 forward - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs forward to put it.  Can be any number. 
    45 wrap - Used to wrap the pull quote in a paragraph tag.  Good for inserting between paragraphs.  Set to "true" defaults to "" 
     41 
     42 * align - Possible values are left, right or empty. Default is left. 
     43 * width - Specifies the width of the pull quote.  Can be any CSS width string such as 50%, 400px, or 10em. 
     44 * back - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs back to put it.  Can be any number. 
     45 * forward - If you want the pull quote to be separated from the current paragraph, just specify how many paragraphs forward to put it.  Can be any number. 
     46 * wrap - Used to wrap the pull quote in a paragraph tag.  Good for inserting between paragraphs.  Set to "true" defaults to "" 
    4647 
    4748= This looks ugly! = 
Note: See TracChangeset for help on using the changeset viewer.