WP UI for WordPress is a plugin that lets you add smart, beautiful and responsive interface widgets, such as Tabs, Accordions, spoilers, Dialogs into your wordpress posts. This plugin is built on top of the jQuery UI and comes bundled with rich documentation, extended browser support and detailed skins and themes.
Overview
WP UI gives you the easier way for the Articles that stand out. Most of the WP UI’s features are implemented with wordpress shortcodes, which means that learning curve is smooth and there is no compromise between appearance and performance. It can significantly reduce the length of your articles, making it easier to read and digest.
WP UI comes with the following components.
| Component | Shortcode |
|---|---|
| Tabs | [wptabs] Wraps the tabs
|
| Accordion | [wptabs type="accordion"] Wraps the Accordion
|
| Collapsibles | [wpspoilers] |
| Dialogs | [wpdialog] |
Please note : All WP UI shortcodes except when they are used to get and display posts are enclosing shortcodes, that means every shortcode opened should be closed. For example:
[wptabs] // Opening shortcode [/wptabs] // closing shortcode
Alternative shortcodes are also available.
- [tabname] instead of [wptabtitle]
- [tabcont] instead of [wptabcontent]
- [tabs] instead of [wptabs]
- [slider] instead of [wpspoiler]
- [dialog] instead of [wpdialog]
When using alternative shortcodes, make sure that they do not conflict with shortcodes from another plugin.
Features
Style
- 14 unique attractive CSS3 styles.
- Ability all the jQuery UI themes
- Custom theme manager that handles the custom styles downloaded from jQuery UI themeroller
Content
- Include your posts, pages either single or multiple with a single shortcode.
- Smooth learning curve with the ability to handle most of the complex Web content
- Support for Nested tabs and AJAX loading inside the panels.
Help and support
- Documentation available right in the wordpress editor page.
- Support forums available right here
Usage of tabs, accordions, spoilers and dialogs
As mentioned earlier, all WP UI shortcodes are enclosing shortcodes, customizable with arguments [Codex : Shortcodes]. Please take a note of the below recommendations.
- Shortcodes work best when they are entered through the HTML mode of the wordpress editor.
- Different Shortcodes need to be in separate lines, but avoid the empty lines in between them. For example [wptabtitle] and [wptabcontent] shortcodes inside wptabs.
WP UI Components and their usage
The first one below lists all the shortcodes, arguments and the possible values. Second one below holds some sample shortcode structures.
Shortcodes, Arguments and values
Tabs and accordion
Tabs and accordion
| Arguments | Values |
|---|---|
| load | URL to the page your want to load through AJAX. |
| post | ID of the post you want to load into the tab |
| page | ID or name of the page you want to load into the tab. |
| page | ID or name of the page you want to load into the tab. |
| cat | ID or name of the category to load posts from. |
| tag | Name or ID of the Tag to load posts from. |
| number | Number of posts to load from the category or tag, if given. |
| before_post | This appears before the post |
| after_post | This appears after the post |
| Arguments | Values |
|---|---|
| none yet | wptabcontent shortcode handles the tab’s contents should follow [wptabtitle] shortcode, except when the latter is used with post related arguments, post, page, cat, tag. |
| Arguments | Values |
|---|---|
| type | Tabs or accordion. Choose type=”accordion”. |
| style | Any of the accepted stylename values, given just below the table.[wptabs style="wpui-achu"] |
| mode | Define mode=”vertical” for vertically oriented tabs. |
| effect | Effect to be used with the tabs. Accepted values are “fade” or “slide”. [wptabs effect="fade"] |
| style | Any of the accepted stylename values, given just below the table.[wptabs style="wpui-achu"] |
| style | Any of the accepted stylename values, given just below the table.[wptabs style="wpui-achu"] |
| rotate | Tabs auto rotation. It’s value need to be in microseconds eg:4000 or 4s ( 4 seconds ). [wptabs rotate="6000"] is same as [wptabs rotate="6s"] |
| Position | Position of the tabs. position="bottom" moves the tabs to the bottom |
Tab posts
| Arguments | Value |
|---|---|
| All arguments | This shortcode is basically the [wptabs] shortcode, so all the options apply. |
Spoilers
| Arguments | values |
|---|---|
| name | Name/Title of the spoiler. |
| style | Any of the accepted stylename values, given just below.[wptabs style="wpui-achu"] |
| fade | Fade(animate opacity) on open/close. [wpspoiler fade="true"] |
| slide | Slide on open/close. [wpspoiler fade="true"] |
| speed | Animation speed in milliseconds. Greater the value, slower the animation. |
| closebtn | Inserts a close button at end of the spoiler, with value as the label. [wpspoiler closebtn="Click to close me"] |
| showText | Text or HTML show on the closed spoiler i.e when content is hidden. [wpspoiler showText="Click to show"] |
| hideText | Text or HTML show on the open spoiler i.e when content is visible. [wpspoiler hideText="Click to hide"] |
| open | When this is set to true, Spoiler is open ( the content is visible ) at page load. |
| post | ID of the post. This is loaded into the spoiler. When a post is specified, the post title is used as the name Argument. [wpspoiler post="1171"] |
| before_post | This appears before the post |
| after_post | This appears after the post |
Dialogs
| Arguments | Values |
|---|---|
| title | Title of the dialog.[wpdialog title="Information regarding Unicorns"] |
| width | Width of the dialog, without the suffixing px value. [wpdialog width="600"] |
| show | Open animation. [wpdialog show="drop"] |
| hide | Animation when dialog is closed. [wpdialog hide="explode"] Click here for the values. |
| modal | [wpdialog modal="true"] makes an black transparent overlay appear. |
| auto_open | When set to false, dialog is not opened at page load. Instead a button is placed that can be clicked at any time to open the dialog. |
| openlabel | Can only be used with the above option, auto_open. Defines the label of the button. |
| position | Position of the dialog. [wpdialog position="bottom"]. Accepted values top, bottom, left, right |
| post | ID of the post that is to be loaded into the dialog. [wpdialog post="1175"] |
| openlabel | Can only be used with the above option, auto_open. Defines the label of the button. |
| before_post | This appears before the post |
| after_post | This appears after the post |
Sample shortcode structures
Tabs
[wptabs]
[wptabtitle] Tab 1[/wptabtitle]
[wptabcontent] This is the content of Tab1.[/wptabcontent]
[wptabtitle] Tab 2 [/wptabtitle]
[wptabcontent] This is the content of Tab2[/wptabcontent]
[/wptabs]
Accordion
So, accordions use the same shortcode [wptabs]. The required argument for an accordion is
type="accordion", as mentioned earlier. Some tab specific arguments - rotate, effect, position have no effect on the accordions.
[wptabs type="accordion"]
[wptabtitle] Tab 1[/wptabtitle]
[wptabcontent] This is the content of Tab1.[/wptabcontent]
[wptabtitle] Tab 2 [/wptabtitle]
[wptabcontent] This is the content of Tab2[/wptabcontent]
[/wptabs]
Dialog
Dialogs are initiated with the shortcode
[wpdialog]. Refer to the previous tabs for the list of arguments and values.
[wpdialog title="Confirm this action" show="drop" hide="explode" ] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. [/wpdialog]
Collapsibles
Collapsibles aka sliders aka spoilers hide the content, that can be shown when user wants to click upon. It is implemented with
[wpspoilers] shortcode. These when used in a row, can provide functionality parallel to accordions, notable difference being that multiple panels can be open at a time.
[wpspoiler name="Spoilers" showText="click to show" hideText="" ] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. [/wpspoiler]
List of styles
List of styles that can be used with the widgets are below
WP UI custom styles
- wpui-light
- wpui-red
- wpui-blue
- wpui-green
- wpui-dark
- wpui-quark
- wpui-cyaat9
- wpui-android
- wpui-safle
- wpui-alma
- wpui-macish
- wpui-achu
- wpui-redmond
- wpui-sevin
jQuery UI themes
- ui-lightness
- ui-darkness
- smoothness
- start
- redmond
- sunny
- overcast
- le-frog
- flick
- pepper-grinder
- eggplant
- dark-hive
- cupertino
- south-street
- blitzer
- humanity
- hot-sneaks
- excite-bike
- vader
- dot-luv
- mint-choc
- black-tie
- trontastic
- swanky-purse
- base
- black-tie
Plus, Custom themes downloaded from jQuery UI themeroller.
You can use the styles with any of the included wp-ui widgets, for ex.
Using a custom style, these are prefixed with wpui-
[wptabs style="wpui-dark"]
Using a jQuery UI theme is basically the same. For example,
[wpspoiler style="pepper-grinder"]
Some examples
Example 1
Now something with lot of content.
Writing
Children Reading... Image by scbailey
All children, except one, grow up. They soon know that they will grow up, and the way Wendy knew was this. One day when she was two years old she was playing in a garden, and she plucked another flower and ran with it to her mother. I suppose she must have looked rather delightful, for Mrs. Darling put her hand to her heart and cried, "Oh, why can't you remain like this for ever!" This was all that passed between them on the subject, but henceforth Wendy knew that she must grow up. You always know after you are two. Two is the beginning of the end. Mrs. Darling first heard of Peter when she was tidying up her children's minds. It is the nightly custom of every good mother after her children are asleep to rummage in their minds and put things straight for next morning, repacking into their proper places the many articles that have wandered during the day. If you could keep awake (but of course you can't) you would see your own mother doing this, and you would find it very interesting to watch her. It is quite like tidying up drawers. You would see her on her knees, I expect, lingering humorously over some of your contents, wondering where on earth you had picked this thing up, making discoveries sweet and not so sweet, pressing this to her cheek as if it were as nice as a kitten, and hurriedly stowing that out of sight
Quotes
Here's a one line quote.
This part isn't quoted. Here's a much longer quote:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In dapibus. In pretium pede. Donec molestie facilisis ante. Ut a turpis ut ipsum pellentesque tincidunt. Morbi blandit sapien in mauris. Nulla lectus lorem, varius aliquet, auctor vitae, bibendum et, nisl. Fusce pulvinar, risus non euismod varius, ante tortor facilisis lorem, non condimentum diam nisl vel lectus. Nullam vulputate, urna rutrum vulputate molestie, sapien dolor adipiscing nisi, eu malesuada ipsum lectus quis est. Nulla facilisi. Mauris a diam in eros pretium elementum. Vivamus lacinia nisl non orci. Duis ut dolor. Sed sollicitudin cursus libero. Proin et lorem. Quisque odio. Ut gravida, pede sed convallis facilisis, magna dolor egestas dolor, non pulvinar metus magna in velit. Morbi vitae sem sit amet arcu vehicula gravida. Morbi placerat, est id pulvinar sollicitudin, ante augue vestibulum turpis, eu ultrices pede metus sit amet justo. Suspendisse metus. Mauris convallis mattis risus. Nullam et ipsum eu magna hendrerit pellentesque. Ut malesuada turpis nec orci. Donec at urna imperdiet libero tincidunt lacinia. Phasellus mollis leo pharetra velit. Quisque tortor. Nam pharetra est vel felis. Maecenas tincidunt, purus ac ultrices vehicula, ante magna ultrices orci, ac malesuada lectus purus sit amet odio. Vivamus id libero. Vivamus enim nisi, egestas aliquam, tincidunt malesuada, semper at, turpis. Vestibulum risus dolor, placerat quis, adipiscing sed, scelerisque a, enim. Vestibulum posuere. Mauris felis. Vivamus ornare. Maecenas mi. Mauris quis nunc. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti. In at lorem. Aliquam sed ligula eu erat ultrices congue. Aenean interdum semper purus. Phasellus eget lorem.
And some trailing text.
Tables
Table Layout Test
| Title | Views | |
|---|---|---|
| About Test User | 1 | More |
| 260 | 1 | More |
| Archives | 1 | More |
| 235 | 1 | More |
Align
Left-align, no caption
Left-aligned image with no caption, and text before and after.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed odio nibh, tincidunt adipiscing, pretium nec, tincidunt id, enim. Fusce scelerisque nunc vitae nisl. Quisque quis urna in velit dictum pellentesque. Vivamus a quam. Curabitur eu tortor id turpis tristique adipiscing. Morbi blandit. Maecenas vel est. Nunc aliquam, orci at accumsan commodo, libero nibh euismod augue, a ullamcorper velit dui et purus. Aenean volutpat, ipsum ac imperdiet fermentum, dui dui suscipit arcu, vitae dictum purus diam ac ligula.
Right-align, no caption
Right-aligned image with no caption, and text before and after.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed odio nibh, tincidunt adipiscing, pretium nec, tincidunt id, enim. Fusce scelerisque nunc vitae nisl. Quisque quis urna in velit dictum pellentesque. Vivamus a quam. Curabitur eu tortor id turpis tristique adipiscing. Morbi blandit. Maecenas vel est. Nunc aliquam, orci at accumsan commodo, libero nibh euismod augue, a ullamcorper velit dui et purus. Aenean volutpat, ipsum ac imperdiet fermentum, dui dui suscipit arcu, vitae dictum purus diam ac ligula.
you see how the content behaves inside the tabs? If you have something looking wrong, you can bundle additional CSS through the plugin's option page.
Example 2 : Media
Vimeo
wordpress tv
Youtube
For embedding Videos, you may need to enclose the videos within [embed width="460px"][/embed] shortcodes, If the video exceeds the tab's width, please pass the width argument to the embed shortcode.
Demo
Above examples does not do any justice to this plugin's capabilities. Check out all the examples with the code involved below.
Demo : Components | CSS3 styles
Download
Changelog
All versions
Each version of WP UI brings you additional features. Most of these are customizable through the options page. Due to this fact, it might be necessary to re-save the options after each update.
Documentation
You can find the documentation on WP UI at projects site.
Thanks to Soren Dayton for his suggestions on the posts feature that then became available from version 0.7.
Help and support
Most of the issues can be corrected by verifying the shortcode syntax.
Do enter different shortcodes in separate lines, but avoid the empty lines in between. If you want to enter the shortcodes in the same line, give at least two spaces before the next shortcode.
Cheerio,
kavin
Pingback: WordPress Tabs Eklentisi » Türkiye için Wordpress
Pingback: Плагин WP UI – Tabs, Accordions, Sliders для WordPress. | KVV
Pingback: Wp UI | ProfTm | Ve Biraz Teknoloji...
Pingback: Wp UI | PislikAdam
Pingback: Wordpress UI eklentisi | ProfTm | Ve Biraz Teknoloji...
Pingback: Välilehdet WP-sivuille – loistava plugin WP UI nyt käytössäni | www.tiirikainen.fi
Pingback: Tabs and more on WordPress – with a new WP UI plugin | www.tiirikainen.fi
Pingback: Wp UI « Pislikadam
Pingback: wp-coder.net » Roundup Guide to Advanced WordPress Menu Plugins
Pingback: Wp UI | WP Yazı Eklentileri | Wordpress Merkezi
Pingback: Wp UI | TiklaYukle
Pingback: Roundup Guide to Advanced WordPress Menu Plugins | Top website Designing Company in India