<div class="input">
		<label>Text Color</label>
		<div class="colorSelector"><div style=""></div></div>
		<input type="text" name="text_color" id="text_color" value="" size="10" maxlength="10" />
	</div>
	<div class="input">
		<label>Icon Color</label>
		<div class="colorSelector"><div style=""></div></div>
		<input type="text" name="icon_color" id="icon_color" value="" size="10" maxlength="10" />
	</div>
	<div class="input">
		<label>Icon</label>
			<select id="icon" name="icon">
				<option value=""></option>
				<?php 
$fa_icons = getFontAwesomeIconArray();
foreach ($fa_icons as $key => $value) {
    ?>
					<option value="<?php 
    echo $key;
    ?>
"><?php 
    echo $key;
    ?>
</option>
				<?php 
}
?>
			</select>
	</div>
	<div class="input">
<?php

#-----------------------------------------------------------------
# Elements
#-----------------------------------------------------------------
$thb_shortcodes['header_2'] = array('type' => 'heading', 'title' => __('Elements'));
$thb_shortcodes['small_title'] = array('type' => 'regular', 'title' => __('Small Title'), 'attr' => array('title' => array('type' => 'text', 'title' => 'Title')));
$thb_shortcodes['large_title'] = array('type' => 'regular', 'title' => __('Large Title'), 'attr' => array('title' => array('type' => 'text', 'title' => 'Title'), 'center' => array('type' => 'checkbox', 'title' => __('Center?'), 'desc' => 'Center the title?')));
$thb_shortcodes['thb_button'] = array('type' => 'regular', 'title' => __('Button', THB_THEME_NAME), 'attr' => array('size' => array('type' => 'radio', 'title' => __('Size', THB_THEME_NAME), 'opt' => array('small' => 'Small', 'medium' => 'Medium', 'large' => 'Large')), 'color' => array('type' => 'radio', 'title' => __('Color', THB_THEME_NAME), 'opt' => array('white' => 'White', 'grey' => 'Light Grey', 'black' => 'Black', 'blue' => 'Blue', 'green' => 'Green', 'yellow' => 'Yellow', 'orange' => 'Orange', 'pink' => 'Pink', 'petrol' => 'Petrol Green', 'darkgrey' => 'Gray')), 'animation' => array('type' => 'radio', 'title' => __('Animation', THB_THEME_NAME), 'opt' => array("" => "None", "animation right-to-left" => "Left", "animation left-to-right" => "Right", "animation bottom-to-top" => "Top", "animation top-to-bottom" => "Bottom", "animation scale" => "Scale", "animation fade-in" => "Fade")), 'icon' => array('type' => 'text', 'title' => __('Icon', THB_THEME_NAME)), 'title' => array('type' => 'text', 'title' => __('Buton Text', THB_THEME_NAME)), 'link' => array('type' => 'text', 'title' => __('Buton Link', THB_THEME_NAME)), 'blank' => array('type' => 'checkbox', 'title' => __('Open in new window?', THB_THEME_NAME), 'desc' => 'Enable this to open link in new window')));
$thb_shortcodes['quote'] = array('type' => 'regular', 'title' => __('Quotes'), 'attr' => array('align' => array('type' => 'radio', 'title' => __('Alignment'), 'opt' => array('normal' => 'Normal', 'pullleft' => 'Pull Left', 'pullright' => 'Pull Right')), 'content' => array('type' => 'textarea', 'title' => __('Content')), 'author' => array('type' => 'text', 'title' => 'Quote Author')));
$thb_shortcodes['tags'] = array('type' => 'regular', 'title' => __('Tags', THB_THEME_NAME), 'attr' => array('color' => array('type' => 'radio', 'title' => __('Color', THB_THEME_NAME), 'opt' => array('black' => 'Black', 'red' => 'Red', 'blue' => 'Blue', 'green' => 'Green', 'grey' => 'Grey', 'yellow' => 'Yellow')), 'text' => array('type' => 'text', 'title' => __('Text', THB_THEME_NAME))));
$thb_shortcodes['dropcap'] = array('type' => 'regular', 'title' => __('Dropcap', THB_THEME_NAME), 'attr' => array('boxed' => array('type' => 'checkbox', 'title' => __('Boxed?', THB_THEME_NAME), 'desc' => 'Makes the dropcap boxed')));
$thb_shortcodes['single_icon'] = array('type' => 'regular', 'title' => __('Single Icon'), 'attr' => array('icon' => array('type' => 'select', 'title' => __('Icon'), 'values' => getFontAwesomeIconArray()), 'size' => array('type' => 'radio', 'title' => __('Icon Size'), 'opt' => array('icon-1x' => '1x', 'icon-2x' => '2x', 'icon-3x' => '3x', 'icon-4x' => '4x')), 'boxed' => array('type' => 'checkbox', 'title' => __('Boxed?'), 'desc' => 'Boxed contains the icon inside a box'), 'icon_link' => array('type' => 'text', 'title' => __('Icon Link'), 'desc' => 'If you would like to link the icon to an url, enter it here. (Boxed option should be checked)')));
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);
    }
}
    /**
     * @see Walker::start_el()
     * @since 3.0.0
     *
     * @param string $output Passed by reference. Used to append additional content.
     * @param object $item Menu item data object.
     * @param int $depth Depth of menu item. Used for padding.
     * @param object $args
     */
    function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
    {
        global $_wp_nav_menu_max_depth;
        $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
        $indent = $depth ? str_repeat("\t", $depth) : '';
        ob_start();
        $item_id = esc_attr($item->ID);
        $removed_args = array('action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce');
        $original_title = '';
        if ('taxonomy' == $item->type) {
            $original_title = get_term_field('name', $item->object_id, $item->object, 'raw');
            if (is_wp_error($original_title)) {
                $original_title = false;
            }
        } elseif ('post_type' == $item->type) {
            $original_object = get_post($item->object_id);
            $original_title = $original_object->post_title;
        }
        $classes = array('menu-item menu-item-depth-' . $depth, 'menu-item-' . esc_attr($item->object), 'menu-item-edit-' . (isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? 'active' : 'inactive'));
        $title = $item->title;
        if (!empty($item->_invalid)) {
            $classes[] = 'menu-item-invalid';
            /* translators: %s: title of menu item which is invalid */
            $title = sprintf(__('%s (Invalid)', 'qode'), $item->title);
        } elseif (isset($item->post_status) && 'draft' == $item->post_status) {
            $classes[] = 'pending';
            /* translators: %s: title of menu item in draft status */
            $title = sprintf(__('%s (Pending)', 'qode'), $item->title);
        }
        $title = empty($item->label) ? $title : $item->label;
        ?>
	    <li id="menu-item-<?php 
        echo $item_id;
        ?>
" class="<?php 
        echo implode(' ', $classes);
        ?>
">
	        <dl class="menu-item-bar">
	            <dt class="menu-item-handle">
	                <span class="item-title"><?php 
        echo esc_html($title);
        ?>
</span>
	                <span class="item-controls">
	                    <span class="item-type"><?php 
        echo esc_html($item->type_label);
        ?>
</span>
	                    <span class="item-order hide-if-js">
	                        <a href="<?php 
        echo wp_nonce_url(add_query_arg(array('action' => 'move-up-menu-item', 'menu-item' => $item_id), remove_query_arg($removed_args, admin_url('nav-menus.php'))), 'move-menu_item');
        ?>
" class="item-move-up"><abbr title="<?php 
        esc_attr_e('Move up', 'qode');
        ?>
">&#8593;</abbr></a>
	                        |
	                        <a href="<?php 
        echo wp_nonce_url(add_query_arg(array('action' => 'move-down-menu-item', 'menu-item' => $item_id), remove_query_arg($removed_args, admin_url('nav-menus.php'))), 'move-menu_item');
        ?>
" class="item-move-down"><abbr title="<?php 
        esc_attr_e('Move down', 'qode');
        ?>
">&#8595;</abbr></a>
	                    </span>
	                    <a class="item-edit" id="edit-<?php 
        echo $item_id;
        ?>
" title="<?php 
        esc_attr_e('Edit Menu Item', 'qode');
        ?>
" href="<?php 
        echo isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? admin_url('nav-menus.php') : add_query_arg('edit-menu-item', $item_id, remove_query_arg($removed_args, admin_url('nav-menus.php#menu-item-settings-' . $item_id)));
        ?>
"><?php 
        _e('Edit Menu Item', 'qode');
        ?>
</a>
	                </span>
	            </dt>
	        </dl>
	
	        <div class="menu-item-settings" id="menu-item-settings-<?php 
        echo $item_id;
        ?>
">
	            <?php 
        if ('custom' == $item->type) {
            ?>
	                <p class="field-url description description-wide">
	                    <label for="edit-menu-item-url-<?php 
            echo $item_id;
            ?>
">
	                        <?php 
            _e('URL', 'qode');
            ?>
<br />
	                        <input type="text" id="edit-menu-item-url-<?php 
            echo $item_id;
            ?>
" class="widefat code edit-menu-item-url" name="menu-item-url[<?php 
            echo $item_id;
            ?>
]" value="<?php 
            echo esc_attr($item->url);
            ?>
" />
	                    </label>
	                </p>
	            <?php 
        }
        ?>
	            <p class="description description-thin">
	                <label for="edit-menu-item-title-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Navigation Label', 'qode');
        ?>
<br />
	                    <input type="text" id="edit-menu-item-title-<?php 
        echo $item_id;
        ?>
" class="widefat edit-menu-item-title" name="menu-item-title[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->title);
        ?>
" />
	                </label>
	            </p>
	            <p class="description description-thin">
	                <label for="edit-menu-item-attr-title-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Title Attribute', 'qode');
        ?>
<br />
	                    <input type="text" id="edit-menu-item-attr-title-<?php 
        echo $item_id;
        ?>
" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->post_excerpt);
        ?>
" />
	                </label>
	            </p>
	            <p class="field-link-target description">
	                <label for="edit-menu-item-target-<?php 
        echo $item_id;
        ?>
">
	                    <input type="checkbox" id="edit-menu-item-target-<?php 
        echo $item_id;
        ?>
" value="_blank" name="menu-item-target[<?php 
        echo $item_id;
        ?>
]"<?php 
        checked($item->target, '_blank');
        ?>
 />
	                    <?php 
        _e('Open link in a new window/tab', 'qode');
        ?>
	                </label>
	            </p>
	            <p class="field-css-classes description description-thin">
	                <label for="edit-menu-item-classes-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('CSS Classes (optional)', 'qode');
        ?>
<br />
	                    <input type="text" id="edit-menu-item-classes-<?php 
        echo $item_id;
        ?>
" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr(implode(' ', $item->classes));
        ?>
" />
	                </label>
	            </p>
	            <p class="field-xfn description description-thin">
	                <label for="edit-menu-item-xfn-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Link Relationship (XFN)', 'qode');
        ?>
<br />
	                    <input type="text" id="edit-menu-item-xfn-<?php 
        echo $item_id;
        ?>
" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->xfn);
        ?>
" />
	                </label>
	            </p>
	            <p class="field-description description description-wide">
	                <label for="edit-menu-item-description-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Description', 'qode');
        ?>
<br />
	                    <textarea id="edit-menu-item-description-<?php 
        echo $item_id;
        ?>
" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php 
        echo $item_id;
        ?>
]"><?php 
        echo esc_html($item->description);
        // textarea_escaped
        ?>
