Modals, Tabs and Accordians

Modals, Tabs and Accordians

Modal

Modal can be used to display content in a pop up window within your page content.

Tabs and Accordians can be used to display more then one block of content in the same section using the collapsible tabs or Accordians.

Tabs

When content is enclosed, the complete shortcode macro including its content will be replaced with the function output. It is the responsibility of the handler function to provide any necessary escaping or encoding of the raw content string, and include it in the output. It enables plugin developers to create special kinds of content (e.g. forms, content generators) that users can attach to certain pages by adding the corresponding shortcode into the page text.
Important: Using hyphens can have implications that you may not be aware of; such as if other installed shortcodes also are use hyphens, the use of generic words with hyphens may cause collisions (if shortcodes are used together within the same request).
Parse any known shortcode macros in the $content string. Returns a string containing the original content with shortcode macros replaced by their handler functions’ output.

Accordion

[templatic_accordian title=”Collapsible Group Item #1″] Shortcodes are parsed after wpautop and wptexturize post formatting has been applied (but see the note below about 2.5.0 and 2.5.1 differences). This means that your shortcode output HTML won’t automatically have curly quotes applied, p and br tags added, and so on. If you do want your shortcode output to be formatted, you should call wpautop() or wptexturize() directly when you return the output from your shortcode handler.[/templatic_accordian] [templatic_accordian title=”Collapsible Group Item #2″] wpautop recognizes shortcode syntax and will attempt not to wrap p or br tags around shortcodes that stand alone on a line by themselves. Shortcodes intended for use in this manner should ensure that the output is wrapped in an appropriate block tag such as <p> or <div>[/templatic_accordian] [templatic_accordian title=”Collapsible Group Item #3″] If a shortcode macro is used to enclose content, its handler function will receive a second parameter containing that content. Users might write shortcodes in either form, so it is necessary to allow for either case by providing a default value for the second parameter to your handler function [/templatic_accordian]