vc_map(array("name" => __("Office Locations", THB_THEME_NAME), "base" => "thb_location", "icon" => "thb_vc_ico_location", "class" => "thb_vc_sc_location", "category" => "by Fuel Themes", "as_parent" => array('only' => 'thb_location_single'), "show_settings_on_create" => true, "content_element" => true, "params" => array(array("type" => "textfield", "heading" => "Map Center Latitude", "param_name" => "map_center_lat", "description" => "Please enter the latitude for the maps center point. "), array("type" => "textfield", "heading" => "Map Center Longtitude", "param_name" => "map_center_long", "description" => "Please enter the longtitude for the maps center point. "), array("type" => "textfield", "heading" => "Map Zoom", "param_name" => "map_zoom", "description" => "Map zoom amount. An integer between 1 and 18")), "js_view" => 'VcColumnView', "description" => "Display your office locations")); vc_map(array("name" => __("Office Location", THB_THEME_NAME), "base" => "thb_location_single", "icon" => "thb_vc_ico_location_single", "as_child" => array('only' => 'thb_location'), "content_element" => true, "params" => array(array("type" => "textfield", "heading" => "Title", "param_name" => "title", "admin_label" => true, "description" => "The location title"), array("type" => "textarea_html", "heading" => "Location Address", "param_name" => "content", "description" => "The location address"), array("type" => "textfield", "heading" => "Location Latitude", "param_name" => "location_lat", "description" => "Please enter the latitude for the location point. "), array("type" => "textfield", "heading" => "Location Longtitude", "param_name" => "location_long", "description" => "Please enter the longtitude for the location point. ")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35', "description" => "Display your office locations")); class WPBakeryShortCode_Thb_Location extends WPBakeryShortCodesContainer { } class WPBakeryShortCode_Thb_Location_Single extends WPBakeryShortCode { } // Products vc_map(array("name" => __("Products", THB_THEME_NAME), "base" => "thb_product", "icon" => "thb_vc_ico_product", "class" => "thb_vc_sc_product", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Product Sort", "param_name" => "product_sort", "value" => array('Best Sellers' => "best-sellers", 'Latest Products' => "latest-products", 'Top Rated' => "top-rated", 'Sale Products' => "sale-products", 'By Category' => "by-category", 'By Product ID' => "by-id"), "description" => "Select the order of the products you'd like to show."), array("type" => "checkbox", "heading" => "Product Category", "param_name" => "cat", "value" => thb_productCategories(), "description" => "Select the order of the products you'd like to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category'))), array("type" => "textfield", "heading" => "Product IDs", "param_name" => "product_ids", "description" => "Enter the products IDs you would like to display seperated by comma", "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the products in a carousel."), array("type" => "textfield", "class" => "", "heading" => "Number of Items", "param_name" => "item_count", "value" => "4", "description" => "The number of products to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'sale-products', 'top-rated', 'latest-products', 'best-sellers'))), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the products.")), "description" => "Add WooCommerce products")); // Product List vc_map(array("name" => __("Product List", THB_THEME_NAME), "base" => "thb_product_list", "icon" => "thb_vc_ico_product_list", "class" => "thb_vc_sc_product_list", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "class" => "", "heading" => "Title", "param_name" => "title", "value" => "", "admin_label" => true, "description" => "Title of the widget"), array("type" => "dropdown", "heading" => "Product Sort", "param_name" => "product_sort", "value" => array('Best Sellers' => "best-sellers", 'Latest Products' => "latest-products", 'Top Rated' => "top-rated", 'Sale Products' => "sale-products", 'By Product ID' => "by-id"), "admin_label" => true, "description" => "Select the order of the products you'd like to show."), array("type" => "textfield", "heading" => "Product IDs", "param_name" => "product_ids", "description" => "Enter the products IDs you would like to display seperated by comma", "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "textfield", "class" => "", "heading" => "Number of Items", "param_name" => "item_count", "value" => "4", "description" => "The number of products to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'sale-products', 'top-rated', 'latest-products', 'best-sellers')))), "description" => "Add WooCommerce products in a list")); // Product Categories vc_map(array("name" => __("Product Categories", THB_THEME_NAME), "base" => "thb_product_categories", "icon" => "thb_vc_ico_product_categories", "class" => "thb_vc_sc_product_categories", "category" => "by Fuel Themes", "params" => array(array("type" => "checkbox", "heading" => "Product Category", "param_name" => "cat", "value" => thb_productCategories(), "description" => "Select the categories you would like to display"), array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the categories in a carousel."), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the products.")), "description" => "Add WooCommerce product categories")); // Portfolio vc_map(array("name" => __("Portfolios", THB_THEME_NAME), "base" => "thb_portfolio", "icon" => "thb_vc_ico_portfolio", "class" => "thb_vc_sc_portfolio", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the portfolios in a carousel."), array("type" => "textfield", "class" => "", "heading" => "Number of portfolios", "param_name" => "item_count", "value" => "4", "description" => "The number of portfolios to show."), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "value" => array('Six Columns' => "6", 'Five Columns' => "5", 'Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "admin_label" => true, "description" => "Select the layout of the portfolios."), array("type" => "checkbox", "heading" => "Categories", "param_name" => "categories", "value" => thb_portfolioCategories(), "description" => "Select which categories of portfolios you would like to display."), array("type" => "checkbox", "class" => "", "heading" => "Enable Margin?", "param_name" => "margin", "value" => array("" => "true"), "dependency" => array("element" => "carousel", "value" => array('no'))), array("type" => "checkbox", "class" => "", "heading" => "Enable Grayscale?", "param_name" => "grayscale", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => "Always show Titles", "param_name" => "titles", "value" => array("" => "true"))), "description" => "Display Portfolios in columns")); // Posts vc_map(array("name" => __("Posts", THB_THEME_NAME), "base" => "thb_post", "icon" => "thb_vc_ico_post", "class" => "thb_vc_sc_post", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the products in a carousel."), array("type" => "textfield", "class" => "", "heading" => "Number of posts", "param_name" => "item_count", "value" => "4", "description" => "The number of posts to show."), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the posts.")), "description" => "Display Posts from your blog")); // Progress Bar Shortcode vc_map(array("name" => __("Progress Bar", THB_THEME_NAME), "base" => "thb_progressbar", "icon" => "thb_vc_ico_progressbar", "class" => "thb_vc_sc_progressbar", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Style", "param_name" => "style", "value" => array('Light' => "light", 'Dark' => "dark"), "description" => "This changes the background color and tooltip color."), array("type" => "exploded_textarea", "heading" => "Graphic values", "param_name" => "values", "description" => 'Input graph values here. Divide values with linebreaks (Enter). Example: 90|Development', "value" => "90|Development,80|Design,70|Marketing"), array("type" => "dropdown", "heading" => "Bar color", "param_name" => "bgcolor", "value" => array("Light Grey" => "lightgrey", "Black" => "black", "Blue" => "blue", "Green" => "green", "Yellow" => "yellow", "Orange" => "orange", "Pink" => "pink", "Petrol Green" => "petrol", "Gray" => "gray"), "description" => "Select bar background color.")), "description" => "Display progress bars in different colors")); // Pricing Column shortcode vc_map(array("name" => __("Pricing Column", THB_THEME_NAME), "base" => "thb_pricingcolumn", "icon" => "thb_vc_ico_pricingcolumn", "class" => "thb_vc_sc_pricingcolumn", "category" => "by Fuel Themes", "params" => array(array("type" => "checkbox", "class" => "", "heading" => "Featured Column?", "param_name" => "featured", "value" => array("" => "true"), "description" => "Check if you want to make this a featured column"), array("type" => "textfield", "class" => "", "heading" => "Column Name", "admin_label" => true, "param_name" => "title", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Currency", "param_name" => "currency", "value" => "", "description" => "\$ .."), array("type" => "textfield", "class" => "", "heading" => "Price", "param_name" => "price", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Per", "param_name" => "per", "value" => "", "description" => "Per month, annually, etc.."), array("type" => "exploded_textarea", "class" => "", "heading" => "Features", "param_name" => "content", "value" => "", "description" => "Every new line will be treated as a list item"), array("type" => "checkbox", "class" => "", "heading" => "Add Button?", "param_name" => "use_btn", "value" => array("" => "true"), "description" => "Check if you want to add a button."), array("type" => "textfield", "class" => "", "heading" => "Button Caption", "param_name" => "btn_caption", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => "Button Link URL", "param_name" => "btn_link", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Open Button link in", "param_name" => "target_blank", "value" => array("Same window" => "", "New window" => "true"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true))), "description" => "Show your packages in pricing columns")); // Styled Header vc_map(array("name" => __("Styled Header", THB_THEME_NAME), "base" => "thb_header", "icon" => "thb_vc_ico_styled", "class" => "thb_vc_sc_styled", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Style", "param_name" => "style", "value" => array('Style 1' => "style1", 'Style 2' => "style2"), "description" => "Style 1 uses icons, Style 2 adds a line below title."), array("type" => "dropdown", "heading" => "Color", "param_name" => "color", "value" => array('Dark' => "dark", 'Light' => "light"), "description" => "This changes the color. You need this if you are using a dark background."), array("type" => "textfield", "heading" => "Title", "param_name" => "title", "admin_label" => true, "description" => "Title of the header"), array("type" => "textfield", "heading" => "Sub-Title", "param_name" => "sub_title", "description" => "Sub - Title of the header."), array("type" => "dropdown", "class" => "", "heading" => "Icon", "param_name" => "icon", "value" => thb_getIconArray(), "description" => "", "dependency" => array('element' => "style", 'value' => array('style1'))), array("type" => "checkbox", "class" => "", "heading" => "Use image instead of icon?", "param_name" => "is_image", "value" => array("" => "true"), "description" => "20px width is recommended (40px) for retina.", "dependency" => array('element' => "style", 'value' => array('style1'))), array("type" => "attach_image", "class" => "", "heading" => "Select Image", "param_name" => "image", "description" => "", "dependency" => array('element' => "is_image", 'not_empty' => true))), "description" => "Add a title with icons")); // Team Member shortcode vc_map(array("name" => "Team Member", "base" => "thb_teammember", "icon" => "thb_vc_ico_teammember", "class" => "thb_vc_sc_teammember", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Team Member Image", "param_name" => "image", "description" => "Minimum size is 270x270 pixels"), array("type" => "textfield", "heading" => "Name", "param_name" => "name", "admin_label" => true, "description" => "Enter name of the team member"), array("type" => "textfield", "heading" => "Position", "param_name" => "position", "description" => "Enter position/title of the team member"), array("type" => "checkbox", "class" => "", "heading" => "Advanced Style?", "param_name" => "advanced", "value" => array("" => "true"), "description" => "Enable to display a short text and social icons"), array("type" => "textarea", "class" => "", "heading" => "Short text", "param_name" => "text", "value" => "", "dependency" => array("element" => "advanced", "not_empty" => true), "description" => "Text to display on hover"), array("type" => "textfield", "heading" => "Facebook", "param_name" => "facebook", "dependency" => array("element" => "advanced", "not_empty" => true), "description" => "Enter Facebook Link"), array("type" => "textfield", "heading" => "Twitter", "param_name" => "twitter", "dependency" => array("element" => "advanced", "not_empty" => true), "description" => "Enter Twitter Link"), array("type" => "textfield", "heading" => "Pinterest", "param_name" => "pinterest", "dependency" => array("element" => "advanced", "not_empty" => true), "description" => "Enter Pinterest Link"), array("type" => "textfield", "heading" => "Linkedin", "param_name" => "linkedin", "dependency" => array("element" => "advanced", "not_empty" => true), "description" => "Enter Linkedin Link")), "description" => "Display your team members in a stylish way")); // Testimonials Shortcode vc_map(array("name" => "Testimonials", "base" => "thb_testimonials", "icon" => "thb_vc_ico_testimonials", "class" => "thb_vc_sc_testimonials", "category" => "by Fuel Themes", "as_parent" => array('only' => 'thb_testimonial_single'), "show_settings_on_create" => true, "content_element" => true, "js_view" => 'VcColumnView', "params" => array(array("type" => "dropdown", "heading" => "Style", "param_name" => "style", "value" => array('Light' => "light", 'Dark' => "dark"), "description" => "This changes the colors depending on the background color.")), "description" => "Display testimonials from your clients")); vc_map(array("name" => "Testimonial", "base" => "thb_testimonial_single", "icon" => "thb_vc_ico_testimonial_single", "as_child" => array('only' => 'thb_testimonials'), "content_element" => true, "params" => array(array("type" => "textarea_html", "heading" => "Quote", "param_name" => "content", "admin_label" => true, "description" => "The testimonial quote"), array("type" => "textfield", "heading" => "Author", "param_name" => "author", "description" => "The testimonial author"), array("type" => "textfield", "heading" => "Author Title", "param_name" => "title", "description" => "The testimonial author title"), array("type" => "attach_image", "class" => "", "heading" => "Author Image", "param_name" => "image", "description" => "Minimum size is 130x130 pixels")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35', "description" => "Display testimonials from your clients")); class WPBakeryShortCode_Thb_Testimonials extends WPBakeryShortCodesContainer {
function TheShortcodesForVC() { if (!class_exists('WPBakeryVisualComposerAbstract')) { // or using plugins path function return; } // Remove Front End vc_disable_frontend(); // Settings vc_set_as_theme(true); // Removing Default shortcodes vc_remove_element("vc_widget_sidebar"); vc_remove_element("vc_wp_search"); vc_remove_element("vc_wp_meta"); vc_remove_element("vc_wp_recentcomments"); vc_remove_element("vc_wp_calendar"); vc_remove_element("vc_wp_pages"); vc_remove_element("vc_wp_tagcloud"); vc_remove_element("vc_wp_custommenu"); vc_remove_element("vc_wp_text"); vc_remove_element("vc_wp_posts"); vc_remove_element("vc_wp_links"); vc_remove_element("vc_wp_categories"); vc_remove_element("vc_wp_archives"); vc_remove_element("vc_wp_rss"); vc_remove_element("vc_teaser_grid"); vc_remove_element("vc_button"); vc_remove_element("vc_button2"); vc_remove_element("vc_cta_button"); vc_remove_element("vc_message"); vc_remove_element("vc_progress_bar"); vc_remove_element("vc_pie"); vc_remove_element("vc_posts_slider"); vc_remove_element("vc_posts_grid"); vc_remove_element("vc_images_carousel"); vc_remove_element("vc_carousel"); vc_remove_element("vc_gallery"); vc_remove_element("vc_single_image"); vc_remove_element("vc_facebook"); vc_remove_element("vc_tweetmeme"); vc_remove_element("vc_googleplus"); vc_remove_element("vc_pinterest"); vc_remove_element("vc_single_image"); vc_remove_element("vc_cta_button2"); vc_remove_element("vc_gmaps"); vc_remove_element("vc_raw_js"); vc_remove_element("vc_flickr"); vc_remove_element("vc_separator"); vc_remove_element("vc_text_separator"); vc_remove_element("vc_empty_space"); vc_remove_element("vc_custom_heading"); add_action('admin_head', 'remove_my_meta_box'); function remove_my_meta_box() { remove_meta_box("vc_teaser", "portfolio", "side"); remove_meta_box("vc_teaser", "page", "side"); remove_meta_box("vc_teaser", "product", "side"); } // Adding Extra Shortcodes require_once THB_THEME_ROOT_ABS . '/vc_templates/button/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/image/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/styled_header/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/product/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/product_list/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/product_cat/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/post/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/portfolio/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/iconlist/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/iconbox/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/lookbook/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/product_grid/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/counter/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/notification/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/banner/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/progress_bar/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/team_member/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/testimonials/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/clients/shortcode.php'; require_once THB_THEME_ROOT_ABS . '/vc_templates/gap/shortcode.php'; /* Visual Composer Mappings */ // Adding animation to columns vc_add_param("vc_column", array("type" => "dropdown", "class" => "", "heading" => __("Animation"), "admin_label" => true, "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => "")); // Add parameters to rows vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", "value" => array("In Container" => "in_container", "Full Width Background" => "full_width_background", "Full Width Content" => "full_width_content"))); vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => __("Enable parallax"), "param_name" => "enable_parallax", "value" => array("" => "false"))); vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Parallax Speed"), "param_name" => "parallax_speed", "value" => "1", "dependency" => array("element" => "enable_parallax", "not_empty" => true), "description" => __("A value between 0 and 1 is recommended"))); vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (mp4)"), "param_name" => "bg_video_src_mp4", "value" => "", "description" => _("You must include the ogv & the mp4 format to render your video with cross browser compatibility. OGV is optional. Video must be in a 16:9 aspect ratio. The row background image will be used as in mobile devices."))); vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (ogv)"), "param_name" => "bg_video_src_ogv", "value" => "")); vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (webm)"), "param_name" => "bg_video_src_webm", "value" => "")); vc_add_param("vc_row", array("type" => "colorpicker", "class" => "", "heading" => __("Video Overlay Color"), "param_name" => "bg_video_overlay_color", "value" => "", "description" => __("If you want, you can select an overlay color."))); // Button shortcode vc_map(array("name" => __("Button"), "base" => "thb_button", "icon" => "thb_vc_ico_button", "class" => "thb_vc_sc_button", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Caption"), "admin_label" => true, "param_name" => "content", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Link URL"), "param_name" => "link", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Icon"), "param_name" => "icon", "value" => getFontAwesomeIconArray(), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Open link in"), "param_name" => "target_blank", "value" => array("Same window" => "", "New window" => "true"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Style"), "param_name" => "size", "value" => array("Small button" => "small", "Medium button" => "medium", "Big button" => "large"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Button color"), "param_name" => "color", "value" => array("White" => "white", "Light Grey" => "grey", "Black" => "black", "Blue" => "blue", "Green" => "green", "Yellow" => "yellow", "Orange" => "orange", "Pink" => "pink", "Petrol Green" => "petrol", "Gray" => "darkgrey"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animation"), "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => "")))); // Image shortcode vc_map(array("name" => __("Image"), "base" => "thb_image", "icon" => "thb_vc_ico_image", "class" => "thb_vc_sc_image", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => __("Select Image"), "param_name" => "image", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animation"), "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "textfield", "heading" => __("Image size"), "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.")), array("type" => "dropdown", "heading" => __("Image alignment"), "param_name" => "alignment", "value" => array(__("Align left") => "", __("Align right") => "right", __("Align center") => "center"), "description" => __("Select image alignment.")), array("type" => "checkbox", "class" => "", "heading" => __("Link to Full-Width Image?"), "param_name" => "lightbox", "value" => array("" => "true")), array("type" => "vc_link", "heading" => "Image link", "param_name" => "img_link", "description" => "Enter url if you want this image to have link.", "dependency" => array('element' => "lightbox", 'is_empty' => true))))); // Styled Header vc_map(array("name" => __("Styled Header"), "base" => "thb_header", "icon" => "thb_vc_ico_styled", "class" => "thb_vc_sc_styled", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => __("Title"), "param_name" => "title", "admin_label" => true, "description" => __("Title of the header")), array("type" => "textfield", "heading" => __("Sub-Title"), "param_name" => "sub_title", "description" => __("Sub - Title of the header. It's actually above the title.")), array("type" => "dropdown", "class" => "", "heading" => __("Icon"), "param_name" => "icon", "value" => getFontAwesomeIconArray(), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Use image instead of icon?"), "param_name" => "is_image", "value" => array("" => "true"), "description" => __("20px width is recommended (40px) for retina.")), array("type" => "attach_image", "class" => "", "heading" => __("Select Image"), "param_name" => "image", "description" => "", "dependency" => array('element' => "is_image", 'not_empty' => true))))); // Products vc_map(array("name" => __("Products"), "base" => "thb_product", "icon" => "thb_vc_ico_product", "class" => "thb_vc_sc_product", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => __("Product Sort"), "param_name" => "product_sort", "value" => array(__('Best Sellers') => "best-sellers", __('Latest Products') => "latest-products", __('Featured Products') => "featured-products", __('Top Rated Products') => "top-rated", __('Sale Products') => "sale-products", __('By Category') => "by-category", __('By Product ID') => "by-id"), "description" => __("Select the order of the products you'd like to show.")), array("type" => "checkbox", "heading" => __("Product Category"), "param_name" => "cat", "value" => thb_productCategories(), "description" => __("Select the order of the products you'd like to show."), "dependency" => array('element' => "product_sort", 'value' => array('by-category'))), array("type" => "textfield", "heading" => __("Product IDs"), "param_name" => "product_ids", "description" => __("Enter the products IDs you would like to display seperated by comma"), "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "dropdown", "heading" => __("Carousel"), "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => __("Select yes to display the products in a carousel.")), array("type" => "textfield", "class" => "", "heading" => __("Number of items"), "param_name" => "item_count", "value" => "4", "description" => __("The number of products to show."), "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'featured-products', 'sale-products', 'top-rated', 'latest-products', 'best-sellers'))), array("type" => "dropdown", "heading" => __("Columns"), "param_name" => "columns", "admin_label" => true, "value" => array(__('Four Columns') => "4", __('Three Columns') => "3", __('Two Columns') => "2"), "description" => __("Select the layout of the products."))))); // Product List vc_map(array("name" => __("Product List"), "base" => "thb_product_list", "icon" => "thb_vc_ico_product_list", "class" => "thb_vc_sc_product_list", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Title"), "param_name" => "title", "value" => "", "admin_label" => true, "description" => __("Title of the widget")), array("type" => "dropdown", "heading" => __("Product Sort"), "param_name" => "product_sort", "value" => array(__('Best Sellers') => "best-sellers", __('Featured Products') => "featured-products", __('Latest Products') => "latest-products", __('Top Rated') => "top-rated", __('Sale Products') => "sale-products", __('By Product ID') => "by-id"), "admin_label" => true, "description" => __("Select the order of the products you'd like to show.")), array("type" => "textfield", "heading" => __("Product IDs"), "param_name" => "product_ids", "description" => __("Enter the products IDs you would like to display seperated by comma"), "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "textfield", "class" => "", "heading" => __("Number of items"), "param_name" => "item_count", "value" => "4", "description" => __("The number of products to show."), "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'featured-products', 'sale-products', 'top-rated', 'latest-products', 'best-sellers')))))); // Product Categories vc_map(array("name" => __("Product Categories"), "base" => "thb_product_categories", "icon" => "thb_vc_ico_product_categories", "class" => "thb_vc_sc_product_categories", "category" => "by Fuel Themes", "params" => array(array("type" => "checkbox", "heading" => __("Product Category"), "param_name" => "cat", "value" => thb_productCategories(), "description" => __("Select the categories you would like to display")), array("type" => "dropdown", "heading" => __("Carousel"), "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => __("Select yes to display the categories in a carousel.")), array("type" => "dropdown", "heading" => __("Columns"), "param_name" => "columns", "admin_label" => true, "value" => array(__('Four Columns') => "4", __('Three Columns') => "3", __('Two Columns') => "2"), "description" => __("Select the layout of the products."))))); // Posts vc_map(array("name" => __("Posts"), "base" => "thb_post", "icon" => "thb_vc_ico_post", "class" => "thb_vc_sc_post", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => __("Carousel"), "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => __("Select yes to display the products in a carousel.")), array("type" => "dropdown", "heading" => "Post Source", "param_name" => "source", "value" => array('Most Recent' => "most-recent", 'By Category' => "by-category", 'By Post ID' => "by-id", 'By Tag' => "by-tag", 'By Share Count' => "by-share", 'By Author' => "by-author"), "admin_label" => true, "description" => "Select the source of the posts you'd like to show."), array("type" => "checkbox", "heading" => "Post Categories", "param_name" => "cat", "value" => thb_blogCategories(), "description" => "Which categories would you like to show?", "dependency" => array('element' => "source", 'value' => array('by-category'))), array("type" => "textfield", "class" => "", "heading" => "Number of posts", "param_name" => "item_count", "value" => "4", "description" => "The number of posts to show.", "dependency" => array('element' => "source", 'value' => array('by-category', 'by-tag', 'by-share', 'by-author', 'most-recent'))), array("type" => "textfield", "heading" => "Post IDs", "param_name" => "post_ids", "description" => "Enter the post IDs you would like to display seperated by comma", "dependency" => array('element' => "source", 'value' => array('by-id'))), array("type" => "textfield", "heading" => "Tag slugs", "param_name" => "tag_slugs", "description" => "Enter the tag slugs you would like to display seperated by comma", "dependency" => array('element' => "source", 'value' => array('by-tag'))), array("type" => "textfield", "heading" => "Author IDs", "param_name" => "author_ids", "description" => "Enter the Author IDs you would like to display seperated by comma", "dependency" => array('element' => "source", 'value' => array('by-author'))), array("type" => "dropdown", "heading" => __("Columns"), "param_name" => "columns", "admin_label" => true, "value" => array(__('Four Columns') => "4", __('Three Columns') => "3", __('Two Columns') => "2"), "description" => __("Select the layout of the posts."))))); // Portfolio vc_map(array("name" => __("Portfolios"), "base" => "thb_portfolio", "icon" => "thb_vc_ico_portfolio", "class" => "thb_vc_sc_portfolio", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => __("Carousel"), "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => __("Select yes to display the portfolios in a carousel.")), array("type" => "textfield", "class" => "", "heading" => __("Number of portfolios"), "param_name" => "item_count", "value" => "4", "description" => __("The number of portfolios to show.")), array("type" => "dropdown", "heading" => __("Columns"), "param_name" => "columns", "value" => array(__('Four Columns') => "4", __('Three Columns') => "3", __('Two Columns') => "2"), "description" => __("Select the layout of the portfolios.")), array("type" => "checkbox", "heading" => __("Categories"), "param_name" => "categories", "value" => thb_portfolioCategories(), "description" => __("Select which categories of portfolios you would like to display."))))); // Icon List shortcode vc_map(array("name" => __("Icon List"), "base" => "thb_iconlist", "icon" => "thb_vc_ico_iconlist", "class" => "thb_vc_sc_iconlist", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Icon"), "param_name" => "icon", "value" => getFontAwesomeIconArray(), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Icon color"), "param_name" => "color", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animation"), "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "exploded_textarea", "class" => "", "heading" => __("List Items"), "admin_label" => true, "param_name" => "content", "value" => "", "description" => __("Every new line will be treated as a list item"))))); // Iconbox shortcode vc_map(array("name" => __("Iconbox"), "base" => "thb_iconbox", "icon" => "thb_vc_ico_iconbox", "class" => "thb_vc_sc_iconbox", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array("Top Icon - Type 1" => "top type1", "Top Icon - Type 2" => "top type2", "Top Icon - Type 3" => "top type3", "Left Icon - Round" => "left type1", "Left Icon - Square" => "left type2", "Left Icon - Only Icon" => "left type3", "Right Icon - Round" => "right type1", "Right Icon - Square" => "right type2", "Right Icon - Only Icon" => "right type3"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Icon"), "param_name" => "icon", "value" => getFontAwesomeIconArray(), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Color"), "param_name" => "color", "value" => "", "description" => __("Leave empty to use default color")), array("type" => "attach_image", "class" => "", "heading" => __("Image"), "param_name" => "image", "description" => __("Use image instead of icon? Image uploaded should be 130*130 or 260*260 for retina. For small icons, 78*78 or 156*156 for retina."), "dependency" => array('element' => "type", 'value' => array('top type1', 'top type2', 'top type3', 'left type1', 'left type2', 'right type1', 'right type2'))), array("type" => "textfield", "class" => "", "heading" => __("Heading"), "param_name" => "heading", "value" => "", "description" => ""), array("type" => "textarea", "class" => "", "heading" => __("Content"), "admin_label" => true, "param_name" => "content", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animation"), "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Add Button?"), "param_name" => "use_btn", "value" => array("" => "true"), "description" => __("Check if you want to add a button.")), array("type" => "textfield", "class" => "", "heading" => __("Content"), "admin_label" => true, "param_name" => "btn_content", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => __("Button Caption"), "admin_label" => true, "param_name" => "btn_content", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => __("Button Link URL"), "param_name" => "btn_link", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => __("Button Icon"), "param_name" => "btn_icon", "value" => getFontAwesomeIconArray(), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => __("Button Open link in"), "param_name" => "btn_target_blank", "value" => array("Same window" => "", "New window" => "true"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => __("Button Style"), "param_name" => "btn_size", "value" => array("Small button" => "small", "Medium button" => "medium", "Big button" => "big"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => __("Button color"), "param_name" => "btn_color", "value" => array("White" => "white", "Light Grey" => "lightgrey", "Black" => "black", "Blue" => "blue", "Green" => "green", "Yellow" => "yellow", "Orange" => "orange", "Pink" => "pink", "Petrol Green" => "petrol", "Gray" => "gray"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true))))); // Look Book vc_map(array("name" => __("Look Book"), "base" => "thb_lookbook", "icon" => "thb_vc_ico_lookbook", "class" => "thb_vc_sc_lookbook", "category" => "by Fuel Themes", "params" => array(array("type" => "checkbox", "heading" => __("Product Category"), "param_name" => "cat", "value" => thb_productCategories(), "description" => __("Select the order of the products you'd like to show.")), array("type" => "textfield", "class" => "", "heading" => __("Number of items"), "param_name" => "item_count", "value" => "4", "description" => __("The number of products to show.")), array("type" => "textarea_html", "class" => "", "heading" => __("Content"), "admin_label" => true, "param_name" => "content", "value" => "", "description" => __("Enter a starting content to be displayed before lookbook products."))))); // Product Grid vc_map(array("name" => __("Product Grid"), "base" => "thb_productgrid", "icon" => "thb_vc_ico_productgrid", "class" => "thb_vc_sc_productgrid", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => __("Product Sort"), "param_name" => "product_sort", "value" => array(__('Best Sellers') => "best-sellers", __('Latest Products') => "latest-products", __('Top Rated') => "top-rated", __('Sale Products') => "sale-products", __('By Category') => "by-category", __('By Product ID') => "by-id"), "admin_label" => true, "description" => __("Select the order of the products you'd like to show.")), array("type" => "checkbox", "heading" => __("Product Category"), "param_name" => "cat", "value" => thb_productCategories(), "description" => __("Select the order of the products you'd like to show."), "dependency" => array('element' => "product_sort", 'value' => array('by-category'))), array("type" => "textfield", "heading" => __("Product IDs"), "param_name" => "product_ids", "description" => __("Enter the products IDs you would like to display seperated by comma"), "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "textfield", "class" => "", "heading" => __("Number of items"), "param_name" => "item_count", "value" => "4", "description" => __("The number of products to show."))))); // Counter vc_map(array("name" => __("Counter"), "base" => "thb_counter", "icon" => "thb_vc_ico_counter", "class" => "thb_vc_sc_counter", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Icon"), "param_name" => "icon", "value" => getFontAwesomeIconArray(), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Color"), "param_name" => "color", "value" => "", "description" => __("Leave empty to use default color")), array("type" => "attach_image", "class" => "", "heading" => __("Image"), "param_name" => "image", "description" => __("Use image instead of icon? Image uploaded should be 70*70 or 140*140 for retina.")), array("type" => "textfield", "class" => "", "heading" => __("Number to count to"), "param_name" => "content", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Speed of the counter animation"), "param_name" => "speed", "value" => "", "description" => __("Speed of the counter animation, default 1500")), array("type" => "textfield", "class" => "", "heading" => __("Heading"), "param_name" => "heading", "value" => "", "admin_label" => true, "description" => "")))); // Notification shortcode vc_map(array("name" => __("Notification"), "base" => "thb_notification", "icon" => "thb_vc_ico_notification", "class" => "thb_vc_sc_notification", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array("Information" => "information", "Success" => "success", "Warning" => "warning", "Error" => "error", "Note" => "note"), "description" => ""), array("type" => "textarea", "class" => "", "heading" => __("Content"), "admin_label" => true, "param_name" => "content", "value" => "", "description" => "")))); // Banner shortcode vc_map(array("name" => __("Banner"), "base" => "thb_banner", "icon" => "thb_vc_ico_banner", "class" => "thb_vc_sc_banner", "category" => "by Fuel Themes", "params" => array(array("type" => "colorpicker", "class" => "", "heading" => __("Background Color"), "param_name" => "banner_color", "value" => "", "description" => __("Select Background Color")), array("type" => "attach_image", "class" => "", "heading" => __("Select Background Image"), "param_name" => "banner_bg", "description" => ""), array("type" => "textfield", "heading" => __("Banner Height"), "param_name" => "banner_height", "description" => __("Enter height of the banner in px.")), array("type" => "textfield", "heading" => __("Padding"), "param_name" => "banner_padding", "description" => __("Enter padding value of the content. <small>This does not affect border offset values, only the content.</small>")), array("type" => "dropdown", "class" => "", "heading" => __("Banner Type"), "param_name" => "type", "value" => array("Type - 1 (5px Border with offset)" => "type1", "Type - 2 (10px Border)" => "type2", "Type - 3 (Call to Action style without border)" => "type3", "Type - 4 (Simple no border)" => "type4", "Type - 5 (With overlay link)" => "type5"), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color"), "param_name" => "banner_border_color", "value" => "", "description" => __("Select Border Color if the banner type supports it"), "dependency" => array("element" => "type", "value" => array('type1', 'type2'))), array("type" => "textfield", "heading" => __("Title"), "param_name" => "title", "dependency" => array("element" => "type", "value" => array('type3'))), array("type" => "textfield", "heading" => __("Sub Title"), "param_name" => "subtitle", "dependency" => array("element" => "type", "value" => array('type3'))), array("type" => "textfield", "heading" => __("Button Text"), "param_name" => "button_text", "dependency" => array("element" => "type", "value" => array('type3'))), array("type" => "textfield", "heading" => __("Button Link"), "param_name" => "button_link", "dependency" => array("element" => "type", "value" => array('type3'))), array("type" => "textfield", "heading" => __("Overlay Link"), "param_name" => "overlay_link", "dependency" => array("element" => "type", "value" => array('type5'))), array("type" => "checkbox", "class" => "", "heading" => __("Enable parallax"), "param_name" => "enable_parallax", "value" => array("" => "false")), array("type" => "textfield", "class" => "", "heading" => __("Parallax Speed"), "param_name" => "parallax_speed", "value" => "1", "dependency" => array("element" => "enable_parallax", "not_empty" => true), "description" => __("A value between 0 and 10 is recommended. Lower is faster")), array("type" => "dropdown", "heading" => __("Text alignment"), "param_name" => "alignment", "value" => array(__("Align center") => "", __("Align left") => "textleft", __("Align right") => "textright"), "description" => __("Select text alignment."), "dependency" => array("element" => "type", "value" => array('type1', 'type2', 'type4', 'type5'))), array("type" => "textarea_html", "class" => "", "heading" => __("Content"), "param_name" => "content", "value" => "", "admin_label" => true, "description" => __("Content you would like to place inside the banner"), "dependency" => array("element" => "type", "value" => array('type1', 'type2', 'type4', 'type5')))))); // Banner shortcode vc_map(array("name" => __("Gap"), "base" => "thb_gap", "icon" => "thb_vc_ico_gap", "class" => "thb_vc_sc_gap", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => __("Gap Height"), "param_name" => "height", "admin_label" => true, "description" => __("Enter height of the gap in px."))))); // Progress Bar Shortcode vc_map(array("name" => __("Progress Bar"), "base" => "thb_progressbar", "icon" => "thb_vc_ico_progressbar", "class" => "thb_vc_sc_progressbar", "category" => "by Fuel Themes", "params" => array(array("type" => "exploded_textarea", "heading" => __("Graphic values"), "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" => "dropdown", "heading" => __("Bar color"), "param_name" => "bgcolor", "value" => array("Light Grey" => "lightgrey", "Black" => "black", "Blue" => "blue", "Green" => "green", "Yellow" => "yellow", "Orange" => "orange", "Pink" => "pink", "Petrol Green" => "petrol", "Gray" => "gray"), "description" => __("Select bar background color."))))); // Testimonials Shortcode vc_map(array("name" => __("Testimonials"), "base" => "thb_testimonials", "icon" => "thb_vc_ico_testimonials", "class" => "thb_vc_sc_testimonials", "category" => "by Fuel Themes", "params" => array(array("type" => "exploded_textarea", "heading" => __("Testimonials"), "param_name" => "values", "admin_label" => true, "description" => __('Enter testimonials here. Divide values with linebreaks (Enter). Example: Abraham Lincoln|Lorem ipsum ....', 'js_composer'), "value" => "Abraham Lincoln|Lorem Ipsum is simply dummy text of the printing and typesetting industry,George Bush|Lorem Ipsum is simply dummy text of the printing and typesetting industry.")))); // Team Member shortcode vc_map(array("name" => __("Team Member"), "base" => "thb_teammember", "icon" => "thb_vc_ico_teammember", "class" => "thb_vc_sc_teammember", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => __("Select Team Member Image"), "param_name" => "image", "description" => __("Minimum size is 270x270 pixels")), array("type" => "textfield", "heading" => __("Name"), "param_name" => "name", "admin_label" => true, "description" => __("Enter name of the team member")), array("type" => "textfield", "heading" => __("Position"), "param_name" => "position", "description" => __("Enter position/title of the team member")), array("type" => "textfield", "heading" => __("Facebook"), "param_name" => "facebook", "description" => __("Enter Facebook Link")), array("type" => "textfield", "heading" => __("Twitter"), "param_name" => "twitter", "description" => __("Enter Twitter Link")), array("type" => "textfield", "heading" => __("Google Plus"), "param_name" => "googleplus", "description" => __("Enter Google Plus Link")), array("type" => "textfield", "heading" => __("Linkedin"), "param_name" => "linkedin", "description" => __("Enter Linkedin Link"))))); // Clients shortcode vc_map(array("name" => __("Clients"), "base" => "thb_clients", "icon" => "thb_vc_ico_clients", "class" => "thb_vc_sc_clients", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_images", "class" => "", "heading" => __("Select Images"), "param_name" => "images", "description" => __("Add as many client images as possible."))))); function thb_translateColumnWidthToSpan($width) { switch ($width) { case "1/6": $w = "medium-2"; break; case "1/4": $w = "medium-3"; break; case "1/3": $w = "medium-4"; break; case "2/4": $w = "medium-6"; case "1/2": $w = "medium-6"; break; case "4/6": $w = "medium-8"; break; case "2/3": $w = "medium-8"; break; case "3/4": $w = "medium-9"; break; case "10/12": $w = "medium-10"; break; case "5/6": $w = "medium-10"; break; case "1/1": $w = "medium-12"; break; case "1/12": $w = "medium-1"; break; case "2/12": $w = "medium-2"; break; case "5/12": $w = "medium-5"; break; case "7/12": $w = "medium-7"; break; default: $w = $width; } return $w; } /* Offsets */ function thb_column_offset_class_merge($column_offset, $width) { /* Remove VC */ $column_offset = preg_replace('/vc_col-/', '', $column_offset); /* Change responsive columns */ $column_offset = preg_replace('/lg/', 'large', $column_offset); $column_offset = preg_replace('/md/', 'medium', $column_offset); $column_offset = preg_replace('/sm/', 'small', $column_offset); $column_offset = preg_replace('/xs/', 'small', $column_offset); /* Check If no Small setting */ if (!preg_match('/vc_col\\-(sm|xs)[^\\s]*/', $column_offset)) { $column_offset = 'small-12 ' . $column_offset; } /* Change visibility */ $column_offset = preg_replace('/vc_hidden-large/', 'hide-for-large-up', $column_offset); $column_offset = preg_replace('/vc_hidden-medium/', 'hide-for-medium-only', $column_offset); $column_offset = preg_replace('/vc_hidden-smallall/', 'hide-for-small-only', $column_offset); return $width . (empty($column_offset) ? '' : ' ' . $column_offset); } }
// Gap shortcode vc_map(array("name" => __("Gap", THB_THEME_NAME), "base" => "thb_gap", "icon" => "thb_vc_ico_gap", "class" => "thb_vc_sc_gap", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => "Gap Height", "param_name" => "height", "admin_label" => true, "description" => "Enter height of the gap in px.")), "description" => "Add a gap to seperate elements")); // Icon List shortcode vc_map(array("name" => __("Icon List", THB_THEME_NAME), "base" => "thb_iconlist", "icon" => "thb_vc_ico_iconlist", "class" => "thb_vc_sc_iconlist", "category" => "by Fuel Themes", "params" => array(array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')), array("type" => "colorpicker", "class" => "", "heading" => "Icon color", "param_name" => "color", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "exploded_textarea", "class" => "", "heading" => "List Items", "admin_label" => true, "param_name" => "content", "value" => "", "description" => "Every new line will be treated as a list item")), "description" => "Add lists with icons")); // Iconbox shortcode vc_map(array("name" => __("Iconbox", THB_THEME_NAME), "base" => "thb_iconbox", "icon" => "thb_vc_ico_iconbox", "class" => "thb_vc_sc_iconbox", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", "value" => array("Top Icon - Type 1" => "top type1", "Top Icon - Type 2" => "top type2", "Left Icon - Type 1" => "left type1", "Left Icon - Type 2" => "left type2", "Left Icon - Type 3" => "left type3", "Right Icon - Type 1" => "right type1", "Right Icon - Type 2" => "right type2", "Right Icon - Type 3" => "right type3"), "description" => ""), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => "Icon Background Color", "param_name" => "icon_bgcolor", "description" => "", "dependency" => array('element' => "type", 'value' => array('top type2', 'left type2', 'right type2'))), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => "Icon Color", "param_name" => "icon_color", "description" => ""), array("type" => "attach_image", "class" => "", "heading" => "Image", "param_name" => "image", "description" => "Use image instead of icon? Image uploaded should be 60*60 or 120*120 for retina."), array("type" => "textfield", "class" => "", "heading" => "Heading", "param_name" => "heading", "value" => "", "admin_label" => true, "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Heading Color", "param_name" => "heading_color", "value" => "", "description" => "You can change the heading color from here"), array("type" => "textarea", "class" => "", "heading" => "Content", "param_name" => "content", "value" => "", "description" => "", "dependency" => array('element' => "type", 'value' => array('top type1', 'left type1', 'right type1', 'top type2', 'left type2', 'right type2'))), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => "Content Color", "param_name" => "content_color", "description" => "", "dependency" => array('element' => "type", 'value' => array('top type1', 'left type1', 'right type1', 'top type2', 'left type2', 'right type2'))), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => "")), "description" => "Iconboxes with different animations")); // Image shortcode vc_map(array("name" => "Image", "base" => "thb_image", "icon" => "thb_vc_ico_image", "class" => "thb_vc_sc_image", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Image", "param_name" => "image", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Full Width?", "param_name" => "full_width", "value" => array("" => "true"), "description" => "If selected, the image will always fill its container"), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "textfield", "heading" => "Image size", "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."), array("type" => "dropdown", "heading" => "Image alignment", "param_name" => "alignment", "value" => array("Align left" => "left", "Align right" => "right", "Align center" => "center"), "description" => "Select image alignment."), array("type" => "checkbox", "class" => "", "heading" => "Link to Full-Width Image?", "param_name" => "lightbox", "value" => array("" => "true")), array("type" => "vc_link", "heading" => "Image link", "param_name" => "img_link", "description" => "Enter url if you want this image to have link.", "dependency" => array('element' => "lightbox", 'is_empty' => true))), "description" => "Add an animated image")); // Image Slider vc_map(array("name" => __("Image Slider", THB_THEME_NAME), "base" => "thb_slider", "icon" => "thb_vc_ico_slider", "class" => "thb_vc_sc_slider", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_images", "class" => "", "heading" => "Select Images", "param_name" => "images", "admin_label" => true, "description" => ""), array("type" => "textfield", "heading" => "Width", "param_name" => "width", "description" => "Enter the width of the images. The slider will fill the width of the container, so make sure you size the columns accordingly."), array("type" => "textfield", "heading" => "Height", "param_name" => "height", "description" => "Enter the height of the images.")), "description" => "Add an image slider")); // Products vc_map(array("name" => __("Instagram", THB_THEME_NAME), "base" => "thb_instagram", "icon" => "thb_vc_ico_instagram", "class" => "thb_vc_sc_instagram", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => "Username", "param_name" => "username", "description" => "Instagram Username"), array("type" => "textfield", "heading" => "Number of Photos", "param_name" => "number", "description" => "Number of Instagram Photos to retrieve"), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "value" => array('Six Columns' => "6", 'Five Columns' => "5", 'Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2")), array("type" => "checkbox", "heading" => "Link Photos to Instagram?", "param_name" => "link", "value" => array("" => "true"), "description" => "Do you want to link the Instagram photos to instagram.com website?")), "description" => "Add Instagram Photos")); // Notification shortcode vc_map(array("name" => __("Notification", THB_THEME_NAME), "base" => "thb_notification", "icon" => "thb_vc_ico_notification", "class" => "thb_vc_sc_notification", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", "value" => array("Information" => "information", "Success" => "success", "Warning" => "warning", "Error" => "error"), "description" => ""), array("type" => "textarea", "class" => "", "heading" => "Content", "admin_label" => true, "param_name" => "content", "value" => "", "description" => "")), "description" => "Display Notifications")); // Portfolio vc_map(array("name" => __("Portfolio", THB_THEME_NAME), "base" => "thb_portfolio", "icon" => "thb_vc_ico_portfolio", "class" => "thb_vc_sc_portfolio", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Style", "param_name" => "style", "admin_label" => true, "value" => array('Masonry' => "masonry", 'Grid' => "grid", 'Horizontal' => "horizontal", 'Vertical' => "vertical", 'Text Style' => "text1", 'Horizontal Text Style' => "text2"), "description" => "This changes the style of the portfolios"), array("type" => "dropdown", "heading" => "Masonry Style", "param_name" => "masonry_style", "value" => array('Style 1' => "style1", 'Style 2' => "style2", 'Style 3' => "style3"), "admin_label" => true, "description" => "Select Masonry Style", "dependency" => array('element' => "style", 'value' => array('masonry'))), array("type" => "dropdown", "heading" => "Portfolio Selection", "param_name" => "portfolio_sort", "value" => array('By Category' => "by-category", 'By Portfolio ID' => "by-id"), "description" => "Select the which portfolios you'd like to show."), array("type" => "textfield", "class" => "", "heading" => "Number of portfolios", "param_name" => "item_count", "value" => "4", "description" => "The number of portfolios to show.", "dependency" => array('element' => "portfolio_sort", 'value' => array('by-category'))), array("type" => "textfield", "heading" => "Portfolio IDs", "param_name" => "portfolio_ids", "description" => "Enter the portfolio IDs you would like to display seperated by comma <small>Please add minimum of 4 IDs for masonry layouts</small>", "dependency" => array('element' => "portfolio_sort", 'value' => array('by-id'))), array("type" => "checkbox", "class" => "", "heading" => "Randomize?", "param_name" => "random", "value" => array("" => "true"), "description" => "If enabled, this will cause the portfolio order to randomize. <strong>Load More functionality will not work with this.</strong>"), array("type" => "checkbox", "heading" => "Categories", "param_name" => "categories", "value" => thb_portfolioCategories(), "description" => "Select which categories of portfolios you would like to display.", "dependency" => array('element' => "portfolio_sort", 'value' => array('by-category'))), array("type" => "checkbox", "heading" => "Carousel", "param_name" => "carousel", "value" => array("" => "true"), "description" => "Select yes to display the portfolios in a carousel.", "dependency" => array('element' => "style", 'value' => array('grid', 'vertical'))), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "value" => array('Six Columns' => "6", 'Five Columns' => "5", 'Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "admin_label" => true, "description" => "Select the layout of the portfolios.", "dependency" => array('element' => "style", 'value' => array('grid', 'vertical'))), array("type" => "colorpicker", "class" => "", "heading" => "Text Color", "param_name" => "color", "value" => "", "description" => "", "dependency" => array('element' => "style", 'value' => array('text1'))), array("type" => "checkbox", "heading" => "Add Filters?", "param_name" => "add_filters", "value" => array("" => "true"), "description" => "This will display filters on the top", "dependency" => array('element' => "style", 'value' => array('masonry'))), array("type" => "checkbox", "heading" => "Add Load More Button?", "param_name" => "loadmore", "value" => array("" => "true"), "description" => "Add Load More button at the bottom <small>Does not work with Portfolio IDs as source</small>", "dependency" => array('element' => "style", 'value' => array('masonry'))), array("type" => "textfield", "class" => "", "heading" => "Number of Items to load each time", "param_name" => "retrieve", "description" => "Number of items to retrieve each time the Load More button is pressed", "dependency" => array('element' => "loadmore", "not_empty" => true))), "description" => "Display Your Portfolio in style")); // Single Product vc_map(array("name" => __("Single Product", THB_THEME_NAME), "base" => "thb_product_single", "icon" => "thb_vc_ico_product_single", "class" => "thb_vc_sc_product_single", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => "Product ID", "param_name" => "product_id", "admin_label" => true, "description" => "Enter the products ID you would like to display")), "description" => "Add WooCommerce product")); // Products vc_map(array("name" => __("Products", THB_THEME_NAME), "base" => "thb_product", "icon" => "thb_vc_ico_product", "class" => "thb_vc_sc_product", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Product Sort", "param_name" => "product_sort", "value" => array('Best Sellers' => "best-sellers", 'Latest Products' => "latest-products", 'Top Rated' => "top-rated", 'Featured Products' => "featured-products", 'Sale Products' => "sale-products", 'By Category' => "by-category", 'By Product ID' => "by-id"), "description" => "Select the order of the products you'd like to show."), array("type" => "checkbox", "heading" => "Product Category", "param_name" => "cat", "value" => thb_productCategories(), "description" => "Select the order of the products you'd like to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category'))), array("type" => "textfield", "heading" => "Product IDs", "param_name" => "product_ids", "description" => "Enter the products IDs you would like to display seperated by comma", "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the products in a carousel."), array("type" => "textfield", "class" => "", "heading" => "Number of Items", "param_name" => "item_count", "value" => "4", "description" => "The number of products to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'sale-products', 'top-rated', 'latest-products', 'best-sellers', 'featured-products'))), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the products.")), "description" => "Add WooCommerce products")); // Product List vc_map(array("name" => __("Product List", THB_THEME_NAME), "base" => "thb_product_list", "icon" => "thb_vc_ico_product_list", "class" => "thb_vc_sc_product_list", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "class" => "", "heading" => "Title", "param_name" => "title", "value" => "", "admin_label" => true, "description" => "Title of the widget"), array("type" => "dropdown", "heading" => "Product Sort", "param_name" => "product_sort", "value" => array('Best Sellers' => "best-sellers", 'Latest Products' => "latest-products", 'Top Rated' => "top-rated", 'Sale Products' => "sale-products", 'By Product ID' => "by-id"), "admin_label" => true, "description" => "Select the order of the products you'd like to show."), array("type" => "textfield", "heading" => "Product IDs", "param_name" => "product_ids", "description" => "Enter the products IDs you would like to display seperated by comma", "dependency" => array('element' => "product_sort", 'value' => array('by-id'))), array("type" => "textfield", "class" => "", "heading" => "Number of Items", "param_name" => "item_count", "value" => "4", "description" => "The number of products to show.", "dependency" => array('element' => "product_sort", 'value' => array('by-category', 'sale-products', 'top-rated', 'latest-products', 'best-sellers')))), "description" => "Add WooCommerce products in a list")); // Product Categories vc_map(array("name" => __("Product Categories", THB_THEME_NAME), "base" => "thb_product_categories", "icon" => "thb_vc_ico_product_categories", "class" => "thb_vc_sc_product_categories", "category" => "by Fuel Themes", "params" => array(array("type" => "checkbox", "heading" => "Product Category", "param_name" => "cat", "value" => thb_productCategories(), "description" => "Select the categories you would like to display"), array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the categories in a carousel."), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the products.")), "description" => "Add WooCommerce product categories")); // Posts vc_map(array("name" => __("Posts", THB_THEME_NAME), "base" => "thb_post", "icon" => "thb_vc_ico_post", "class" => "thb_vc_sc_post", "category" => "by Fuel Themes", "params" => array(array("type" => "dropdown", "heading" => "Carousel", "param_name" => "carousel", "value" => array('Yes' => "yes", 'No' => "no"), "description" => "Select yes to display the products in a carousel."), array("type" => "textfield", "class" => "", "heading" => "Number of posts", "param_name" => "item_count", "value" => "4", "description" => "The number of posts to show."), array("type" => "dropdown", "heading" => "Columns", "param_name" => "columns", "admin_label" => true, "value" => array('Four Columns' => "4", 'Three Columns' => "3", 'Two Columns' => "2"), "description" => "Select the layout of the posts.")), "description" => "Display Posts from your blog")); // Share shortcode vc_map(array("name" => __("Share", THB_THEME_NAME), "base" => "thb_share", "icon" => "thb_vc_ico_share", "class" => "thb_vc_sc_share", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => "Share Text", "param_name" => "text", "description" => "Enter the title of the share button"), array("type" => "checkbox", "class" => "", "heading" => "Facebook", "param_name" => "facebook", "value" => array("" => "true"), "description" => "If you enable this, Facebook share icon will be displayed inside lightbox"), array("type" => "checkbox", "class" => "", "heading" => "Twitter", "param_name" => "twitter", "value" => array("" => "true"), "description" => "If you enable this, Twitter share icon will be displayed inside lightbox"), array("type" => "checkbox", "class" => "", "heading" => "Pinterest", "param_name" => "pinterest", "value" => array("" => "true"), "description" => "If you enable this, Pinterest share icon will be displayed inside lightbox")), "description" => "Display a Share Button")); // Team Member shortcode vc_map(array("name" => "Team Member", "base" => "thb_teammember", "icon" => "thb_vc_ico_teammember", "class" => "thb_vc_sc_teammember", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Team Member Image", "param_name" => "image", "description" => "Minimum size is 270x270 pixels"), array("type" => "textfield", "heading" => "Name", "param_name" => "name", "admin_label" => true, "description" => "Enter name of the team member"), array("type" => "textfield", "heading" => "Position", "param_name" => "position", "description" => "Enter position/title of the team member"), array("type" => "textfield", "heading" => "Facebook", "param_name" => "facebook", "description" => "Enter Facebook Link"), array("type" => "textfield", "heading" => "Twitter", "param_name" => "twitter", "description" => "Enter Twitter Link"), array("type" => "textfield", "heading" => "Pinterest", "param_name" => "pinterest", "description" => "Enter Pinterest Link"), array("type" => "textfield", "heading" => "Linkedin", "param_name" => "linkedin", "description" => "Enter Linkedin Link")), "description" => "Display your team members in a stylish way")); // Twitter shortcode