</textarea>
	                    <span class="description"><?php 
        _e('The description will be displayed in the menu if the current theme supports it.', 'qode');
        ?>
</span>
	                </label>
	            </p>        
	            <?php 
        /* New fields insertion starts here */
        ?>
      
	            <p class="field-custom description description-thin description-thin-custom">
									<label for="edit-menu-item-anchor-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Anchor', 'qode');
        ?>
<br />
	                    <input type="text" id="edit-menu-item-anchor-<?php 
        echo $item_id;
        ?>
" class="widefat code edit-menu-item-anchor" name="menu-item-anchor[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->anchor);
        ?>
" />
	                </label>
							</p>
							<p class="field-custom description description-wide">
								<?php 
        $value = $item->nolink;
        if ($value != "") {
            $value = "checked='checked'";
        }
        ?>
									<label for="edit-menu-item-nolink-<?php 
        echo $item_id;
        ?>
">
										<input type="checkbox" id="edit-menu-item-nolink-<?php 
        echo $item_id;
        ?>
" class="code edit-menu-item-custom" name="menu-item-nolink[<?php 
        echo $item_id;
        ?>
]" value="nolink" <?php 
        echo $value;
        ?>
 />
										<?php 
        _e("Don't link", 'qode');
        ?>
									</label>
							</p>
							<p class="field-custom description description-wide">
								<?php 
        $value = $item->hide;
        if ($value != "") {
            $value = "checked='checked'";
        }
        ?>
									<label for="edit-menu-item-hide-<?php 
        echo $item_id;
        ?>
