Leírás
Building complex page layouts with buttons, icons and pricing tables typically requires lots of experience with html, css, php and the WordPress template hierarchy. Use this plugin to whip up fancy looking page designs in no time flat.
This plugin is based on GPP Shortcodes from Graph Paper Press: https://graphpaperpress.com/plugins/gpp-shortcodes/.
There are 11 shortcodes packaged into this plugin:
- Flat Buttons
- Icons courtesy of Genericons
- Icon Buttons
- Highlights
- Dividers
- Accordions
- Toggles
- Tabs
- Google Maps
- Pricing Tables
- Grids
See live examples, a full list of the options and usage instructions here:
http://tripwiremagazine.com/wp/plugins/tw-shortcodes/
Telepítés
- Upload the whole
tw-shortcodes
directory to the/wp-content/plugins/
directory - Activate the ‘GPP Shortcodes’ plugin through the ‘Plugins’ menu in WordPress
- Add shortcodes to Posts and Pages using the instructions found on this page:
http://tripwiremagazine.com/wp/plugins/tw-shortcodes/
GYIK
Below are a list of all the shortcodes and how to use them.
- BOXES
-
Usage:
[tw_box]Alert Box Text[/tw_box]
Attributes: color, width, text_align, margin_bottom, margin_top, class
Available colors: grey, yellow, green, red, blue, purple, black
Attributes usage:
[tw_box color="green" width="50%" text_align="left" margin_bottom="50px" margin_top="50px"]Alert Box Text[/tw_box]
- ICONS
-
Usage:
[tw_icon type="image"]
Attributes: type
Availabe types: standard, aside, image, gallery, video, status, quote, link, chat, audio, github, dribble, twitter, facebook, facebook-alt, wordpress, googleplus, linkedin, linkedin-alt, pinterest, pinterest-alt, flickr, vimeo, youtube, tumblr, instagram, codepen, polldaddy, comment, category, tag, time, user, day, week, month, pinned, search, unzoom, zoom, show, hide, close, close-alt, trash, star, home, mail, edit, reply, feed, warning, share, attachment, location, checkmark, menu, top, minimize, maximize, 404, spam, summary, cloud, key, dot, next, previous, expand, collapse, dropdown, dropdown-left, top, draggable, phone, send-to-phone, plugin, cloud-download, cloud-upload, external, document, book, cog, unapprove, cart, pause, stop, skip-back, skip-ahead, play, tablet, send-to-tablet, info, notice, help, fastforward, rewind, portfolio, uparrow, rightarrow, downarrow, leftarrow
- BUTTONS
-
Usage:
[tw_button]Button Text[/tw_button]
Attributes: color, url, title, target, rel, class, icon_left, icon_right, size, display
Available colors: grey, yellow, green, red, blue, purple, black
Available sizes: small, medium, large
Available displays: inline, block
Available icon_left and icon_right: standard, aside, image, gallery, video, status, quote, link, chat, audio, github, dribble, twitter, facebook, facebook-alt, wordpress, googleplus, linkedin, linkedin-alt, pinterest, pinterest-alt, flickr, vimeo, youtube, tumblr, instagram, codepen, polldaddy, comment, category, tag, time, user, day, week, month, pinned, search, unzoom, zoom, show, hide, close, close-alt, trash, star, home, mail, edit, reply, feed, warning, share, attachment, location, checkmark, menu, top, minimize, maximize, 404, spam, summary, cloud, key, dot, next, previous, expand, collapse, dropdown, dropdown-left, top, draggable, phone, send-to-phone, plugin, cloud-download, cloud-upload, external, document, book, cog, unapprove, cart, pause, stop, skip-back, skip-ahead, play, tablet, send-to-tablet, info, notice, help, fastforward, rewind, portfolio, uparrow, rightarrow, downarrow, leftarrow
Attributes usage:
[tw_button color="blue" url="http://www.tripwiremagazine.com" title="themes" icon_left="twitter" target="_blank" size="large" display="block"]Button Text[/tw_button]
- TEXT HIGHLIGHT
-
Usage:
[tw_highlight]text to highlight[/tw_highlight]
Attributes: color
Available colors: grey, yellow, green, red, blue, purple, black
Attributes usage: [tw_highlight color=”green”]text to highlight[/tw_highlight]
- DIVIDERS
-
Usage:
[tw_divider]
Attributes: type, color
Available types: solid, dashed, dotted, double
Available colors: grey, yellow, green, red, blue, purple, black
Attributes Usage:
[tw_divider type="dashed" color="green"]
- ACCORDIONS
-
Usage:
[tw_accordion][tw_accordion_section title="Section #1"]Section 1 text[/tw_accordion_section][tw_accordion_section title="Section #2"]Section 2 text[/tw_accordion_section][tw_accordion_section title="Section #3"]Section 3 text[/tw_accordion_section][/tw_accordion]
Attributes: title, class
Attributes usage:
[tw_accordion][tw_accordion_section title="Section #1"]Section 1 text[/tw_accordion_section][tw_accordion_section title="Section #2"]Section 2 text[/tw_accordion_section][tw_accordion_section title="Section #3"]Section 3 text[/tw_accordion_section][/tw_accordion]
- TOGGLES
-
Usage:
[tw_toggle title="Toggle Title"]Toggle text[/tw_toggle]
Attributes: title, class
- TABS
-
Usage:
[tw_tabgroup][tw_tab title="Tab #1"]Tab 1 text [/tw_tab][tw_tab title="Tab #2"]Tab 2 text[/tw_tab][/tw_tabgroup]
Attributes: title, class
- GOOGLE MAPS
-
Usage:
[tw_googlemap location="new york,usa"]
Attributes: location, height, title, zoom, class
Attributes Usage:
[tw_googlemap location="new york,usa" zoom="5" title="New York" height="500px"]
- PRICING TABLE
-
Usage:
[tw_pricing plan=”Premium” cost=”$200″ per=”per month” button_url=”http://www.tripwiremagazine.com” button_text=”Sign Up” button_color=”green” button_target=”self” button_rel=”nofollow”]
plan feature
plan feature
plan feature
plan feature
[/tw_pricing]Attributes: plan, cost, per, button_url, button_text, button_color, button_target, button_rel, position, class
Here is an example pricing table with three columns:
[one_third_first][tw_pricing plan="Gold" cost="$99" per="per month" button_url="http://www.tripwiremagazine.com" button_text="Sign Up" button_color="green" button_target="self" button_rel="nofollow"] plan feature plan feature plan feature plan feature [/tw_pricing][/one_third_first][one_third][tw_pricing plan="Silver" cost="$69" per="per month" button_url="http://www.tripwiremagazine.com" button_text="Sign Up" button_color="green" button_target="self" button_rel="nofollow"] plan feature plan feature plan feature plan feature [/tw_pricing][/one_third][one_third_last][tw_pricing plan="Bronze" cost="$39" per="per month" button_url="http://www.tripwiremagazine.com" button_text="Sign Up" button_color="green" button_target="self" button_rel="nofollow"] plan feature plan feature plan feature plan feature [/tw_pricing][/one_third_last]
- GRIDS
-
You can use the following shortcodes
[one_sixth]
,[one_fourth]
,[one_third]
,[one_half]
in any combination as long as they total 1 in then end. The start of each column begins with a shortcode that ends in_first
, like this:[one_sixth_first]
. Each row ends with a shortcode that ends in_last
, like this:[/one_third_last]
.You can combine grid with many of the shortcodes above to create complex page layouts. One important point to remember is this: When you are adding your grid shortcodes in the WordPress editor, WordPress will transform all RETURNS as linebreaks and add a
<br />
tag. This can cause your grids to display in a stair step layout, which isn’t good. To fix this, do not RETURN when adding your grid shortcodes to the WordPress editor.For example, this is correct:
[one_half_first] This is the first column [/one_half_first][one_half_last] This is the first column [one_half_last]
This is incorrect:
[one_half_first] This is the first column [/one_half_first] [one_half_last] This is the first column [one_half_last]
Notice that there is a RETURN after the [/one_half_first]? This will cause layout problems (the stair step effect, which we don’t want). Simply make sure that your ending and beginning grid shortcodes but directly up against each other, like this:
[/one_half_first][one_half_last]
Now, onto the full grid shortcodes. Below are some usage examples:
Six Columns
[one_sixth_first]This is the first column[/one_sixth_first] [one_sixth]This is the second column[/one_sixth] [one_sixth]This is the third column[/one_sixth] [one_sixth]This is the fourth column[/one_sixth] [one_sixth]This is the fifth column[/one_sixth] [one_sixth_last]This is the sixth and last column[/one_sixth_last]
Four Columns
[one_fourth_first]This is the first column[/one_fourth_first] [one_fourth]This is the second column[/one_fourth] [one_fourth]This is the third column[/one_fourth] [one_fourth_last]This is the fourth and last column[/one_fourth_last]
Three Columns
[one_third_first]This is the first column[/one_third_first] [one_third]This is the second column[/one_third] [one_third_last]This is the third and last column[/one_third_last]
Two Columns
[one_half_first]This is the first column[/one_half_first] [one_half_last]This is the second and last column[/one_half_last]
One-Sixth & Five-Sixth Columns
[one_sixth_first]This is the first column[/one_sixth_first] [five_sixth_last]This is the second and last column[/five_sixth_last]
One-Third & Two-Third Columns
[one_third_first]This is the first column[/one_third_first] [two_thirds_last]This is the second and last column[/two_thirds_last]
Vélemények
Nincsenek értékelések erről a bővítményről.
Közreműködők és fejlesztők
“TW Shortcodes” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:
Közreműködők“TW Shortcodes” fordítása a saját nyelvünkre.
Érdekeltek vagyunk a fejlesztésben?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Változási napló
1.0
- Initial release