Manages tabs design with shortcodes.
Use [tab]
These optional parameter are available:
icon = string|int number if you want a incon from the media library, string for the tag src attribute
class = string class attribute for the current tab div
title = string the title of the tab
list = boolean set to false if you want to remove the current entry from the tabs list
from = the starting point of the google maps route
route-type = the type or google maps route google.maps.TravelMode
author | etessore |
---|---|
version | 1.0.0 |
since | 1.0 |
__construct()
build_list(string $content)
This is called to be sure we don't leave no tab behind Thanks to Viper007Bond: @link http://www.viper007bond.com/2009/11/22/wordpress-code-earlier-shortcodes/
string
the post content
list_hook(array $atts)
array
User defined attributes in shortcode tag.
tab_hook(\unknown_type $atts, string $content)
\unknown_type
string
the content wrapped into the shortcode
add_shortcode($tab, $list)
true if you want to enable the shortcode 'tab_hook'
true if you want to enable the shortcode 'list_hook'
delete_shortcode($tab, $list)
true if you want to disable the shortcode 'tab_hook'
true if you want to disable the shortcode 'list_hook'
get_image(int | string $parm)
build the image for this tab: take it from the media library if the parameter is a number, use such parameter as src attribute for img tag if it's not a number.
int
string
id of the image or string of the src parameter
$list_shortcode : \unknown_type
$list_tpl : \SubstitutionTemplate
$tab_shortcode : string
$tab_tpl : \SubstitutionTemplate
$list_of_entries : array
$number_of_entries : int