">
										<input type="checkbox" id="edit-menu-item-hide-<?php 
        echo $item_id;
        ?>
" class="code edit-menu-item-custom" name="menu-item-hide[<?php 
        echo $item_id;
        ?>
]" value="hide" <?php 
        echo $value;
        ?>
 />
										<?php 
        _e("Don't show", 'qode');
        ?>
									</label>
							</p>
							<p class="field-custom description description-thin description-thin-custom">
	                <label for="edit-menu-item-type-menu-<?php 
        echo $item_id;
        ?>
">
	                    <?php 
        _e('Type', 'qode');
        ?>
<br />
											<select id="edit-menu-item-type-menu<?php 
        echo $item_id;
        ?>
" name="menu-item-type_menu[<?php 
        echo $item_id;
        ?>
]">
												<option value="" <?php 
        if (esc_attr($item->type_menu) == "") {
            echo 'selected="selected"';
        }
        ?>
></option>
												<option value="wide" <?php 
        if (esc_attr($item->type_menu) == "wide") {
            echo 'selected="selected"';
        }
        ?>
>wide</option>
												<option value="wide_icons" <?php 
        if (esc_attr($item->type_menu) == "wide_icons") {
            echo 'selected="selected"';
        }
        ?>
>wide with icons</option>
											</select>
											
	                </label>
	            </p>
							<p class="field-custom description description-thin description-thin-custom">
								<label for="edit-menu-item-icon-<?php 
        echo $item_id;
        ?>
