=== JAVASCRIPT PULLQUOTES === v 1.2.1 3 November 2006 By Stephen Rider -- http://www.striderweb.com/ Plugin Home Page -- http://www.striderweb.com/nerdaphernalia/features/wp-javascript-pull-quotes/ building on the work of: Roger Johansson -- http://www.456bereastreet.com/ Viper007Bond -- http://www.viper007bond.com/ == DESCRIPTION == This plugin allows you to make pull-quotes ( http://en.wikipedia.org/wiki/Pull-quote ) in your posts without duplicating any content (i.e. making them manually). This is done via Javascript and it it makes it easy to disable them later on if you wish and makes it so that duplicate content doesn't show up in your feeds. == HISTORY == This plugin started out as a "no options" javascript by Roger Johansson: http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/ Then Viper007Bond added a basic "wrapper" to make it a Wordpress plugin: http://www.viper007bond.com/wordpress-plugins/javascript-pullquotes/ Finally, Stephen Rider (that's me!) came along and added the options panel and all user changeable options, as well as the ability to specify alternate quote text. == INSTALLATION == Upload the ENTIRE folder to your plugins folder (`/wp-content/plugins/`) while keeping the file structure intact. You've done it right if you end up with a folder called "jspullquotes" and a bunch of files inside it. Then activate it on your plugin management page. Finally, go to the options panel, and on the Presentation/ Pull-Quotes screen, select your options. In a future version I (Stephen) hope to add a function that will set up recommended defaults automatically; but until that time you'll have to set them yourself! == USAGE == 1) Just wrap the text you want to put in a pullquote like this: To turn a piece of text into a pullquote, all I need to do is wrap the text that will become a pullquote in a span element and give it the class name "pullquote". The won't affect how it shows up, but it tells the Javascript to turn it into a
and display it. 2) If you want a pull-quote that has text *different* than the text in the , put it inside like so: This sentence, without this middle clause, should be a pull-quote. The content inside the HTML comment will *only* show up as the pull-quote -- it will not appear at all in the main flow of text. NOTE REGARDING SAFARI BROWSER: There is a bug in the Javascript rendering of Safari, which causes it to misfire on the alternate text. Assuming that some of your users probably do use this browser, you have two options: A) Do the alternate text as described. Safari will show the *actual* text in the span as though the alternate were not there. B) Put the comment alone in a pullquote span, just _before_ the sentence you're (sort of) quoting. Safari will not show any pullquote, but other browsers will work normally. Example: Darn that Javascript-mangling Safari! 3) If you _ARE NOT_ using TinyMCE (the rich text / WYSIWYG editor), then a new button will appear on your write page. Just click it to put in the start, type some text, and then click it again. You can also highlight some text and then click the button. I may add TinyMCE support in thew future.