OwlCyberSecurity - MANAGER
Edit File: map.php
<?php /** * WPBakery Visual Composer Shortcodes settings * * @package VPBakeryVisualComposer * */ $vc_is_wp_version_3_6_more = version_compare(preg_replace('/^([\d\.]+)(\-.*$)/', '$1', get_bloginfo('version')), '3.6') >= 0; // Used in "Button", "Call to Action", "Pie chart" blocks $colors_arr = array(__("Grey", "js_composer") => "wpb_button", __("Blue", "js_composer") => "btn-primary", __("Turquoise", "js_composer") => "btn-info", __("Green", "js_composer") => "btn-success", __("Orange", "js_composer") => "btn-warning", __("Red", "js_composer") => "btn-danger", __("Black", "js_composer") => "btn-inverse"); $pirenko_colors_arr = array(__("Theme Button", "js_composer") => "theme_button",__("Theme Button - Inverted Colors", "js_composer") => "theme_button_inverted",__("Grey", "js_composer") => "wpb_button", __("Blue", "js_composer") => "btn-primary", __("Turquoise", "js_composer") => "btn-info", __("Green", "js_composer") => "btn-success", __("Orange", "js_composer") => "btn-warning", __("Red", "js_composer") => "btn-danger", __("Black", "js_composer") => "btn-inverse"); $yes_no_arr = array(__('Yes', "js_composer") => "yes",__('No', "js_composer") => "no"); // Used in "Button" and "Call to Action" blocks $size_arr = array(__("Regular size", "js_composer") => "wpb_regularsize", __("Large", "js_composer") => "btn-large", __("Small", "js_composer") => "btn-small", __("Mini", "js_composer") => "btn-mini"); $target_arr = array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank"); $add_css_animation = array( "type" => "dropdown", "heading" => __("CSS Animation", "js_composer"), "param_name" => "css_animation", "admin_label" => true, "value" => array(__("No", "js_composer") => '', __("Top to bottom", "js_composer") => "top-to-bottom", __("Bottom to top", "js_composer") => "bottom-to-top", __("Left to right", "js_composer") => "left-to-right", __("Right to left", "js_composer") => "right-to-left", __("Appear from center", "js_composer") => "appear"), "description" => __("Select animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", "js_composer") ); vc_map( array( "name" => __("Row", "js_composer"), "base" => "vc_row", "is_container" => true, "icon" => "icon-wpb-row", "show_settings_on_create" => false, "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Background Size", "js_composer"), "param_name" => "bk_type", "value" => array(__("Boxed look", "js_composer") => "boxed_look", __("Full width", "js_composer") => "full_width"), "description" => __("Full width should be only used on Pages with Sections", "js_composer") ), array( "type" => "dropdown", "heading" => __("Use normal margin on bottom?", "js_composer"), "param_name" => "margin_type", "value" => array( __('Yes', "js_composer") => "", __('No', "js_composer") => "unmargined",), "description" => __("Useful to make this section sit on top of the footer", "js_composer") ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background color"), "param_name" => "bk_color", "value" => __(""), "description" => __("Optional") ), array( "type" => "dropdown", "heading" => __("Background pattern", "js_composer"), "param_name" => "bk_pattern", "value" => array( __('None', "js_composer") => "", __('Bedge Grunge', "js_composer") => "bedge_grunge.png", __('Bullseyes', "js_composer") => "strange_bullseyes.png", __('Cream Pixels',"js_composer") =>'cream_pixels.png', __('Concrete', "js_composer") =>'concrete_wall_2.png', __('Cross Scratches', "js_composer") =>'cross_scratches.png', __('Diagonal Noise', "js_composer") =>'diagonal-noise.png', __('Dotted Grey', "js_composer") =>'grey.jpg', __('Grey Squares', "js_composer") =>'first_aid_kit.png', __('Grid Noise', "js_composer") =>'grid_noise.png', __('Light Honeycomb', "js_composer") =>'light_honeycomb.png', __('Ligh Mesh', "js_composer") =>'lghtmesh.png', __('Noise Lines', "js_composer") =>'noise_lines.png', __('Paper Fibers', "js_composer") =>'lightpaperfibers.png', __('Rough Diagonal', "js_composer") =>'rough_diagonal.png', __('Seamless Grid', "js_composer") =>'grid.png', __('Seamless White', "js_composer") =>'chruch.png', __('Simple White', "js_composer") =>'whitey.png', __('Squared Seamless', "js_composer") =>'farmer.png', __('Subtle Dots', "js_composer") =>'subtle_dots.png', __('Stacked Circles', "js_composer") =>'stacked_circles.png', __('Textured Grey', "js_composer") =>'texturetastic_gray.png', __('Tiny Grid', "js_composer") =>'tiny_grid.png', __('Vintage', "js_composer") =>'vintage_speckles.png', __('White Leather', "js_composer") =>'white_leather.png', __('White Texture', "js_composer") =>'white_texture.png', __('Black Leather', "js_composer") =>'black_leather.png', __('Black Linen', "js_composer") =>'black-linen.png', __('Black Paper', "js_composer") =>'black_paper.png', __('Broken Noise', "js_composer") =>'broken_noise.png', __('Cartographer', "js_composer") =>'cartographer.png', __('Classy Fabric', "js_composer") =>'classy_fabric.png', __('Criss Cross', "js_composer") =>'crissxcross.png', __('Dark Denim', "js_composer") =>'darkdenim.png', __('Dark Metal', "js_composer") =>'hixs_pattern_evolution.png', __('Dark Mosaic', "js_composer") =>'dark_mosaic.png', __('Dark Noisy Net', "js_composer") =>'noisy_net.png', __('Dark Pin Stripes', "js_composer") =>'pinstriped_suit.png', __('Dark Stripes', "js_composer") =>'dark_stripes.png', __('Dark Tyre', "js_composer") =>'dark_tire.png', __('Debut Dark', "js_composer") =>'debut_dark.png', __('Fake Fabric', "js_composer") =>'fake_brick.png', __('Iron Grip', "js_composer") =>'irongrip.png', __('Navy Blue', "js_composer") =>'navy_blue.png', __('Outlets', "js_composer") =>'outlets.png', __('Padded', "js_composer") =>'padded.png', __('Moulin', "js_composer") =>'moulin.png', __('Seamless Dark', "js_composer") =>'nami.png', __('Simple Dashed', "js_composer") =>'simple_dashed.png', __('Stressed Linen', "js_composer") =>'stressed_linen.png', __('Tiny Squares', "js_composer") =>'px.png', __('Typographic', "js_composer") =>'type.png', __('Vertical Cloth', "js_composer") =>'vertical_cloth.png', __('Wood - Dark', "js_composer") =>'dark_wood.png', __('Wood - Yellowish', "js_composer") =>'retina_wood.png', __('Wood - Yellow', "js_composer") =>'purty_wood.png', __('Wood - Textured', "js_composer") =>'wood_texture.png', __('Blue', "js_composer") =>'blu_stripes.png', __('Blue Variations', "js_composer") =>'random_grey_variations.png', __('Green - Vintage', "js_composer") =>'green_dust_scratch.png', __('Shattered', "js_composer") =>'shattered.png', __('Shattered', "js_composer") =>'shattered.jpg', __('Play Pattern', "js_composer") =>'gplaypattern.png'), "description" => __("Optional - Will override background color<span class='prk_theme_url' style='display:none;'>".get_template_directory_uri()."</span>", "js_composer") ), array( "type" => "attach_image", "heading" => __("Background image", "js_composer"), "param_name" => "bk_image", "value" => "", "description" => __("Optional - Will override background pattern and color", "js_composer") ), array( "type" => "dropdown", "heading" => __("Background image parallax effect?", "js_composer"), "param_name" => "parallax", "value" => array("Yes","No"), "description" => __("", "js_composer") ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Text color"), "param_name" => "text_color", "value" => __(""), "description" => __("Optional") ), array( "type" => "dropdown", "heading" => __("Text alignment", "js_composer"), "param_name" => "align", "value" => array("Left","Center"), "description" => __("", "js_composer") ) ), "js_view" => 'VcRowView' ) ); vc_map( array( "name" => __("Row", "js_composer"), //Inner Row "base" => "vc_row_inner", "content_element" => false, "is_container" => true, "icon" => "icon-wpb-row", "show_settings_on_create" => false, "params" => array( array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcRowView' ) ); vc_map( array( "name" => __("Column", "js_composer"), "base" => "vc_column", "is_container" => true, "content_element" => false, "params" => array( array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcColumnView' ) ); //SPACER function prkwp_spacer_func( $atts ) { extract( shortcode_atts( array( 'size' => '' ), $atts ) ); return do_shortcode('[pirenko_spacer size="'.$size.'"][/pirenko_spacer]'); } add_shortcode( 'prkwp_spacer', 'prkwp_spacer_func' ); wpb_map( array( "name" => __("Vertical Spacer","samba_lang"), "base" => "prkwp_spacer", "class" => "samba_scodes_editor", "icon" => "icon-wpb-toggle-small-expand", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Vertical size in pixels (use negative values to pull elements up)","samba_lang"), "param_name" => "size", "value" => "10", "description" => "This element creates a vertical space between adjacent elements." ) ) )); //STYLED TITLE function prkwp_styled_title_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'align' => '', 'text_color' => '', 'title_size' => '', 'use_italic' => '', 'show_lines' => '', 'samba_show_line' => '', 'unmargined' => '' ), $atts ) ); return do_shortcode('[prk_styled_title align="'.strtolower($align).'" text_color="'.strtolower($text_color).'" unmargined="'.strtolower($unmargined).'" title_size="'.strtolower($title_size).'" samba_show_line="'.strtolower($samba_show_line).'" use_italic="'.strtolower($use_italic).'"]'.$prk_in.'[/prk_styled_title]'); } add_shortcode( 'prkwp_styled_title', 'prkwp_styled_title_func' ); wpb_map( array( "name" => __("Styled title","samba_lang"), "base" => "prkwp_styled_title", "class" => "samba_scodes_editor", "icon" => "icon-wpb-layer-shape-text", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text","samba_lang"), "param_name" => "prk_in", "value" => "", "description" => "" ), array( "type" => "dropdown", "heading" => __("Alignment", "js_composer"), "param_name" => "align", "value" => array("Left","Center"), "description" => "" ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Color","samba_lang"), "param_name" => "text_color", "value" => "", "description" => __("Optional - If blank the theme default headings color will be used","samba_lang") ), array( "type" => "dropdown", "heading" => __("Title size", "js_composer"), "param_name" => "title_size", "value" => array("Large","Medium","Small"), "description" => "" ), array( "type" => "dropdown", "heading" => __("Italic font style?", "js_composer"), "param_name" => "use_italic", "value" => array("No","Yes"), "description" => "" ), array( "type" => "dropdown", "heading" => __("Show line under title?", "js_composer"), "param_name" => "samba_show_line", "value" => array("Yes","No"), "description" => "" ), array( "type" => "dropdown", "heading" => __("Zero margin after title?", "js_composer"), "param_name" => "unmargined", "value" => array(__('No', "js_composer") => "",__('Yes', "js_composer") => "unmargined"), "description" => __("This is usefull for single big headings.", "js_composer") ) ) )); /* Text Block ---------------------------------------------------------- */ vc_map( array( "name" => __("Text Block", "js_composer"), "base" => "vc_column_text", "icon" => "icon-wpb-layer-shape-text", "wrapper_class" => "clearfix", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textarea_html", "holder" => "div", "heading" => __("Text", "js_composer"), "param_name" => "content", "value" => __("<p>I am text block. Click edit button to change this text.</p>", "js_composer") ), $add_css_animation, array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Latest tweets ---------------------------------------------------------- */ /*vc_map( array( "name" => __("Twitter Widget", "js_composer"), "base" => "vc_twitter", "icon" => 'icon-wpb-balloon-twitter-left', "category" => __('Social', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "textfield", "heading" => __("Twitter username", "js_composer"), "param_name" => "twitter_name", "admin_label" => true, "description" => __("Type in twitter profile name from which load tweets.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Tweets count", "js_composer"), "param_name" => "tweets_count", "admin_label" => true, "value" => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15), "description" => __("How many recent tweets to load.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) );*/ /* Separator (Divider) ---------------------------------------------------------- */ vc_map( array( "name" => __("Separator", "js_composer"), "base" => "vc_separator", 'icon' => 'icon-wpb-ui-separator', "show_settings_on_create" => false, "category" => __('Content', 'js_composer'), "controls" => 'popup_delete' ) ); /* Textual block ---------------------------------------------------------- */ vc_map( array( "name" => __("Separator with Text", "js_composer"), "base" => "vc_text_separator", "icon" => "icon-wpb-ui-separator-label", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "holder" => "div", "value" => __("Title", "js_composer"), "description" => __("Separator title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Title position", "js_composer"), "param_name" => "title_align", "value" => array(__('Align center', "js_composer") => "separator_align_center", __('Align left', "js_composer") => "separator_align_left", __('Align right', "js_composer") => "separator_align_right"), "description" => __("Select title location.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcTextSeparatorView' ) ); //BLOCKQUOTE function bquote_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'author' => '', 'after_author' => '', 'type' => '' ), $atts ) ); return do_shortcode("<div class='wpb_content_element'>[pirenko_blockquote author='{$author}' after_author='{$after_author}' type='{$type}']{$prk_in}[/pirenko_blockquote]</div>"); } add_shortcode( 'bquote', 'bquote_func' ); wpb_map( array( "name" => __("Blockquote","samba_lang"), "base" => "bquote", "class" => "samba_scodes_editor", "icon" => "icon-wpb-quote-prk", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Author","samba_lang"), "param_name" => "author", "value" => __("","samba_lang"), "description" => __("","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("After author text","samba_lang"), "param_name" => "after_author", "value" => __("","samba_lang"), "description" => __("Optional","samba_lang") ), array( "type" => "textarea", "holder" => "div", "class" => "", "heading" => __("Content","samba_lang"), "param_name" => "prk_in", "value" => __("","samba_lang"), "description" => __("","samba_lang") ), array( "type" => "dropdown", "heading" => __("Blockquote type", "js_composer"), "param_name" => "type", "value" => array( __('Plain', "js_composer") => "plain", __('Colored background', "js_composer") => "colored_background" ), "description" => "" ), ) )); /* Message box ---------------------------------------------------------- */ vc_map( array( "name" => __("Message Box", "js_composer"), "base" => "vc_message", "icon" => "icon-wpb-information-white", "wrapper_class" => "alert", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Message box type", "js_composer"), "param_name" => "color", "value" => array(__('Informational', "js_composer") => "alert-info", __('Warning', "js_composer") => "alert-block", __('Success', "js_composer") => "alert-success", __('Error', "js_composer") => "alert-error"), "description" => __("Select message type.", "js_composer") ), array( "type" => "textarea_html", "holder" => "div", "class" => "messagebox_text", "heading" => __("Message text", "js_composer"), "param_name" => "content", "value" => __("<p>I am message box. Click edit button to change this text.</p>", "js_composer") ), $add_css_animation, array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcMessageView' ) ); /* Toggle (FAQ) ---------------------------------------------------------- */ vc_map( array( "name" => __("FAQ", "js_composer"), "base" => "vc_toggle", "icon" => "icon-wpb-toggle-small-expand", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "holder" => "h4", "class" => "toggle_title", "heading" => __("Toggle title", "js_composer"), "param_name" => "title", "value" => __("Toggle title", "js_composer"), "description" => __("Toggle block title.", "js_composer") ), array( "type" => "textarea_html", "holder" => "div", "class" => "toggle_content", "heading" => __("Toggle content", "js_composer"), "param_name" => "content", "value" => __("<p>Toggle content goes here, click edit button to change this text.</p>", "js_composer"), "description" => __("Toggle block content.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Default state", "js_composer"), "param_name" => "open", "value" => array(__("Closed", "js_composer") => "false", __("Open", "js_composer") => "true"), "description" => __('Select "Open" if you want toggle to be open by default.', "js_composer") ), $add_css_animation, array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcToggleView' ) ); /* Single image */ vc_map( array( "name" => __("Single Image", "js_composer"), "base" => "vc_single_image", "icon" => "icon-wpb-single-image", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "attach_image", "heading" => __("Image", "js_composer"), "param_name" => "image", "value" => "", "description" => __("Select image from media library.", "js_composer") ), $add_css_animation, array( "type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use 'thumbnail' size.", "js_composer") ), array( "type" => 'checkbox', "heading" => __("Link to large image and open lightbox popup?", "js_composer"), "param_name" => "img_link_large", "description" => __("If selected, image will be linked to the bigger image.", "js_composer"), "value" => Array(__("Yes, please", "js_composer") => 'yes') ), array( "type" => "textfield", "heading" => __("Image link", "js_composer"), "param_name" => "img_link", "description" => __("Enter url if you want this image to have link.", "js_composer"), "dependency" => Array('element' => "img_link_large", 'is_empty' => true, 'callback' => 'wpb_single_image_img_link_dependency_callback') ), array( "type" => "dropdown", "heading" => __("Image link target", "js_composer"), "param_name" => "img_link_target", "description" => __('Select where to open the image link - applies only if lightbox option is off.', 'js_composer'), "dependency" => Array('element' => "img_link_large", 'is_empty' => true, 'callback' => 'wpb_single_image_img_link_dependency_callback'), 'value' => $target_arr ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) )); /* Gallery/Slideshow ---------------------------------------------------------- */ vc_map( array( "name" => __("Image Gallery", "js_composer"), "base" => "vc_gallery", "icon" => "icon-wpb-images-stack", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Gallery type", "js_composer"), "param_name" => "type", "value" => array(__("Flex slider fade", "js_composer") => "flexslider_fade", __("Flex slider slide", "js_composer") => "flexslider_slide", __("Nivo slider", "js_composer") => "nivo", __("Image grid", "js_composer") => "image_grid"), "description" => __("Select gallery type.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Auto rotate slides", "js_composer"), "param_name" => "interval", "value" => array(3, 5, 10, 15, __("Disable", "js_composer") => 0), "description" => __("Auto rotate slides each X seconds.", "js_composer"), "dependency" => Array('element' => "type", 'value' => array('flexslider_fade', 'flexslider_slide', 'nivo')) ), array( "type" => "attach_images", "heading" => __("Images", "js_composer"), "param_name" => "images", "value" => "", "description" => __("Select images from media library.", "js_composer") ), array( "type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use 'thumbnail' size.", "js_composer") ), array( "type" => "dropdown", "heading" => __("On click", "js_composer"), "param_name" => "onclick", "value" => array(__("Open lightbox", "js_composer") => "link_image", __("Do nothing", "js_composer") => "link_no"), "description" => __("What to do when slide is clicked?", "js_composer") ), array( "type" => "exploded_textarea", "heading" => __("Custom links", "js_composer"), "param_name" => "custom_links", "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer'), "dependency" => Array('element' => "onclick", 'value' => array('custom_link')) ), array( "type" => "dropdown", "heading" => __("Custom link target", "js_composer"), "param_name" => "custom_links_target", "description" => __('Select where to open custom links.', 'js_composer'), "dependency" => Array('element' => "onclick", 'value' => array('custom_link')), 'value' => $target_arr ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Tabs ---------------------------------------------------------- */ $tab_id_1 = time().'-1-'.rand(0, 100); $tab_id_2 = time().'-2-'.rand(0, 100); vc_map( array( "name" => __("Tabs", "js_composer"), "base" => "vc_tabs", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-ui-tab-content", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Auto rotate tabs", "js_composer"), "param_name" => "interval", "value" => array(__("Disable", "js_composer") => 0, 3, 5, 10, 15), "description" => __("Auto rotate tabs each X seconds.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "custom_markup" => ' <div class="wpb_tabs_holder wpb_holder vc_container_for_children"> <ul class="tabs_controls"> </ul> %content% </div>' , 'default_content' => ' [vc_tab title="'.__('Tab 1','js_composer').'" tab_id="'.$tab_id_1.'"][/vc_tab] [vc_tab title="'.__('Tab 2','js_composer').'" tab_id="'.$tab_id_2.'"][/vc_tab] ', "js_view" => ($vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35') ) ); /* Tour section ---------------------------------------------------------- */ $tab_id_1 = time().'-1-'.rand(0, 100); $tab_id_2 = time().'-2-'.rand(0, 100); WPBMap::map( 'vc_tour', array( "name" => __("Tour Section", "js_composer"), "base" => "vc_tour", "show_settings_on_create" => false, "is_container" => true, "container_not_allowed" => true, "icon" => "icon-wpb-ui-tab-content-vertical", "category" => __('Content', 'js_composer'), "wrapper_class" => "clearfix", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Auto rotate slides", "js_composer"), "param_name" => "interval", "value" => array(__("Disable", "js_composer") => 0, 3, 5, 10, 15), "description" => __("Auto rotate slides each X seconds.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "custom_markup" => ' <div class="wpb_tabs_holder wpb_holder clearfix vc_container_for_children"> <ul class="tabs_controls"> </ul> %content% </div>' , 'default_content' => ' [vc_tab title="'.__('Slide 1','js_composer').'" tab_id="'.$tab_id_1.'"][/vc_tab] [vc_tab title="'.__('Slide 2','js_composer').'" tab_id="'.$tab_id_2.'"][/vc_tab] ', "js_view" => ($vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35') ) ); vc_map( array( "name" => __("Tab", "js_composer"), "base" => "vc_tab", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array( array( "type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "description" => __("Tab title.", "js_composer") ), array( "type" => "tab_id", "heading" => __("Tab ID", "js_composer"), "param_name" => "tab_id" ) ), 'js_view' => ($vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35') ) ); /* Accordion block ---------------------------------------------------------- */ vc_map( array( "name" => __("Accordion", "js_composer"), "base" => "vc_accordion", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-ui-accordion", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "textfield", "heading" => __("Active tab", "js_composer"), "param_name" => "active_tab", "description" => __("Enter tab number to be active on load or enter false to collapse all tabs.", "js_composer") ), array( "type" => 'checkbox', "heading" => __("Allow collapsible all", "js_composer"), "param_name" => "collapsible", "description" => __("Select checkbox to allow for all sections to be be collapsible.", "js_composer"), "value" => Array(__("Allow", "js_composer") => 'yes') ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "custom_markup" => ' <div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children"> %content% </div> <div class="tab_controls"> <button class="add_tab" title="'.__("Add accordion section", "js_composer").'">'.__("Add accordion section", "js_composer").'</button> </div> ', 'default_content' => ' [vc_accordion_tab title="'.__('Section 1', "js_composer").'"][/vc_accordion_tab] [vc_accordion_tab title="'.__('Section 2', "js_composer").'"][/vc_accordion_tab] ', 'js_view' => 'VcAccordionView' ) ); vc_map( array( "name" => __("Accordion Section", "js_composer"), "base" => "vc_accordion_tab", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array( array( "type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "description" => __("Accordion section title.", "js_composer") ), ), 'js_view' => 'VcAccordionTabView' ) ); //TOGGLE function prkwp_toggle_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'title' => '', ), $atts ) ); return do_shortcode('[prk_accordion type="toggle"][prk_ac_single title="'.$title.'"]'.$prk_in.'[/prk_ac_single][/prk_accordion]'); } add_shortcode( 'prkwp_toggle', 'prkwp_toggle_func' ); wpb_map( array( "name" => __("Toggle","samba_lang"), "base" => "prkwp_toggle", "class" => "samba_scodes_editor", "icon" => "icon-wpb-toggle-small-expand", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "title", "value" => "", "description" => "" ), array( "type" => "textarea", "holder" => "div", "class" => "", "heading" => __("Content","samba_lang"), "param_name" => "prk_in", "value" => "", "description" => "" ), ) )); //SERVICE function prkwp_service_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'name' => '', 'align' => '', 'image' => '', 'bk_color' => '', 'link' => '', 'serv_image' => '', 'link_text' => '' ), $atts ) ); if ($align=="center") $align="prk_service_center"; else $align="prk_service_left"; $image_attributes = wp_get_attachment_image_src( $serv_image,'full' ); return do_shortcode('[prk_service name="'.$name.'" align="'.$align.'" image="'.$image.'" serv_image="'.$image_attributes[0].'" link="'.$link.'" bk_color="'.$bk_color.'" link_text="'.$link_text.'"]'.$prk_in.'[/prk_service]'); } add_shortcode( 'prkwp_service', 'prkwp_service_func' ); wpb_map( array( "name" => __("Service","samba_lang"), "base" => "prkwp_service", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-service", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "name", "value" => "", "description" => "" ), array( "type" => "attach_image", "heading" => __("Service image", "js_composer"), "param_name" => "serv_image", "value" => "", "description" => __("Select image from media library. Has priority over icon class value below.", "js_composer") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Icon class","samba_lang"), "param_name" => "image", "value" => "", "description" => __("Example: icon-video. For a complete list open the icons.png file inside the documentation folder.","samba_lang") ), array( "type" => "dropdown", "heading" => __("Alignment", "js_composer"), "param_name" => "align", "value" => array( __('Left', "js_composer") => "left", __('Center', "js_composer") => "center" ), "description" => "" ), array( "type" => "textarea", "holder" => "div", "class" => "", "heading" => __("Content","samba_lang"), "param_name" => "prk_in", "value" => "", "description" => "" ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background color","samba_lang"), "param_name" => "bk_color", "value" => "", "description" => __("Optional","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("URL link","samba_lang"), "param_name" => "link", "value" => "", "description" => __("Optional","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("URL link text","samba_lang"), "param_name" => "link_text", "value" => "", "description" => __("Leave blank for theme default Read More text.","samba_lang") ) ) ) ); /* Teaser grid ---------------------------------------------------------- */ vc_map( array( "name" => __("Teaser (posts) Grid", "js_composer"), "base" => "vc_teaser_grid", "icon" => "icon-wpb-application-icon-large", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Columns count", "js_composer"), "param_name" => "grid_columns_count", "value" => array(4, 3, 2, 1), "admin_label" => true, "description" => __("Select columns count.", "js_composer") ), array( "type" => "posttypes", "heading" => __("Post types", "js_composer"), "param_name" => "grid_posttypes", "description" => __("Select post types to populate posts from.", "js_composer") ), array( "type" => "textfield", "heading" => __("Teasers count", "js_composer"), "param_name" => "grid_teasers_count", "description" => __('How many teasers to show? Enter number or word "All".', "js_composer") ), array( "type" => "dropdown", "heading" => __("Content", "js_composer"), "param_name" => "grid_content", "value" => array(__("Teaser (Excerpt)", "js_composer") => "teaser", __("Full Content", "js_composer") => "content"), "description" => __("Teaser layout template.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Layout", "js_composer"), "param_name" => "grid_layout", "value" => array(__("Title + Thumbnail + Text", "js_composer") => "title_thumbnail_text", __("Thumbnail + Title + Text", "js_composer") => "thumbnail_title_text", __("Thumbnail + Text", "js_composer") => "thumbnail_text", __("Thumbnail + Title", "js_composer") => "thumbnail_title", __("Thumbnail only", "js_composer") => "thumbnail", __("Title + Text", "js_composer") => "title_text"), "description" => __("Teaser layout.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Link", "js_composer"), "param_name" => "grid_link", "value" => array(__("Link to post", "js_composer") => "link_post", __("Link to bigger image", "js_composer") => "link_image", __("Thumbnail to bigger image, title to post", "js_composer") => "link_image_post", __("No link", "js_composer") => "link_no"), "description" => __("Link type.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Link target", "js_composer"), "param_name" => "grid_link_target", "value" => $target_arr, "dependency" => Array('element' => "grid_link", 'value' => array('link_post', 'link_image_post')) ), array( "type" => "dropdown", "heading" => __("Teaser grid layout", "js_composer"), "param_name" => "grid_template", "value" => array(__("Grid", "js_composer") => "grid", __("Grid with filter", "js_composer") => "filtered_grid", __("Carousel", "js_composer") => "carousel"), "description" => __("Teaser layout template.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Layout mode", "js_composer"), "param_name" => "grid_layout_mode", "value" => array(__("Fit rows", "js_composer") => "fitRows", __('Masonry', "js_composer") => 'masonry'), "dependency" => Array('element' => 'grid_template', 'value' => array('filtered_grid', 'grid')), "description" => __("Teaser layout template.", "js_composer") ), array( "type" => "taxonomies", "heading" => __("Taxonomies", "js_composer"), "param_name" => "grid_taxomonies", "dependency" => Array('element' => 'grid_template' /*, 'not_empty' => true*/, 'value' => array('filtered_grid'), 'callback' => 'wpb_grid_post_types_for_taxonomies_handler'), "description" => __("Select taxonomies from.", "js_composer") //TODO: Change description ), array( "type" => "textfield", "heading" => __("Thumbnail size", "js_composer"), "param_name" => "grid_thumb_size", "description" => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height).', "js_composer") ), array( "type" => "textfield", "heading" => __("Post/Page IDs", "js_composer"), "param_name" => "posts_in", "description" => __('Fill this field with page/posts IDs separated by commas (,) to retrieve only them. Use this in conjunction with "Post types" field.', "js_composer") ), array( "type" => "textfield", "heading" => __("Exclude Post/Page IDs", "js_composer"), "param_name" => "posts_not_in", "description" => __('Fill this field with page/posts IDs separated by commas (,) to exclude them from query.', "js_composer") ), array( "type" => "exploded_textarea", "heading" => __("Categories", "js_composer"), "param_name" => "grid_categories", "description" => __("If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter).", "js_composer") ), array( "type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "orderby", "value" => array( "", __("Date", "js_composer") => "date", __("ID", "js_composer") => "ID", __("Author", "js_composer") => "author", __("Title", "js_composer") => "title", __("Modified", "js_composer") => "modified", __("Random", "js_composer") => "rand", __("Comment count", "js_composer") => "comment_count", __("Menu order", "js_composer") => "menu_order" ), "description" => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>') ), array( "type" => "dropdown", "heading" => __("Order way", "js_composer"), "param_name" => "order", "value" => array( __("Descending", "js_composer") => "DESC", __("Ascending", "js_composer") => "ASC" ), "description" => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>') ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Posts slider ---------------------------------------------------------- */ vc_map( array( "name" => __("Posts Slider", "js_composer"), "base" => "vc_posts_slider", "icon" => "icon-wpb-slideshow", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Slider type", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Flex slider fade", "js_composer") => "flexslider_fade", __("Flex slider slide", "js_composer") => "flexslider_slide", __("Nivo slider", "js_composer") => "nivo"), "description" => __("Select slider type.", "js_composer") ), array( "type" => "textfield", "heading" => __("Slides count", "js_composer"), "param_name" => "count", "description" => __('How many slides to show? Enter number or word "All".', "js_composer") ), array( "type" => "dropdown", "heading" => __("Auto rotate slides", "js_composer"), "param_name" => "interval", "value" => array(3, 5, 10, 15, __("Disable", "js_composer") => 0), "description" => __("Auto rotate slides each X seconds.", "js_composer") ), array( "type" => "posttypes", "heading" => __("Post types", "js_composer"), "param_name" => "posttypes", "description" => __("Select post types to populate posts from.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Description", "js_composer"), "param_name" => "slides_content", "value" => array(__("No description", "js_composer") => "", __("Teaser (Excerpt)", "js_composer") => "teaser" ), "description" => __("Some sliders support description text, what content use for it?", "js_composer"), "dependency" => Array('element' => "type", 'value' => array('flexslider_fade', 'flexslider_slide')), ), array( "type" => 'checkbox', "heading" => __("Output post title?", "js_composer"), "param_name" => "slides_title", "description" => __("If selected, title will be printed before the teaser text.", "js_composer"), "value" => Array(__("Yes, please", "js_composer") => true), "dependency" => Array('element' => "slides_content", 'value' => array('teaser')), ), array( "type" => "dropdown", "heading" => __("Link", "js_composer"), "param_name" => "link", "value" => array(__("Link to post", "js_composer") => "link_post", __("Link to bigger image", "js_composer") => "link_image", __("Open custom link", "js_composer") => "custom_link", __("No link", "js_composer") => "link_no"), "description" => __("Link type.", "js_composer") ), array( "type" => "exploded_textarea", "heading" => __("Custom links", "js_composer"), "param_name" => "custom_links", "dependency" => Array('element' => "link", 'value' => 'custom_link'), "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer') ), array( "type" => "textfield", "heading" => __("Thumbnail size", "js_composer"), "param_name" => "thumb_size", "description" => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height).', "js_composer") ), array( "type" => "textfield", "heading" => __("Post/Page IDs", "js_composer"), "param_name" => "posts_in", "description" => __('Fill this field with page/posts IDs separated by commas (,), to retrieve only them. Use this in conjunction with "Post types" field.', "js_composer") ), array( "type" => "exploded_textarea", "heading" => __("Categories", "js_composer"), "param_name" => "categories", "description" => __("If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter).", "js_composer") ), array( "type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "orderby", "value" => array( "", __("Date", "js_composer") => "date", __("ID", "js_composer") => "ID", __("Author", "js_composer") => "author", __("Title", "js_composer") => "title", __("Modified", "js_composer") => "modified", __("Random", "js_composer") => "rand", __("Comment count", "js_composer") => "comment_count", __("Menu order", "js_composer") => "menu_order" ), "description" => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>') ), array( "type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "order", "value" => array( __("Descending", "js_composer") => "DESC", __("Ascending", "js_composer") => "ASC" ), "description" => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>') ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Button ---------------------------------------------------------- */ $icons_arr = array( __("None", "js_composer") => "none", __("Address book icon", "js_composer") => "wpb_address_book", __("Alarm clock icon", "js_composer") => "wpb_alarm_clock", __("Anchor icon", "js_composer") => "wpb_anchor", __("Application Image icon", "js_composer") => "wpb_application_image", __("Arrow icon", "js_composer") => "wpb_arrow", __("Asterisk icon", "js_composer") => "wpb_asterisk", __("Hammer icon", "js_composer") => "wpb_hammer", __("Balloon icon", "js_composer") => "wpb_balloon", __("Balloon Buzz icon", "js_composer") => "wpb_balloon_buzz", __("Balloon Facebook icon", "js_composer") => "wpb_balloon_facebook", __("Balloon Twitter icon", "js_composer") => "wpb_balloon_twitter", __("Battery icon", "js_composer") => "wpb_battery", __("Binocular icon", "js_composer") => "wpb_binocular", __("Document Excel icon", "js_composer") => "wpb_document_excel", __("Document Image icon", "js_composer") => "wpb_document_image", __("Document Music icon", "js_composer") => "wpb_document_music", __("Document Office icon", "js_composer") => "wpb_document_office", __("Document PDF icon", "js_composer") => "wpb_document_pdf", __("Document Powerpoint icon", "js_composer") => "wpb_document_powerpoint", __("Document Word icon", "js_composer") => "wpb_document_word", __("Bookmark icon", "js_composer") => "wpb_bookmark", __("Camcorder icon", "js_composer") => "wpb_camcorder", __("Camera icon", "js_composer") => "wpb_camera", __("Chart icon", "js_composer") => "wpb_chart", __("Chart pie icon", "js_composer") => "wpb_chart_pie", __("Clock icon", "js_composer") => "wpb_clock", __("Fire icon", "js_composer") => "wpb_fire", __("Heart icon", "js_composer") => "wpb_heart", __("Mail icon", "js_composer") => "wpb_mail", __("Play icon", "js_composer") => "wpb_play", __("Shield icon", "js_composer") => "wpb_shield", __("Video icon", "js_composer") => "wpb_video" ); vc_map( array( "name" => __("Button", "js_composer"), "base" => "vc_button", "icon" => "icon-wpb-ui-button", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Text on the button", "js_composer"), "holder" => "button", "class" => "wpb_button", "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer") ), array( "type" => "textfield", "heading" => __("URL (Link)", "js_composer"), "param_name" => "href", "description" => __("Button link.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Target", "js_composer"), "param_name" => "target", "value" => $target_arr, "dependency" => Array('element' => "href", 'not_empty' => true) ), array( "type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $colors_arr, "description" => __("Button color.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "value" => $icons_arr, "description" => __("Button icon.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => $size_arr, "description" => __("Button size.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcButtonView' ) ); //THEME BUTTON function theme_button_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'type' => '', 'window' => '', 'link' => '', ), $atts ) ); if ($window=="No") $window="_self"; else $window="_blank"; return do_shortcode('[theme_button type="'.$type.'" link="'.$link.'" window="'.$window.'"]'.$prk_in.'[/theme_button]'); } add_shortcode( 'prk_wp_theme_button', 'theme_button_func' ); wpb_map( array( "name" => __("Theme Button","samba_lang"), "base" => "prk_wp_theme_button", "class" => "samba_scodes_editor", "icon" => "icon-wpb-ui-button", "category" => __('Content',"samba_lang"), //'admin_enqueue_js' => array(get_template_directory_uri().'/vc_extend/bartag.js'), //'admin_enqueue_css' => array(get_template_directory_uri().'/vc_extend/bartag.css'), "params" => array( array( "type" => "dropdown", "heading" => __("Button type", "js_composer"), "param_name" => "type", "value" => array( __('Large Theme Button', "js_composer") => "theme_button large", __('Medium Theme Button', "js_composer") => "theme_button medium", __('Small Theme Button', "js_composer") => "theme_button small", __('Tiny Theme Button', "js_composer") => "theme_button tiny", __('Large Theme Button - Inverted Colors', "js_composer") => "theme_button_inverted large", __('Medium Theme Button - Inverted Colors', "js_composer") => "theme_button_inverted medium", __('Small Theme Button - Inverted Colors', "js_composer") => "theme_button_inverted small", __('Tiny Theme Button - Inverted Colors', "js_composer") => "theme_button_inverted tiny", ), "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button text","samba_lang"), "param_name" => "prk_in", "value" => __("","samba_lang"), "description" => __("","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Link","samba_lang"), "param_name" => "link", "value" => __("","samba_lang"), "description" => __("","samba_lang") ), array( "type" => "dropdown", "heading" => __("Open link in a new window?", "js_composer"), "param_name" => "window", "value" => array("No","Yes"), "description" => __("", "js_composer","samba_lang") ) ) )); /* Call to Action Button ---------------------------------------------------------- */ wpb_map( array( "name" => __("Call to Action Button", "js_composer"), "base" => "vc_cta_button", "icon" => "icon-wpb-call-to-action", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textarea", 'admin_label' => true, "heading" => __("Title", "js_composer"), "param_name" => "call_text", "value" => __("Click edit button to change this text.", "js_composer"), "description" => __("Enter your content.", "js_composer") ), array( "type" => "textarea", 'admin_label' => true, "heading" => __("Text", "js_composer"), "param_name" => "call_desc", "value" => __("This is the call to action description. Click edit button to change this text.", "js_composer"), "description" => __("Optional", "js_composer") ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background color"), "param_name" => "bk_color", "value" => __(""), "description" => __("Optional") ), array( "type" => "dropdown", "heading" => __("Text alignment", "js_composer"), "param_name" => "text_align", "value" => array(__("Right", "js_composer") => "text_right", __("Left", "js_composer") => "text_left", __("Center", "js_composer") => "text_center"), "description" => __("Select button alignment.", "js_composer") ), array( "type" => "textfield", "heading" => __("Text on the button", "js_composer"), "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer") ), array( "type" => "textfield", "heading" => __("URL (Link)", "js_composer"), "param_name" => "href", "description" => __("Button link.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Target", "js_composer"), "param_name" => "target", "value" => $target_arr, "dependency" => Array('element' => "href", 'not_empty' => true) ), array( "type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $pirenko_colors_arr, "description" => __("Button color.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "value" => $icons_arr, "description" => __("Button icon (not available for theme buttons).", "js_composer") ), array( "type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => $size_arr, "description" => __("Button size.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Button position", "js_composer"), "param_name" => "position", "value" => array(__("Right", "js_composer") => "cta_align_right", __("Left", "js_composer") => "cta_align_left", __("Bottom", "js_composer") => "cta_align_bottom"), "description" => __("Select button alignment.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Button horizontal alignment", "js_composer"), "param_name" => "button_align", "value" => array(__("Right", "js_composer") => "button_right", __("Left", "js_composer") => "button_left", __("Center", "js_composer") => "button_center"), "description" => __("Select button alignment.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ), "js_view" => 'VcCallToActionView' ) ); /* Video element ---------------------------------------------------------- */ vc_map( array( "name" => __("Video Player", "js_composer"), "base" => "vc_video", "icon" => "icon-wpb-film-youtube", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "textfield", "heading" => __("Video link", "js_composer"), "param_name" => "link", "admin_label" => true, "description" => sprintf(__('Link to the video. More about supported formats at %s.', "js_composer"), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>') ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Google maps element ---------------------------------------------------------- */ vc_map( array( "name" => __("Google Maps", "js_composer"), "base" => "vc_gmaps", "icon" => "icon-wpb-map-pin", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "textfield", "heading" => __("Google map link", "js_composer"), "param_name" => "link", "admin_label" => true, "description" => sprintf(__('Link to your map. Visit %s find your address and then click "Link" button to obtain your map link.', "js_composer"), '<a href="http://maps.google.com" target="_blank">Google maps</a>') ), array( "type" => "textfield", "heading" => __("Map height", "js_composer"), "param_name" => "size", "description" => __('Enter map height in pixels. Example: 200.', "js_composer") ), array( "type" => "dropdown", "heading" => __("Map type", "js_composer"), "param_name" => "type", "value" => array(__("Map", "js_composer") => "m", __("Satellite", "js_composer") => "k", __("Map + Terrain", "js_composer") => "p"), "description" => __("Select map type.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Map Zoom", "js_composer"), "param_name" => "zoom", "value" => array(__("14 - Default", "js_composer") => 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20) ), array( "type" => 'checkbox', "heading" => __("Remove info bubble", "js_composer"), "param_name" => "bubble", "description" => __("If selected, information bubble will be hidden.", "js_composer"), "value" => Array(__("Yes, please", "js_composer") => true), ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); //THEME SLIDER wpb_map( array( "name" => __("Theme slider","samba_lang"), "base" => "prk_slider", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-sslider", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Groups filter using slug(s) - comma separated ","samba_lang"), "param_name" => "category", "value" => "", "description" => __("Optional - leave blank for all","samba_lang") ), array( "type" => "dropdown", "heading" => __("Autoplay slider?", "js_composer"), "param_name" => "autoplay", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Slider delay","samba_lang"), "param_name" => "delay", "value" => "", "description" => __("In miliseconds - If blank the theme default value will be used","samba_lang") ) ) ) ); /* Gallery/Slideshow ---------------------------------------------------------- */ vc_map( array( "name" => __("Theme Image Gallery", "js_composer"), "base" => "pirenko_gallery", "icon" => "icon-wpb-images-stack", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Gallery type", "js_composer"), "param_name" => "type", "value" => array(__("Masonry", "js_composer") => "masonry", __("Grid (rectangles)", "js_composer") => "grid", __("Grid (squares)", "js_composer") => "squares"), "description" => __("Select grid type.", "js_composer") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Thumbnails margin","astro_lang"), "param_name" => "thumbs_mg", "value" => "", "description" => __("Default value is 10","astro_lang") ), array( "type" => "attach_images", "heading" => __("Images", "js_composer"), "param_name" => "images", "value" => "", "description" => __("Select images from media library.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); //CAROUSEL function prkwp_carousel_func( $atts ) { extract( shortcode_atts( array( 'images' => '', 'title' => '', ), $atts ) ); $images_output=""; $arr=explode(",",$images); if (count($arr)>0) { foreach ($arr as $single) { $image_attributes = wp_get_attachment_image_src( $single,'full' ); $images_output.='[prk_carousel_single path="'.$image_attributes[0].'"][/prk_carousel_single]'; } } return do_shortcode('[prk_carousel title="'.$title.'"]'.$images_output.'[/prk_carousel]'); } add_shortcode( 'prkwp_carousel', 'prkwp_carousel_func' ); wpb_map( array( "name" => __("Images Carousel","samba_lang"), "base" => "prkwp_carousel", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-rousel", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "title", "value" => __("","samba_lang"), "description" => __("","samba_lang") ), array( "type" => "attach_images", "heading" => __("Images", "js_composer"), "param_name" => "images", "value" => "", "description" => __("Select images from media library.", "js_composer") ) ) )); //PRICING TALBES function prkwp_price_table_func( $atts ) { extract( shortcode_atts( array( 'prk_in' => '', 'featured' => '', 'header' => '', 'color' => '', 'price' => '', 'under_price' => '', 'button_label' => '', 'button_link' => '', ), $atts ) ); $lines_output="<ul>"; $prk_tweaked = str_replace(", ", "prkwrdoff", $prk_in); $arr=explode(",",$prk_tweaked); if (count($arr)>0) { foreach ($arr as $single) { $lines_output.='<li>'.str_replace("prkwrdoff", ", ",$single).'</li>'; } } $lines_output.="</ul>"; return do_shortcode('[prk_price_table header="'.$featured.'" featured="'.$header.'" color="'.$color.'" price="'.$price.'" under_price="'.$under_price.'" button_label="'.$button_label.'" button_link="'.$button_link.'"]'.$lines_output.'[/prk_price_table]'); } add_shortcode( 'prkwp_price_table', 'prkwp_price_table_func' ); wpb_map( array( "name" => __("Pricing table","samba_lang"), "base" => "prkwp_price_table", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-table", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "featured", "value" => "", "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Header/featured text","samba_lang"), "param_name" => "header", "value" => "", "description" => __("Optional - Will be displayed under the title","samba_lang") ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Color","samba_lang"), "param_name" => "color", "value" => "", "description" => __("Optional - If blank the theme active color will be used","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Price text","samba_lang"), "param_name" => "price", "value" => "", "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Under price text","samba_lang"), "param_name" => "under_price", "value" => "", "description" => __("Example: per month","samba_lang") ), array( "type" => "exploded_textarea", "holder" => "div", "class" => "", "heading" => __("Description text","samba_lang"), "param_name" => "prk_in", "value" => "", "description" => __("Enter descriptions for this table here. Divide them with linebreaks (Enter).","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button text","samba_lang"), "param_name" => "button_label", "value" => "", "description" => __("Leave blank if no button is needed","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Button URL","samba_lang"), "param_name" => "button_link", "value" => "", "description" => __("Leave blank if no button is needed","samba_lang") ) ) ) ); //PROGRESS BARS wpb_map( array( "name" => __("Progress bar","samba_lang"), "base" => "prk_progress_bar", "class" => "samba_scodes_editor", "icon" => "icon-wpb-graph", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "title", "value" => "", "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Percentage","samba_lang"), "param_name" => "pctg", "value" => "", "description" => "" ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Active color","samba_lang"), "param_name" => "active_color", "value" => "", "description" => __("Optional - If blank the theme active color will be used","samba_lang") ), array( "type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Background color","samba_lang"), "param_name" => "background_color", "value" => "", "description" => __("Optional - If blank the theme modules background color will be used","samba_lang") ), array( "type" => "dropdown", "heading" => __("Show percentage?", "js_composer"), "param_name" => "show_pctg", "value" => $yes_no_arr, "description" => "" ) ) ) ); /** * Pie chart */ vc_map( array( "name" => __("Pie chart", 'vc_extend'), "base" => "vc_pie", "class" => "", "icon" => "icon-wpb-vc_pie", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer"), "admin_label" => true ), array( "type" => "textfield", "heading" => __("Pie value", "js_composer"), "param_name" => "value", "description" => __('Input graph value here. Witihn a range 0-100.', 'js_composer'), "value" => "50", "admin_label" => true ), array( "type" => "textfield", "heading" => __("Pie label value", "js_composer"), "param_name" => "label_value", "description" => __('Input integer value for label. If empty "Pie value" will be used.', 'js_composer'), "value" => "" ), array( "type" => "textfield", "heading" => __("Units", "js_composer"), "param_name" => "units", "description" => __("Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Bar color", "js_composer"), "param_name" => "color", "value" => $colors_arr,//$pie_colors, "description" => __("Select pie chart color.", "js_composer"), "admin_label" => true ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ), ) ) ); //TEAM MEMBERS wpb_map( array( "name" => __("Team members","samba_lang"), "base" => "prk_members", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-user", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Teams filter using slug(s) - comma separated ","samba_lang"), "param_name" => "category", "value" => "", "description" => __("Optional - leave blank for all","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of members per column","samba_lang"), "param_name" => "columns", "value" => "3", "description" => "" ) ) ) ); //LATEST PORTFOLIO wpb_map( array( "name" => __("Latest Portfolio","samba_lang"), "base" => "pirenko_last_portfolios", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-folio", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "dropdown", "heading" => __("Block type?", "js_composer"), "param_name" => "layout_type_folio", "value" => array(__("Grid", "js_composer") => "grid", __("Masonry", "js_composer") => "masonry", __("With titles", "js_composer") => "titled",__("With titles and excerpt", "js_composer") => "with_excerpt"), "description" => "" ), array( "type" => "dropdown", "heading" => __("Show skills information on each post?", "js_composer"), "param_name" => "samba_show_skills", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Skills filter using slug(s) - comma separated ","samba_lang"), "param_name" => "cat_filter", "value" => "", "description" => __("Optional - leave blank for all","samba_lang") ), array( "type" => "dropdown", "heading" => __("Show filter above thumbnails?", "js_composer"), "param_name" => "show_filter", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Items number","samba_lang"), "param_name" => "items_number", "value" => "", "description" => __("Optional - default value is 9","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Columns number","samba_lang"), "param_name" => "cols_number", "value" => "3", "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Thumbnails margin","samba_lang"), "param_name" => "thumbs_mg", "value" => "", "description" => __("Default value is 10","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("View portfolio button text","samba_lang"), "param_name" => "button_label", "value" => "", "description" => __("Leave blank if no button is needed","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("View portfolio button URL","samba_lang"), "param_name" => "button_url", "value" => "", "description" => __("Leave blank if no button is needed","samba_lang") ) ) ) ); //LATEST POSTS wpb_map( array( "name" => __("Latest Posts","samba_lang"), "base" => "pirenko_last_posts", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-posts", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Category filter using slug(s) - comma separated ","samba_lang"), "param_name" => "cat_filter", "value" => "", "description" => __("Optional - leave blank for all","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Items number","samba_lang"), "param_name" => "items_number", "value" => "", "description" => __("Optional - Default is three","samba_lang") ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Rows number","samba_lang"), "param_name" => "rows_number", "value" => "3", "description" => "" ) ) ) ); //COMMENTS wpb_map( array( "name" => __("Comments","samba_lang"), "base" => "pirenko_comments", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-comments", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title","samba_lang"), "param_name" => "title", "value" => "", "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of comments","samba_lang"), "param_name" => "items_number", "value" => "", "description" => "" ) ) )); //SITEMAP wpb_map( array( "name" => __("Sitemap","samba_lang"), "base" => "prk_sitemap", "class" => "samba_scodes_editor", "icon" => "icon-wpb-prk-sitemap", "category" => __('Content',"samba_lang"), "params" => array( array( "type" => "dropdown", "heading" => __("Show Pages?", "js_composer"), "param_name" => "show_pages", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title for Pages","samba_lang"), "param_name" => "txt_pages", "value" => "", "description" => "" ), array( "type" => "dropdown", "heading" => __("Show blog categories?", "js_composer"), "param_name" => "show_blog_cats", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title for blog categories","samba_lang"), "param_name" => "txt_blog_cats", "value" => "", "description" => "" ), array( "type" => "dropdown", "heading" => __("Show blog posts?", "js_composer"), "param_name" => "show_posts", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title for blog posts","samba_lang"), "param_name" => "txt_posts", "value" => "", "description" => "" ), array( "type" => "dropdown", "heading" => __("Show portfolio posts?", "js_composer"), "param_name" => "show_port_posts", "value" => $yes_no_arr, "description" => "" ), array( "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title for portfolio posts","samba_lang"), "param_name" => "txt_port_posts", "value" => "", "description" => "" ) ) )); /* Widgetised sidebar ---------------------------------------------------------- */ vc_map( array( "name" => __("Widgetised Sidebar", "js_composer"), "base" => "vc_widget_sidebar", "class" => "wpb_widget_sidebar_widget", "icon" => "icon-wpb-layout_sidebar", "category" => __('Structure', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "widgetised_sidebars", "heading" => __("Sidebar", "js_composer"), "param_name" => "sidebar_id", "description" => __("Select which widget area output.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Raw HTML ---------------------------------------------------------- */ vc_map( array( "name" => __("Raw HTML", "js_composer"), "base" => "vc_raw_html", "icon" => "icon-wpb-raw-html", "category" => __('Structure', 'js_composer'), "wrapper_class" => "clearfix", "params" => array( array( "type" => "textarea_raw_html", "holder" => "div", "heading" => __("Raw HTML", "js_composer"), "param_name" => "content", "value" => base64_encode("<p>I am raw html block.<br/>Click edit button to change this html</p>"), "description" => __("Enter your HTML content.", "js_composer") ), ) ) ); /* Raw JS ---------------------------------------------------------- */ vc_map( array( "name" => __("Raw JS", "js_composer"), "base" => "vc_raw_js", "icon" => "icon-wpb-raw-javascript", "category" => __('Structure', 'js_composer'), "wrapper_class" => "clearfix", "params" => array( array( "type" => "textarea_raw_html", "holder" => "div", "heading" => __("Raw js", "js_composer"), "param_name" => "content", "value" => __(base64_encode("<script type='text/javascript'> alert('Enter your js here!'); </script>"), "js_composer"), "description" => __("Enter your JS code.", "js_composer") ), ) ) ); /* Flickr ---------------------------------------------------------- */ vc_map( array( "base" => "vc_flickr", "name" => __("Flickr Widget", "js_composer"), "icon" => "icon-wpb-flickr", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "textfield", "heading" => __("Flickr ID", "js_composer"), "param_name" => "flickr_id", 'admin_label' => true, "description" => sprintf(__('To find your flickID visit %s.', "js_composer"), '<a href="http://idgettr.com/" target="_blank">idGettr</a>') ), array( "type" => "dropdown", "heading" => __("Number of photos", "js_composer"), "param_name" => "count", "value" => array(9, 8, 7, 6, 5, 4, 3, 2, 1), "description" => __("Number of photos.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array(__("User", "js_composer") => "user", __("Group", "js_composer") => "group"), "description" => __("Photo stream type.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Display", "js_composer"), "param_name" => "display", "value" => array(__("Latest", "js_composer") => "latest", __("Random", "js_composer") => "random"), "description" => __("Photo order.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Facebook like button ---------------------------------------------------------- */ vc_map( array( "name" => __("Facebook Like", "js_composer"), "base" => "vc_facebook", "icon" => "icon-wpb-balloon-facebook-left", "category" => __('Social', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Button type", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Standard", "js_composer") => "standard", __("Button count", "js_composer") => "button_count", __("Box count", "js_composer") => "box_count"), "description" => __("Select button type.", "js_composer") ) ) ) ); /* Tweetmeme button ---------------------------------------------------------- */ vc_map( array( "name" => __("Tweetmeme Button", "js_composer"), "base" => "vc_tweetmeme", "icon" => "icon-wpb-tweetme", "category" => __('Social', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Button type", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Horizontal", "js_composer") => "horizontal", __("Vertical", "js_composer") => "vertical", __("None", "js_composer") => "none"), "description" => __("Select button type.", "js_composer") ) ) ) ); /* Google+ button ---------------------------------------------------------- */ vc_map( array( "name" => __("Google+ Button", "js_composer"), "base" => "vc_googleplus", "icon" => "icon-wpb-application-plus", "category" => __('Social', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Button size", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Standard", "js_composer") => "", __("Small", "js_composer") => "small", __("Medium", "js_composer") => "medium", __("Tall", "js_composer") => "tall"), "description" => __("Select button size.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Annotation", "js_composer"), "param_name" => "annotation", "admin_label" => true, "value" => array(__("Inline", "js_composer") => "inline", __("Bubble", "js_composer") => "", __("None", "js_composer") => "none"), "description" => __("Select annotation type.", "js_composer") ) ) ) ); /* Google+ button ---------------------------------------------------------- */ vc_map( array( "name" => __("Pinterest Button", "js_composer"), "base" => "vc_pinterest", "icon" => "icon-wpb-pinterest", "category" => __('Social', 'js_composer'), "params" => array( array( "type" => "dropdown", "heading" => __("Button layout", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Horizontal", "js_composer") => "", __("Vertical", "js_composer") => "vertical", __("No count", "js_composer") => "none"), "description" => __("Select button layout.", "js_composer") ) ) ) ); /* Graph ---------------------------------------------------------- */ vc_map( array( "name" => __("Progress Bar", "js_composer"), "base" => "vc_progress_bar", "icon" => "icon-wpb-graph", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "exploded_textarea", "heading" => __("Graphic values", "js_composer"), "param_name" => "values", "description" => __('Input graph values here. Divide values with linebreaks (Enter). Example: 90|Development', 'js_composer'), "value" => "90|Development,80|Design,70|Marketing" ), array( "type" => "textfield", "heading" => __("Units", "js_composer"), "param_name" => "units", "description" => __("Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Bar color", "js_composer"), "param_name" => "bgcolor", "value" => array(__("Grey", "js_composer") => "bar_grey", __("Blue", "js_composer") => "bar_blue", __("Turquoise", "js_composer") => "bar_turquoise", __("Green", "js_composer") => "bar_green", __("Orange", "js_composer") => "bar_orange", __("Red", "js_composer") => "bar_red", __("Black", "js_composer") => "bar_black", __("Custom Color", "js_composer") => "custom"), "description" => __("Select bar background color.", "js_composer"), "admin_label" => true ), array( "type" => "colorpicker", "heading" => __("Bar custom color", "js_composer"), "param_name" => "custombgcolor", "description" => __("Select custom background color for bars.", "js_composer"), "dependency" => Array('element' => "bgcolor", 'value' => array('custom')) ), array( "type" => "checkbox", "heading" => __("Options", "js_composer"), "param_name" => "options", "value" => array(__("Add Stripes?", "js_composer") => "striped", __("Add animation? Will be visible with striped bars.", "js_composer") => "animated") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); /* Support for 3rd Party plugins ---------------------------------------------------------- */ // Contact form 7 plugin include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); // Require plugin.php to use is_plugin_active() below if (is_plugin_active('contact-form-7/wp-contact-form-7.php')) { global $wpdb; $cf7 = $wpdb->get_results( " SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'wpcf7_contact_form' " ); $contact_forms = array(); if ($cf7) { foreach ( $cf7 as $cform ) { $contact_forms[$cform->post_title] = $cform->ID; } } else { $contact_forms["No contact forms found"] = 0; } vc_map( array( "base" => "contact-form-7", "name" => __("Contact Form 7", "js_composer"), "icon" => "icon-wpb-contactform7", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Form title", "js_composer"), "param_name" => "title", "admin_label" => true, "description" => __("What text use as form title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Select contact form", "js_composer"), "param_name" => "id", "value" => $contact_forms, "description" => __("Choose previously created contact form from the drop down list.", "js_composer") ) ) ) ); } // if contact form7 plugin active if (is_plugin_active('LayerSlider/layerslider.php')) { global $wpdb; $ls = $wpdb->get_results( " SELECT id, name, date_c FROM ".$wpdb->prefix."layerslider WHERE flag_hidden = '0' AND flag_deleted = '0' ORDER BY date_c ASC LIMIT 100 " ); $layer_sliders = array(); if ($ls) { foreach ( $ls as $slider ) { $layer_sliders[$slider->name] = $slider->id; } } else { $layer_sliders["No sliders found"] = 0; } vc_map( array( "base" => "layerslider_vc", "name" => __("Layer Slider", "js_composer"), "icon" => "icon-wpb-layerslider", "category" => __('Content', 'js_composer'), "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("LayerSlider ID", "js_composer"), "param_name" => "id", "admin_label" => true, "value" => $layer_sliders, "description" => __("Select your LayerSlider.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); } // if layer slider plugin active if (is_plugin_active('revslider/revslider.php')) { global $wpdb; $rs = $wpdb->get_results( " SELECT id, title, alias FROM ".$wpdb->prefix."revslider_sliders ORDER BY id ASC LIMIT 100 " ); $revsliders = array(); if ($rs) { foreach ( $rs as $slider ) { $revsliders[$slider->title] = $slider->alias; } } else { $revsliders["No sliders found"] = 0; } vc_map( array( "base" => "rev_slider_vc", "name" => __("Revolution Slider", "js_composer"), "icon" => "icon-wpb-revslider", "category" => __('Content', 'js_composer'), "params"=> array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Revolution Slider", "js_composer"), "param_name" => "alias", "admin_label" => true, "value" => $revsliders, "description" => __("Select your Revolution Slider.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); } // if revslider plugin active if (is_plugin_active('gravityforms/gravityforms.php')) { $gravity_forms_array[__("No Gravity forms found.", "js_composer")] = ''; if ( class_exists('RGFormsModel') ) { $gravity_forms = RGFormsModel::get_forms(1, "title"); if ($gravity_forms) { $gravity_forms_array = array(__("Select a form to display.", "js_composer") => ''); foreach ( $gravity_forms as $gravity_form ) { $gravity_forms_array[$gravity_form->title] = $gravity_form->id; } } } vc_map( array( "name" => __("Gravity Form", "js_composer"), "base" => "gravityform", "icon" => "icon-wpb-vc_gravityform", "category" => __("Content", "js_composer"), "params" => array( array( "type" => "dropdown", "heading" => __("Form", "js_composer"), "param_name" => "id", "value" => $gravity_forms_array, "description" => __("Select a form to add it to your post or page.", "js_composer"), "admin_label" => true ), array( "type" => "dropdown", "heading" => __("Display Form Title", "js_composer"), "param_name" => "title", "value" => array( __("No", "js_composer") => 'false', __("Yes", "js_composer") => 'true' ), "description" => __("Would you like to display the forms title?", "js_composer"), "dependency" => Array('element' => "id", 'not_empty' => true) ), array( "type" => "dropdown", "heading" => __("Display Form Description", "js_composer"), "param_name" => "description", "value" => array( __("No", "js_composer") => 'false', __("Yes", "js_composer") => 'true' ), "description" => __("Would you like to display the forms description?", "js_composer"), "dependency" => Array('element' => "id", 'not_empty' => true) ), array( "type" => "dropdown", "heading" => __("Enable AJAX?", "js_composer"), "param_name" => "ajax", "value" => array( __("No", "js_composer") => 'false', __("Yes", "js_composer") => 'true' ), "description" => __("Enable AJAX submission?", "js_composer"), "dependency" => Array('element' => "id", 'not_empty' => true) ), array( "type" => "textfield", "heading" => __("Tab Index", "js_composer"), "param_name" => "tabindex", "description" => __("(Optional) Specify the starting tab index for the fields of this form. Leave blank if you're not sure what this is.", "js_composer"), "dependency" => Array('element' => "id", 'not_empty' => true) ) ) ) ); } // if gravityforms active /* WordPress default Widgets (Appearance->Widgets) ---------------------------------------------------------- */ vc_map( array( "name" => 'WP ' . __("Search"), "base" => "vc_wp_search", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Meta"), "base" => "vc_wp_meta", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Recent Comments"), "base" => "vc_wp_recentcomments", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("Number of comments to show", "js_composer"), "param_name" => "number", "admin_label" => true ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Calendar"), "base" => "vc_wp_calendar", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Pages"), "base" => "vc_wp_pages", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Sort by", "js_composer"), "param_name" => "sortby", "value" => array(__("Page title", "js_composer") => "post_title", __("Page order", "js_composer") => "menu_order", __("Page ID", "js_composer") => "ID"), "admin_label" => true ), array( "type" => "textfield", "heading" => __("Exclude", "js_composer"), "param_name" => "exclude", "description" => __("Page IDs, separated by commas.", "js_composer"), "admin_label" => true ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); $tag_taxonomies = array(); foreach ( get_taxonomies() as $taxonomy ) : $tax = get_taxonomy($taxonomy); if ( !$tax->show_tagcloud || empty($tax->labels->name) ) continue; $tag_taxonomies[$tax->labels->name] = esc_attr($taxonomy); endforeach; vc_map( array( "name" => 'WP ' . __("Tag Cloud"), "base" => "vc_wp_tagcloud", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Taxonomy", "js_composer"), "param_name" => "taxonomy", "value" => $tag_taxonomies, "admin_label" => true ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); $custom_menus = array(); $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) ); if ( is_array($menus) ) { foreach ( $menus as $single_menu ) { $custom_menus[$single_menu->name] = $single_menu->term_id; } } vc_map( array( "name" => 'WP ' . __("Custom Menu"), "base" => "vc_wp_custommenu", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "dropdown", "heading" => __("Menu", "js_composer"), "param_name" => "nav_menu", "value" => $custom_menus, "description" => __(empty($custom_menus) ? "Custom menus not found. Please visit <b>Appearance > Menus</b> page to create new menu." : "Select menu", "js_composer"), "admin_label" => true ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Text"), "base" => "vc_wp_text", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textarea", "heading" => __("Text", "js_composer"), "param_name" => "text", "admin_label" => true ), /*array( "type" => "checkbox", "heading" => __("Automatically add paragraphs", "js_composer"), "param_name" => "filter" ),*/ array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Recent Posts"), "base" => "vc_wp_posts", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("Number of posts to show", "js_composer"), "param_name" => "number", "admin_label" => true ), array( "type" => "checkbox", "heading" => __("Display post date?", "js_composer"), "param_name" => "show_date", "value" => array(__("Display post date?") => true ) ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); $link_category = array(__("All Links", "js_composer") => ""); $link_cats = get_terms( 'link_category' ); if ( is_array($link_cats) ) { foreach ( $link_cats as $link_cat ) { $link_category[$link_cat->name] = $link_cat->term_id; } } vc_map( array( "name" => 'WP ' . __("Links"), "base" => "vc_wp_links", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "dropdown", "heading" => __("Link Category", "js_composer"), "param_name" => "category", "value" => $link_category, "admin_label" => true ), array( "type" => "dropdown", "heading" => __("Sort by", "js_composer"), "param_name" => "orderby", "value" => array(__("Link title", "js_composer") => "name", __("Link rating", "js_composer") => "rating", __("Link ID", "js_composer") => "id", __("Random", "js_composer") => "rand") ), array( "type" => "checkbox", "heading" => __("Options", "js_composer"), "param_name" => "options", "value" => array(__("Show Link Image", "js_composer") => "images", __("Show Link Name", "js_composer") => "name", __("Show Link Description", "js_composer") => "description", __("Show Link Rating", "js_composer") => "rating") ), array( "type" => "textfield", "heading" => __("Number of links to show", "js_composer"), "param_name" => "limit" ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Categories"), "base" => "vc_wp_categories", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "checkbox", "heading" => __("Options", "js_composer"), "param_name" => "options", "value" => array(__("Display as dropdown", "js_composer") => "dropdown", __("Show post counts", "js_composer") => "count", __("Show hierarchy", "js_composer") => "hierarchical") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("Archives"), "base" => "vc_wp_archives", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "checkbox", "heading" => __("Options", "js_composer"), "param_name" => "options", "value" => array(__("Display as dropdown", "js_composer") => "dropdown", __("Show post counts", "js_composer") => "count") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); vc_map( array( "name" => 'WP ' . __("RSS"), "base" => "vc_wp_rss", "icon" => "icon-wpb-wp", "category" => __("WordPress Widgets", "js_composer"), "class" => "wpb_vc_wp_widget", "params" => array( array( "type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank to use default widget title.", "js_composer") ), array( "type" => "textfield", "heading" => __("RSS feed URL", "js_composer"), "param_name" => "url", "description" => __("Enter the RSS feed URL.", "js_composer"), "admin_label" => true ), array( "type" => "dropdown", "heading" => __("Items", "js_composer"), "param_name" => "items", "value" => array(__("10 - Default", "js_composer") => '', 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), "description" => __("How many items would you like to display?", "js_composer"), "admin_label" => true ), array( "type" => "checkbox", "heading" => __("Options", "js_composer"), "param_name" => "options", "value" => array(__("Display item content?", "js_composer") => "show_summary", __("Display item author if available?", "js_composer") => "show_author", __("Display item date?", "js_composer") => "show_date") ), array( "type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer") ) ) ) ); //PIRENKO wpb_remove("vc_text_separator"); wpb_remove("vc_toggle"); wpb_remove("vc_teaser_grid"); wpb_remove("vc_twitter"); wpb_remove("vc_progress_bar"); wpb_remove("vc_posts_slider"); wpb_remove("vc_pie");