">
								<?php 
        _e('Icon', 'qode');
        ?>
<br />
								<select id="edit-menu-item-icon<?php 
        echo $item_id;
        ?>
" name="menu-item-icon[<?php 
        echo $item_id;
        ?>
]">
									<option value="" <?php 
        if (esc_attr($item->icon) == "") {
            echo 'selected="selected"';
        }
        ?>
></option>
									<?php 
        $fa_icons = getFontAwesomeIconArray();
        foreach ($fa_icons as $key => $value) {
            ?>
									<option value="<?php 
            echo $key;
            ?>
" <?php 
            if (esc_attr($item->icon) == $key) {
                echo 'selected="selected"';
            }
            ?>
><?php 
            echo $key;
            ?>
</option>
									<?php 
        }
        ?>
								</select>
								<br/><?php 
        _e('Only with "wide with icons" menu type', 'qode');
        ?>
	              </label>
	            </p>
							<p class="field-custom description description-thin description-thin-custom">
							</p>
							<p class="field-custom description description-thin description-thin-custom">
								<label for="edit-menu-item-sidebar-<?php 
        echo $item_id;
        ?>
">
								<?php 
        _e('Custom widget area', 'qode');
        ?>
<br />
								<select id="edit-menu-item-sidebar<?php 
        echo $item_id;
        ?>
" name="menu-item-sidebar[<?php 
        echo $item_id;
        ?>
]">
									<option value="" <?php 
        if (esc_attr($item->sidebar) == "") {
            echo 'selected="selected"';
        }
        ?>
></option>
									<?php 
        foreach ($GLOBALS['wp_registered_sidebars'] as $sidebar) {
            if (isUserMadeSidebar(ucwords($sidebar['name']))) {
                ?>
												
												 <option value="<?php 
                echo ucwords($sidebar['id']);
                ?>
" <?php 
                if (esc_attr($item->sidebar) == ucwords($sidebar['id'])) {
                    ?>
 selected="selected" <?php 
                }
                ?>
>
														<?php 
                echo ucwords($sidebar['name']);
                ?>
												 </option>
												 
										<?php 
            }
        }
        ?>
								</select>
								<br/><?php 
        _e('Only with "wide & wide with icons" menu type', 'qode');
        ?>
	              </label>
	            </p>
	            <?php 
        /* New fields insertion ends here */
        ?>
	            <div class="menu-item-actions description-wide submitbox">
	                <?php 
        if ('custom' != $item->type && $original_title !== false) {
            ?>
	                    <p class="link-to-original">
	                        <?php 
            printf(__('Original: %s', 'qode'), '<a href="' . esc_attr($item->url) . '">' . esc_html($original_title) . '</a>');
            ?>
	                    </p>
	                <?php 
        }
        ?>
	                <a class="item-delete submitdelete deletion" id="delete-<?php 
        echo $item_id;
        ?>
" href="<?php 
        echo wp_nonce_url(add_query_arg(array('action' => 'delete-menu-item', 'menu-item' => $item_id), remove_query_arg($removed_args, admin_url('nav-menus.php'))), 'delete-menu_item_' . $item_id);
        ?>
"><?php 
        _e('Remove', 'qode');
        ?>
</a> <span class="meta-sep"> | </span> <a class="item-cancel submitcancel" id="cancel-<?php 
        echo $item_id;
        ?>
" href="<?php 
        echo esc_url(add_query_arg(array('edit-menu-item' => $item_id, 'cancel' => time()), remove_query_arg($removed_args, admin_url('nav-menus.php'))));
        ?>
#menu-item-settings-<?php 
        echo $item_id;
        ?>
"><?php 
        _e('Cancel', 'qode');
        ?>
</a>
	            </div>
	
	            <input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo $item_id;
        ?>
" />
	            <input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->object_id);
        ?>
" />
	            <input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->object);
        ?>
" />
	            <input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->menu_item_parent);
        ?>
" />
	            <input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->menu_order);
        ?>
" />
	            <input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php 
        echo $item_id;
        ?>
]" value="<?php 
        echo esc_attr($item->type);
        ?>
" />
	        </div><!-- .menu-item-settings-->
	        <ul class="menu-item-transport"></ul>
	    <?php 
        $output .= ob_get_clean();
    }