Changeset 540573
- Timestamp:
- 05/06/2012 08:17:43 PM (14 years ago)
- File:
-
- 1 edited
-
wp-lipsum/trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lipsum/trunk/readme.txt
r540569 r540573 1 1 === Plugin Name === 2 Contributors: dylanized (this should be a list of wordpress.org userid's)2 Contributors: dylanized 3 3 Tags: dummy text, lorem ipsum, lipsum 4 4 Requires at least: 3.3.2 … … 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 WP Lipsum is a simple plugin for generating dummy text for your WordPress site.10 WP-Lipsum is a simple plugin for generating dummy text for your WordPress site. 11 11 12 12 == Description == 13 13 14 WP Lipsum includes a collection of template fragments representing lots of common page types, from simple lorem ipsum paragraphs to demos of the WP comment system, and more. It works viashortcode or template tag.14 WP-Lipsum includes a collection of template fragments representing lots of common page types, from simple lorem ipsum paragraphs to demos of the WP comment system, and more. It works via a simple shortcode or template tag. 15 15 16 = Shortcodes=16 = Using the Shortcode = 17 17 18 Here are the basic shortcodes you can use. 19 20 [lipsum] 18 `[lipsum]` 21 19 This outputs the basic content block. You can edit this in wp-lipsum/templates/basic.php. 22 20 23 [lipsum template=aux] 21 `[lipsum template=aux]` 24 22 This outputs the auxilary lipsum page, with tables, definition lists, and more. You can edit this in templates/aux.php. 25 23 26 [lipsum repeat=4] 24 `[lipsum repeat=4]` 27 25 This outputs 4 simple paragphs of lorem ipsum text. You can edit the text in templates/p.php. 28 26 29 [lipsum template=ol repeat=3] 27 `[lipsum template=ol repeat=3]` 30 28 This loads the ordered list template and displays it 3 times. 31 29 32 [lipsum t=ol r=3] 30 `[lipsum t=ol r=3]` 33 31 You can also use “t” and “r” as parameter shortcuts. 34 32 … … 37 35 For the image templates, you can also pass in custom dimensions with the "width", "height" and "align" parameters (shorcuts w, h and a). This works for the img, caption, portfolio & portfolio_item, and gallery & gallery_item templates. 38 36 39 [lipsum template=img width=300 height=150] 37 `[lipsum template=img width=300 height=150]` 40 38 41 [lipsum t=caption w=300 h=150 a=right] 39 `[lipsum t=caption w=300 h=150 a=right]` 42 40 43 [lipsum t=gallery w=500 h=220] 41 `[lipsum t=gallery w=500 h=220]` 44 42 45 [lipsum t=portfolio w=100 h=100] 43 `[lipsum t=portfolio w=100 h=100]` 46 44 47 Align can be "left", "right", "center" or "none". The dimensions default to 200x200, and alignleft.45 Align can be set to "left", "right", "center" or "none". These parameters default to 200x200, and alignleft. 48 46 47 = Lipsum Templates and Fragments = 49 48 50 = Lipsum Templates = 49 Here are the full pages of lipsum content available: 51 50 52 Here are the full lipsum pages you can call: 51 * Basic Content – “basic” 52 * Aux Content – “aux” 53 * Blog Demo – “blog” 54 * Single Post Demo – “single” 55 * Headline List – “headline_list” 56 * Gallery Demo – “gallery” 57 * Portfolio Demo – “portfolio” 58 * Long Header Examples – “long_headers” 59 * Short Content Demo – “short” 60 * Template Fragments 53 61 54 Basic Content – “basic” 55 Aux Content – “aux” 56 Blog Demo – “blog” 57 Single Post Demo – “single” 58 Headline List – “headline_list” 59 Gallery Demo – “gallery” 60 Portfolio Demo – “portfolio” 61 Long Header Examples – “long_headers” 62 Short Content Demo – “short” 63 Template Fragments 64 65 You can also call these smaller template fragments, and use the “repeat” parameter: 62 You can also call these smaller fragments, and use the “repeat” parameter: 66 63 67 64 * Single Paragraph – “p” … … 72 69 * Blockquote – “blockquote” 73 70 * Blog Teaser – “blog_teaser” 74 * WP Image Caption Demo – “caption” 71 * Image (without caption) - "img" 72 * Image with WP Caption - "caption" 75 73 * Code Demo – “code” 76 74 * Comments Demo – “comments” … … 85 83 Templates use Bedrock conventions, including class names (like .table-style and .post-nav), using H1s and H2s only for titles, and other concepts. 86 84 87 = Template Tags=85 = Using the Template Tag = 88 86 89 You can also call the plugin from the template code, by using these template tags:87 You can also call the plugin from your theme code, by using the display_lipsum)_template() function: 90 88 91 89 `<?php display_lipsum_template($template, $repeat); ?>` 92 `<?php display_lipsum_template( ‘basic’) ?>' (this would include the basic.php template)93 `<?php display_lipsum_template( ‘table’, 4) ?>' ( this would include the table.php fragment and repeat it 4 times)94 `<?php display_lipsum_template( ‘caption’, 1, 500, 300) ?>' ( this would include the caption.php fragment and give the image 500x300 dimensions)90 `<?php display_lipsum_template('basic') ?>` 91 `<?php display_lipsum_template('table', 4) ?>` 92 `<?php display_lipsum_template('caption', 1, 500, 300, 'right') ?>' 95 93 96 94 = More Info = 97 95 98 [ WPLipsum](http://bedrocktheme.com/wp-lipsum/ "View the WP-Lipsum homepage here")96 [View the WP-Lipsum homepage here](http://bedrocktheme.com/wp-lipsum/ "View the WP-Lipsum homepage here") 99 97 100 WP-Lipsum is a part of the Bedrock mini-framework, more info at [Bedrock](http://bedrocktheme.com/ "bedrocktheme.com") 98 WP-Lipsum is a part of the Bedrock mini-framework, more info at [bedrocktheme.com](http://bedrocktheme.com/ "bedrocktheme.com") 99 100 Follow me at [dylanized.com](http://dylanized.com/ "dylanized.com") and [@dylanized](http://twitter.com/dylanized "@dylanized") 101 101 102 102 … … 120 120 121 121 = 1.3 = 122 * Added "t" and "r" shortcuts, sub itted to WP Directory122 * Added "t" and "r" shortcuts, submitted to WP Directory 123 123 124 124 = 1.2 =
Note: See TracChangeset
for help on using the changeset viewer.