コード例 #1
0
 function getSlidersList($prepend_inherit = false)
 {
     $list = array();
     if ($prepend_inherit) {
         $list['inherit'] = __("Inherit", 'themerex');
     }
     $list["flex"] = __("Posts slider (Flex)", 'themerex');
     $list["swiper"] = __("Posts slider (Swiper)", 'themerex');
     if (revslider_exists()) {
         $list["revo"] = __("Layer slider (Revolution)", 'themerex');
     }
     if (royalslider_exists()) {
         $list["royal"] = __("Layer slider (Royal)", 'themerex');
     }
     return $list;
 }
コード例 #2
0
}
// Skills
//-------------------------------------------------------------------------------------
vc_map(array("base" => "trx_skills", "name" => __("Skills", "themerex"), "description" => __("Insert skills diagramm", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_skills', "class" => "trx_sc_collection trx_sc_skills", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_skills_item'), "params" => array(array("param_name" => "maximum", "heading" => __("Max value", "themerex"), "description" => __("Max value for skills items", "themerex"), "admin_label" => true, "class" => "", "value" => "100", "type" => "textfield"), array("param_name" => "count", "heading" => __("Items count", "themerex"), "description" => __("Skills items count (required)", "themerex"), "admin_label" => true, "class" => "", "value" => "2", "type" => "textfield"), array("param_name" => "title", "heading" => __("Title", "themerex"), "description" => __("Title of the skills block", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "subtitle", "heading" => __("Subtitle", "themerex"), "description" => __("Default subtitle of the skills block (only if type=arc)", "themerex"), 'dependency' => array('element' => 'type', 'value' => array('arc')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "align", "heading" => __("Alignment", "themerex"), "description" => __("Align skills block to left or right side", "themerex"), "class" => "", "value" => array_flip($THEMEREX_shortcodes_float), "type" => "dropdown"), array("param_name" => "color", "heading" => __("Skills items color", "themerex"), "description" => __("Color for all skills items", "themerex"), "class" => "", "value" => "", "type" => "colorpicker"), array("param_name" => "type", "heading" => __("Skills type", "themerex"), "description" => __("Select type of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array(__('Bar', 'themerex') => 'bar', __('Pie chart', 'themerex') => 'pie', __('Counter', 'themerex') => 'counter', __('Arc', 'themerex') => 'arc'), "type" => "dropdown"), array("param_name" => "style", "heading" => __("Skills style", "themerex"), "description" => __("Select style of skills items (only for type=counter)", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2', __('Style 3', 'themerex') => '3', __('Style 4', 'themerex') => '4'), 'dependency' => array('element' => 'type', 'value' => array('counter')), "type" => "dropdown"), array("param_name" => "style_bar", "heading" => __("Skills style", "themerex"), "description" => __("Select style of skills items (only for type=Bar)", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2'), 'dependency' => array('element' => 'type', 'value' => array('bar')), "type" => "dropdown"), array("param_name" => "dir", "heading" => __("Direction", "themerex"), "description" => __("Select direction of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array_flip($THEMEREX_shortcodes_dir), "type" => "dropdown"), array("param_name" => "layout", "heading" => __("Skills layout", "themerex"), "description" => __("Select layout of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), 'dependency' => array('element' => 'type', 'value' => array('counter', 'bar', 'pie')), "class" => "", "value" => array(__('Rows', 'themerex') => 'rows', __('Columns', 'themerex') => 'columns'), "type" => "dropdown"), THEMEREX_VC_width(), THEMEREX_VC_height(), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id, $THEMEREX_VC_class)));
vc_map(array("base" => "trx_skills_item", "name" => __("Skill", "themerex"), "description" => __("Skills item", "themerex"), "show_settings_on_create" => true, "class" => "trx_sc_single trx_sc_skills_item", "content_element" => true, "is_container" => false, "as_child" => array('only' => 'trx_skills'), "as_parent" => array('except' => 'trx_skills'), "params" => array(array("param_name" => "title", "heading" => __("Title", "themerex"), "description" => __("Title for the current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "level", "heading" => __("Level", "themerex"), "description" => __("Level value for the current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "50", "type" => "textfield"), array("param_name" => "color", "heading" => __("Color", "themerex"), "description" => __("Color for current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "colorpicker"), array("param_name" => "style", "heading" => __("Item style", "themerex"), "description" => __("Select style for the current skills item (only for type=counter)", "themerex"), "admin_label" => true, "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2', __('Style 3', 'themerex') => '3', __('Style 4', 'themerex') => '4'), "type" => "dropdown"), $THEMEREX_VC_id, $THEMEREX_VC_class)));
//class WPBakeryShortCode_Trx_Skills extends WPBakeryShortCodesContainer {}
//class WPBakeryShortCode_Trx_Skills_Item extends WPBakeryShortCodesContainer {}
class WPBakeryShortCode_Trx_Skills extends THEMEREX_VC_ShortCodeCollection
{
}
class WPBakeryShortCode_Trx_Skills_Item extends THEMEREX_VC_ShortCodeSingle
{
}
// Slider
//-------------------------------------------------------------------------------------
vc_map(array("base" => "trx_slider", "name" => __("Slider", "themerex"), "description" => __("Insert slider", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_slider', "class" => "trx_sc_collection trx_sc_slider", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_slider_item'), "params" => array_merge(array(array("param_name" => "engine", "heading" => __("Engine", "themerex"), "description" => __("Select engine for slider. Attention! Flex and Swiper are built-in engines, all other engines appears only if corresponding plugings are installed", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_sliders), "type" => "dropdown")), revslider_exists() || royalslider_exists() ? array(array("param_name" => "interval", "heading" => __("Flex&Swiper: Slides change interval", "themerex"), "description" => __("Slides change interval (in milliseconds: 1000ms = 1s)", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "5000", "type" => "textfield"), array("param_name" => "alias", "heading" => __("Revolution slider alias or Royal Slider ID", "themerex"), "description" => __("Alias for Revolution slider or Royal slider ID", "themerex"), "admin_label" => true, "class" => "", 'dependency' => array('element' => 'engine', 'value' => array('revo')), "value" => "", "type" => "textfield")) : array(), array(array("param_name" => "cat", "heading" => __("Flex&Swiper: Category list", "themerex"), "description" => __("Comma separated list of category slugs. If empty - select posts from any category or from IDs list", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "count", "heading" => __("Flex&Swiper: Number of posts", "themerex"), "description" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "3", "type" => "textfield"), array("param_name" => "offset", "heading" => __("Flex&Swiper: Offset before select posts", "themerex"), "description" => __("Skip posts before select next part.", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "0", "type" => "textfield"), array("param_name" => "orderby", "heading" => __("Flex&Swiper: Post sorting", "themerex"), "description" => __("Select desired posts sorting method", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_sorting), "type" => "dropdown"), array("param_name" => "order", "heading" => __("Flex&Swiper: Post order", "themerex"), "description" => __("Select desired posts order", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_ordering), "type" => "dropdown"), array("param_name" => "ids", "heading" => __("Flex&Swiper: Post IDs list", "themerex"), "description" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "controls", "heading" => __("Flex&Swiper: Show slider controls", "themerex"), "description" => __("Show arrows inside slider", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('Show controls', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "pagination", "heading" => __("Flex&Swiper: Show slider pagination", "themerex"), "description" => __("Show bullets or titles to switch slides", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('Dots', 'themerex') => 'yes', __('Side Titles', 'themerex') => 'full', __('Over Titles', 'themerex') => 'over', __('None', 'themerex') => 'no'), "type" => "dropdown"), array("param_name" => "titles", "heading" => __("Flex&Swiper: Show titles section", "themerex"), "description" => __("Show section with post's title and short post's description", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('Not show', 'themerex') => "no", __('Show/Hide info', 'themerex') => "slide", __('Fixed info', 'themerex') => "fixed"), "type" => "dropdown"), array("param_name" => "descriptions", "heading" => __("Flex&Swiper: Post descriptions", "themerex"), "description" => __("Show post's excerpt max length (characters)", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "0", "type" => "textfield"), array("param_name" => "links", "heading" => __("Flex&Swiper: Post's title as link", "themerex"), "description" => __("Make links from post's titles", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('Titles as a links', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "border", "heading" => __("Show border", "themerex"), "description" => __("Show border around slider", "themerex"), "group" => __('Details', 'themerex'), "class" => "", "value" => array(__('No border', 'themerex') => "none", __('Light tablet', 'themerex') => "light", __('Dark tablet', 'themerex') => "dark"), "type" => "dropdown"), array("param_name" => "align", "heading" => __("Float slider", "themerex"), "description" => __("Float slider to left or right side", "themerex"), "class" => "", "value" => array_flip($THEMEREX_shortcodes_float), "type" => "dropdown"), THEMEREX_VC_width(), THEMEREX_VC_height(), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id, $THEMEREX_VC_class))));
vc_map(array("base" => "trx_slider_item", "name" => __("Slide", "themerex"), "description" => __("Slider item - single slide", "themerex"), "show_settings_on_create" => true, "content_element" => true, "is_container" => false, "as_child" => array('only' => 'trx_slider'), "as_parent" => array('except' => 'trx_slider'), "params" => array(array("param_name" => "src", "heading" => __("URL (source) for image file", "themerex"), "description" => __("Select or upload image or write URL from other site for the current slide", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "attach_image"), $THEMEREX_VC_id, $THEMEREX_VC_class)));
//class WPBakeryShortCode_Trx_Slider extends WPBakeryShortCodesContainer {}
//class WPBakeryShortCode_Trx_Slider_Item extends WPBakeryShortCodesContainer {}
class WPBakeryShortCode_Trx_Slider extends THEMEREX_VC_ShortCodeCollection
{
}
class WPBakeryShortCode_Trx_Slider_Item extends THEMEREX_VC_ShortCodeSingle
{
}
// Text Slider
//-------------------------------------------------------------------------------------
vc_map(array("base" => "trx_text_slider", "name" => __("Text Slider", "themerex"), "description" => __("Insert Text Slider", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_slider', "class" => "trx_sc_collection trx_sc_text_slider", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_text_slider_item'), "params" => array(array("param_name" => "autoheight", "heading" => __("Auto Height", "themerex"), "description" => __("Height depending on the contents.", "themerex"), "admin_label" => true, "class" => "", "value" => array(__('Auto Height', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "interval", "heading" => __("Testimonials change interval", "themerex"), "description" => __("Testimonials change interval (in milliseconds: 1000ms = 1s)", "themerex"), "class" => "", "value" => "7000", "type" => "textfield"), THEMEREX_VC_width(), THEMEREX_VC_height(), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id, $THEMEREX_VC_class)));
vc_map(array("base" => "trx_text_slider_item", "name" => __("Text Slide", "themerex"), "description" => __("Text Slider item - single slide", "themerex"), "class" => "trx_sc_collection trx_sc_text_slider_item", "show_settings_on_create" => true, "content_element" => true, "is_container" => true, "as_child" => array('only' => 'trx_text_slider'), "as_parent" => array('except' => 'trx_text_slider'), "params" => array(array("param_name" => "content", "heading" => __("Text Slide content", "themerex"), "description" => __("Current Slide content", "themerex"), "class" => "", "value" => "", "type" => "textarea_html"), $THEMEREX_VC_id, $THEMEREX_VC_class)));
class WPBakeryShortCode_Trx_Text_Slider extends THEMEREX_VC_ShortCodeCollection
{
コード例 #3
0
{
    global $THEMEREX_shortcodes_yes_no;
    return array("id" => "indent", "title" => __("Space between columns", "themerex"), "desc" => __("Turns sace between columns on", "themerex"), "value" => $status, "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no);
}
// Margins params
$THEMEREX_shortcodes_margin_top = array("id" => "top", "title" => __("Top margin", "themerex"), "divider" => false, "value" => "", "type" => "spinner");
$THEMEREX_shortcodes_margin_right = array("id" => "right", "title" => __("Right margin", "themerex"), "divider" => false, "value" => "", "type" => "spinner");
$THEMEREX_shortcodes_margin_bottom = array("id" => "bottom", "title" => __("Bottom margin", "themerex"), "divider" => false, "value" => "", "type" => "spinner");
$THEMEREX_shortcodes_margin_left = array("id" => "left", "title" => __("Left margin", "themerex"), "divider" => false, "value" => "", "type" => "spinner");
// List's styles
$THEMEREX_shortcodes_list_styles = array('ul' => __("Unordered", 'themerex'), 'ol' => __("Ordered", 'themerex'), 'iconed' => __('Iconed', 'themerex'));
// section/block options
$THEMEREX_section_block_options = array(array("id" => "class", "title" => __("CSS class", "themerex"), "desc" => __("Attribute class for container (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("CSS style", "themerex"), "desc" => __("Any additional CSS rules (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "align", "title" => __("Align", "themerex"), "desc" => __("Select block alignment", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "dedicated", "title" => __("Dedicated", "themerex"), "desc" => __("Use this block as dedicated content - show it before post title on single page", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "columns", "title" => __("Columns emulation", "themerex"), "desc" => __("Select width for columns emulation", "themerex"), "divider" => false, "value" => "none", "type" => "checklist", "options" => $THEMEREX_shortcodes_columns), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show block content", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "dir", "title" => __("Scroll direction", "themerex"), "desc" => __("Scroll direction (if Use scroller = yes)", "themerex"), "divider" => true, "value" => "horizontal", "type" => "checklist", "options" => $THEMEREX_shortcodes_dir), array("id" => "link", "title" => __("URL for block", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "background", "title" => __("Background color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "src", "title" => __("Background image", "themerex"), "divider" => true, "value" => "", "type" => "media"), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), array("id" => "padding", "title" => __("Padding", "themerex"), "desc" => __("Padding of block (top right bottom left / Example: 20px 10px 0 30px)", "themerex"), "divider" => false, "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id);
// Shortcodes list
//------------------------------------------------------------------
$THEMEREX_shortcodes = array(array("title" => __("Aside", "themerex"), "id" => "trx_aside", "decorate" => true, "container" => true, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "value" => "", "type" => "text"), array("id" => "link", "title" => __("Item link", "themerex"), "value" => "", "type" => "text"), array("id" => "image", "title" => __("Item image", "themerex"), "value" => "", "type" => "media"), array("id" => "_content_", "title" => __("Content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Audio", "themerex"), "desc" => __("Insert audio player", "themerex"), "id" => "trx_audio", "decorate" => false, "container" => false, "params" => array(array("id" => "title", "title" => __("Audio track title", "themerex"), "value" => "", "type" => "text"), array("id" => "author", "title" => __("Author of the track", "themerex"), "value" => "", "type" => "text"), array("id" => "url", "title" => __("URL for audio file", "themerex"), "desc" => __("URL for audio file", "themerex"), "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose audio', 'themerex'), 'action' => 'media_upload', 'type' => 'audio', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose audio file', 'themerex'), 'update' => __('Select audio file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "image", "title" => __("Image", "themerex"), "value" => "", "type" => "media"), array("id" => "autoplay", "title" => __("Autoplay audio", "themerex"), "desc" => __("Autoplay audio on page load", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "controls", "title" => __("Show controls", "themerex"), "desc" => __("Show controls in audio player (used in standard html5 player or 3rd party plugins)", "themerex"), "size" => "medium", "value" => "show", "type" => "switch", "options" => $THEMEREX_shortcodes_show_hide), THEMEREX_shortcodes_width("100%"), THEMEREX_shortcodes_height('', 'Height of the block with image. This option works if you have a background image'), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Banner", "themerex"), "desc" => __("Banner image with link", "themerex"), "id" => "trx_banner", "decorate" => false, "container" => true, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "align", "title" => __("Banner alignment", "themerex"), "desc" => __("Align banner to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), array("id" => "link", "title" => __("Link URL", "themerex"), "desc" => __("URL for link on banner click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for banner's link (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Link target", "themerex"), "desc" => __("Target for link on banner click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "popup", "title" => __("Open link in popup", "themerex"), "desc" => __("Open link target in popup window", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Banner title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Text", "themerex"), "desc" => __("Banner text", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Block container", "themerex"), "desc" => __("Container for any block with desired class and style ([section] analog - to nesting enable)", "themerex"), "id" => "trx_block", "decorate" => true, "container" => true, "params" => $THEMEREX_section_block_options), array("title" => __("Blogger", "themerex"), "desc" => __("Insert posts (pages) in many styles from desired categories or directly from ids", "themerex"), "id" => "trx_blogger", "decorate" => false, "container" => false, "params" => array(array("id" => "style", "title" => __("Posts output style", "themerex"), "desc" => __("Select desired style for posts output", "themerex"), "divider" => false, "value" => "regular", "type" => "select", "options" => array('regular' => __('Regular', 'themerex'), 'excerpt' => __('Excerpt', 'themerex'), 'related' => __('Related', 'themerex'), 'date' => __('Date', 'themerex'), 'image_large' => __('Large featured image', 'themerex'), 'image_medium' => __('Medium featured image', 'themerex'), 'image_small' => __('Small featured image', 'themerex'), 'image_tiny' => __('Tiny featured image', 'themerex'), 'accordion_1' => __('Accordion style 1', 'themerex'), 'accordion_2' => __('Accordion style 2', 'themerex'), 'accordion_3' => __('Accordion style 3', 'themerex'), 'list' => __('List', 'themerex'))), array("id" => "cat", "title" => __("Category list", "themerex"), "desc" => __("Select the desired categories. If not selected - show posts from any category or from IDs list", "themerex"), "divider" => false, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "count", "title" => __("Total posts to show", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "visible", "title" => __("Number of visible posts", "themerex"), "desc" => __("How many posts will be visible at once? If empty or 0 - all posts are visible", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show all posts (if parameter 'visible' less than 'count')", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), THEMEREX_shortcodes_indent(), array("id" => "orderby", "title" => __("Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "divider" => false, "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "order", "title" => __("Post order", "themerex"), "desc" => __("Select desired posts order", "themerex"), "divider" => false, "value" => "desc", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_ordering), array("id" => "ids", "title" => __("Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "value" => "", "type" => "text"), array("id" => "location", "title" => __("Dedicated content location", "themerex"), "desc" => __("Select position for dedicated content (only for style=excerpt)", "themerex"), "divider" => false, "value" => "default", "type" => "select", "options" => $THEMEREX_shortcodes_locations), array("id" => "dir", "title" => __("Posts direction", "themerex"), "desc" => __("Display posts in horizontal or vertical direction", "themerex"), "divider" => false, "value" => "horizontal", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_dir), array("id" => "rating", "title" => __("Show rating stars", "themerex"), "desc" => __("Show rating stars under post's header", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "descr", "title" => __("Description length", "themerex"), "desc" => __("How many characters are displayed from post excerpt? If 0 - don't show description", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 1000, "increment" => 10, "type" => "spinner"), array("id" => "info", "title" => __("Show post info block", "themerex"), "desc" => __("Show post info block (author, date, tags, etc.)", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "readmore", "title" => __("More link text", "themerex"), "desc" => __("Read more link text. If empty - show 'More', else - used as link text", "themerex"), "value" => "", "type" => "text"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Break <br>", "themerex"), "desc" => __("Line break with clear floating (if need)", "themerex"), "id" => "trx_br", "decorate" => false, "container" => false, "params" => array(array("id" => "clear", "title" => __("Clear floating", "themerex"), "desc" => __("Clear floating (if need)", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('None', 'themerex'), 'left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'), 'both' => __('Both', 'themerex'))))), array("title" => __("Button", "themerex"), "desc" => __("Button with link", "themerex"), "id" => "trx_button", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Caption", "themerex"), "desc" => __("Button caption", "themerex"), "value" => "", "type" => "text"), array("id" => "skin", "title" => __("Button's color style", "themerex"), "desc" => __("Select button's color style", "themerex"), "divider" => false, "value" => "global", "type" => "checklist", "dir" => "horizontal", "options" => array('global' => __('Global', 'themerex'), 'dark' => __('Dark', 'themerex'))), array("id" => "style", "title" => __("Button's style", "themerex"), "desc" => __("Select button's style", "themerex"), "divider" => false, "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('regular' => __('Regular', 'themerex'), 'line' => __('Line', 'themerex'), 'shadow' => __('Shadow', 'themerex'))), array("id" => "size", "title" => __("Button's size", "themerex"), "desc" => __("Select button's size", "themerex"), "divider" => false, "value" => "medium", "type" => "checklist", "dir" => "horizontal", "options" => array('mini' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'big' => __('Large', 'themerex'))), array("id" => "fullsize", "title" => __("Fullsize mode", "themerex"), "desc" => __("Set button's width to 100%", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "icon", "title" => __('Button icon', 'themerex'), "desc" => __('Select icon for the title from Fontello icons set', 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "background", "title" => __("Background color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "color", "title" => __("Text color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "align", "title" => __("Button alignment", "themerex"), "desc" => __("Align button to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "link", "title" => __("<b>Link URL</b>", "themerex"), "desc" => __("URL for link on button click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "title", "title" => __("Title button", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Option open", "themerex"), "desc" => __("Open in new tab", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "width", "title" => __("Width button", "themerex"), "desc" => __("Specifies the width of the button", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "height", "title" => __("Height button", "themerex"), "desc" => __("Specifies the height of the button", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for button's link (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "popup", "title" => __("Open link in popup", "themerex"), "desc" => __("Open link target in popup window", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Chart", "themerex"), "desc" => __("Insert a chart in your page (post)", "themerex"), "id" => "trx_chart", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "size", "title" => __("Title size", "themerex"), "divider" => false, "value" => 46, "min" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Title color", "themerex"), "value" => "", "type" => "color"), array("id" => "legend", "title" => __("Show legend", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Chart", "themerex"), "desc" => __("Chart item", "themerex"), "id" => "trx_chart_item", "container" => true, "params" => array(array("id" => "title", "title" => __("Skills item title", "themerex"), "desc" => __("Current skills item title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "level", "title" => __("Skills item level", "themerex"), "desc" => __("Current skills level", "themerex"), "divider" => false, "value" => 50, "min" => 0, "increment" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Color of skills item", "themerex"), "value" => "", "type" => "color"), array("id" => "icon", "title" => __('Icon', 'themerex'), "desc" => __("Select font icon from the Fontello icons set", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "icon_color", "title" => __("Color of icon", "themerex"), "value" => "", "type" => "color"), array("id" => "_content_", "title" => __("Item content", "themerex"), "desc" => __("Current item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Chat", "themerex"), "desc" => __("Chat message", "themerex"), "id" => "trx_chat", "decorate" => true, "container" => true, "params" => array(array("id" => "title", "title" => __("Item title", "themerex"), "desc" => __("Chat item title", "themerex"), "value" => "", "type" => "text"), array("id" => "link", "title" => __("Item link", "themerex"), "desc" => __("Chat item link", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Chat item content", "themerex"), "desc" => __("Current chat item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Columns", "themerex"), "desc" => __("Insert up to 6 columns in your page (post)", "themerex"), "id" => "trx_columns", "decorate" => true, "container" => false, "params" => array(THEMEREX_shortcodes_indent(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Column", "themerex"), "desc" => __("Column item", "themerex"), "id" => "trx_column_item", "container" => true, "params" => array(array("id" => "colspan", "title" => __("Merge columns", "themerex"), "desc" => __("Count merged columns from current", "themerex"), "value" => "", "min" => 2, "max" => 11, "increment" => 1, "type" => "spinner"), array("id" => "_content_", "title" => __("Column item content", "themerex"), "desc" => __("Current column item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Contact form", "themerex"), "desc" => __("Insert contact form", "themerex"), "id" => "trx_contact_form", "decorate" => false, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Contact form title", "themerex"), "value" => "", "type" => "text"), array("id" => "description", "title" => __("Description", "themerex"), "desc" => __("Short description for contact form", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __('Contact info', 'themerex'), "desc" => __('Display contact information using theme options', 'themerex'), "id" => "trx_contact_info", "decorate" => false, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Contact info title", "themerex"), "value" => "", "type" => "text"), array("id" => "description", "title" => __("Description", "themerex"), "desc" => __("Short description for contact info", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "contact_list", "title" => __('Contact block elements', 'themerex'), "desc" => __('Sets number and order of info putout<br><i>objects can be dragged with mouse</i>', 'themerex'), "value" => "adress_1,phone_1,website,email", 'multiple' => true, "type" => "checklist", "options" => array("address_1" => __('Adress 1', 'themerex'), "address_2" => __('Adress 2', 'themerex'), "phone_1" => __('Phone 1', 'themerex'), "phone_2" => __('Phone 2', 'themerex'), "fax" => __('Fax', 'themerex'), "website" => __('Web site', 'themerex'), "email" => __('Email', 'themerex'))), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Content block", "themerex"), "desc" => __("Container for main content block with desired class and style (use it only on fullscreen pages)", "themerex"), "id" => "trx_content", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "align", "title" => __('Text align', 'themerex'), "value" => "center", "type" => "checklist", "options" => array("left" => __('Left', 'themerex'), "center" => __('Center', 'themerex'), "right" => __('Right', 'themerex'))), array("id" => "class", "title" => __("Element CSS class", "themerex"), "desc" => __("CSS class for current element (optional)", "themerex"), "value" => "", "type" => "text"), array("id" => "style", "title" => __("CSS styles", "themerex"), "desc" => __("Any additional CSS rules (if need)", "themerex"), "value" => "", "type" => "text"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_id)), array("title" => __("Countdown", "themerex"), "desc" => __("Insert countdown object", "themerex"), "id" => "trx_countdown", "decorate" => false, "container" => false, "params" => array(array("id" => "date", "title" => __("Date", "themerex"), "desc" => __("Upcoming date (format: yyyy-mm-dd)", "themerex"), "value" => "", "format" => "yy-mm-dd", "type" => "date"), array("id" => "time", "title" => __("Time", "themerex"), "desc" => __("Upcoming time (format: HH:mm:ss)", "themerex"), "value" => "", "type" => "text"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Countdown style", "themerex"), "value" => "round", "type" => "checklist", "dir" => "horizontal", "options" => array("flip" => __('Flip', 'themerex'), "round" => __('Round', 'themerex'))), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Dropcaps", "themerex"), "desc" => __("Make first letter as dropcaps", "themerex"), "id" => "trx_dropcaps", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Dropcaps style", "themerex"), "value" => "1", "style" => "list", "type" => "images", "options" => array(1 => get_template_directory_uri() . '/admin/images/icons/dropcaps1.png', 2 => get_template_directory_uri() . '/admin/images/icons/dropcaps2.png', 3 => get_template_directory_uri() . '/admin/images/icons/dropcaps3.png', 4 => get_template_directory_uri() . '/admin/images/icons/dropcaps4.png')), array("id" => "_content_", "title" => __("Paragraph content", "themerex"), "desc" => __("Paragraph with dropcaps content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("E-mail collector", "themerex"), "desc" => __("Collect the e-mail address into specified group", "themerex"), "id" => "trx_emailer", "decorate" => false, "container" => false, "params" => array(array("id" => "group", "title" => __("Group", "themerex"), "desc" => __("The name of group to collect e-mail address", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "open", "title" => __('Open form', 'themerex'), "desc" => __('Open search e-mailer', 'themerex'), "std" => "yes", "options" => $yes_no, "type" => "switch"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Google map", "themerex"), "desc" => __("Insert Google map with desired address or coordinates", "themerex"), "id" => "trx_googlemap", "decorate" => false, "container" => false, "params" => array(array("id" => "address", "title" => __("Address", "themerex"), "desc" => __("Address to show in map center", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "latlng", "title" => __("Latitude and Longtitude", "themerex"), "desc" => __("Comma separated map center coorditanes (instead Address)", "themerex"), "value" => "", "type" => "text"), array("id" => "zoom", "title" => __("Zoom", "themerex"), "desc" => __("Map zoom factor", "themerex"), "divider" => false, "value" => 16, "min" => 1, "max" => 20, "type" => "spinner"), array("id" => "scroll", "title" => __('Zoom with mouse wheel', 'themerex'), "desc" => __('Map\'s zoom with mouse wheel', 'themerex'), "override" => "category,page,post", "std" => "yes", "options" => $yes_no, "type" => "switch"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Map style", "themerex"), "value" => "royal", "type" => "checklist", "options" => $gmap_styles), THEMEREX_shortcodes_width('100%'), THEMEREX_shortcodes_height(300), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Graph", "themerex"), "desc" => __("Insert a graph in your page (post)", "themerex"), "id" => "trx_graph", "decorate" => true, "container" => false, "params" => array(array("id" => "labels", "title" => __("Labels", "themerex"), "desc" => __("The graph requires an array of labels for each of the data points. This is shown on the X axis.", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "type", "title" => __('Type', 'themerex'), "value" => "Curve", "type" => "checklist", "options" => array("Curve" => __('Curve', 'themerex'), "Line" => __('Line', 'themerex'))), array("id" => "style", "title" => __("CSS style", "themerex"), "divider" => false, "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Graph", "themerex"), "desc" => __("Graph item", "themerex"), "id" => "trx_graph_item", "container" => true, "params" => array(array("id" => "datas", "title" => __("Datas", "themerex"), "desc" => __("Insert datas (example: value1, value2, value3)", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "color", "title" => __("Colour for the fill", "themerex"), "divider" => true, "value" => "", "type" => "color"), array("id" => "_content_", "title" => __("Attribute", "themerex"), "divider" => true, "value" => "Attribute", "type" => "text")))), array("title" => __("Hide any block", "themerex"), "desc" => __("Hide any block with desired CSS-selector", "themerex"), "id" => "trx_hide", "decorate" => false, "container" => false, "params" => array(array("id" => "selector", "title" => __("Selector", "themerex"), "desc" => __("Any block's CSS-selector", "themerex"), "divider" => false, "value" => "", "type" => "text"))), array("title" => __("Highlight text", "themerex"), "desc" => __("Highlight text with selected color, background color and other styles", "themerex"), "id" => "trx_highlight", "decorate" => false, "container" => true, "params" => array(array("id" => "type", "title" => __("Style", "themerex"), "desc" => __("Highlight Style", "themerex"), "value" => "1", "style" => "list", "type" => "images", "options" => array(1 => get_template_directory_uri() . '/admin/images/icons/highlight2.png', 2 => get_template_directory_uri() . '/admin/images/icons/highlight1.png', 3 => get_template_directory_uri() . '/admin/images/icons/highlight3.png', 4 => get_template_directory_uri() . '/admin/images/icons/highlight4.png')), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Color for highlighted text", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "backcolor", "title" => __("Background color", "themerex"), "desc" => __("Background color for highlighted text", "themerex"), "value" => "", "type" => "color"), array("id" => "style", "title" => __("CSS-styles", "themerex"), "desc" => __("Any additional CSS rules", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Highlighting content", "themerex"), "desc" => __("Content for highlight", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("Icon", "themerex"), "desc" => __("Insert icon", "themerex"), "id" => "trx_icon", "decorate" => false, "container" => false, "params" => array(array("id" => "icon", "title" => __('Icon', 'themerex'), "desc" => __("Select font icon from the Fontello icons set", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "color", "title" => __("Icon's color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Icon text alignment", "themerex"), "value" => "", "divider" => false, "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "box_style", "title" => __("Background style", "themerex"), "desc" => __("Style of the icon background ", "themerex"), "divider" => false, "value" => "none", "type" => "radio", "options" => $THEMEREX_shortcodes_box_style), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "size", "title" => __("Font size", "themerex"), "desc" => __("Icon font size", "themerex"), "value" => "20", "divider" => false, "type" => "spinner", "min" => 8, "max" => 240), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Icon font weight", "themerex"), "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Icons widget", "themerex"), "desc" => __("Insert icons widget", "themerex"), "id" => "trx_icons_widget", "decorate" => false, "container" => false, "params" => array(array("id" => "icon", "title" => __('Icon', 'themerex'), "desc" => __("Select font icon from the Fontello icons set", 'themerex'), "divider" => false, "value" => "icon-heart", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "count", "title" => __("Icons count", "themerex"), "divider" => false, "value" => "10", "type" => "text"), array("id" => "value", "title" => __("Value", "themerex"), "desc" => __("Insert value", "themerex"), "value" => "5", "divider" => false, "type" => "text"), array("id" => "size", "title" => __("Icons size", "themerex"), "desc" => __("Insert icons size", "themerex"), "divider" => false, "value" => "40", "type" => "text"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Image", "themerex"), "desc" => __("Insert image into your post (page)", "themerex"), "id" => "trx_image", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "readonly" => false, "type" => "media"), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Image title (if need)", "themerex"), "value" => "", "type" => "text"), array("id" => "align", "title" => __("Float image", "themerex"), "desc" => __("Float image to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Infobox", "themerex"), "desc" => __("Insert infobox into your post (page)", "themerex"), "id" => "trx_infobox", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Infobox style", "themerex"), "divider" => false, "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('regular' => __('Regular', 'themerex'), 'info' => __('Info', 'themerex'), 'notice' => __('Notice', 'themerex'), 'warning' => __('Warning', 'themerex'), 'success' => __('Success', 'themerex'))), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Title infobox", "themerex"), "value" => "", "type" => "text"), array("id" => "dir", "title" => __("Title position", "themerex"), "desc" => __("Vertical title position or horizontal", "themerex"), "divider" => false, "value" => "horizontal", "type" => "checklist", "dir" => "horizontal", "options" => array('horizontal' => __('Horizontal', 'themerex'), 'vertical' => __('Vertical', 'themerex'))), array("id" => "closeable", "title" => __("Closeable box", "themerex"), "desc" => __("Create closeable box (with close button)", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "_content_", "title" => __("Infobox content", "themerex"), "desc" => __("Content for infobox", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Islands", "themerex"), "desc" => __("Insert widget into your post (page)", "themerex"), "id" => "trx_islands", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Text color", "themerex"), "divider" => true, "value" => "light", "type" => "checklist", "dir" => "horizontal", "options" => array('light' => __('White', 'themerex'), 'dark' => __('Black', 'themerex'))), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("<b>Max count of children is 5!</b>", "themerex"), "id" => "trx_island_item", "container" => true, "params" => array(array("id" => "url", "title" => __('URL for item', 'themerex'), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Title", "themerex"), "rows" => 4, "divider" => false, "value" => "", "type" => "text")))), array("title" => __("Line", "themerex"), "desc" => __("Insert Line into your post (page)", "themerex"), "id" => "trx_line", "decorate" => false, "container" => false, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "divider" => false, "value" => "solid", "dir" => "vertical", "type" => "radio", "options" => array('solid' => __('Solid <dd class=\\"lineSolid\\"></dd>', 'themerex'), 'dashed' => __('Dashed <dd class=\\"lineDashed\\"></dd>', 'themerex'), 'dotted' => __('Dotted <dd class=\\"lineDotted\\"></dd>', 'themerex'))), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Line color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "align", "title" => __("Line alignment", "themerex"), "desc" => __("This option works along with the width option", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("List", "themerex"), "desc" => __("List items with specific bullets", "themerex"), "id" => "trx_list", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Bullet's style", "themerex"), "desc" => __("Bullet's style for each list item", "themerex"), "value" => "ul", "type" => "checklist", "options" => $THEMEREX_shortcodes_list_styles), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style='Iconed')", 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "marked", "title" => __("Ticked list", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("List item with specific bullet", "themerex"), "id" => "trx_list_item", "container" => true, "params" => array(array("id" => "_content_", "title" => __("List item content", "themerex"), "desc" => __("Current list item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style='Iconed')", 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "marked", "title" => __("Ticked list's item", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "title", "title" => __("List item title", "themerex"), "desc" => __("Current list item title (show it as tooltip)", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_id))), array("title" => __("More button", "themerex"), "desc" => __("Insert button to hide and show selected <b>SECTION</b>", "themerex"), "id" => "trx_more", "decorate" => false, "container" => true, "params" => array(array("id" => "id", "title" => __("Block ID", "themerex"), "desc" => __("Insert id of section which you want show/hide", "themerex"), "divider" => true, "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left)), array("title" => __("Popup window", "themerex"), "desc" => __("Container for any html-block with desired class and style for popup window", "themerex"), "id" => "trx_popup", "decorate" => true, "container" => true, "params" => array($THEMEREX_shortcodes_id, array("id" => "class", "title" => __("CSS class", "themerex"), "desc" => __("Attribute class for container (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("CSS style", "themerex"), "desc" => __("Any additional CSS rules (if need)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left)), array("title" => __("Price table container", "themerex"), "desc" => __("Price table container. After insert it, move cursor inside and select shortcode Price Item", "themerex"), "id" => "trx_price_table", "decorate" => true, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "divider" => true, "value" => "1", "dir" => "horizontal", "type" => "radio", "options" => array('1' => __('Style 1', 'themerex'), '2' => __('Style 2', 'themerex'), '3' => __('Style 3', 'themerex'))), array("id" => "color", "title" => __("Color type", "themerex"), "divider" => true, "value" => "green", "dir" => "horizontal", "type" => "radio", "options" => array('green' => __('Basic', 'themerex'), 'blue' => __('Blue', 'themerex'))), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Alignment text in the table", "themerex"), "value" => "center", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_indent(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("Price item column", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => true, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id))), array("title" => __("Price table item", "themerex"), "desc" => __("Price table column", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => false, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id), "children" => array("title" => __("Data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'footer' => __('Footer', 'themerex'), 'united' => __('United', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id))), array("title" => __("Price table data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'footer' => __('Footer', 'themerex'), 'united' => __('United', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id)), array("title" => __("Quote", "themerex"), "desc" => __("Quote text", "themerex"), "id" => "trx_quote", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Quote content", "themerex"), "desc" => __("Quote content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "style", "title" => __("Style", "themerex"), "divider" => true, "value" => "1", "dir" => "horizontal", "type" => "radio", "options" => array('1' => __('Style 1', 'themerex'), '2' => __('Style 2', 'themerex'))), array("id" => "link", "title" => __("Quote cite", "themerex"), "desc" => __("URL for quote cite", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "author", "title" => __("Title (author)", "themerex"), "desc" => __("Quote title (author name)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "years", "title" => __("Born", "themerex"), "desc" => __("Only when the style 2", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "image", "title" => __("Photo", "themerex"), "desc" => __("Only when the style 2", "themerex"), "divider" => true, "value" => "", "type" => "media"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Rocks", "themerex"), "desc" => __("Insert a rocks skills in your page (post)", "themerex"), "id" => "trx_rocks", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "count", "title" => __("The number of items", "themerex"), "divider" => false, "value" => 1, "min" => 1, "type" => "spinner"), array("id" => "maximum", "title" => __("Max value", "themerex"), "desc" => __("Max value for skills items", "themerex"), "divider" => false, "value" => 100, "min" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Skills text color", "themerex"), "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Skill", "themerex"), "desc" => __("Skills item", "themerex"), "id" => "trx_rocks_item", "container" => false, "params" => array(array("id" => "title", "title" => __("Skills item title", "themerex"), "desc" => __("Current skills item title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "level", "title" => __("Sklls item level", "themerex"), "desc" => __("Current skills level", "themerex"), "divider" => false, "value" => 50, "min" => 0, "increment" => 1, "type" => "spinner"), $THEMEREX_shortcodes_id))), array("title" => __("Round list", "themerex"), "id" => "trx_around", "decorate" => true, "container" => false, "params" => array(array("id" => "image", "title" => __("Image", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "style", "title" => __("CSS style", "themerex"), "readonly" => false, "value" => "", "type" => "text"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "id" => "trx_around_item", "container" => true, "params" => array(array("id" => "link", "title" => __("URL for item", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "color", "title" => __("Text color", "themerex"), "type" => "color"), array("id" => "_content_", "title" => __("Content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Search form", "themerex"), "desc" => __("Search form", "themerex"), "id" => "trx_search", "decorate" => false, "container" => false, "params" => array(array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "open", "title" => __('Open form', 'themerex'), "desc" => __('Open search form', 'themerex'), "std" => "yes", "options" => $yes_no, "type" => "switch"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Section container", "themerex"), "desc" => __("Container for any block with desired class and style", "themerex"), "id" => "trx_section", "decorate" => true, "container" => true, "params" => $THEMEREX_section_block_options), array("title" => __("Skills", "themerex"), "desc" => __("Insert skills diagramm in your page (post)", "themerex"), "id" => "trx_skills", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "type", "title" => __("Skills type", "themerex"), "desc" => __("Select type of skills block", "themerex"), "divider" => false, "value" => "bar", "type" => "checklist", "dir" => "horizontal", "options" => array('bar' => __('Bar', 'themerex'), 'pie' => __('Pie chart', 'themerex'), 'counter' => __('Counter', 'themerex'), 'arc' => __('Arc', 'themerex'))), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Only for counter", "themerex"), "value" => "1", "dir" => "horizontal", "type" => "radio", "options" => array('1' => __('Style 1', 'themerex'), '2' => __('Style 2', 'themerex'), '3' => __('Style 3', 'themerex'), '4' => __('Style 4', 'themerex'))), array("id" => "dir", "title" => __("Direction", "themerex"), "desc" => __("Select direction of skills block", "themerex"), "divider" => false, "value" => "horizontal", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_dir), array("id" => "layout", "title" => __("Skills layout", "themerex"), "desc" => __("Select layout of skills block", "themerex"), "divider" => false, "value" => "rows", "type" => "checklist", "dir" => "horizontal", "options" => array('rows' => __('Rows', 'themerex'), 'columns' => __('Columns', 'themerex'))), array("id" => "count", "title" => __("The number of items", "themerex"), "divider" => false, "value" => 1, "min" => 1, "type" => "spinner"), array("id" => "maximum", "title" => __("Max value", "themerex"), "desc" => __("Max value for skills items", "themerex"), "divider" => false, "value" => 100, "min" => 1, "type" => "spinner"), array("id" => "align", "title" => __("Align skills block", "themerex"), "desc" => __("Align skills block to left or right side", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), array("id" => "color", "title" => __("Skills items color", "themerex"), "desc" => __("Color for all skills items", "themerex"), "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Skill", "themerex"), "desc" => __("Skills item", "themerex"), "id" => "trx_skills_item", "container" => false, "params" => array(array("id" => "title", "title" => __("Skills item title", "themerex"), "desc" => __("Current skills item title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "level", "title" => __("Sklls item level", "themerex"), "desc" => __("Current skills level", "themerex"), "divider" => false, "value" => 50, "min" => 0, "increment" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Skills item color", "themerex"), "desc" => __("Current skills item color", "themerex"), "divider" => false, "value" => "#5ea281", "type" => "color"), $THEMEREX_shortcodes_id))), array("title" => __("Slider", "themerex"), "desc" => __("Insert slider into your post (page)", "themerex"), "id" => "trx_slider", "decorate" => true, "container" => false, "params" => array_merge(array(array("id" => "engine", "title" => __("Slider engine", "themerex"), "desc" => __("Select engine for slider. Attention! 'Flex' and 'Swiper' are built-in engines, all other engines appears only if corresponding plugings are installed", "themerex"), "value" => "swiper", "type" => "checklist", "options" => $THEMEREX_shortcodes_sliders)), revslider_exists() || royalslider_exists() ? array(array("id" => "alias", "title" => __("Revolution slider alias or Royal Slider ID", "themerex"), "desc" => __("Alias for Revolution slider or Royal slider ID", "themerex"), "value" => "", "type" => "text")) : array(), array(array("id" => "cat", "title" => __("Swiper: Category list", "themerex"), "desc" => __("Comma separated list of category slugs. If empty - select posts from any category or from IDs list", "themerex"), "divider" => false, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "count", "title" => __("Swiper: Number of posts", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Swiper: Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "orderby", "title" => __("Swiper: Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "divider" => false, "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "ids", "title" => __("Swiper: Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "value" => "", "type" => "text"), array("id" => "controls", "title" => __("Show slider controls", "themerex"), "desc" => __("Show arrows inside slider", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "pagination", "title" => __("Show slider pagination", "themerex"), "desc" => __("Show bullets for slide switch", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "titles", "title" => __("Show titles section", "themerex"), "desc" => __("Show section with post's title and short post's description", "themerex"), "divider" => false, "value" => "no", "type" => "checklist", "options" => array("no" => __('Not show', 'themerex'), "slide" => __('Show/Hide info', 'themerex'), "fixed" => __('Fixed info', 'themerex'))), array("id" => "links", "title" => __("Post's title as link", "themerex"), "desc" => __("Make links from post's titles", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Float slider", "themerex"), "desc" => __("Float slider to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), "children" => array("title" => __("Slide", "themerex"), "desc" => __("Slider item", "themerex"), "id" => "trx_slider_item", "container" => false, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the current slide", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id))), array("title" => __("Status", "themerex"), "id" => "trx_status", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Successive blocks", "themerex"), "desc" => __("Insert blocks with arrow into post (page)", "themerex"), "id" => "trx_points", "decorate" => true, "container" => true, "params" => array(array("id" => "type", "title" => __("Block type", "themerex"), "desc" => __("Select block type", "themerex"), "value" => "regular", "type" => "select", "options" => array("1" => __('Type 1', 'themerex'), "2" => __('Type 2', 'themerex'))), array("id" => "arrows", "title" => __("Arrows", "themerex"), "desc" => __("Show arrows", "themerex"), "type" => "checklist", "dir" => "horizontal", "value" => "center", "options" => array("yes" => __('Yes', 'themerex'), "no" => __('No', 'themerex'))), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "id" => "trx_point_item", "container" => true, "params" => array(array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Only for style 1", 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "size", "title" => __("Icon size", "themerex"), "value" => 100, "min" => 10, "type" => "spinner"), array("id" => "color", "title" => __("Icon color", "themerex"), "value" => "", "type" => "color"), array("id" => "image", "title" => __("Image", "themerex"), "desc" => __("Only for style 2", "themerex"), "value" => "", "type" => "media"), array("id" => "background", "title" => __("Background color", "themerex"), "value" => "", "type" => "color"), array("id" => "_content_", "title" => __("List item content", "themerex"), "desc" => __("Current list item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Table", "themerex"), "desc" => __("Insert table into post (page). ", "themerex"), "id" => "trx_table", "decorate" => true, "container" => true, "params" => array(array("id" => "style", "title" => __("Table style", "themerex"), "desc" => __("Select table style", "themerex"), "value" => "regular", "type" => "select", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'), "3" => __('Style 3', 'themerex'))), array("id" => "align", "title" => __("Text align", "themerex"), "desc" => __("Text's position in the table", "themerex"), "type" => "checklist", "dir" => "horizontal", "value" => "center", "options" => $THEMEREX_shortcodes_text_align), array("id" => "_content_", "title" => __("Table content", "themerex"), "desc" => __("Content, created with any table-generator <br> Paste here table content, generated on one of many public internet resources, for example: <a href='http://www.impressivewebs.com/html-table-code-generator/'>generation1</a> or <a href='http://html-tables.com/'>generation2</a>", "themerex"), "rows" => 8, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Tabs", "themerex"), "desc" => __("Insert tabs in your page (post)", "themerex"), "id" => "trx_tabs", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Tabs style", "themerex"), "value" => "1", "type" => "checklist", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'), "3" => __('Style 3', 'themerex'))), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show tab content (height parameter required)", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Tab", "themerex"), "desc" => __("Tab item", "themerex"), "id" => "trx_tab", "container" => true, "params" => array(array("id" => "_title_", "title" => __("Tab title", "themerex"), "desc" => __("Current tab title", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tab content", "themerex"), "desc" => __("Current tab content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Team", "themerex"), "desc" => __("Insert team in your page (post)", "themerex"), "id" => "trx_team", "decorate" => true, "container" => false, "params" => array(THEMEREX_shortcodes_indent(), array("id" => "rounding", "title" => __("Avatar corner rounding", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Team style", "themerex"), "value" => "1", "type" => "checklist", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'), "3" => __('Style 3', 'themerex'))), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Member", "themerex"), "desc" => __("Team member", "themerex"), "id" => "trx_team_item", "container" => true, "params" => array(array("id" => "user", "title" => __("Team member", "themerex"), "desc" => __("Select one of registered users (if present) or put name, position etc. in fields below", "themerex"), "value" => "", "type" => "select", "options" => $THEMEREX_shortcodes_users), array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Team member's name", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Team member's position", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("Team member's e-mail", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Team member's photo (avatar)", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "readonly" => false, "type" => "media"), array("id" => "border", "title" => __("Photo border", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Align", "themerex"), "value" => "", "divider" => true, "type" => "checklist", "dir" => "horizontal", "options" => array('left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "_content_", "title" => __("Description", "themerex"), "desc" => __("Team member's short description", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Testimonials", "themerex"), "desc" => __("Insert testimonials into post (page)", "themerex"), "id" => "trx_testimonials", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Title of testimonmials block", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Testimonials style", "themerex"), "divider" => false, "value" => "1", "type" => "checklist", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'))), array("id" => "controls", "title" => __("Show testimonmials controls", "themerex"), "desc" => __("Show arrows inside testimonmials", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "pagination", "title" => __("Show testimonmials pagination", "themerex"), "desc" => __("Show bullets for testimonmial switch", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("Testimonials item", "themerex"), "id" => "trx_testimonials_item", "container" => true, "params" => array(array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Name of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Position of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("E-mail of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Select or upload photo of testimonmials author", "themerex"), "value" => "", "type" => "media"), array("id" => "_content_", "title" => __("Testimonials text", "themerex"), "desc" => __("Current testimonials text", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Text", "themerex"), "desc" => __("Create p tag with many styles", "themerex"), "id" => "trx_text", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Text content", "themerex"), "rows" => 4, "value" => "Content", "type" => "textarea"), array("id" => "color", "title" => __("Text color", "themerex"), "value" => "", "type" => "color"), array("id" => "size", "title" => __('Font size', "themerex"), "value" => 16, "min" => 1, "type" => "spinner"), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Title font weight", "themerex"), "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "height", "title" => __('Line height', "themerex"), "value" => 20, "min" => 1, "type" => "spinner"), array("id" => "spacing", "title" => __('Letter spacing', "themerex"), "value" => 0, "min" => 0, "type" => "spinner"), array("id" => "uppercase", "title" => __('Uppercase', "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "align", "title" => __("Text alignment", "themerex"), "desc" => __("Title text alignment", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Title", "themerex"), "desc" => __("Create header tag (1-6 level) with many styles", "themerex"), "id" => "trx_title", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Title content", "themerex"), "desc" => __("Title content", "themerex"), "rows" => 4, "value" => "Title", "type" => "textarea"), array("id" => "type", "title" => __("Title type", "themerex"), "desc" => __("Title type (header level)", "themerex"), "divider" => false, "value" => "1", "type" => "select", "options" => array('1' => __('Header 1', 'themerex'), '2' => __('Header 2', 'themerex'), '3' => __('Header 3', 'themerex'), '4' => __('Header 4', 'themerex'), '5' => __('Header 5', 'themerex'), '6' => __('Header 6', 'themerex'))), array("id" => "color", "title" => __("Title color", "themerex"), "value" => "", "type" => "color"), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Title font weight", "themerex"), "divider" => false, "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "align", "title" => __("Text alignment", "themerex"), "desc" => __("Title text alignment", "themerex"), "value" => "", "divider" => false, "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "position", "title" => __('Icon (image) position', "themerex"), "desc" => __("Select icon (image) position (if style='iconed')", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "options" => array('top' => __('Top', 'themerex'), 'left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "box_style", "title" => __('Show background under icon', "themerex"), "desc" => __("Select background under icon", "themerex"), "divider" => false, "value" => "none", "type" => "checklist", "options" => $THEMEREX_shortcodes_box_style), array("id" => "icon", "title" => __('Title font icon', 'themerex'), "desc" => __("Select font icon for the title from Fontello icons set (if style='iconed')", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "size", "title" => __('Icon size', "themerex"), "desc" => __("Select icon size (if style='iconed')", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "options" => array('small' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'inherit' => __('Inherit', 'themerex'), 'large' => __('Large', 'themerex'), 'huge' => __('Huge', 'themerex'))), array("id" => "icon_color", "title" => __('Icon color', 'themerex'), "divider" => false, "value" => "", "type" => "color"), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color (if style='iconed')", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "icon_image", "title" => __('or image icon', 'themerex'), "desc" => __("Select image icon for the title instead icon above (if style='iconed')", 'themerex'), "divider" => false, "value" => "", "type" => "images", "size" => "small", "options" => $THEMEREX_shortcodes_images), array("id" => "image_url", "title" => __('or URL for image file', "themerex"), "desc" => __("Select or upload image or write URL from other site (if style='iconed')", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Toggles / Accordion", "themerex"), "desc" => __("<b>Toggles</b>:  allows to expand and collapse text blocks to reveal the content related to that block; it's possible to expand all blocks <br> <b>Accordion</b>: allows to expand and colapse blocks to reveal the content related to that block, but unlike toggles, when expanding one of the blocks, the rest collapse", "themerex"), "id" => "trx_toggles", "decorate" => true, "container" => false, "params" => array(array("id" => "type ", "title" => __("Type", "themerex"), "desc" => __("Select type for display", "themerex"), "divider" => false, "value" => "toggles", "options" => array('toggles' => __('Toggles', 'themerex'), 'accordion' => __('Accordion', 'themerex')), "type" => "checklist"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Select style for display", "themerex"), "divider" => false, "value" => "1", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'), "3" => __('Style 3', 'themerex')), "type" => "checklist"), array("id" => "icon", "title" => __("Icon position", "themerex"), "desc" => __("Icon's position in the accordion", "themerex"), "divider" => false, "value" => "left", "options" => array('left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'), 'off' => __('Off', 'themerex')), "type" => "checklist"), array("id" => "counter", "title" => __("Counter", "themerex"), "desc" => __("Display counter before each title", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "initial", "title" => __("Initially opened item", "themerex"), "desc" => __("Option (Number of initially opened item) applies only to accordions", "themerex"), "value" => 1, "min" => 0, "type" => "spinner"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id), "children" => array("title" => __("Toggle", "themerex"), "desc" => __("Toggle item", "themerex"), "id" => "trx_toggles_item", "container" => true, "params" => array(array("id" => "title", "title" => __("Toggle item title", "themerex"), "desc" => __("Title for current toggle item", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Toggles item content", "themerex"), "desc" => __("Current toggle item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, array("id" => "open", "title" => __("Open on show", "themerex"), "desc" => __("Open current toggle item on show <br> <i>works only with the type 'toggle'</i>", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no)))), array("title" => __("Tooltip", "themerex"), "desc" => __("Create tooltip for selected text", "themerex"), "id" => "trx_tooltip", "decorate" => false, "container" => true, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Tooltip title (required)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tipped content", "themerex"), "desc" => __("Highlighted content with tooltip", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("Video", "themerex"), "desc" => __("Insert video player", "themerex"), "id" => "trx_video", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for video file", "themerex"), "desc" => __("Select video from media library or paste URL for video file from other site", "themerex"), "divider" => false, "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose video', 'themerex'), 'action' => 'media_upload', 'type' => 'video', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose video file', 'themerex'), 'update' => __('Select video file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "autoplay", "title" => __("Autoplay video", "themerex"), "desc" => __("Autoplay video on page load", "themerex"), "divider" => false, "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "title", "title" => __("Video title", "themerex"), "desc" => __("Title displayed in the video", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "image", "title" => __("Image preview", "themerex"), "desc" => __("Select or upload image or write URL from other site for video preview", "themerex"), "readonly" => false, "value" => "", "type" => "media"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Waves", "themerex"), "desc" => __("Insert waves into post (page)", "themerex"), "id" => "trx_wave", "decorate" => false, "container" => true, "params" => array(array("id" => "type", "title" => __("Waves type", "themerex"), "divider" => true, "value" => "1", "options" => array('1' => __('Type 1', 'themerex'), '2' => __('Type 2', 'themerex')), "type" => "checklist"), THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)), array("title" => __("Zoom", "themerex"), "desc" => __("Insert zoom image into your post (page)", "themerex"), "id" => "trx_zoom", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "over", "title" => __("URL for overlap image file", "themerex"), "desc" => __("Select or upload overlapping image", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "align", "title" => __("Float zoom", "themerex"), "desc" => __("Float zoom to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_id)));
// Filters for shortcodes handling
//----------------------------------------------------------------------
// Enable shortcodes in widgets
//add_filter('widget_text', 'do_shortcode');
// Enable shortcodes in excerpt
add_filter('the_excerpt', 'do_shortcode');
// Clear \n around shortcodes
add_filter('widget_text', 'sc_empty_paragraph_fix2', 1);
add_filter('the_excerpt', 'sc_empty_paragraph_fix2', 1);
add_filter('the_content', 'sc_empty_paragraph_fix2', 1);
function sc_empty_paragraph_fix2($content)
{
    $content = str_replace("\r\n", "\n", $content);
    $content = preg_replace("/\\]\\s*\n*\\s*\\[/", "][", $content);
    return $content;
コード例 #4
0
<?php

if (get_custom_option('slider_show') == 'yes') {
    $slider = get_custom_option('slider_engine');
    ?>
	<div class="sliderHomeBullets statickSlider slider_engine_<?php 
    echo $slider;
    ?>
">
		<?php 
    if ($slider == 'revo' && revslider_exists()) {
        $slider_alias = get_custom_option('slider_alias');
        if (!empty($slider_alias)) {
            putRevSlider($slider_alias);
        }
    }
    if ($slider == 'royal' && royalslider_exists()) {
        //$slider_alias = get_custom_option('slider_alias');
        //if (!empty($slider_alias)) echo get_new_royalslider($slider_alias);
        ?>
				<div class="rsContent slide-1">
					<div class="main">
						<div class="textBlock rsABlock" data-fade-effect="none" data-move-effect="top" data-opposite="true" data-move-offset="900" data-delay="300" data-speed="1500" data-easing="easeOutBack" data-rsw="707" data-rsh="471">
							<div class="title">Multifunctional Website</div>
							<p>Optimized for <br> Work with Touchscreen.</p>
						</div>
						<img  class="rsABlock women" data-fade-effect="none" data-move-effect="bottom" data-opposite="true" data-move-offset="950" data-delay="450" data-speed="2500" data-easing="" src="<?php 
        echo get_template_directory_uri();
        ?>
/images/slider/slide1_2.png" data-rsw="707" data-rsh="471">
					</div>
コード例 #5
0
 function checkRequiredPlugins()
 {
     $not_installed = '';
     if ($_POST['data_type'] == 'vc' && !class_exists('Vc_Manager')) {
         $not_installed .= '<br>Visual Composer plugin';
     }
     if (!class_exists('Woocommerce')) {
         $not_installed .= '<br>WooCommerce plugin';
     }
     if (!revslider_exists()) {
         $not_installed .= '<br>Revolution Slider plugin';
     }
     if (!function_exists('is_plugin_inactive')) {
         require_once ABSPATH . '/wp-admin/includes/plugin.php';
     }
     if (is_plugin_inactive('wp-instagram-widget/wp-instagram-widget.php')) {
         $not_installed .= '<br>Instagram Widget plugin';
     }
     if ($not_installed) {
         $this->error = '<b>' . __('Attention! For correct installation of the demo data, you must install and activate the following plugins: ', 'themerex') . '</b>' . $not_installed;
         $this->options['enable_importer'] = false;
         return false;
     }
     return true;
 }
コード例 #6
0
$THEMEREX_shortcodes_categories = getCategoriesList();
$THEMEREX_shortcodes_columns = getColumnsList();
$THEMEREX_shortcodes_images = themerex_array_merge(array('none' => "none"), getListFiles("/images/icons", "png"));
$THEMEREX_shortcodes_icons = array_merge(array("inherit", "none"), getIconsList());
$THEMEREX_shortcodes_locations = getDedicatedLocationsList();
$THEMEREX_shortcodes_blogger_styles = getBloggerStylesList();
$THEMEREX_shortcodes_filters = getPortfolioFiltersList();
$THEMEREX_shortcodes_formats = getPostFormatsFiltersList();
$THEMEREX_shortcodes_googlemap_styles = getGooglemapStylesList();
$THEMEREX_shortcodes_hovers = getHoversList();
$THEMEREX_shortcodes_hovers_dir = getHoversDirectionsList();
$THEMEREX_shortcodes_tint = getBgTintList();
$THEMEREX_shortcodes_field_types = getFieldTypesList();
// Shortcodes list
//------------------------------------------------------------------
$THEMEREX_shortcodes = array(array("title" => __("Accordion", "themerex"), "desc" => __("Accordion items", "themerex"), "id" => "trx_accordion", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Accordion style", "themerex"), "desc" => __("Select style for display accordion", "themerex"), "value" => 1, "options" => array(1 => __('Style 1', 'themerex'), 2 => __('Style 2', 'themerex'), 3 => __('Style 3', 'themerex')), "type" => "radio"), array("id" => "counter", "title" => __("Counter", "themerex"), "desc" => __("Display counter before each accordion title", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "large", "title" => __("Large titles", "themerex"), "desc" => __("Show large titles", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "shadow", "title" => __("Shadow", "themerex"), "desc" => __("Display shadow under toggles block", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "initial", "title" => __("Initially opened item", "themerex"), "desc" => __("Number of initially opened item", "themerex"), "value" => 1, "min" => 0, "type" => "spinner"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Item", "themerex"), "desc" => __("Accordion item", "themerex"), "id" => "trx_accordion_item", "container" => true, "params" => array(array("id" => "title", "title" => __("Accordion item title", "themerex"), "desc" => __("Title for current accordion item", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Accordion item content", "themerex"), "desc" => __("Current accordion item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Anchor", "themerex"), "desc" => __("Insert anchor for the TOC (table of content)", "themerex"), "id" => "trx_anchor", "decorate" => false, "container" => false, "params" => array(array("id" => "icon", "title" => __("Anchor's icon", 'themerex'), "desc" => __('Select icon for the anchor from Fontello icons set', 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "title", "title" => __("Short title", "themerex"), "desc" => __("Short title of the anchor (for the table of content)", "themerex"), "value" => "", "type" => "text"), array("id" => "Description", "title" => __("Long description", "themerex"), "desc" => __("Description for the popup (then hover on the icon). You can use '{' and '}' - make the text italic, '|' - insert line break", "themerex"), "value" => "", "type" => "text"), array("id" => "url", "title" => __("External URL", "themerex"), "desc" => __("External URL for this TOC item", "themerex"), "value" => "", "type" => "text"), array("id" => "separator", "title" => __("Add separator", "themerex"), "desc" => __("Add separator under item in the TOC", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id)), array("title" => __("Audio", "themerex"), "desc" => __("Insert audio player", "themerex"), "id" => "trx_audio", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for audio file", "themerex"), "desc" => __("URL for audio file", "themerex"), "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose audio', 'themerex'), 'action' => 'media_upload', 'type' => 'audio', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose audio file', 'themerex'), 'update' => __('Select audio file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "controls", "title" => __("Show controls", "themerex"), "desc" => __("Show controls in audio player", "themerex"), "size" => "medium", "value" => "show", "type" => "switch", "options" => $THEMEREX_shortcodes_show_hide), array("id" => "autoplay", "title" => __("Autoplay audio", "themerex"), "desc" => __("Autoplay audio on page load", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), THEMEREX_shortcodes_width("100%"), THEMEREX_shortcodes_height(50), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Banner", "themerex"), "desc" => __("Banner image with link", "themerex"), "id" => "trx_banner", "decorate" => false, "container" => true, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "align", "title" => __("Banner alignment", "themerex"), "desc" => __("Align banner to left, center or right", "themerex"), "divider" => true, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "link", "title" => __("Link URL", "themerex"), "desc" => __("URL for link on banner click", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Link target", "themerex"), "desc" => __("Target for link on banner click", "themerex"), "value" => "", "type" => "text"), array("id" => "popup", "title" => __("Open link in popup", "themerex"), "desc" => __("Open link target in popup window", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for banner's link (if need)", "themerex"), "value" => "", "type" => "text"), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Banner's title", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Text", "themerex"), "desc" => __("Banner's inner text", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Block container", "themerex"), "desc" => __("Container for any block ([section] analog - to enable nesting)", "themerex"), "id" => "trx_block", "decorate" => true, "container" => true, "params" => array(array("id" => "color", "title" => __("Fore color", "themerex"), "desc" => __("Any color for objects in this section", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_color", "title" => __("Background color", "themerex"), "desc" => __("Any background color for this section", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_image", "title" => __("URL for background image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the background", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "bg_tint", "title" => __("Background tint", "themerex"), "desc" => __("Main background tint: dark or light", "themerex"), "value" => "", "type" => "checklist", "options" => $THEMEREX_shortcodes_tint), array("id" => "dedicated", "title" => __("Dedicated", "themerex"), "desc" => __("Use this block as dedicated content - show it before post title on single page", "themerex"), "divider" => true, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Align", "themerex"), "desc" => __("Select block alignment", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "columns", "title" => __("Columns emulation", "themerex"), "desc" => __("Select width for columns emulation", "themerex"), "value" => "none", "type" => "checklist", "options" => $THEMEREX_shortcodes_columns), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show block content", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "dir", "title" => __("Scroll direction", "themerex"), "desc" => __("Scroll direction (if Use scroller = yes)", "themerex"), "value" => "horizontal", "type" => "switch", "size" => "big", "dependency" => array('scroll' => array('yes')), "options" => $THEMEREX_shortcodes_dir), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "delimiter" => true, "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style)), array("title" => __("Blogger", "themerex"), "desc" => __("Insert posts (pages) in many styles from desired categories or directly from ids", "themerex"), "id" => "trx_blogger", "decorate" => false, "container" => false, "params" => array(array("id" => "style", "title" => __("Posts output style", "themerex"), "desc" => __("Select desired style for posts output", "themerex"), "value" => "regular", "type" => "select", "options" => $THEMEREX_shortcodes_blogger_styles), array("id" => "filters", "title" => __("Show filters", "themerex"), "desc" => __("Use post's tags or categories as filter buttons", "themerex"), "value" => "no", "dir" => "horizontal", "type" => "checklist", "options" => $THEMEREX_shortcodes_filters), array("id" => "hover", "title" => __("Hover effect", "themerex"), "desc" => __("Select hover effect (only if style=Portfolio)", "themerex"), "dependency" => array('style' => array('portfolio')), "value" => "", "type" => "select", "options" => $THEMEREX_shortcodes_hovers), array("id" => "hover_dir", "title" => __("Hover direction", "themerex"), "desc" => __("Select hover direction (only if style=Portfolio and hover=Circle|Square)", "themerex"), "dependency" => array('style' => array('portfolio'), 'hover' => array('square', 'circle')), "value" => "left_to_right", "type" => "select", "options" => $THEMEREX_shortcodes_hovers_dir), array("id" => "ids", "title" => __("Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "value" => "", "type" => "text"), array("id" => "cat", "title" => __("Categories list", "themerex"), "desc" => __("Select the desired categories. If not selected - show posts from any category or from IDs list", "themerex"), "dependency" => array('ids' => array('is_empty')), "divider" => true, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "count", "title" => __("Total posts to show", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "dependency" => array('ids' => array('is_empty')), "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "visible", "title" => __("Number of visible posts", "themerex"), "desc" => __("How many posts will be visible at once? If empty or 0 - all posts are visible", "themerex"), "dependency" => array('ids' => array('is_empty')), "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "dependency" => array('ids' => array('is_empty')), "value" => 0, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "orderby", "title" => __("Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "order", "title" => __("Post order", "themerex"), "desc" => __("Select desired posts order", "themerex"), "value" => "desc", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_ordering), array("id" => "only", "title" => __("Select posts only", "themerex"), "desc" => __("Select posts only with reviews, videos, audios, thumbs or galleries", "themerex"), "value" => "no", "type" => "select", "options" => $THEMEREX_shortcodes_formats), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show all posts (if parameter 'visible' less than 'count')", "themerex"), "divider" => true, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "controls", "title" => __("Show slider controls", "themerex"), "desc" => __("Show arrows to control scroll slider", "themerex"), "dependency" => array('scroll' => array('yes')), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "location", "title" => __("Dedicated content location", "themerex"), "desc" => __("Select position for dedicated content (only for style=excerpt)", "themerex"), "divider" => true, "dependency" => array('style' => array('excerpt')), "value" => "default", "type" => "select", "options" => $THEMEREX_shortcodes_locations), array("id" => "dir", "title" => __("Posts direction", "themerex"), "desc" => __("Display posts in horizontal or vertical direction", "themerex"), "value" => "horizontal", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_dir), array("id" => "rating", "title" => __("Show rating stars", "themerex"), "desc" => __("Show rating stars under post's header", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "info", "title" => __("Show post info block", "themerex"), "desc" => __("Show post info block (author, date, tags, etc.)", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "links", "title" => __("Allow links on the post", "themerex"), "desc" => __("Allow links on the post from each blogger item", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "descr", "title" => __("Description length", "themerex"), "desc" => __("How many characters are displayed from post excerpt? If 0 - don't show description", "themerex"), "value" => 0, "min" => 0, "increment" => 10, "type" => "spinner"), array("id" => "readmore", "title" => __("More link text", "themerex"), "desc" => __("Read more link text. If empty - show 'More', else - used as link text", "themerex"), "value" => "", "type" => "text"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Break", "themerex"), "desc" => __("Line break with clear floating (if need)", "themerex"), "id" => "trx_br", "decorate" => false, "container" => false, "params" => array(array("id" => "clear", "title" => __("Clear floating", "themerex"), "desc" => __("Clear floating (if need)", "themerex"), "value" => "", "type" => "checklist", "options" => array('none' => __('None', 'themerex'), 'left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'), 'both' => __('Both', 'themerex'))))), array("title" => __("Button", "themerex"), "desc" => __("Button with link", "themerex"), "id" => "trx_button", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Caption", "themerex"), "desc" => __("Button caption", "themerex"), "value" => "", "type" => "text"), array("id" => "type", "title" => __("Button's shape", "themerex"), "desc" => __("Select button's shape", "themerex"), "value" => "square", "type" => "switch", "size" => "medium", "options" => array('square' => __('Square', 'themerex'), 'round' => __('Round', 'themerex'))), array("id" => "style", "title" => __("Button's style", "themerex"), "desc" => __("Select button's style", "themerex"), "value" => "global", "type" => "checklist", "dir" => "horizontal", "options" => array('global' => __('Global', 'themerex'), 'light' => __('Light', 'themerex'), 'dark' => __('Dark', 'themerex'), 'border' => __('Border', 'themerex'))), array("id" => "size", "title" => __("Button's size", "themerex"), "desc" => __("Select button's size", "themerex"), "value" => "medium", "type" => "checklist", "dir" => "horizontal", "options" => array('mini' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'big' => __('Large', 'themerex'), 'huge' => __('Huge', 'themerex'), 'banner' => __('Banner', 'themerex'))), array("id" => "fullsize", "title" => __("Fullsize mode", "themerex"), "desc" => __("Set button's width to 100%", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "icon", "title" => __("Button's icon", 'themerex'), "desc" => __('Select icon for the title from Fontello icons set', 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "color", "title" => __("Button's color", "themerex"), "desc" => __("Any color for button background", "themerex"), "value" => "", "type" => "color"), array("id" => "align", "title" => __("Button's alignment", "themerex"), "desc" => __("Align button to left or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), array("id" => "link", "title" => __("Link URL", "themerex"), "desc" => __("URL for link on button click", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Link target", "themerex"), "desc" => __("Target for link on button click", "themerex"), "dependency" => array('link' => array('not_empty')), "value" => "", "type" => "text"), array("id" => "popup", "title" => __("Open link in popup", "themerex"), "desc" => __("Open link target in popup window", "themerex"), "dependency" => array('link' => array('not_empty')), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for button's link (if need)", "themerex"), "dependency" => array('link' => array('not_empty')), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Chat", "themerex"), "desc" => __("Chat message", "themerex"), "id" => "trx_chat", "decorate" => true, "container" => true, "params" => array(array("id" => "title", "title" => __("Item title", "themerex"), "desc" => __("Chat item title", "themerex"), "value" => "", "type" => "text"), array("id" => "link", "title" => __("Item link", "themerex"), "desc" => __("Chat item link", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Chat item content", "themerex"), "desc" => __("Current chat item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Columns", "themerex"), "desc" => __("Insert up to 5 columns in your page (post)", "themerex"), "id" => "trx_columns", "decorate" => true, "container" => false, "params" => array(THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Column", "themerex"), "desc" => __("Column item", "themerex"), "id" => "trx_column_item", "container" => true, "params" => array(array("id" => "span", "title" => __("Merge columns", "themerex"), "desc" => __("Count merged columns from current", "themerex"), "value" => "", "type" => "text"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Alignment text in the column", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "color", "title" => __("Fore color", "themerex"), "desc" => __("Any color for objects in this column", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_color", "title" => __("Background color", "themerex"), "desc" => __("Any background color for this column", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_image", "title" => __("URL for background image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the background", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "_content_", "title" => __("Column item content", "themerex"), "desc" => __("Current column item content", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style))), array("title" => __("Contact form", "themerex"), "desc" => __("Insert contact form", "themerex"), "id" => "trx_contact_form", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Contact form title", "themerex"), "value" => "", "type" => "text"), array("id" => "description", "title" => __("Description", "themerex"), "desc" => __("Short description for contact form", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Field", "themerex"), "desc" => __("Custom field", "themerex"), "id" => "trx_form_item", "container" => false, "params" => array(array("id" => "type", "title" => __("Field's type", "themerex"), "desc" => __("Type of the custom field", "themerex"), "value" => "text", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_field_types), array("id" => "label", "title" => __("Field's label", "themerex"), "desc" => __("Label for the custom field", "themerex"), "value" => "", "type" => "text"), array("id" => "name", "title" => __("Field's name", "themerex"), "desc" => __("Name of the custom field", "themerex"), "value" => "", "type" => "text"), array("id" => "value", "title" => __("Default value", "themerex"), "desc" => __("Default value of the custom field", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Content block", "themerex"), "desc" => __("Container for main content block with desired class and style (use it only on fullscreen pages)", "themerex"), "id" => "trx_content", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style)), array("title" => __("Countdown", "themerex"), "desc" => __("Insert countdown object", "themerex"), "id" => "trx_countdown", "decorate" => false, "container" => false, "params" => array(array("id" => "date", "title" => __("Date", "themerex"), "desc" => __("Upcoming date (format: yyyy-mm-dd)", "themerex"), "value" => "", "format" => "yy-mm-dd", "type" => "date"), array("id" => "time", "title" => __("Time", "themerex"), "desc" => __("Upcoming time (format: HH:mm:ss)", "themerex"), "value" => "", "type" => "text"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align counter to left, center or right", "themerex"), "divider" => true, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Dropcaps", "themerex"), "desc" => __("Make first letter as dropcaps", "themerex"), "id" => "trx_dropcaps", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Dropcaps style", "themerex"), "value" => "1", "type" => "checklist", "options" => array(1 => __('Style 1', 'themerex'), 2 => __('Style 2', 'themerex'), 3 => __('Style 3', 'themerex'), 4 => __('Style 4', 'themerex'), 5 => __('Style 5', 'themerex'), 6 => __('Style 6', 'themerex'))), array("id" => "_content_", "title" => __("Paragraph content", "themerex"), "desc" => __("Paragraph with dropcaps content", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("E-mail collector", "themerex"), "desc" => __("Collect the e-mail address into specified group", "themerex"), "id" => "trx_emailer", "decorate" => false, "container" => false, "params" => array(array("id" => "group", "title" => __("Group", "themerex"), "desc" => __("The name of group to collect e-mail address", "themerex"), "value" => "", "type" => "text"), array("id" => "open", "title" => __("Open", "themerex"), "desc" => __("Initially open the input field on show object", "themerex"), "divider" => true, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "divider" => true, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Gap", "themerex"), "desc" => __("Insert gap (fullwidth area) in the post content. Attention! Use the gap only in the posts (pages) without left or right sidebar", "themerex"), "id" => "trx_gap", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Gap content", "themerex"), "desc" => __("Gap inner content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"))), array("title" => __("Google map", "themerex"), "desc" => __("Insert Google map with desired address or coordinates", "themerex"), "id" => "trx_googlemap", "decorate" => false, "container" => false, "params" => array(array("id" => "address", "title" => __("Address", "themerex"), "desc" => __("Address to show in map center", "themerex"), "value" => "", "type" => "text"), array("id" => "latlng", "title" => __("Latitude and Longtitude", "themerex"), "desc" => __("Comma separated map center coorditanes (instead Address)", "themerex"), "value" => "", "type" => "text"), array("id" => "zoom", "title" => __("Zoom", "themerex"), "desc" => __("Map zoom factor", "themerex"), "divider" => true, "value" => 16, "min" => 1, "max" => 20, "type" => "spinner"), array("id" => "style", "title" => __("Map style", "themerex"), "desc" => __("Select map style", "themerex"), "value" => "default", "type" => "checklist", "options" => $THEMEREX_shortcodes_googlemap_styles), THEMEREX_shortcodes_width('100%'), THEMEREX_shortcodes_height(240), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Hide/Show any block", "themerex"), "desc" => __("Hide or Show any block with desired CSS-selector", "themerex"), "id" => "trx_hide", "decorate" => false, "container" => false, "params" => array(array("id" => "selector", "title" => __("Selector", "themerex"), "desc" => __("Any block's CSS-selector", "themerex"), "value" => "", "type" => "text"), array("id" => "hide", "title" => __("Hide or Show", "themerex"), "desc" => __("New state for the block: hide or show", "themerex"), "value" => "yes", "size" => "small", "options" => $THEMEREX_shortcodes_yes_no, "type" => "switch"))), array("title" => __("Highlight text", "themerex"), "desc" => __("Highlight text with selected color, background color and other styles", "themerex"), "id" => "trx_highlight", "decorate" => false, "container" => true, "params" => array(array("id" => "type", "title" => __("Type", "themerex"), "desc" => __("Highlight type", "themerex"), "value" => "1", "type" => "checklist", "options" => array(0 => __('Custom', 'themerex'), 1 => __('Type 1', 'themerex'), 2 => __('Type 2', 'themerex'))), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Color for the highlighted text", "themerex"), "divider" => true, "value" => "", "type" => "color"), array("id" => "backcolor", "title" => __("Background color", "themerex"), "desc" => __("Background color for the highlighted text", "themerex"), "value" => "", "type" => "color"), array("id" => "size", "title" => __("Font size", "themerex"), "desc" => __("Font size for the highlighted text (default - in pixels, allows any CSS units of measure)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Highlighting content", "themerex"), "desc" => __("Content for highlight", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style)), array("title" => __("Icon", "themerex"), "desc" => __("Insert icon", "themerex"), "id" => "trx_icon", "decorate" => false, "container" => false, "params" => array(array("id" => "icon", "title" => __('Icon', 'themerex'), "desc" => __('Select font icon from the Fontello icons set', 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "color", "title" => __("Icon's color", "themerex"), "desc" => __("Icon's color", "themerex"), "dependency" => array('icon' => array('not_empty')), "value" => "", "type" => "color"), array("id" => "background", "title" => __("Background style", "themerex"), "desc" => __("Style of the icon background", "themerex"), "dependency" => array('icon' => array('not_empty')), "value" => "none", "type" => "radio", "options" => array('none' => __('None', 'themerex'), 'round' => __('Round', 'themerex'), 'square' => __('Square', 'themerex'))), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color", "themerex"), "dependency" => array('icon' => array('not_empty'), 'background' => array('round', 'square')), "value" => "", "type" => "color"), array("id" => "size", "title" => __("Font size", "themerex"), "desc" => __("Icon's font size", "themerex"), "dependency" => array('icon' => array('not_empty')), "value" => "", "type" => "spinner", "min" => 8, "max" => 240), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Icon font weight", "themerex"), "dependency" => array('icon' => array('not_empty')), "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Icon text alignment", "themerex"), "dependency" => array('icon' => array('not_empty')), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Image", "themerex"), "desc" => __("Insert image into your post (page)", "themerex"), "id" => "trx_image", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Image title (if need)", "themerex"), "value" => "", "type" => "text"), array("id" => "icon", "title" => __("Icon before title", 'themerex'), "desc" => __('Select icon for the title from Fontello icons set', 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "align", "title" => __("Float image", "themerex"), "desc" => __("Float image to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), array("id" => "shape", "title" => __("Image Shape", "themerex"), "desc" => __("Shape of the image: square (rectangle) or round", "themerex"), "value" => "square", "type" => "checklist", "dir" => "horizontal", "options" => array("square" => __('Square', 'themerex'), "round" => __('Round', 'themerex'))), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Infobox", "themerex"), "desc" => __("Insert infobox into your post (page)", "themerex"), "id" => "trx_infobox", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Infobox style", "themerex"), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('regular' => __('Regular', 'themerex'), 'info' => __('Info', 'themerex'), 'success' => __('Success', 'themerex'), 'error' => __('Error', 'themerex'), 'result' => __('Result', 'themerex'))), array("id" => "closeable", "title" => __("Closeable box", "themerex"), "desc" => __("Create closeable box (with close button)", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "_content_", "title" => __("Infobox content", "themerex"), "desc" => __("Content for infobox", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Line", "themerex"), "desc" => __("Insert Line into your post (page)", "themerex"), "id" => "trx_line", "decorate" => false, "container" => false, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Line style", "themerex"), "value" => "solid", "type" => "checklist", "dir" => "horizontal", "options" => array('solid' => __('Solid', 'themerex'), 'dashed' => __('Dashed', 'themerex'), 'dotted' => __('Dotted', 'themerex'), 'double' => __('Double', 'themerex'), 'shadow' => __('Shadow', 'themerex'))), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Line color", "themerex"), "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("List", "themerex"), "desc" => __("List items with specific bullets", "themerex"), "id" => "trx_list", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Bullet's style", "themerex"), "desc" => __("Bullet's style for each list item", "themerex"), "value" => "ul", "type" => "checklist", "options" => $THEMEREX_shortcodes_list_styles), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style=Iconed)", 'themerex'), "dependency" => array('style' => array('iconed')), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Item", "themerex"), "desc" => __("List item with specific bullet", "themerex"), "id" => "trx_list_item", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("List item content", "themerex"), "desc" => __("Current list item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style=Iconed)", 'themerex'), "dependency" => array('style' => array('iconed')), "divider" => true, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "title", "title" => __("List item title", "themerex"), "desc" => __("Current list item title (show it as tooltip)", "themerex"), "divider" => true, "value" => "", "type" => "text"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Parallax", "themerex"), "desc" => __("Create the parallax container (with asinc background image)", "themerex"), "id" => "trx_parallax", "decorate" => false, "container" => true, "params" => array(array("id" => "gap", "title" => __("Create gap", "themerex"), "desc" => __("Create gap around parallax container", "themerex"), "value" => "no", "size" => "small", "options" => $THEMEREX_shortcodes_yes_no, "type" => "switch"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Select style of the parallax background (for correct font color choise)", "themerex"), "value" => "light", "size" => "medium", "options" => array('light' => __('Light', 'themerex'), 'dark' => __('Dark', 'themerex')), "type" => "switch"), array("id" => "dir", "title" => __("Dir", "themerex"), "desc" => __("Scroll direction for the parallax background", "themerex"), "value" => "up", "size" => "medium", "options" => array('up' => __('Up', 'themerex'), 'down' => __('Down', 'themerex')), "type" => "switch"), array("id" => "speed", "title" => __("Speed", "themerex"), "desc" => __("Image motion speed (from 0.0 to 1.0)", "themerex"), "min" => "0", "max" => "1", "step" => "0.1", "value" => "0.3", "type" => "range"), array("id" => "color", "title" => __("Background color", "themerex"), "desc" => __("Select color for parallax background", "themerex"), "divider" => true, "value" => "", "type" => "color"), array("id" => "overlay", "title" => __("Overlay", "themerex"), "desc" => __("Overlay color opacity (from 0.0 to 1.0)", "themerex"), "min" => "0", "max" => "1", "step" => "0.1", "value" => "0", "type" => "range"), array("id" => "texture", "title" => __("Texture", "themerex"), "desc" => __("Texture style from 1 to 11. 0 - without texture.", "themerex"), "min" => "0", "max" => "11", "step" => "1", "value" => "0", "type" => "range"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the parallax background", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "image_x", "title" => __("Image X position", "themerex"), "desc" => __("Image horizontal position (as background of the parallax block) - in percent", "themerex"), "min" => "0", "max" => "100", "value" => "50", "type" => "range"), array("id" => "video", "title" => __("Video background", "themerex"), "desc" => __("Select video from media library or paste URL for video file from other site to show it as parallax background", "themerex"), "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose video', 'themerex'), 'action' => 'media_upload', 'type' => 'video', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose video file', 'themerex'), 'update' => __('Select video file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Content for the parallax container", "themerex"), "divider" => true, "value" => "", "type" => "text"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Popup window", "themerex"), "desc" => __("Container for any html-block with desired class and style for popup window", "themerex"), "id" => "trx_popup", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style)), array("title" => __("Price", "themerex"), "desc" => __("Insert price with decoration", "themerex"), "id" => "trx_price", "decorate" => false, "container" => false, "params" => array(array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated)", "themerex"), "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character", "themerex"), "value" => "\$", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc.", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Price table container", "themerex"), "desc" => __("Price table container. After insert it, move cursor inside and select shortcode Price Item", "themerex"), "id" => "trx_price_table", "decorate" => true, "container" => true, "params" => array(array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Alignment text in the table", "themerex"), "value" => "center", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Item", "themerex"), "desc" => __("Price item column", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => true, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Price table item", "themerex"), "desc" => __("Price table item (column with values)", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => false, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "divider" => true, "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'footer' => __('Footer', 'themerex'), 'united' => __('United', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "divider" => true, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "divider" => true, "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Price table data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "divider" => true, "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'footer' => __('Footer', 'themerex'), 'united' => __('United', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "divider" => true, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "dependency" => array('type' => array('price')), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "divider" => true, "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Quote", "themerex"), "desc" => __("Quote text", "themerex"), "id" => "trx_quote", "decorate" => false, "container" => true, "params" => array(array("id" => "cite", "title" => __("Quote cite", "themerex"), "desc" => __("URL for quote cite", "themerex"), "value" => "", "type" => "text"), array("id" => "title", "title" => __("Title (author)", "themerex"), "desc" => __("Quote title (author name)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Quote content", "themerex"), "desc" => __("Quote content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Section container", "themerex"), "desc" => __("Container for any block with desired class and style", "themerex"), "id" => "trx_section", "decorate" => true, "container" => true, "params" => array(array("id" => "color", "title" => __("Fore color", "themerex"), "desc" => __("Any color for objects in this section", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_color", "title" => __("Background color", "themerex"), "desc" => __("Any background color for this section", "themerex"), "value" => "", "type" => "color"), array("id" => "bg_image", "title" => __("URL for background image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the background", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "bg_tint", "title" => __("Background tint", "themerex"), "desc" => __("Main background tint: dark or light", "themerex"), "value" => "", "type" => "checklist", "options" => $THEMEREX_shortcodes_tint), array("id" => "dedicated", "title" => __("Dedicated", "themerex"), "desc" => __("Use this block as dedicated content - show it before post title on single page", "themerex"), "divider" => true, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Align", "themerex"), "desc" => __("Select block alignment", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => array("none" => __("None", 'themerex'), "left" => __("Left", 'themerex'), "right" => __("Right", 'themerex'))), array("id" => "columns", "title" => __("Columns emulation", "themerex"), "desc" => __("Select width for columns emulation", "themerex"), "value" => "none", "type" => "checklist", "options" => $THEMEREX_shortcodes_columns), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show section content", "themerex"), "divider" => true, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "dir", "title" => __("Scroll direction", "themerex"), "desc" => __("Scroll direction (if Use scroller = yes)", "themerex"), "dependency" => array('scroll' => array('yes')), "value" => "horizontal", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_dir), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class, $THEMEREX_shortcodes_style)), array("title" => __("Skills", "themerex"), "desc" => __("Insert skills diagramm in your page (post)", "themerex"), "id" => "trx_skills", "decorate" => true, "container" => false, "params" => array(array("id" => "maximum", "title" => __("Max value", "themerex"), "desc" => __("Max value for skills items", "themerex"), "value" => 100, "min" => 1, "type" => "spinner"), array("id" => "type", "title" => __("Skills type", "themerex"), "desc" => __("Select type of skills block", "themerex"), "divider" => true, "value" => "bar", "type" => "checklist", "dir" => "horizontal", "options" => array('bar' => __('Bar', 'themerex'), 'pie' => __('Pie chart', 'themerex'), 'counter' => __('Counter', 'themerex'), 'arc' => __('Arc', 'themerex'))), array("id" => "style", "title" => __("Skills style", "themerex"), "desc" => __("Select style of skills items (only for type=counter)", "themerex"), "dependency" => array('type' => array('counter')), "value" => 1, "min" => 1, "max" => 4, "type" => "spinner"), array("id" => "dir", "title" => __("Direction", "themerex"), "desc" => __("Select direction of skills block", "themerex"), "dependency" => array('type' => array('counter', 'pie', 'bar')), "value" => "horizontal", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_dir), array("id" => "layout", "title" => __("Skills layout", "themerex"), "desc" => __("Select layout of skills block", "themerex"), "dependency" => array('type' => array('counter', 'pie', 'bar')), "value" => "rows", "type" => "checklist", "dir" => "horizontal", "options" => array('rows' => __('Rows', 'themerex'), 'columns' => __('Columns', 'themerex'))), array("id" => "title", "title" => __("Skills title", "themerex"), "desc" => __("Skills block title", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "subtitle", "title" => __("Skills subtitle", "themerex"), "desc" => __("Skills block subtitle - text in the center (only for type=arc)", "themerex"), "dependency" => array('type' => array('arc')), "value" => "", "type" => "text"), array("id" => "align", "title" => __("Align skills block", "themerex"), "desc" => __("Align skills block to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), array("id" => "color", "title" => __("Skills items color", "themerex"), "desc" => __("Color for all skills items", "themerex"), "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Skill", "themerex"), "desc" => __("Skills item", "themerex"), "id" => "trx_skills_item", "container" => false, "params" => array(array("id" => "title", "title" => __("Skills item title", "themerex"), "desc" => __("Current skills item title", "themerex"), "value" => "", "type" => "text"), array("id" => "level", "title" => __("Sklls item level", "themerex"), "desc" => __("Current skills level", "themerex"), "value" => 50, "min" => 0, "increment" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Skills item color", "themerex"), "desc" => __("Current skills item color", "themerex"), "value" => "", "type" => "color"), array("id" => "style", "title" => __("Skills item style", "themerex"), "desc" => __("Select style for the current skills item (only for type=counter)", "themerex"), "dependency" => array('type' => array('price')), "value" => 1, "min" => 1, "max" => 4, "type" => "spinner"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Slider", "themerex"), "desc" => __("Insert slider into your post (page)", "themerex"), "id" => "trx_slider", "decorate" => true, "container" => false, "params" => array_merge(array(array("id" => "engine", "title" => __("Slider engine", "themerex"), "desc" => __("Select engine for slider. Attention! Flex and Swiper are built-in engines, all other engines appears only if corresponding plugings are installed", "themerex"), "value" => "flex", "type" => "checklist", "options" => $THEMEREX_shortcodes_sliders)), revslider_exists() || royalslider_exists() ? array(array("id" => "alias", "title" => __("Revolution slider alias or Royal Slider ID", "themerex"), "desc" => __("Alias for Revolution slider or Royal slider ID", "themerex"), "dependency" => array('engine' => array('revo', 'royal')), "divider" => true, "value" => "", "type" => "text")) : array(), array(array("id" => "interval", "title" => __("Flex&Swiper: Slides change interval", "themerex"), "desc" => __("Slides change interval (in milliseconds: 1000ms = 1s)", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "divider" => true, "value" => 5000, "increment" => 500, "min" => 0, "type" => "spinner"), array("id" => "cat", "title" => __("Flex&Swiper: Category list", "themerex"), "desc" => __("Comma separated list of category slugs. If empty - select posts from any category or from IDs list", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "divider" => true, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "count", "title" => __("Flex&Swiper: Number of posts", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Flex&Swiper: Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => 0, "min" => 0, "type" => "spinner"), array("id" => "orderby", "title" => __("Flex&Swiper: Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "order", "title" => __("Flex&Swiper: Post order", "themerex"), "desc" => __("Select desired posts order", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => "desc", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_ordering), array("id" => "ids", "title" => __("Flex&Swiper: Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => "", "type" => "text"), array("id" => "controls", "title" => __("Flex&Swiper: Show slider controls", "themerex"), "desc" => __("Show arrows inside slider", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "divider" => true, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "pagination", "title" => __("Flex&Swiper: Show slider pagination", "themerex"), "desc" => __("Show bullets for switch slides", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => "yes", "type" => "checklist", "options" => array('yes' => __('Dots', 'themerex'), 'full' => __('Side Titles', 'themerex'), 'over' => __('Over Titles', 'themerex'), 'no' => __('None', 'themerex'))), array("id" => "titles", "title" => __("Flex&Swiper: Show titles section", "themerex"), "desc" => __("Show section with post's title and short post's description", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "divider" => true, "value" => "no", "type" => "checklist", "options" => array("no" => __('Not show', 'themerex'), "slide" => __('Show/Hide info', 'themerex'), "fixed" => __('Fixed info', 'themerex'))), array("id" => "descriptions", "title" => __("Flex&Swiper: Post descriptions", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "desc" => __("Show post's excerpt max length (characters)", "themerex"), "value" => 0, "min" => 0, "max" => 1000, "increment" => 10, "type" => "spinner"), array("id" => "links", "title" => __("Flex&Swiper: Post's title as link", "themerex"), "desc" => __("Make links from post's titles", "themerex"), "dependency" => array('engine' => array('flex', 'swiper')), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "border", "title" => __("Show border", "themerex"), "desc" => __("Show border around slider", "themerex"), "divider" => true, "value" => "none", "type" => "checklist", "options" => array("none" => __('No border', 'themerex'), "light" => __('Light tablet', 'themerex'), "dark" => __('Dark tablet', 'themerex'))), array("id" => "align", "title" => __("Float slider", "themerex"), "desc" => __("Float slider to left or right side", "themerex"), "divider" => true, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), "children" => array("title" => __("Slide", "themerex"), "desc" => __("Slider item", "themerex"), "id" => "trx_slider_item", "container" => false, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the current slide", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Table", "themerex"), "desc" => __("Insert a table into post (page). ", "themerex"), "id" => "trx_table", "decorate" => true, "container" => true, "params" => array(array("id" => "style", "title" => __("Table style", "themerex"), "desc" => __("Select table style", "themerex"), "value" => "regular", "type" => "select", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'))), array("id" => "size", "title" => __("Cells padding", "themerex"), "desc" => __("Select padding for the table cells", "themerex"), "value" => "medium", "type" => "select", "options" => array("small" => __('Small', 'themerex'), "medium" => __('Medium', 'themerex'), "big" => __('Big', 'themerex'))), array("id" => "align", "title" => __("Content alignment", "themerex"), "desc" => __("Select alignment for each table cell", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => array("none" => __("None", 'themerex'), "left" => __("Left", 'themerex'), "center" => __("Center", 'themerex'), "right" => __("Right", 'themerex'))), array("id" => "_content_", "title" => __("Table content", "themerex"), "desc" => __("Content, created with any table-generator", "themerex"), "divider" => true, "rows" => 8, "value" => "Paste here table content, generated on one of many public internet resources, for example: http://www.impressivewebs.com/html-table-code-generator/ or http://html-tables.com/", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Tabs", "themerex"), "desc" => __("Insert tabs in your page (post)", "themerex"), "id" => "trx_tabs", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Tabs style", "themerex"), "desc" => __("Select style for tabs items", "themerex"), "value" => 1, "options" => array(1 => __('Style 1', 'themerex'), 2 => __('Style 2', 'themerex')), "type" => "radio"), array("id" => "initial", "title" => __("Initially opened tab", "themerex"), "desc" => __("Number of initially opened tab", "themerex"), "divider" => true, "value" => 1, "min" => 0, "type" => "spinner"), array("id" => "scroll", "title" => __("Use scroller", "themerex"), "desc" => __("Use scroller to show tab content (height parameter required)", "themerex"), "divider" => true, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Tab", "themerex"), "desc" => __("Tab item", "themerex"), "id" => "trx_tab", "container" => true, "params" => array(array("id" => "_title_", "title" => __("Tab title", "themerex"), "desc" => __("Current tab title", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tab content", "themerex"), "desc" => __("Current tab content", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Team", "themerex"), "desc" => __("Insert team in your page (post)", "themerex"), "id" => "trx_team", "decorate" => true, "container" => false, "params" => array($THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Member", "themerex"), "desc" => __("Team member", "themerex"), "id" => "trx_team_item", "container" => true, "params" => array(array("id" => "user", "title" => __("Team member", "themerex"), "desc" => __("Select one of registered users (if present) or put name, position etc. in fields below", "themerex"), "value" => "", "type" => "select", "options" => $THEMEREX_shortcodes_users), array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Team member's name", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Team member's position", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("Team member's e-mail", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Team member's photo (avatar)", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "readonly" => false, "type" => "media"), array("id" => "socials", "title" => __("Socials", "themerex"), "desc" => __("Team member's socials icons: name=url|name=url... For example: facebook=http://facebook.com/myaccount|twitter=http://twitter.com/myaccount", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Description", "themerex"), "desc" => __("Team member's short description", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Testimonials", "themerex"), "desc" => __("Insert testimonials into post (page)", "themerex"), "id" => "trx_testimonials", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Title of testimonmials block", "themerex"), "divider" => true, "value" => "", "type" => "text"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Testimonials style", "themerex"), "divider" => true, "value" => "1", "type" => "checklist", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'), "3" => __('Style 3', 'themerex'))), array("id" => "controls", "title" => __("Show arrows", "themerex"), "desc" => __("Show control buttons. Values 'top' and 'bottom' allowed only for Style 1", "themerex"), "divider" => true, "value" => "on", "type" => "checklist", "options" => array("off" => __('Off', 'themerex'), "on" => __('Over', 'themerex'), "top" => __('Top', 'themerex'), "bottom" => __('Bottom', 'themerex'))), array("id" => "interval", "title" => __("Testimonials change interval", "themerex"), "desc" => __("Testimonials change interval (in milliseconds: 1000ms = 1s)", "themerex"), "divider" => true, "value" => 7000, "increment" => 500, "min" => 0, "type" => "spinner"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Item", "themerex"), "desc" => __("Testimonials item", "themerex"), "id" => "trx_testimonials_item", "container" => true, "params" => array(array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Name of the testimonmials author", "themerex"), "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Position of the testimonmials author", "themerex"), "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("E-mail of the testimonmials author", "themerex"), "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Select or upload photo of testimonmials author or write URL of photo from other site", "themerex"), "value" => "", "type" => "media"), array("id" => "_content_", "title" => __("Testimonials text", "themerex"), "desc" => __("Current testimonials text", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Title", "themerex"), "desc" => __("Create header tag (1-6 level) with many styles", "themerex"), "id" => "trx_title", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Title content", "themerex"), "desc" => __("Title content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Title type", "themerex"), "desc" => __("Title type (header level)", "themerex"), "divider" => true, "value" => "1", "type" => "select", "options" => array('1' => __('Header 1', 'themerex'), '2' => __('Header 2', 'themerex'), '3' => __('Header 3', 'themerex'), '4' => __('Header 4', 'themerex'), '5' => __('Header 5', 'themerex'), '6' => __('Header 6', 'themerex'))), array("id" => "style", "title" => __("Title style", "themerex"), "desc" => __("Title style", "themerex"), "value" => "regular", "type" => "select", "options" => array('regular' => __('Regular', 'themerex'), 'underline' => __('Underline', 'themerex'), 'divider' => __('Divider', 'themerex'), 'iconed' => __('With icon (image)', 'themerex'))), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Title text alignment", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "color", "title" => __("Title color", "themerex"), "desc" => __("Select color for the title", "themerex"), "value" => "", "type" => "color"), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Title font weight", "themerex"), "value" => "", "type" => "select", "size" => "medium", "options" => array('inherit' => __('Default', 'themerex'), '100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "icon", "title" => __('Title font icon', 'themerex'), "desc" => __("Select font icon for the title from Fontello icons set (if style=iconed)", 'themerex'), "dependency" => array('style' => array('iconed')), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "image", "title" => __('or image icon', 'themerex'), "desc" => __("Select image icon for the title instead icon above (if style=iconed)", 'themerex'), "dependency" => array('style' => array('iconed')), "value" => "", "type" => "images", "size" => "small", "options" => $THEMEREX_shortcodes_images), array("id" => "picture", "title" => __('or URL for image file', "themerex"), "desc" => __("Select or upload image or write URL from other site (if style=iconed)", "themerex"), "dependency" => array('style' => array('iconed')), "readonly" => false, "value" => "", "type" => "media"), array("id" => "size", "title" => __('Icon (image) size', "themerex"), "desc" => __("Select icon (image) size (if style='iconed')", "themerex"), "dependency" => array('style' => array('iconed')), "value" => "medium", "type" => "checklist", "options" => array('small' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'large' => __('Large', 'themerex'), 'huge' => __('Huge', 'themerex'))), array("id" => "position", "title" => __('Icon (image) position', "themerex"), "desc" => __("Select icon (image) position (if style=iconed)", "themerex"), "dependency" => array('style' => array('iconed')), "value" => "left", "type" => "checklist", "options" => array('top' => __('Top', 'themerex'), 'left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "background", "title" => __('Show background under icon', "themerex"), "desc" => __("Select background under icon (if style=iconed)", "themerex"), "dependency" => array('style' => array('iconed')), "value" => "none", "type" => "checklist", "options" => array('none' => __('None', 'themerex'), 'square' => __('Square', 'themerex'), 'circle' => __('Circle', 'themerex'))), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color (if style=iconed)", "themerex"), "dependency" => array('style' => array('iconed')), "value" => "", "type" => "color"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Toggles", "themerex"), "desc" => __("Toggles items", "themerex"), "id" => "trx_toggles", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Toggles style", "themerex"), "desc" => __("Select style for display toggles", "themerex"), "value" => 1, "options" => array(1 => __('Style 1', 'themerex'), 2 => __('Style 2', 'themerex'), 3 => __('Style 3', 'themerex')), "type" => "radio"), array("id" => "counter", "title" => __("Counter", "themerex"), "desc" => __("Display counter before each toggles title", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "large", "title" => __("Large titles", "themerex"), "desc" => __("Show large titles", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "shadow", "title" => __("Shadow", "themerex"), "desc" => __("Display shadow under toggles block", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class), "children" => array("title" => __("Toggles", "themerex"), "desc" => __("Toggles item", "themerex"), "id" => "trx_toggles_item", "container" => true, "params" => array(array("id" => "title", "title" => __("Toggles item title", "themerex"), "desc" => __("Title for current toggles item", "themerex"), "value" => "", "type" => "text"), array("id" => "open", "title" => __("Open on show", "themerex"), "desc" => __("Open current toggles item on show", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "_content_", "title" => __("Toggles item content", "themerex"), "desc" => __("Current toggles item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class))), array("title" => __("Tooltip", "themerex"), "desc" => __("Create tooltip for selected text", "themerex"), "id" => "trx_tooltip", "decorate" => false, "container" => true, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Tooltip title (required)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tipped content", "themerex"), "desc" => __("Highlighted content with tooltip", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Twitter", "themerex"), "desc" => __("Insert twitter feed into post (page)", "themerex"), "id" => "trx_twitter", "decorate" => false, "container" => false, "params" => array(array("id" => "user", "title" => __("Twitter Username", "themerex"), "desc" => __("Your username in the twitter account. If empty - get it from Theme Options.", "themerex"), "value" => "", "type" => "text"), array("id" => "consumer_key", "title" => __("Consumer Key", "themerex"), "desc" => __("Consumer Key from the twitter account", "themerex"), "value" => "", "type" => "text"), array("id" => "consumer_secret", "title" => __("Consumer Secret", "themerex"), "desc" => __("Consumer Secret from the twitter account", "themerex"), "value" => "", "type" => "text"), array("id" => "token_key", "title" => __("Token Key", "themerex"), "desc" => __("Token Key from the twitter account", "themerex"), "value" => "", "type" => "text"), array("id" => "token_secret", "title" => __("Token Secret", "themerex"), "desc" => __("Token Secret from the twitter account", "themerex"), "value" => "", "type" => "text"), array("id" => "count", "title" => __("Tweets number", "themerex"), "desc" => __("Tweets number to show", "themerex"), "divider" => true, "value" => 3, "max" => 20, "min" => 1, "type" => "spinner"), array("id" => "interval", "title" => __("Tweets change interval", "themerex"), "desc" => __("Tweets change interval (in milliseconds: 1000ms = 1s)", "themerex"), "divider" => true, "value" => 7000, "increment" => 500, "min" => 0, "type" => "spinner"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Video", "themerex"), "desc" => __("Insert video player", "themerex"), "id" => "trx_video", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for video file", "themerex"), "desc" => __("Select video from media library or paste URL for video file from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose video', 'themerex'), 'action' => 'media_upload', 'type' => 'video', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose video file', 'themerex'), 'update' => __('Select video file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "autoplay", "title" => __("Autoplay video", "themerex"), "desc" => __("Autoplay video on page load", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "title", "title" => __("Show title bar", "themerex"), "desc" => __("Show title bar above video frame", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "image", "title" => __("Cover image", "themerex"), "desc" => __("Select or upload image or write URL from other site for video preview", "themerex"), "readonly" => false, "value" => "", "type" => "media"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)), array("title" => __("Zoom", "themerex"), "desc" => __("Insert the image with zoom/lens effect", "themerex"), "id" => "trx_zoom", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("Main image", "themerex"), "desc" => __("Select or upload main image", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "over", "title" => __("Overlaping image", "themerex"), "desc" => __("Select or upload overlaping image", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "border", "title" => __("Show border", "themerex"), "desc" => __("Show border around image", "themerex"), "value" => "none", "type" => "checklist", "options" => array("none" => __('No border', 'themerex'), "light" => __('Light tablet', 'themerex'), "dark" => __('Dark tablet', 'themerex'))), array("id" => "align", "title" => __("Float zoom", "themerex"), "desc" => __("Float zoom to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, $THEMEREX_shortcodes_class)));
// Filters for shortcodes handling
//----------------------------------------------------------------------
// Enable/Disable shortcodes in the excerpt
function sc_excerpt_shortcodes($content)
{
    $content = do_shortcode($content);
    //$content = strip_shortcodes($content);
    return $content;
}
// Prepare shortcodes in content
function sc_prepare_content()
{
    if (function_exists('sc_clear_around')) {
        $filters = array(array('themerex', 'sc', 'clear', 'around'), array('widget', 'text'), array('the', 'excerpt'), array('the', 'content'));
        if (function_exists('is_woocommerce')) {
コード例 #7
0
ファイル: shortcodes.php プロジェクト: amankatoch/wp-plugin
function sc_slider($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "class" => "", "engine" => get_custom_option('substitute_slider_engine'), "chop_effect" => "", "alias" => "", "ids" => "", "cat" => "", "count" => "0", "offset" => "", "orderby" => "date", "order" => 'desc', "border" => "none", "controls" => "no", "pagination" => "no", "titles" => "no", "descriptions" => get_custom_option('slider_descriptions'), "links" => "no", "align" => "", "interval" => "", "date_format" => "", "crop" => "on", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    global $THEMEREX_sc_slider_engine, $THEMEREX_sc_slider_width, $THEMEREX_sc_slider_height, $THEMEREX_sc_slider_links;
    if (empty($width)) {
        $width = "100%";
    }
    if (empty($interval)) {
        $interval = mt_rand(5000, 10000);
    }
    if ($engine == 'chop' && !file_exists(themerex_get_file_dir('/js/chopslider/jquery.id.chopslider-2.0.0.free.min.js'))) {
        $engine = 'swiper';
    }
    if ($engine == 'chop' && empty($chop_effect)) {
        $effects2D = array("vertical", "horizontal", "half", "multi");
        $effects3D = array("3DBlocks", "3DFlips");
        $chop_effect = $effects2D[min(3, mt_rand(0, 3))] . '|' . $effects3D[min(1, mt_rand(0, 1))];
    }
    $THEMEREX_sc_slider_engine = $engine;
    $THEMEREX_sc_slider_width = getStyleValue($width);
    $THEMEREX_sc_slider_height = getStyleValue($height);
    $THEMEREX_sc_slider_links = sc_param_is_on($links);
    if (empty($id)) {
        $id = "sc_slider_" . str_replace('.', '', mt_rand());
    }
    $ms = getStyleString($top, $right, $bottom, $left);
    $ws = getStyleString('', '', '', '', $width);
    $hs = getStyleString('', '', '', '', '', $height);
    $s = ($border == 'none' && !in_array($pagination, array('full', 'over')) ? $ms : '') . $hs . $ws;
    if ($border != 'none' && in_array($pagination, array('full', 'over'))) {
        $pagination = 'yes';
    }
    if ($engine != 'flex' && $engine != 'chop' && $engine != 'swiper' && in_array($pagination, array('full', 'over'))) {
        $pagination = 'yes';
    }
    $output = ($border != 'none' ? '<div class="sc_border sc_border_' . $border . ($align != '' && $align != 'none' ? ' sc_align' . $align : '') . '"' . ($ms . $hs ? ' style="' . $ms . $hs . '"' : '') . '>' : '') . (in_array($pagination, array('full', 'over')) ? '<div class="sc_slider_pagination_area sc_slider_pagination_' . $pagination . '"' . ($ms . $hs ? ' style="' . $ms . $hs . '"' : '') . '>' : '') . '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_slider' . (!empty($class) ? ' ' . $class : '') . ' sc_slider_' . $engine . (sc_param_is_on($controls) ? ' sc_slider_controls' : ' sc_slider_nocontrols') . (sc_param_is_on($pagination) ? ' sc_slider_pagination' : ' sc_slider_nopagination') . ($border == 'none' && $align != '' && $align != 'none' ? ' sc_align' . $align : '') . ($engine == 'swiper' ? ' swiper-slider-container' : '') . '"' . ((int) $interval > 0 ? ' data-interval="' . $interval . '"' : '') . ($engine == 'chop' ? ' data-effect="' . $chop_effect . '"' : '') . ($s != '' ? ' style="' . $s . '"' : '') . '>';
    $pagination_items = '';
    if ($engine == 'revo') {
        if (revslider_exists() && !empty($alias)) {
            $output .= do_shortcode('[rev_slider ' . $alias . ']');
        } else {
            $output = '';
        }
    } else {
        if ($engine == 'royal') {
            if (royalslider_exists() && !empty($alias)) {
                $output .= do_shortcode('[[new_royalslider id="' . $alias . '"]');
            } else {
                $output = '';
            }
        } else {
            if ($engine == 'flex' || $engine == 'chop' || $engine == 'swiper') {
                $imageAsBackground = $engine != 'chop';
                $caption = '';
                $output .= '<ul class="slides' . ($engine == 'swiper' ? ' swiper-wrapper' : '') . '">';
                $content = do_shortcode($content);
                if ($content) {
                    $output .= $content;
                } else {
                    global $post;
                    if (!empty($ids)) {
                        $posts = explode(',', $ids);
                        $count = count($posts);
                    }
                    $args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $count, 'ignore_sticky_posts' => 1, 'order' => $order == 'asc' ? 'asc' : 'desc');
                    if ($offset > 0 && empty($ids)) {
                        $args['offset'] = $offset;
                    }
                    $args = addSortOrderInQuery($args, $orderby, $order);
                    $args = addFiltersInQuery($args, array('thumbs'));
                    $args = addPostsAndCatsInQuery($args, $ids, $cat);
                    $query = new WP_Query($args);
                    $numSlide = 0;
                    while ($query->have_posts()) {
                        $query->the_post();
                        $numSlide++;
                        $post_id = get_the_ID();
                        $post_title = get_the_title();
                        $post_link = get_permalink();
                        $post_date = get_the_date(!empty($date_format) ? $date_format : 'd.m.y');
                        $post_attachment = wp_get_attachment_url(get_post_thumbnail_id($post_id));
                        if (sc_param_is_on($crop)) {
                            $post_attachment = $imageAsBackground ? getResizedImageURL($post_attachment, !empty($width) && themerex_strpos($width, '%') === false ? $width : null, !empty($height) && themerex_strpos($height, '%') === false ? $height : null) : getResizedImageTag($post_attachment, !empty($width) && themerex_strpos($width, '%') === false ? $width : null, !empty($height) && themerex_strpos($height, '%') === false ? $height : null);
                        } else {
                            if (!$imageAsBackground) {
                                $post_attachment = '<img src="' . $post_attachment . '" alt="">';
                            }
                        }
                        $post_accent_color = '';
                        $post_category = '';
                        $post_category_link = '';
                        if (in_array($pagination, array('full', 'over'))) {
                            // Get all post's tags
                            $post_tags_links = '';
                            if (($post_tags_list = get_the_tags()) != 0) {
                                $tag_number = 0;
                                foreach ($post_tags_list as $tag) {
                                    $tag_number++;
                                    $post_tags_links .= '<span class="slide_tag">' . $tag->name . ($tag_number == count($post_tags_list) ? '' : ',') . '</span> ';
                                }
                            }
                            $pagination_items .= '<li' . (empty($pagination_items) ? ' class="' . ($engine == 'chop' ? 'cs-active-pagination' : 'active') . '"' : '') . '>' . '<div class="slide_pager">' . '<div class="slide_date">' . $post_date . '</div>' . '<div class="slide_info">' . '<h4 class="slide_title">' . $post_title . '</h4>' . '<div class="slide_tags">' . $post_tags_links . '</div>' . '</div>' . '</div>' . '</li>';
                        }
                        $output .= '<li' . ' class="' . $engine . '-slide' . ($engine == 'chop' && $numSlide == 1 ? ' cs-activeSlide' : '') . '"' . ' style="' . ($engine == 'chop' && $numSlide == 1 ? 'display:block;' : '') . ($imageAsBackground ? 'background-image:url(' . $post_attachment . ');' : '') . $ws . $hs . '"' . '>' . (sc_param_is_on($links) ? '<a href="' . $post_link . '" title="' . htmlspecialchars($post_title) . '">' : '') . (!$imageAsBackground ? $post_attachment : '');
                        $caption = $engine == 'swiper' || $engine == 'flex' ? '' : $caption;
                        if (!sc_param_is_off($titles)) {
                            $post_hover_bg = get_custom_option('theme_color', null, $post_id);
                            $post_bg = '';
                            if ($post_hover_bg != '' && !is_inherit_option($post_hover_bg)) {
                                $rgb = Hex2RGB($post_hover_bg);
                                $post_hover_ie = str_replace('#', '', $post_hover_bg);
                                $post_bg = "background-color: rgba({$rgb['r']},{$rgb['g']},{$rgb['b']},0.8);";
                            }
                            $caption .= ($engine == 'chop' ? '<div class="sc_slider_info_item">' : '') . '<div class="sc_slider_info' . ($titles == 'fixed' ? ' sc_slider_info_fixed' : '') . ($engine == 'swiper' ? ' content-slide' : '') . '"' . ($post_bg != '' ? ' style="' . $post_bg . '"' : '') . '>';
                            $post_descr = getPostDescription();
                            if (get_custom_option("slider_info_category") == 'yes') {
                                // || empty($cat)) {
                                // Get all post's categories
                                $post_categories = getCategoriesByPostId($post_id);
                                $post_categories_str = '';
                                for ($i = 0; $i < count($post_categories); $i++) {
                                    if ($post_category == '') {
                                        if (get_theme_option('close_category') == 'parental') {
                                            $parent_cat_id = 0;
                                            //(int) get_custom_option('category_id');
                                            $parent_cat = getParentCategory($post_categories[$i]['term_id'], $parent_cat_id);
                                            if ($parent_cat) {
                                                $post_category = $parent_cat['name'];
                                                $post_category_link = $parent_cat['link'];
                                                if ($post_accent_color == '') {
                                                    $post_accent_color = get_category_inherited_property($parent_cat['term_id'], 'theme_color');
                                                }
                                            }
                                        } else {
                                            $post_category = $post_categories[$i]['name'];
                                            $post_category_link = $post_categories[$i]['link'];
                                            if ($post_accent_color == '') {
                                                $post_accent_color = get_category_inherited_property($post_categories[$i]['term_id'], 'theme_color');
                                            }
                                        }
                                    }
                                    if ($post_category != '' && $post_accent_color != '') {
                                        break;
                                    }
                                }
                                if ($post_category == '' && count($post_categories) > 0) {
                                    $post_category = $post_categories[0]['name'];
                                    $post_category_link = $post_categories[0]['link'];
                                    if ($post_accent_color == '') {
                                        $post_accent_color = get_category_inherited_property($post_categories[0]['term_id'], 'theme_color');
                                    }
                                }
                                if ($post_category != '') {
                                    $caption .= '<div class="sc_slider_category"' . (themerex_substr($post_accent_color, 0, 1) == '#' ? ' style="background-color: ' . $post_accent_color . '"' : '') . '><a href="' . $post_category_link . '">' . $post_category . '</a></div>';
                                }
                            }
                            $output_reviews = '';
                            if (get_custom_option('show_reviews') == 'yes' && get_custom_option('slider_reviews') == 'yes') {
                                $avg_author = marksToDisplay(get_post_meta($post_id, 'reviews_avg' . (get_theme_option('reviews_first') == 'author' && $orderby != 'users_rating' || $orderby == 'author_rating' ? '' : '2'), true));
                                if ($avg_author > 0) {
                                    $output_reviews .= '<div class="sc_slider_reviews reviews_summary blog_reviews' . (get_custom_option("slider_info_category") == 'yes' ? ' after_category' : '') . '">' . '<div class="criteria_summary criteria_row">' . getReviewsSummaryStars($avg_author) . '</div>' . '</div>';
                                }
                            }
                            if (get_custom_option("slider_info_category") == 'yes') {
                                $caption .= $output_reviews;
                            }
                            $caption .= '<h2 class="sc_slider_subtitle"><a href="' . $post_link . '">' . $post_title . '</a></h2>';
                            if (get_custom_option("slider_info_category") != 'yes') {
                                $caption .= $output_reviews;
                            }
                            if ($descriptions > 0) {
                                $caption .= '<div class="sc_slider_descr">' . getShortString($post_descr, $descriptions) . '</div>';
                            }
                            $caption .= '</div>' . ($engine == 'chop' ? '</div>' : '');
                        }
                        $output .= ($engine == 'swiper' || $engine == 'flex' ? $caption : '') . (sc_param_is_on($links) ? '</a>' : '') . '</li>';
                    }
                    wp_reset_postdata();
                }
                $output .= '</ul>';
                if ($engine == 'swiper' || $engine == 'chop') {
                    if (sc_param_is_on($controls)) {
                        $output .= '
					<ul class="flex-direction-nav">
					<li><a class="flex-prev" href="#"></a></li>
					<li><a class="flex-next" href="#"></a></li>
					</ul>';
                    }
                    if (sc_param_is_on($pagination)) {
                        $output .= '<div class="flex-control-nav"></div>';
                    }
                }
                if ($engine == 'chop') {
                    $output .= '
				<div class="sc_slider_info_slides">' . $caption . '</div>
				<div class="sc_slider_info_holder"></div>
				';
                }
            } else {
                $output = '';
            }
        }
    }
    if (!empty($output)) {
        $output .= '</div>' . ($border != 'none' ? '</div>' : '');
        if ($pagination_items) {
            $output .= '
				<div class="flex-control-nav manual"' . ($hs ? ' style="' . $hs . '"' : '') . '>
					<div id="' . $id . '_scroll" class="sc_scroll sc_scroll_vertical swiper-slider-container scroll-container"' . ($hs ? ' style="' . $hs . '"' : '') . '>
						<div class="sc_scroll_wrapper swiper-wrapper">
							<div class="sc_scroll_slide swiper-slide">
								<ul>' . $pagination_items . '</ul>
							</div>
						</div>
						<div id="' . $id . '_scroll_bar" class="sc_scroll_bar sc_scroll_bar_vertical"></div>
					</div>
				</div>';
            $output .= '</div>';
        }
    }
    return $output;
}
コード例 #8
0
function sc_slider($atts, $content = null)
{
    global $mult;
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "engine" => "swiper", "alias" => "", "ids" => "", "cat" => "", "count" => "0", "offset" => "", "orderby" => "date", "order" => 'desc', "border" => "none", "controls" => "no", "pagination" => "no", "caption" => "no", "links" => "no", "align" => "", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => "", "info" => "yes", "progressbar" => "", "date_before" => "", "date_after" => ""), $atts));
    global $THEMEREX_sc_slider_engine, $THEMEREX_sc_slider_width, $THEMEREX_sc_slider_height, $THEMEREX_sc_slider_links, $trex_accent_color;
    $THEMEREX_sc_slider_engine = $engine;
    $THEMEREX_sc_slider_width = $width;
    $THEMEREX_sc_slider_height = $height;
    $THEMEREX_sc_slider_links = sc_param_is_on($links);
    $show_pagination = in_array($pagination, array('default', 'thumbs', 'icons')) ? true : false;
    $s = ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . 'px;' : '') . ($right !== '' ? 'margin-right:' . $right . 'px;' : '') . (!empty($width) ? 'width:' . $width . (themerex_strpos($width, '%') !== false ? '' : 'px') . ';' : '') . (!empty($height) ? 'height:' . $height . (themerex_strpos($height, '%') !== false ? '' : 'px') . ';' : '');
    $output = '';
    if ($pagination == 'thumbs' || $pagination == 'icons') {
        $output .= '<div class="slider_wrap">';
    }
    $output .= ($border != 'none' ? '<div class="sc_border sc_border_' . $border . ($align != '' && $align != 'none' ? ' sc_align' . $align : '') . '">' : '') . '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_slider' . ' sc_slider_' . $engine . (sc_param_is_on($controls) ? ' sc_slider_controls' : ' sc_slider_nocontrols') . (!empty($width) && $width < 600 ? ' sc_slider_compact' : '') . ($pagination == 'default' ? ' sc_slider_pagination' : ' sc_slider_nopagination') . ' pagination_style_' . $pagination . (sc_param_is_on($progressbar) ? ' sc_slider_progress' : '') . ($border == 'none' && $align != '' && $align != 'none' ? ' sc_align' . $align : '') . ($engine == 'swiper' ? ' swiper-container' : '') . '"' . ($s != '' ? ' style="' . $s . '"' : '') . '>';
    if ($engine == 'revo') {
        if (revslider_exists() && !empty($alias)) {
            $output .= do_shortcode('[rev_slider ' . $alias . ']');
        } else {
            $output = '';
        }
    } else {
        if ($engine == 'royal') {
            if (royalslider_exists() && !empty($alias)) {
                $output .= do_shortcode('[[new_royalslider id="' . $alias . '"]');
            } else {
                $output = '';
            }
        } else {
            if ($engine == 'swiper') {
                $output .= '<ul class="slides' . ($engine == 'swiper' ? ' swiper-wrapper' : '') . '">';
                $content = empty($ids) || empty($cat) ? do_shortcode($content) : '';
                if ($content) {
                    $output .= $content;
                } else {
                    global $post;
                    if (!empty($ids)) {
                        $posts = explode(',', $ids);
                        $count = count($posts);
                    }
                    $args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $count, 'ignore_sticky_posts' => 1, 'order' => $order == 'asc' ? 'asc' : 'desc');
                    if ($offset > 0 && empty($ids)) {
                        $args['offset'] = $offset;
                    }
                    $args = addSortOrderInQuery($args, $orderby, $order, true);
                    $args = addPostsAndCatsInQuery($args, $ids, $cat);
                    if (!empty($date_before)) {
                        $args['date_query']['before'] = $date_before;
                    }
                    if (!empty($date_after)) {
                        $args['date_query']['after'] = $date_after;
                    }
                    $query = new WP_Query($args);
                    $pagination_posts = $show_pagination ? array() : '';
                    $i = 0;
                    while ($query->have_posts()) {
                        $query->the_post();
                        $post_id = get_the_ID();
                        $post_link = get_permalink();
                        $post_attachment = wp_get_attachment_url(get_post_thumbnail_id($post_id));
                        $post_accent_color = '';
                        $post_category = '';
                        $post_category_link = '';
                        $post_title = getPostTitle($post_id);
                        $post_title = '<span>' . str_replace(' ', '</span><span>', $post_title) . '</span>';
                        $post_obj = get_post($post_id);
                        $post_content = $post_obj->post_content;
                        $post_format = get_post_format($post_id);
                        if ($post_format == 'video') {
                            $post_video = getPostVideo($post_content);
                            $post_video_frame = '<iframe class="video_frame"' . ' src="' . getVideoPlayerURL($post_video) . '"' . ' width="100%"' . (!empty($height) ? ' height=' . $height . 'px' : '') . ' frameborder="0" webkitAllowFullScreen="webkitAllowFullScreen" mozallowfullscreen="mozallowfullscreen" allowFullScreen="allowFullScreen"></iframe>';
                        }
                        $post_author_data = get_userdata($post_obj->post_author);
                        $post_author = $post_author_data->user_nicename;
                        $author_link = get_author_posts_url($post_obj->post_author);
                        $post_date = '<i class="icon-clock-1"></i>' . date('M d, Y', strtotime($post_obj->post_date));
                        $post_comments = $post_obj->comment_count;
                        $post_comments_link = '<a href="' . $post_link . '"><i class="icon-comment-1"></i>' . $post_comments . '</a>';
                        $post_info = '<div class="slide_info">' . __('By ', 'themerex') . '<a href="' . $author_link . '">' . $post_author . '</a><span class="separator">|</span>' . $post_date . '<span class="separator">|</span>' . $post_comments_link . '</div>';
                        $output .= '<li' . ($engine == 'swiper' ? ' class="swiper-slide' . ($post_format == 'video' ? ' format-video' : '') . '"' : '') . ' style="background-image:url(' . $post_attachment . ');' . (!empty($width) ? 'width:' . $width . (themerex_strpos($width, '%') !== false ? '' : 'px') . ';' : '') . (!empty($height) ? 'height:' . $height . (themerex_strpos($height, '%') !== false ? '' : 'px') . ';' : '') . '"' . ($post_format == 'video' && !empty($post_video_frame) ? ' data-video="' . esc_attr($post_video_frame) . '"' : '') . ' >';
                        $output .= '<a href="' . $post_link . '" class="sc_slider_post_link"></a>';
                        $output .= '<div class="slider_info_wrap" ' . (!empty($height) ? 'style="height:' . $height . 'px"' : '') . '>';
                        if (!sc_param_is_off($caption)) {
                            $post_hover_bg = get_custom_option('theme_color', null, $post_id);
                            $post_bg = '';
                            $output .= '<div class="sc_slider_info' . ($caption == 'fixed' ? ' sc_slider_info_fixed' : '') . ($engine == 'swiper' ? ' content-slide' : '') . '">';
                            $post_descr = getPostDescription();
                            $output .= '<h2 class="sc_slider_subtitle">' . $post_title . '</h2>';
                            $output .= $info == 'yes' ? $post_info : '';
                            $output .= '</div>';
                        }
                        $output .= '</div>';
                        $output .= '</li>';
                        if ($show_pagination) {
                            $post_format = get_post_format($post_id);
                            $format_icon = getPostFormatIcon($post_format);
                            $pagination_posts[$i] = '<li class="pagination_post swiper-slide' . ($i == 0 ? ' current' : '') . '">';
                            if ($pagination == 'thumbs') {
                                $pagination_posts[$i] .= !empty($post_attachment) ? '<div class="post_thumb">' . getResizedImageTag($post_attachment, 50 * $mult, 50 * $mult) . '</div>' : '';
                            } else {
                                $pagination_posts[$i] .= '<div class="post_icon"><i class="' . $format_icon . '"></i></div>';
                                $post_info = $post_date . '<span class="separator">|</span><i class="icon-comment-1"></i>' . $post_comments;
                            }
                            $pagination_posts[$i] .= '<div class="pagi_wrap">';
                            $pagination_posts[$i] .= '<h4>' . getPostTitle($post_id) . '</h4>';
                            $pagination_posts[$i] .= !empty($post_info) && $pagination != 'thumbs' ? '<div class="post_info">' . $post_info . '</div>' : '';
                            $pagination_posts[$i] .= '</div>';
                            $pagination_posts[$i] .= '</li>';
                        }
                        $i++;
                    }
                    wp_reset_postdata();
                }
                $output .= '</ul>';
                if ($show_pagination) {
                    if (!empty($pagination_posts)) {
                        $pagination_output = '';
                        foreach ($pagination_posts as $pagi_post) {
                            $pagination_output .= $pagi_post;
                        }
                    }
                }
                if (sc_param_is_on($controls)) {
                    $output .= '
				<ul class="flex-direction-nav">
					<li><a class="flex-prev" href="#">' . (!empty($width) && $width < 600 ? '<span class="icon-left-open-big"></span>' : '') . '</a></li>
					<li><a class="flex-next" href="#">' . (!empty($width) && $width < 600 ? '<span class="icon-right-open-big"></span>' : '') . '</a></li>
				</ul>';
                }
            } else {
                $output = '';
            }
        }
    }
    $output .= !empty($output) ? ($border != 'none' ? '</div>' : '') . '</div>' : '';
    $output .= '<div class="flex-control-nav"' . (!empty($pagination_output) ? ' style="height:' . $height . 'px"' : '') . '>' . (!empty($pagination_output) ? '<div class="swipe_scroll_vertical"></div><ul class="slides swiper-wrapper">' . $pagination_output . '</ul></div>' : '') . '</div>';
    return $output;
}
コード例 #9
0
 function getSlidersList($prepend_inherit = false)
 {
     $list = array();
     if ($prepend_inherit) {
         $list['inherit'] = __("Inherit", 'themerex');
     }
     $list["swiper"] = __("Swiper slider", 'themerex');
     if (revslider_exists()) {
         $list["revo"] = __("Revolution slider", 'themerex');
     }
     if (royalslider_exists()) {
         $list["royal"] = __("Royal slider", 'themerex');
     }
     return $list;
 }
コード例 #10
0
ファイル: shortcodes.php プロジェクト: riaface/GrowBeyond
function sc_slider($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "engine" => "flex", "alias" => "", "ids" => "", "theme" => "dark", "cat" => "", "count" => "0", "offset" => "", "orderby" => "date", "order" => 'desc', "controls" => "no", "pagination" => "no", "titles" => "no", "links" => "no", "rev_style" => "rev_full", "align" => "", "width" => "100%", "height" => "400", "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    /*scripts & styles*/
    themerex_enqueue_style('swiperslider-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.css', array(), null);
    themerex_enqueue_script('swiperslider', get_template_directory_uri() . '/js/swiper/idangerous.swiper-2.1.js', array('jquery'), null, true);
    themerex_enqueue_style('swiperslider-scrollbar-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar.css', array(), null);
    themerex_enqueue_script('swiperslider-scrollbar', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar-2.1.js', array('jquery'), null, true);
    themerex_enqueue_script('hover-dir', get_template_directory_uri() . '/js/hover/jquery.hoverdir.js', array(), null, true);
    themerex_enqueue_style('hover-intent', get_template_directory_uri() . '/js/hover/hoverIntent.js', array(), null);
    global $THEMEREX_sc_slider_engine, $THEMEREX_sc_slider_width, $THEMEREX_sc_slider_height, $THEMEREX_sc_slider_links;
    $THEMEREX_sc_slider_engine = $engine;
    $THEMEREX_sc_slider_width = $width;
    $THEMEREX_sc_slider_height = $height;
    $THEMEREX_sc_slider_links = sc_param_is_on($links);
    $s = ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . ((int) $left > 0 || (int) $left < 0 ? 'px' : '') . ';' : '') . ($right !== '' ? 'margin-right:' . $right . ((int) $right > 0 || (int) $right < 0 ? 'px' : '') . ';' : '') . (!empty($width) ? 'width:' . $width . (themerex_strpos($width, '%') !== false ? '' : 'px') . ';' : '') . (!empty($height) ? 'height:' . $height . (themerex_strpos($height, '%') !== false ? '' : 'px') . ';' : '');
    $c = ' sc_slider_' . $engine . (sc_param_is_on($controls) ? ' sc_slider_controls' : '') . (sc_param_is_on($pagination) ? ' sc_slider_pagination' : '') . ($align != '' && $align != 'none' ? ' sc_float_' . $align : '') . ($engine == 'swiper' ? ' swiper-container' : '');
    $output = '<div' . ($id ? ' id="sc_slider_' . $id . '"' : '') . ' class="sc_slider ' . $c . '" ' . ($s != '' ? ' style="' . $s . '"' : '') . ' data-settings="horizontal">';
    if ($engine == 'revo') {
        if (revslider_exists() && !empty($alias)) {
            $output .= do_shortcode('[rev_slider ' . $alias . ']');
        } else {
            $output = '';
        }
    } else {
        if ($engine == 'royal') {
            if (royalslider_exists() && !empty($alias)) {
                $output .= do_shortcode('[[new_royalslider id="' . $alias . '"]');
            } else {
                $output = '';
            }
        } else {
            if ($engine == 'flex' || $engine == 'swiper') {
                $output .= '<ul class="slides' . ($engine == 'swiper' ? ' swiper-wrapper' : '') . '">';
                $content = do_shortcode($content);
                if ($content) {
                    $output .= $content;
                } else {
                    global $post;
                    if (!empty($ids)) {
                        $posts = explode(',', $ids);
                        $count = count($posts);
                    }
                    $args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $count, 'ignore_sticky_posts' => 1, 'order' => $order == 'asc' ? 'asc' : 'desc');
                    if ($offset > 0 && empty($ids)) {
                        $args['offset'] = $offset;
                    }
                    $args = addSortOrderInQuery($args, $orderby, $order, true);
                    $args = addPostsAndCatsInQuery($args, $ids, $cat);
                    $query = new WP_Query($args);
                    while ($query->have_posts()) {
                        $query->the_post();
                        $post_id = get_the_ID();
                        $post_link = get_permalink();
                        $post_attachment = wp_get_attachment_url(get_post_thumbnail_id($post_id));
                        $post_accent_color = '';
                        $post_category = '';
                        $post_category_link = '';
                        $post_title = getPostTitle($post_id);
                        $avg_author = 0;
                        $ed = themerex_substr($width, -1) == '%' ? '%' : 'px';
                        //image crop
                        $no_crop = getThumbSizes(array('thumb_size' => 'image_large', 'thumb_crop' => true, 'sidebar' => false));
                        $crop = array("w" => $width != '' && $ed != '%' ? $width : $no_crop['w'], "h" => $height != '' && $ed != '%' ? $height : null);
                        $post_attachment = getResizedImageURL($post_attachment, $crop['w'], $crop['h']);
                        $output .= '<li' . ($engine == 'swiper' ? ' class="swiper-slide"' : '') . ' data-theme="' . ($theme != '' ? $theme : 'dark') . '" style="background-image:url(' . $post_attachment . ');' . (!empty($width) ? ' width:' . $width . (themerex_strpos($width, '%') !== false ? '' : 'px') . ';' : '') . (!empty($height) ? ' height:' . $height . (themerex_strpos($height, '%') !== false ? '' : 'px') . ';' : '') . '">' . (sc_param_is_on($links) ? '<a href="' . $post_attachment . '" title="' . htmlspecialchars($post_title) . '">' : '');
                        if (!sc_param_is_off($titles)) {
                            $post_hover_bg = get_custom_option('theme_color', null, $post_id);
                            $post_bg = '';
                            if ($post_hover_bg != '' && !is_inherit_option($post_hover_bg)) {
                                $rgb = Hex2RGB_1($post_hover_bg);
                                $post_hover_ie = str_replace('#', '', $post_hover_bg);
                                $post_bg = "background-color: rgba({$rgb['r']},{$rgb['g']},{$rgb['b']},0.8);";
                            }
                            $output .= '<div class="sc_slider_info' . ($titles == 'fixed' ? ' sc_slider_info_fixed' : ' sc_slider_info_slide') . ($engine == 'swiper' ? ' content-slide' : '') . '"><div class="main">';
                            $post_descr = getPostDescription();
                            //reviews
                            if (get_custom_option('show_reviews') == 'yes' && get_custom_option('slider_reviews') == 'yes') {
                                $output_reviews = '';
                                $rating_max = get_custom_option('reviews_max_level');
                                $review_title = sprintf($rating_max < 100 ? __('Rating: %s from %s', 'themerex') : __('Rating: %s', 'themerex'), number_format($avg_author, 1) . ($rating_max < 100 ? '' : '%'), $rating_max . ($rating_max < 100 ? '' : '%'));
                                $avg_author = marksToDisplay(get_post_meta($post_id, 'reviews_avg' . (get_theme_option('reviews_first') == 'author' && $orderby != 'users_rating' || $orderby == 'author_rating' ? '' : '2'), true));
                                if ($avg_author > 0 && get_custom_option('slider_reviews_style') == 'rev_short') {
                                    $output .= '<div class="sc_slider_reviews_short" title="' . $review_title . '"><span class="rInfo">' . $avg_author . '</span><span class="rDelta">' . ($rating_max < 100 ? '<span class="icon-star"></span>' : '%') . '</span></div>';
                                } else {
                                    if ($avg_author > 0 && get_custom_option('slider_reviews_style') == 'rev_full') {
                                        $output_reviews .= '<div class="sc_slider_reviews reviews_summary blog_reviews" title="' . $review_title . '">' . '<div class="criteria_summary criteria_row">' . getReviewsSummaryStars($avg_author) . '</div>' . '</div>';
                                    }
                                }
                                $output .= $output_reviews;
                            }
                            //category
                            if (get_custom_option("slider_info_category") == 'yes') {
                                // || empty($cat)) {
                                // Get all post's categories
                                $post_categories = getCategoriesByPostId($post_id);
                                $post_categories_str = '';
                                for ($i = 0; $i < count($post_categories); $i++) {
                                    if ($post_category == '') {
                                        if (get_theme_option('close_category') == 'parental') {
                                            $parent_cat_id = 0;
                                            //(int) get_custom_option('category_id');
                                            $parent_cat = getParentCategory($post_categories[$i]['term_id'], $parent_cat_id);
                                            if ($parent_cat) {
                                                $post_category = $parent_cat['name'];
                                                $post_category_link = $parent_cat['link'];
                                                if ($post_accent_color == '') {
                                                    $post_accent_color = get_category_inherited_property($parent_cat['term_id'], 'theme_color');
                                                }
                                            }
                                        } else {
                                            $post_category = $post_categories[$i]['name'];
                                            $post_category_link = $post_categories[$i]['link'];
                                            if ($post_accent_color == '') {
                                                $post_accent_color = get_category_inherited_property($post_categories[$i]['term_id'], 'theme_color');
                                            }
                                        }
                                    }
                                    if ($post_category != '' && $post_accent_color != '') {
                                        break;
                                    }
                                }
                                if ($post_category == '' && count($post_categories) > 0) {
                                    $post_category = $post_categories[0]['name'];
                                    $post_category_link = $post_categories[0]['link'];
                                    if ($post_accent_color == '') {
                                        $post_accent_color = get_category_inherited_property($post_categories[0]['term_id'], 'theme_color');
                                    }
                                }
                                if ($post_category != '') {
                                    $output .= '<div class="sc_slider_category"' . (themerex_substr($post_accent_color, 0, 1) == '#' ? ' style="background-color: ' . $post_accent_color . '"' : '') . '><a href="' . $post_category_link . '">' . $post_category . '</a></div>';
                                }
                            }
                            //title
                            if (strlen($post_title) > 25) {
                                $post_title = substr($post_title, 0, 25) . '...';
                            }
                            $output .= '<h2 class="sc_slider_subtitle"><a href="' . $post_link . '">' . $post_title . '</a></h2>';
                            //descriptions
                            if (get_custom_option('slider_descriptions') == 'yes') {
                                $output .= '<div class="sc_slider_descr">' . $post_descr . '</div>';
                            }
                            $output .= '</div></div>';
                        }
                        $output .= (sc_param_is_on($links) ? '</a>' : '') . '</li>';
                    }
                    wp_reset_postdata();
                }
                $output .= '</ul>';
                if ($engine == 'swiper') {
                    if (sc_param_is_on($controls)) {
                        $output .= '
					<ul class="slider-control-nav">
						<li class="slide-prev"><a class="icon-left-open-big" href="#"></a></li>
						<li class="slide-next"><a class="icon-right-open-big" href="#"></a></li>
					</ul>';
                    }
                    if (sc_param_is_on($pagination)) {
                        $output .= '
					<div class="slider-pagination-nav"></div>
				';
                    }
                }
            } else {
                $output = '';
            }
        }
    }
    $output .= !empty($output) ? '</div>' : '';
    return $output;
}
コード例 #11
0
class WPBakeryShortCode_Themerex_Sidebar extends THEMEREX_VC_ShortCodeSingle
{
}
// Skills
//-------------------------------------------------------------------------------------
vc_map(array("base" => "skills", "name" => __("Skills", "themerex"), "description" => __("Insert skills diagramm", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_skills', "class" => "trx_sc_collection trx_sc_skills", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_skills_item'), "params" => array(array("param_name" => "maximum", "heading" => __("Max value", "themerex"), "description" => __("Max value for skills items", "themerex"), "admin_label" => true, "class" => "", "value" => "100", "type" => "textfield"), array("param_name" => "align", "heading" => __("Alignment", "themerex"), "description" => __("Align skills block to left or right side", "themerex"), "class" => "", "value" => array_flip($THEMEREX_shortcodes_float), "type" => "dropdown"), array("param_name" => "color", "heading" => __("Skills items color", "themerex"), "description" => __("Color for all skills items", "themerex"), "class" => "", "value" => "", "type" => "colorpicker"), array("param_name" => "type", "heading" => __("Skills type", "themerex"), "description" => __("Select type of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array(__('Bar', 'themerex') => 'bar', __('Counter', 'themerex') => 'counter', __('Circles', 'themerex') => 'circles'), "type" => "dropdown"), array("param_name" => "style", "heading" => __("Skills style", "themerex"), "description" => __("Select style of skills items (only for type=counter)", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2', __('Style 3', 'themerex') => '3', __('Style 4', 'themerex') => '4'), 'dependency' => array('element' => 'type', 'value' => array('counter')), "type" => "dropdown"), array("param_name" => "dir", "heading" => __("Direction", "themerex"), "description" => __("Select direction of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), "class" => "", "value" => array_flip($THEMEREX_shortcodes_dir), "type" => "dropdown"), array("param_name" => "layout", "heading" => __("Skills layout", "themerex"), "description" => __("Select layout of skills block", "themerex"), "admin_label" => true, "group" => __('Style', 'themerex'), 'dependency' => array('element' => 'type', 'value' => array('counter', 'bar', 'pie')), "class" => "", "value" => array(__('Rows', 'themerex') => 'rows', __('Columns', 'themerex') => 'columns'), "type" => "dropdown"), THEMEREX_VC_width(), THEMEREX_VC_height(), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id)));
vc_map(array("base" => "skills_item", "name" => __("Skills item", "themerex"), "description" => __("Skills item", "themerex"), "show_settings_on_create" => true, "class" => "trx_sc_single trx_sc_skills_item", "content_element" => true, "is_container" => false, "as_child" => array('only' => 'trx_skills'), "as_parent" => array('except' => 'trx_skills'), "params" => array(array("param_name" => "title", "heading" => __("Title", "themerex"), "description" => __("Title for the current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "level", "heading" => __("Level", "themerex"), "description" => __("Level value for the current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "50", "type" => "textfield"), array("param_name" => "color", "heading" => __("Color", "themerex"), "description" => __("Color for current skills item", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "colorpicker"), array("param_name" => "style", "heading" => __("Item style", "themerex"), "description" => __("Select style for the current skills item (only for type=counter)", "themerex"), "admin_label" => true, "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2', __('Style 3', 'themerex') => '3', __('Style 4', 'themerex') => '4'), "type" => "dropdown"), THEMEREX_VC_width(), $THEMEREX_VC_id)));
class WPBakeryShortCode_Skills extends THEMEREX_VC_ShortCodeCollection
{
}
class WPBakeryShortCode_Skills_Item extends THEMEREX_VC_ShortCodeSingle
{
}
// Slider
//-------------------------------------------------------------------------------------
vc_map(array("base" => "slider", "name" => __("Slider", "themerex"), "description" => __("Insert slider", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_slider', "class" => "trx_sc_collection trx_sc_slider", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_slider_item'), "params" => array_merge(array(array("param_name" => "engine", "heading" => __("Engine", "themerex"), "description" => __("Select engine for slider. Attention! Swiper is built-in engine, all other engines appears only if corresponding plugings are installed", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_sliders), "type" => "dropdown")), revslider_exists() || royalslider_exists() ? array(array("param_name" => "alias", "heading" => __("Revolution slider alias or Royal Slider ID", "themerex"), "description" => __("Alias for Revolution slider or Royal slider ID", "themerex"), "admin_label" => true, "class" => "", 'dependency' => array('element' => 'engine', 'value' => array('revo', 'royal')), "value" => "", "type" => "textfield")) : array(), array(array("param_name" => "cat", "heading" => __("Swiper: Category list", "themerex"), "description" => __("Comma separated list of category slugs. If empty - select posts from any category or from IDs list", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "count", "heading" => __("Swiper: Number of posts", "themerex"), "description" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "3", "type" => "textfield"), array("param_name" => "offset", "heading" => __("Swiper: Offset before select posts", "themerex"), "description" => __("Skip posts before select next part.", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "0", "type" => "textfield"), array("param_name" => "date_before", "heading" => __("Swiper: Posts published before", "themerex"), "description" => __("Date to retrieve posts before. Please, use format: YYYY-mm-dd (for example, 2014-12-31)", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "date_after", "heading" => __("Swiper: Posts published after", "themerex"), "description" => __("Date to retrieve posts after. Please, use format: YYYY-mm-dd (for example, 2014-12-31)", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "orderby", "heading" => __("Swiper: Post sorting", "themerex"), "description" => __("Select desired posts sorting method", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_sorting), "type" => "dropdown"), array("param_name" => "order", "heading" => __("Swiper: Post order", "themerex"), "description" => __("Select desired posts order", "themerex"), "admin_label" => true, "class" => "", "value" => array_flip($THEMEREX_shortcodes_ordering), "type" => "dropdown"), array("param_name" => "ids", "heading" => __("Swiper: Post IDs list", "themerex"), "description" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => "", "type" => "textfield"), array("param_name" => "controls", "heading" => __("Swiper: Show slider controls", "themerex"), "description" => __("Show arrows inside slider", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('Show controls', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "pagination", "heading" => __("Swiper: Show slider pagination", "themerex"), "description" => __("Show bullets or titles to switch slides", "themerex"), "group" => __('Details', 'themerex'), 'dependency' => array('element' => 'engine', 'value' => array('flex', 'swiper')), "class" => "", "value" => array(__('None', 'themerex') => 'false', __('Default', 'themerex') => 'default', __('Thumbnails', 'themerex') => 'thumbs', __('Post-format icons', 'themerex') => 'icons'), "type" => "dropdown"), array("param_name" => "align", "heading" => __("Float slider", "themerex"), "description" => __("Float slider to left or right side", "themerex"), "class" => "", "value" => array_flip($THEMEREX_shortcodes_float), "type" => "dropdown"), array("param_name" => "progressbar", "heading" => __("Progress bar", "themerex"), "description" => __("Show slider progress bar", "themerex"), "group" => __('Details', 'themerex'), "class" => "", "value" => array(__('Show progess bar', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "caption", "heading" => __("Slide caption", "themerex"), "description" => __("Show slide title and info", "themerex"), "group" => __('Details', 'themerex'), "class" => "", "value" => array(__('Show slide caption', 'themerex') => 'yes'), "type" => "checkbox"), array("param_name" => "info", "heading" => __("Slide info", "themerex"), "description" => __("Show slide info", "themerex"), "group" => __('Details', 'themerex'), "class" => "", "value" => array(__('Show slide info', 'themerex') => 'yes'), "type" => "checkbox"), THEMEREX_VC_width(), THEMEREX_VC_height(), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id))));
vc_map(array("base" => "slider_item", "name" => __("Slide", "themerex"), "description" => __("Slider item - single slide", "themerex"), "show_settings_on_create" => true, "content_element" => true, "is_container" => false, "as_child" => array('only' => 'slider'), "as_parent" => array('except' => 'slider'), "params" => array(array("param_name" => "src", "heading" => __("URL (source) for image file", "themerex"), "description" => __("Select or upload image or write URL from other site for the current slide", "themerex"), "admin_label" => true, "class" => "", "value" => "", "type" => "attach_image"), $THEMEREX_VC_id)));
class WPBakeryShortCode_Slider extends THEMEREX_VC_ShortCodeCollection
{
}
class WPBakeryShortCode_Slider_Item extends THEMEREX_VC_ShortCodeSingle
{
}
// Table
//-------------------------------------------------------------------------------------
vc_map(array("base" => "table", "name" => __("Table", "themerex"), "description" => __("Insert a table", "themerex"), "category" => __('Content', 'js_composer'), 'icon' => 'icon_trx_table', "class" => "trx_sc_container trx_sc_table", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array(array("param_name" => "style", "heading" => __("Table style", "themerex"), "description" => __("Select table style", "themerex"), "admin_label" => true, "class" => "", "value" => array(__('Style 1', 'themerex') => '1', __('Style 2', 'themerex') => '2', __('Style 3', 'themerex') => '3', __('Style 4', 'themerex') => '4'), "type" => "dropdown"), array("param_name" => "content", "heading" => __("Table content", "themerex"), "description" => __("Content, created with any table-generator", "themerex"), "class" => "", "value" => "Paste here table content, generated on one of many public internet resources, for example: http://www.impressivewebs.com/html-table-code-generator/ or http://html-tables.com/", "type" => "textarea_html"), $THEMEREX_VC_margin_top, $THEMEREX_VC_margin_bottom, $THEMEREX_VC_margin_left, $THEMEREX_VC_margin_right, $THEMEREX_VC_id), 'js_view' => 'VcTrxTextContainerView'));
class WPBakeryShortCode_Table extends THEMEREX_VC_ShortCodeContainer
{
}
// Tabs
//-------------------------------------------------------------------------------------
コード例 #12
0
$THEMEREX_shortcodes_dir = getDirectionList();
$THEMEREX_shortcodes_align = getAlignmentList();
$THEMEREX_shortcodes_float = getFloatList();
$THEMEREX_shortcodes_show_hide = getShowHideList();
$THEMEREX_shortcodes_sorting = getSortingList();
$THEMEREX_shortcodes_ordering = getOrderingList();
$THEMEREX_shortcodes_sliders = getSlidersList();
$THEMEREX_shortcodes_users = getUsersList();
$THEMEREX_shortcodes_categories = getCategoriesList();
$THEMEREX_shortcodes_columns = getColumnsList();
$THEMEREX_shortcodes_images = themerex_array_merge(array('none' => "none"), getListFiles("/images/icons", "png"));
$THEMEREX_shortcodes_icons = array_merge(array("none"), getIconsList());
$THEMEREX_shortcodes_sidebars = getSidebarsList();
// Shortcodes list
//------------------------------------------------------------------
$THEMEREX_shortcodes = array(array("title" => __("Accordion", "themerex"), "desc" => __("Accordion items", "themerex"), "id" => "accordion", "decorate" => true, "container" => false, "params" => array(array("id" => "initial", "title" => __("Initially opened item", "themerex"), "desc" => __("Number of initially opened item", "themerex"), "value" => 1, "min" => 0, "type" => "spinner"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("Accordion item", "themerex"), "id" => "accordion_item", "container" => true, "params" => array(array("id" => "title", "title" => __("Accordion item title", "themerex"), "desc" => __("Title for current accordion item", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "icon", "title" => __('Title font icon', 'themerex'), "desc" => __("Select font icon for the title from Fontello icons set.", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "_content_", "title" => __("Accordion item content", "themerex"), "desc" => __("Current accordion item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Audio", "themerex"), "desc" => __("Insert audio player", "themerex"), "id" => "audio", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for audio file", "themerex"), "desc" => __("URL for audio file", "themerex"), "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose audio', 'themerex'), 'action' => 'media_upload', 'type' => 'audio', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose audio file', 'themerex'), 'update' => __('Select audio file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "title", "title" => __("Audio title", "themerex"), "desc" => __("Title for current audio file", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "author", "title" => __("Audio author", "themerex"), "desc" => __("Author of current audio file", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "controls", "title" => __("Show controls", "themerex"), "desc" => __("Show controls in audio player", "themerex"), "divider" => false, "size" => "medium", "value" => "show", "type" => "switch", "options" => $THEMEREX_shortcodes_show_hide), array("id" => "autoplay", "title" => __("Autoplay audio", "themerex"), "desc" => __("Autoplay audio on page load", "themerex"), "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), THEMEREX_shortcodes_width("100%"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Banner", "themerex"), "desc" => __("Banner image with link", "themerex"), "id" => "banner", "decorate" => false, "container" => true, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "align", "title" => __("Banner alignment", "themerex"), "desc" => __("Align banner to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "link", "title" => __("Link URL", "themerex"), "desc" => __("URL for link on banner click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for banner's link (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Link target", "themerex"), "desc" => __("Target for link on banner click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Banner title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Text", "themerex"), "desc" => __("Banner text", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Block container", "themerex"), "desc" => __("Container for any block with desired class and style ([section] analog - to nesting enable)", "themerex"), "id" => "block", "decorate" => true, "container" => true, "params" => array(array("id" => "class", "title" => __("CSS class", "themerex"), "desc" => __("Attribute class for container (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("CSS style", "themerex"), "desc" => __("Any additional CSS rules (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "align", "title" => __("Align", "themerex"), "desc" => __("Select block alignment", "themerex"), "divider" => false, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => array("none" => __("None", 'themerex'), "left" => __("Left", 'themerex'), "right" => __("Right", 'themerex'), "center" => __("Center", 'themerex'))), array("id" => "text_align", "title" => __("Text align inside section", "themerex"), "desc" => __("Select text alignment in current section", "themerex"), "divider" => false, "value" => "left", "type" => "checklist", "options" => array('left' => __('Left', 'themerex'), 'center' => __('Center', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Blogger", "themerex"), "desc" => __("Insert posts (pages) in many styles from desired categories or directly from ids", "themerex"), "id" => "blogger", "decorate" => false, "container" => false, "params" => array(array("id" => "cat", "title" => __("Category list", "themerex"), "desc" => __("Select the desired categories. If not selected - show posts from any category or from IDs list", "themerex"), "divider" => false, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "title", "title" => __("Blogger section title", "themerex"), "desc" => __("Enter here title for the current blogger section.", "themerex"), "value" => "", "type" => "text"), array("id" => "count", "title" => __("Total posts to show", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "visible", "title" => __("Number of visible posts", "themerex"), "desc" => __("How many posts will be visible at once? If empty or 0 - all posts are visible", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "orderby", "title" => __("Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "divider" => false, "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "order", "title" => __("Post order", "themerex"), "desc" => __("Select desired posts order", "themerex"), "divider" => false, "value" => "desc", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_ordering), array("id" => "ids", "title" => __("Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "value" => "", "type" => "text"), array("id" => "style", "title" => __("Posts output style", "themerex"), "desc" => __("Select desired style for posts output", "themerex"), "divider" => false, "value" => "regular", "type" => "select", "options" => array('default' => __('Regular', 'themerex'), 'date' => __('Date', 'themerex'), 'image_large' => __('Large featured image', 'themerex'), 'image_medium' => __('Medium featured image', 'themerex'), 'image_small' => __('Small featured image', 'themerex'), 'accordion' => __('Accordion style 1', 'themerex'), 'list' => __('List', 'themerex'))), array("id" => "rating", "title" => __("Show rating", "themerex"), "desc" => __("Show rating stars under post's header", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "border", "title" => __("Show border", "themerex"), "desc" => __("Show border under the blogger items.", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "descr", "title" => __("Description length", "themerex"), "desc" => __("How many characters are displayed from post excerpt? If 0 - don't show description", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 1000, "increment" => 10, "type" => "spinner"), array("id" => "link_title", "title" => __("More link text", "themerex"), "desc" => __("Read more link text. If empty - show 'More', else - used as link text", "themerex"), "value" => "", "divider" => false, "type" => "text"), array("id" => "link_url", "title" => __("More link URL", "themerex"), "desc" => __("Read more link URL. If empty - will not be displayed.", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Button", "themerex"), "desc" => __("Button with link", "themerex"), "id" => "button", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Caption", "themerex"), "desc" => __("Button caption", "themerex"), "value" => "", "type" => "text"), array("id" => "type", "title" => __("Button's shape", "themerex"), "desc" => __("Select button's shape", "themerex"), "divider" => false, "value" => "square", "type" => "switch", "size" => "medium", "options" => array('square' => __('Square', 'themerex'), 'rounded' => __('Rounded', 'themerex'))), array("id" => "style", "title" => __("Button's style", "themerex"), "desc" => __("Select button's style", "themerex"), "divider" => false, "value" => "default", "type" => "checklist", "dir" => "horizontal", "options" => array('default' => __('Default', 'themerex'), 'border' => __('Border', 'themerex'))), array("id" => "size", "title" => __("Button's size", "themerex"), "desc" => __("Select button's size", "themerex"), "divider" => false, "value" => "medium", "type" => "checklist", "dir" => "horizontal", "options" => array('mini' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'big' => __('Large', 'themerex'), 'huge' => __('Huge', 'themerex'))), array("id" => "fullsize", "title" => __("Fullsize mode", "themerex"), "desc" => __("Set button's width to 100%", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "color", "title" => __("Button's color", "themerex"), "desc" => __("Any color for button background", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "align", "title" => __("Button alignment", "themerex"), "desc" => __("Align button to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "link", "title" => __("Link URL", "themerex"), "desc" => __("URL for link on button click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "target", "title" => __("Link target", "themerex"), "desc" => __("Target for link on button click", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "rel", "title" => __("Rel attribute", "themerex"), "desc" => __("Rel attribute for button's link (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Chat", "themerex"), "desc" => __("Chat items", "themerex"), "id" => "chat", "decorate" => true, "container" => false, "params" => array(THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Columns", "themerex"), "desc" => __("Insert up to 5 columns in your page (post)", "themerex"), "id" => "columns", "decorate" => true, "container" => false, "params" => array($THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Column", "themerex"), "desc" => __("Column item", "themerex"), "id" => "column_item", "container" => true, "params" => array(array("id" => "span", "title" => __("Merge columns", "themerex"), "desc" => __("Count merged columns from current", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Column item content", "themerex"), "desc" => __("Current column item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Contact form", "themerex"), "desc" => __("Insert contact form", "themerex"), "id" => "contact_form", "decorate" => false, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Contact form title", "themerex"), "value" => "", "type" => "text"), array("id" => "description", "title" => __("Description", "themerex"), "desc" => __("Short description for contact form", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Countdown", "themerex"), "desc" => __("Insert countdown object", "themerex"), "id" => "countdown", "decorate" => false, "container" => false, "params" => array(array("id" => "date", "title" => __("Date", "themerex"), "desc" => __("Upcoming date (format: yyyy-mm-dd)", "themerex"), "value" => "", "format" => "yy-mm-dd", "type" => "date"), array("id" => "time", "title" => __("Time", "themerex"), "desc" => __("Upcoming time (format: HH:mm:ss)", "themerex"), "value" => "", "type" => "text"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Style of countdown block", "themerex"), "divider" => false, "value" => "", "type" => "select", "options" => array('1' => __('Style 1', 'themerex'), '2' => __('Style 2', 'themerex'))), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align counter to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Divider", "themerex"), "desc" => __("Create gradient horizontal divider", "themerex"), "id" => "divider", "decorate" => false, "container" => false, "params" => array(array("id" => "top", "title" => __("Top indent", "themerex"), "divider" => false, "value" => 10, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "bottom", "title" => __("Bottom indent", "themerex"), "divider" => false, "value" => 10, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "type", "title" => __("Divider style", "themerex"), "desc" => __("Select style of separator", "themerex"), "divider" => false, "value" => "std", "type" => "select", "options" => array('std' => __('Standard', 'themerex'), 'solid' => __('Solid', 'themerex'), 'dashed' => __('Dashed', 'themerex'), 'dotted' => __('Dotted', 'themerex'))), array("id" => "color", "title" => __("Divider color", "themerex"), "desc" => __("Select color of divider", "themerex"), "divider" => false, "value" => "", "type" => "color"), $THEMEREX_shortcodes_id)), array("title" => __("Dropcaps", "themerex"), "desc" => __("Make first letter as dropcaps", "themerex"), "id" => "dropcaps", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Dropcaps style", "themerex"), "value" => "1", "type" => "checklist", "options" => array(1 => __('Style 1', 'themerex'), 2 => __('Style 2', 'themerex'), 3 => __('Style 3', 'themerex'), 4 => __('Style 4', 'themerex'), 5 => __('Style 5', 'themerex'), 6 => __('Style 6', 'themerex'))), array("id" => "_content_", "title" => __("Paragraph content", "themerex"), "desc" => __("Paragraph with dropcaps content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("E-mail collector", "themerex"), "desc" => __("Collect the e-mail address into specified group", "themerex"), "id" => "emailer", "decorate" => false, "container" => false, "params" => array(array("id" => "group", "title" => __("Group", "themerex"), "desc" => __("The name of group to collect e-mail address", "themerex"), "value" => "", "type" => "text"), array("id" => "open", "title" => __("Open", "themerex"), "desc" => __("Initially open the input field on show object", "themerex"), "divider" => true, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align object to left, center or right", "themerex"), "divider" => true, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Gap", "themerex"), "desc" => __("Insert gap (fullwidth area) in the post content. Attention! Use the gap only in the posts (pages) without left or right sidebar", "themerex"), "id" => "trx_gap", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Gap content", "themerex"), "desc" => __("Gap inner content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"))), array("title" => __("Google map", "themerex"), "desc" => __("Insert Google map with desired address or coordinates", "themerex"), "id" => "googlemap", "decorate" => false, "container" => false, "params" => array(array("id" => "address", "title" => __("Address", "themerex"), "desc" => __("Address to show in map center", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "latlng", "title" => __("Latitude and Longtitude", "themerex"), "desc" => __("Comma separated map center coorditanes (instead Address)", "themerex"), "value" => "", "type" => "text"), array("id" => "zoom", "title" => __("Zoom", "themerex"), "desc" => __("Map zoom factor", "themerex"), "divider" => false, "value" => 16, "min" => 1, "max" => 20, "type" => "spinner"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Map style", "themerex"), "value" => "default", "type" => "checklist", "options" => array('default' => __('Default', 'themerex'), 'simple' => __('Simple', 'themerex'), 'muted_blue' => __('Muted Blue', 'themerex'), 'greyscale' => __('Greyscale', 'themerex'), 'greyscale2' => __('Greyscale 2', 'themerex'), 'style1' => __('Style 1', 'themerex'), 'style2' => __('Style 2', 'themerex'), 'style3' => __('Style 3', 'themerex'))), THEMEREX_shortcodes_width('100%'), THEMEREX_shortcodes_height(240), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Hide any block", "themerex"), "desc" => __("Hide any block with desired CSS-selector", "themerex"), "id" => "hide", "decorate" => false, "container" => false, "params" => array(array("id" => "selector", "title" => __("Selector", "themerex"), "desc" => __("Any block's CSS-selector", "themerex"), "divider" => false, "value" => "", "type" => "text"))), array("title" => __("Highlight text", "themerex"), "desc" => __("Highlight text with selected color, background color and other styles", "themerex"), "id" => "highlight", "decorate" => false, "container" => true, "params" => array(array("id" => "type", "title" => __("Type", "themerex"), "desc" => __("Highlight type", "themerex"), "value" => "1", "type" => "checklist", "options" => array(0 => __('Custom', 'themerex'), 1 => __('Type 1', 'themerex'), 2 => __('Type 2', 'themerex'))), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Color for highlighted text", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "backcolor", "title" => __("Background color", "themerex"), "desc" => __("Background color for highlighted text", "themerex"), "value" => "", "type" => "color"), array("id" => "style", "title" => __("CSS-styles", "themerex"), "desc" => __("Any additional CSS rules", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Highlighting content", "themerex"), "desc" => __("Content for highlight", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("Icon", "themerex"), "desc" => __("Insert icon", "themerex"), "id" => "icon", "decorate" => false, "container" => false, "params" => array(array("id" => "icon", "title" => __('Icon', 'themerex'), "desc" => __("Select font icon from the Fontello icons set", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "color", "title" => __("Icon's color", "themerex"), "desc" => __("Icon's color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "background", "title" => __("Background style", "themerex"), "desc" => __("Style of the icon background ", "themerex"), "divider" => false, "value" => "none", "type" => "radio", "options" => array('none' => __('None', 'themerex'), 'round' => __('Round', 'themerex'), 'square' => __('Square', 'themerex'))), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "size", "title" => __("Font size", "themerex"), "desc" => __("Icon font size", "themerex"), "divider" => false, "value" => "", "type" => "spinner", "min" => 8, "max" => 240), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Icon font weight", "themerex"), "divider" => false, "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Icon text alignment", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Image", "themerex"), "desc" => __("Insert image into your post (page)", "themerex"), "id" => "image", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Image title (if need)", "themerex"), "value" => "", "type" => "text"), array("id" => "align", "title" => __("Float image", "themerex"), "desc" => __("Float image to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Infobox", "themerex"), "desc" => __("Insert infobox into your post (page)", "themerex"), "id" => "infobox", "decorate" => false, "container" => true, "params" => array(array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Infobox style", "themerex"), "divider" => false, "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('regular' => __('Regular', 'themerex'), 'info' => __('Info', 'themerex'), 'success' => __('Success', 'themerex'), 'error' => __('Error', 'themerex'))), array("id" => "closeable", "title" => __("Closeable box", "themerex"), "desc" => __("Create closeable box (with close button)", "themerex"), "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "_content_", "title" => __("Infobox content", "themerex"), "desc" => __("Content for infobox", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("List", "themerex"), "desc" => __("List items with specific bullets", "themerex"), "id" => "list", "decorate" => true, "container" => false, "params" => array(array("id" => "style", "title" => __("Bullet's style", "themerex"), "desc" => __("Bullet's style for each list item", "themerex"), "value" => "ul", "type" => "checklist", "options" => $THEMEREX_shortcodes_list_styles), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style='Iconed'", 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("List item with specific bullet", "themerex"), "id" => "list_item", "container" => true, "params" => array(array("id" => "_content_", "title" => __("List item content", "themerex"), "desc" => __("Current list item content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "icon", "title" => __('List icon', 'themerex'), "desc" => __("Select list icon from Fontello icons set (only for style='Iconed'", 'themerex'), "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "title", "title" => __("List item title", "themerex"), "desc" => __("Current list item title (show it as tooltip)", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_id))), array("title" => __("Price", "themerex"), "desc" => __("Insert price with decoration", "themerex"), "id" => "trx_price", "decorate" => false, "container" => false, "params" => array(array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character", "themerex"), "divider" => false, "value" => "\$", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc.", "themerex"), "value" => "", "type" => "text"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Price table container", "themerex"), "desc" => __("Price table container. After insert it, move cursor inside and select shortcode Price Item", "themerex"), "id" => "trx_price_table", "decorate" => true, "container" => true, "params" => array(array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Alignment text in the table", "themerex"), "value" => "center", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("Price item column", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => true, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id))), array("title" => __("Price table item", "themerex"), "desc" => __("Price table column", "themerex"), "id" => "trx_price_item", "decorate" => true, "container" => false, "params" => array(array("id" => "animation", "title" => __("Animation", "themerex"), "desc" => __("Animate column on mouse hover", "themerex"), "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), $THEMEREX_shortcodes_id), "children" => array("title" => __("Data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'titled' => __('Titled Price', 'themerex'), 'united' => __('United', 'themerex'), 'footer' => __('Footer', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "value" => "", "type" => "text"), array("id" => "link", "title" => __("Link url", "themerex"), "desc" => __("The field is available for cells of the 'picture' type. When clicking the picture, you will be redirected by the link specified.", "themerex"), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id))), array("title" => __("Price table data", "themerex"), "desc" => __("Price item data - title, price, footer, etc.", "themerex"), "id" => "trx_price_data", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Content", "themerex"), "desc" => __("Current cell content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Cell type", "themerex"), "desc" => __("Select type of the price table cell", "themerex"), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array('none' => __('Regular', 'themerex'), 'title' => __('Title', 'themerex'), 'image' => __('Image', 'themerex'), 'price' => __('Price', 'themerex'), 'titled' => __('Titled Price', 'themerex'), 'united' => __('United', 'themerex'), 'footer' => __('Footer', 'themerex'))), array("id" => "money", "title" => __("Money", "themerex"), "desc" => __("Money value (dot or comma separated) - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "currency", "title" => __("Currency", "themerex"), "desc" => __("Currency character - only for type=price", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "link", "title" => __("Link url", "themerex"), "desc" => __("The field is available for cells of the 'picture' type. When clicking the picture, you will be redirected by the link specified.", "themerex"), "value" => "", "type" => "text"), array("id" => "period", "title" => __("Period", "themerex"), "desc" => __("Period text (if need). For example: monthly, daily, etc. - only for type=price", "themerex"), "value" => "", "type" => "text"), array("id" => "image", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id)), array("title" => __("Quote", "themerex"), "desc" => __("Quote text", "themerex"), "id" => "quote", "decorate" => false, "container" => true, "params" => array(array("id" => "cite", "title" => __("Quote cite", "themerex"), "desc" => __("URL for quote cite", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "title", "title" => __("Title (author)", "themerex"), "desc" => __("Quote title (author name)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Quote content", "themerex"), "desc" => __("Quote content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("Review Panel", "themerex"), "desc" => __("Append review panel", "themerex"), "id" => "review_panel", "decorate" => true, "container" => false, "params" => array(THEMEREX_shortcodes_width(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id, array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Align counter to left, center or right", "themerex"), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "post_id", "title" => __("Post id", "themerex"), "desc" => __("Enter review post id", "themerex"), "value" => "", "type" => "text"), array("id" => "max", "title" => __("Max Points", "themerex"), "desc" => __("Max review points value", "themerex"), "value" => "1", "type" => "checklist", "options" => array(5 => '5', 10 => '10', 100 => '100'))), "children" => array("title" => __("Review Item", "themerex"), "desc" => __("Item of review panel", "themerex"), "id" => "review_item", "container" => false, "params" => array(array("id" => "label", "title" => __("Label", "themerex"), "desc" => __("Review Item Label", "themerex"), "points" => "", "type" => "text"), array("id" => "points", "title" => __("Review Criteria Points", "themerex"), "desc" => __("Criteria points of current review item", "themerex"), "value" => "", "type" => "text")))), array("title" => __("Section container", "themerex"), "desc" => __("Container for any block with desired class and style", "themerex"), "id" => "section", "decorate" => true, "container" => true, "params" => array(array("id" => "class", "title" => __("CSS class", "themerex"), "desc" => __("Attribute class for container (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "content_wrap", "title" => __("Wrap content inside section", "themerex"), "desc" => __("Select yes if you want to wrap content inside section", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "style", "title" => __("CSS style", "themerex"), "desc" => __("Any additional CSS rules (if need)", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "align", "title" => __("Align", "themerex"), "desc" => __("Select block alignment", "themerex"), "divider" => false, "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => array("none" => __("None", 'themerex'), "left" => __("Left", 'themerex'), "right" => __("Right", 'themerex'), "center" => __("Center", 'themerex'))), array("id" => "text_align", "title" => __("Text align inside section", "themerex"), "desc" => __("Select text alignment in current section", "themerex"), "divider" => false, "value" => "left", "type" => "checklist", "options" => array('left' => __('Left', 'themerex'), 'center' => __('Center', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "_content_", "title" => __("Container content", "themerex"), "desc" => __("Content for section container", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "background_color", "title" => __("Background Color", "themerex"), "desc" => __("Select background color for section", "themerex"), "value" => "", "type" => "color"), array("id" => "background_image", "title" => __('Background Image', "themerex"), "desc" => __("Select or upload background image.", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "background_repeat", "title" => __('Background Image', "themerex"), "desc" => __("Repeat or not repeat background image.", "themerex"), "value" => "repeat", "type" => "checklist", "options" => array('repeat' => __("Repeat", 'themerex'), 'no-repeat' => __("No repeat", 'themerex'))), array("id" => "background_pos_x", "title" => __('Background Position X', "themerex"), "desc" => __("Select horizontal background position.", "themerex"), "value" => "left", "type" => "checklist", "options" => array('left' => __("Left", 'themerex'), 'center' => __("Center", 'themerex'), 'right' => __("Right", "themerex"))), array("id" => "background_pos_y", "title" => __('Background Position Y', "themerex"), "desc" => __("Select vertical background position.", "themerex"), "value" => "top", "type" => "checklist", "options" => array('top' => __("Top", 'themerex'), 'center' => __("Center", 'themerex'), 'bottom' => __("Bottom", "themerex"))), array("id" => "parallax", "title" => __("Parallax scrolling", "themerex"), "desc" => __("Enable parallax scrolling for this section.", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Sidebar", "themerex"), "desc" => __("Insert Sidebar into the page/post content. ", "themerex"), "id" => "themerex_sidebar", "decorate" => false, "container" => false, "params" => array(array("id" => "name", "title" => __("Select sidebar", "themerex"), "options" => $THEMEREX_shortcodes_sidebars, "type" => "select", "divider" => true, "value" => ""), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Skills", "themerex"), "desc" => __("Insert skills diagramm in your page (post)", "themerex"), "id" => "skills", "decorate" => true, "container" => false, "params" => array(array("id" => "maximum", "title" => __("Max value", "themerex"), "desc" => __("Max value for skills items", "themerex"), "divider" => false, "value" => 100, "min" => 1, "type" => "spinner"), array("id" => "type", "title" => __("Skills type", "themerex"), "desc" => __("Select type of skills block", "themerex"), "divider" => false, "value" => "bar", "type" => "checklist", "dir" => "horizontal", "options" => array('bar' => __('Bar', 'themerex'), 'counter' => __('Counter', 'themerex'), 'circles' => __('Circles', 'themerex'))), array("id" => "dir", "title" => __("Direction", "themerex"), "desc" => __("Select direction of skills block", "themerex"), "divider" => false, "value" => "horizontal", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_dir), array("id" => "layout", "title" => __("Skills layout", "themerex"), "desc" => __("Select layout of skills block", "themerex"), "divider" => false, "value" => "rows", "type" => "checklist", "dir" => "columns", "options" => array('rows' => __('Rows', 'themerex'), 'columns' => __('Columns', 'themerex'))), array("id" => "align", "title" => __("Align skills block", "themerex"), "desc" => __("Align skills block to left or right side", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), array("id" => "color", "title" => __("Skills items color", "themerex"), "desc" => __("Color for all skills items", "themerex"), "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Skill", "themerex"), "desc" => __("Skills item", "themerex"), "id" => "skills_item", "container" => false, "params" => array(array("id" => "title", "title" => __("Skills item title", "themerex"), "desc" => __("Current skills item title", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("Skills item style", "themerex"), "desc" => __("Select skills item style", "themerex"), "divider" => false, "value" => "style_1", "type" => "checklist", "options" => array('1' => __('Style 1', 'themerex'), '2' => __('Style 2', 'themerex'))), array("id" => "level", "title" => __("Sklls item level", "themerex"), "desc" => __("Current skills level", "themerex"), "divider" => false, "value" => 50, "min" => 0, "increment" => 1, "type" => "spinner"), array("id" => "color", "title" => __("Skills item color", "themerex"), "desc" => __("Current skills item color", "themerex"), "divider" => false, "value" => "", "type" => "color"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_id))), array("title" => __("Slider", "themerex"), "desc" => __("Insert slider into your post (page)", "themerex"), "id" => "slider", "decorate" => true, "container" => false, "params" => array_merge(array(array("id" => "engine", "title" => __("Slider engine", "themerex"), "desc" => __("Select engine for slider. Attention! 'Swiper' are built-in engine, all other engines appears only if corresponding plugings are installed", "themerex"), "value" => "swiper", "type" => "checklist", "options" => $THEMEREX_shortcodes_sliders)), revslider_exists() || royalslider_exists() ? array(array("id" => "alias", "title" => __("Revolution slider alias or Royal Slider ID", "themerex"), "desc" => __("Alias for Revolution slider or Royal slider ID", "themerex"), "value" => "", "type" => "text")) : array(), array(array("id" => "cat", "title" => __("Category list", "themerex"), "desc" => __("Comma separated list of category slugs. If empty - select posts from any category or from IDs list", "themerex"), "divider" => false, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => $THEMEREX_shortcodes_categories), array("id" => "count", "title" => __("Number of posts", "themerex"), "desc" => __("How many posts will be displayed? If used IDs - this parameter ignored.", "themerex"), "divider" => false, "value" => 3, "min" => 1, "max" => 100, "type" => "spinner"), array("id" => "offset", "title" => __("Offset before select posts", "themerex"), "desc" => __("Skip posts before select next part.", "themerex"), "divider" => false, "value" => 0, "min" => 0, "max" => 100, "type" => "spinner"), array("id" => "date_before", "title" => __("Post published before", "themerex"), "desc" => __("Date to retrieve posts before.)", "themerex"), "value" => "", "format" => "yy-mm-dd", "type" => "date"), array("id" => "date_after", "title" => __("Post published after", "themerex"), "desc" => __("Date to retrieve posts after.)", "themerex"), "value" => "", "format" => "yy-mm-dd", "type" => "date"), array("id" => "orderby", "title" => __("Post order by", "themerex"), "desc" => __("Select desired posts sorting method", "themerex"), "divider" => false, "value" => "date", "type" => "select", "options" => $THEMEREX_shortcodes_sorting), array("id" => "order", "title" => __("Post order", "themerex"), "desc" => __("Select desired posts order", "themerex"), "divider" => false, "value" => "desc", "type" => "switch", "size" => "big", "options" => $THEMEREX_shortcodes_ordering), array("id" => "ids", "title" => __("Post IDs list", "themerex"), "desc" => __("Comma separated list of posts ID. If set - parameters above are ignored!", "themerex"), "value" => "", "type" => "text"), array("id" => "controls", "title" => __("Show slider controls", "themerex"), "desc" => __("Show arrows inside slider", "themerex"), "divider" => false, "value" => "yes", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "pagination", "title" => __("Show slider pagination", "themerex"), "desc" => __("Show bullets for slide switch", "themerex"), "divider" => false, "value" => "hide", "type" => "select", "options" => array('false' => __('Hide', 'themerex'), 'default' => __('Default', 'themerex'), 'thumbs' => __('Thumbnails', 'themerex'), 'icons' => __('Post-format icons', 'themerex'))), array("id" => "progressbar", "title" => __("Show slider progressbar", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => array('yes' => __('Yes', 'themerex'), 'no' => __('No', 'themerex'))), array("id" => "info", "title" => __("Show slide info", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => array('yes' => __('Yes', 'themerex'), 'no' => __('No', 'themerex'))), array("id" => "caption", "title" => __("Show slide caption", "themerex"), "desc" => __("Show slide title and info section.", "themerex"), "divider" => false, "value" => "no", "type" => "switch", "options" => $THEMEREX_shortcodes_yes_no), array("id" => "align", "title" => __("Float slider", "themerex"), "desc" => __("Float slider to left or right side", "themerex"), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_float), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), "children" => array("title" => __("Slide", "themerex"), "desc" => __("Slider item", "themerex"), "id" => "slider_item", "container" => false, "params" => array(array("id" => "src", "title" => __("URL (source) for image file", "themerex"), "desc" => __("Select or upload image or write URL from other site for the current slide", "themerex"), "readonly" => false, "value" => "", "type" => "media"), $THEMEREX_shortcodes_id))), array("title" => __("Table", "themerex"), "desc" => __("Insert table into post (page). ", "themerex"), "id" => "table", "decorate" => true, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Table content", "themerex"), "desc" => __("Content, created with any table-generator", "themerex"), "rows" => 8, "value" => "Paste here table content, generated on one of many public internet resources, for example: http://www.impressivewebs.com/html-table-code-generator/ or http://html-tables.com/", "type" => "textarea"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Tabs", "themerex"), "desc" => __("Insert tabs in your page (post)", "themerex"), "id" => "tabs", "decorate" => true, "container" => false, "params" => array(array("id" => "initial", "title" => __("Initially opened tab", "themerex"), "desc" => __("Number of initially opened tab", "themerex"), "value" => 1, "min" => 0, "type" => "spinner"), array("id" => "style", "title" => __("Tab style", "themerex"), "desc" => __("Select tab style: vertical or horizontal.", "themerex"), "value" => "horizontal", "type" => "select", "options" => array('vertical' => __('Vertical', 'themerex'), 'horizontal' => __('Horizontal', 'themerex'))), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Tab", "themerex"), "desc" => __("Tab item", "themerex"), "id" => "tab", "container" => true, "params" => array(array("id" => "_title_", "title" => __("Tab title", "themerex"), "desc" => __("Current tab title", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tab content", "themerex"), "desc" => __("Current tab content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "icon", "title" => __('Tab title icon', 'themerex'), "desc" => __("Select font icon for the title from Fontello icons set.", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), $THEMEREX_shortcodes_id))), array("title" => __("Team", "themerex"), "desc" => __("Insert team in your page (post)", "themerex"), "id" => "trx_team", "decorate" => true, "container" => false, "params" => array($THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Member", "themerex"), "desc" => __("Team member", "themerex"), "id" => "trx_team_item", "container" => true, "params" => array(array("id" => "user", "title" => __("Team member", "themerex"), "desc" => __("Select one of registered users (if present) or put name, position etc. in fields below", "themerex"), "value" => "", "type" => "select", "options" => $THEMEREX_shortcodes_users), array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Team member's name", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Team member's position", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("Team member's e-mail", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Team member's photo (avatar)", "themerex"), "dependency" => array('user' => array('is_empty', 'none')), "value" => "", "readonly" => false, "type" => "media"), array("id" => "_content_", "title" => __("Description", "themerex"), "desc" => __("Team member's short description", "themerex"), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Testimonials", "themerex"), "desc" => __("Insert testimonials into post (page)", "themerex"), "id" => "testimonials", "decorate" => true, "container" => false, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Title of testimonmials block", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "style", "title" => __("Style", "themerex"), "desc" => __("Testimonials style", "themerex"), "value" => "1", "type" => "checklist", "options" => array("1" => __('Style 1', 'themerex'), "2" => __('Style 2', 'themerex'))), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id), "children" => array("title" => __("Item", "themerex"), "desc" => __("Testimonials item", "themerex"), "id" => "testimonials_item", "container" => true, "params" => array(array("id" => "name", "title" => __("Name", "themerex"), "desc" => __("Name of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "position", "title" => __("Position", "themerex"), "desc" => __("Position of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "email", "title" => __("E-mail", "themerex"), "desc" => __("E-mail of testimonmials author", "themerex"), "divider" => false, "value" => "", "type" => "text"), array("id" => "photo", "title" => __("Photo", "themerex"), "desc" => __("Select or upload photo of testimonmials author or write URL of photo from other site", "themerex"), "value" => "", "readonly" => false, "type" => "media"), array("id" => "_content_", "title" => __("Testimonials text", "themerex"), "desc" => __("Current testimonials text", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id))), array("title" => __("Title", "themerex"), "desc" => __("Create header tag (1-6 level) with many styles", "themerex"), "id" => "title", "decorate" => false, "container" => true, "params" => array(array("id" => "_content_", "title" => __("Title content", "themerex"), "desc" => __("Title content", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), array("id" => "type", "title" => __("Title type", "themerex"), "desc" => __("Title type (header level)", "themerex"), "divider" => false, "value" => "1", "type" => "select", "options" => array('1' => __('Header 1', 'themerex'), '2' => __('Header 2', 'themerex'), '3' => __('Header 3', 'themerex'), '4' => __('Header 4', 'themerex'), '5' => __('Header 5', 'themerex'), '6' => __('Header 6', 'themerex'))), array("id" => "font_size", "title" => __("Font size", "themerex"), "divider" => false, "value" => '', "min" => 10, "max" => 100, "type" => "spinner"), array("id" => "letter_spacing", "title" => __("Letter spacing", "themerex"), "divider" => false, "value" => '', "min" => -100, "max" => 100, "type" => "spinner"), array("id" => "weight", "title" => __("Font weight", "themerex"), "desc" => __("Title font weight", "themerex"), "divider" => false, "value" => "", "type" => "select", "size" => "medium", "options" => array('100' => __('Thin (100)', 'themerex'), '300' => __('Light (300)', 'themerex'), '400' => __('Normal (400)', 'themerex'), '700' => __('Bold (700)', 'themerex'))), array("id" => "color", "title" => __("Color", "themerex"), "desc" => __("Select font color", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "align", "title" => __("Alignment", "themerex"), "desc" => __("Title text alignment", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => $THEMEREX_shortcodes_align), array("id" => "transform", "title" => __("Text Transform", "themerex"), "desc" => __("Title text transform", "themerex"), "divider" => false, "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => array('lowercase' => __('Lowercase', 'themerex'), 'uppercase' => __('Uppercase', 'themerex'))), array("id" => "link", "title" => __("Link Title", "themerex"), "desc" => __("Output title as link", "themerex"), "value" => "", "type" => "text"), array("id" => "style", "title" => __("Title style", "themerex"), "desc" => __("Title style", "themerex"), "divider" => false, "value" => "regular", "type" => "select", "options" => array('regular' => __('Regular', 'themerex'), 'iconed' => __('With icon (image)', 'themerex'))), array("id" => "icon", "title" => __('Title font icon', 'themerex'), "desc" => __("Select font icon for the title from Fontello icons set (if style='iconed')", 'themerex'), "divider" => false, "value" => "", "type" => "icons", "options" => $THEMEREX_shortcodes_icons), array("id" => "image", "title" => __('or image icon', 'themerex'), "desc" => __("Select image icon for the title instead icon above (if style='iconed')", 'themerex'), "divider" => false, "value" => "", "type" => "images", "size" => "small", "options" => $THEMEREX_shortcodes_images), array("id" => "picture", "title" => __('or URL for image file', "themerex"), "desc" => __("Select or upload image or write URL from other site (if style='iconed')", "themerex"), "readonly" => false, "value" => "", "type" => "media"), array("id" => "size", "title" => __('Icon (image) size', "themerex"), "desc" => __("Select icon (image) size (if style='iconed')", "themerex"), "divider" => false, "value" => "medium", "type" => "checklist", "options" => array('small' => __('Small', 'themerex'), 'medium' => __('Medium', 'themerex'), 'large' => __('Large', 'themerex'), 'huge' => __('Huge', 'themerex'))), array("id" => "position", "title" => __('Icon (image) position', "themerex"), "desc" => __("Select icon (image) position (if style='iconed')", "themerex"), "divider" => false, "value" => "left", "type" => "checklist", "options" => array('top' => __('Top', 'themerex'), 'left' => __('Left', 'themerex'), 'right' => __('Right', 'themerex'))), array("id" => "background", "title" => __('Show background under icon', "themerex"), "desc" => __("Select background under icon (if style='iconed')", "themerex"), "divider" => false, "value" => "none", "type" => "checklist", "options" => array('none' => __('None', 'themerex'), 'square' => __('Square', 'themerex'), 'circle' => __('Circle', 'themerex'))), array("id" => "bg_color", "title" => __("Icon's background color", "themerex"), "desc" => __("Icon's background color (if style='iconed')", "themerex"), "divider" => false, "value" => "", "type" => "color"), array("id" => "bd_color", "title" => __("Icon's border color", "themerex"), "desc" => __("Icon's border color (if style='iconed')", "themerex"), "divider" => false, "value" => "", "type" => "color"), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)), array("title" => __("Tooltip", "themerex"), "desc" => __("Create tooltip for selected text", "themerex"), "id" => "tooltip", "decorate" => false, "container" => true, "params" => array(array("id" => "title", "title" => __("Title", "themerex"), "desc" => __("Tooltip title (required)", "themerex"), "value" => "", "type" => "text"), array("id" => "_content_", "title" => __("Tipped content", "themerex"), "desc" => __("Highlighted content with tooltip", "themerex"), "rows" => 4, "value" => "", "type" => "textarea"), $THEMEREX_shortcodes_id)), array("title" => __("Video", "themerex"), "desc" => __("Insert video player", "themerex"), "id" => "trex_video", "decorate" => false, "container" => false, "params" => array(array("id" => "url", "title" => __("URL for video file", "themerex"), "desc" => __("Select video from media library or paste URL for video file from other site", "themerex"), "divider" => false, "readonly" => false, "value" => "", "type" => "media", "before" => array('title' => __('Choose video', 'themerex'), 'action' => 'media_upload', 'type' => 'video', 'multiple' => false, 'linked_field' => '', 'captions' => array('choose' => __('Choose video file', 'themerex'), 'update' => __('Select video file', 'themerex'))), "after" => array('icon' => 'icon-cancel', 'action' => 'media_reset')), array("id" => "autoplay", "title" => __("Autoplay video", "themerex"), "desc" => __("Autoplay video on page load", "themerex"), "divider" => false, "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "title", "title" => __("Show title bar", "themerex"), "desc" => __("Show title bar above video frame", "themerex"), "divider" => false, "value" => "off", "type" => "switch", "options" => $THEMEREX_shortcodes_on_off), array("id" => "image", "title" => __("Image preview", "themerex"), "desc" => __("Select or upload image or write URL from other site for video preview", "themerex"), "readonly" => false, "value" => "", "type" => "media"), THEMEREX_shortcodes_width(), THEMEREX_shortcodes_height(), $THEMEREX_shortcodes_margin_top, $THEMEREX_shortcodes_margin_bottom, $THEMEREX_shortcodes_margin_left, $THEMEREX_shortcodes_margin_right, $THEMEREX_shortcodes_id)));
// Filters for shortcodes handling
//----------------------------------------------------------------------
// Enable shortcodes in widgets
//add_filter('widget_text', 'do_shortcode');
// Enable shortcodes in excerpt
add_filter('the_excerpt', 'do_shortcode');
// Clear \n around shortcodes
add_filter('widget_text', 'sc_empty_paragraph_fix2', 1);
add_filter('the_excerpt', 'sc_empty_paragraph_fix2', 1);
add_filter('the_content', 'sc_empty_paragraph_fix2', 1);
function sc_empty_paragraph_fix2($content)
{
    $content = str_replace("\r\n", "\n", $content);
    $content = str_replace(array("]\n[", "]\n\n[", "]\n\n\n["), array('][', '][', ']['), $content);
    return $content;