/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2020 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

jQuery(document).ready(function(){
    var html = '';
    html+='<style>#header_notifs_icon_wrapper{width:240px;}</style>';
    html+='<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">';
    html+=         '<li id="mess_quote_Unread">';
    if (check_vs == 1) {
        html+=             '<a href="'+link_module+'&configure=askforaquotemodul&tab_module=shipping_logistics&module_name=askforaquotemodul" style="font-size=17px;margin-left: 10px;" class="Message_quote" id="header_shopname">';
    } else {
        html+=             '<a href="'+link_module+'&configure=askforaquotemodul&tab_module=shipping_logistics&module_name=askforaquotemodul" class="Message_quote">';
    }
    html+=                 '<i class="fa fa-calculator"></i>';
    html+=                 '<span id="mess_unread_id" class="mess_unread_class">';
    html+=                 '<span id="mess_unread_value" value="'+sl_mess_cus+'">'+sl_mess_cus+'</span>';
    html+=                 '</span>';
    html+=             '</a>';
    html+=         '</li>';

    if (check_vs == 1) {
        jQuery('.header-list:eq(0)').append(html);
    } else {
        jQuery('#header_notifs_icon_wrapper').append(html);
    }
    if(sl_mess_cus == 0){
        jQuery(".mess_unread_class").css("display", "none");
    }
	
    var htmll = '';
	htmll += '<li class="link-levelone maintab" data-submenu="20">';
    htmll +=		'<a href="'+link_module+'&configure=askforaquotemodul&tab_module=shipping_logistics&module_name=askforaquotemodul" class="title link">';
    if (check_vs == 1) {
        htmll += '<i class="material-icons mi-extension">extension</i> ';
    } else {
		htmll += '<i class="fa fa-calculator"></i> ';
    }
	htmll += '<span>'+translate_quote+'</span>';
	htmll += '</a></li>';
    htmll+=         '</li>';
    if (check_vs == 1) {
        jQuery('#tab-SELL').after(htmll);
    } else {
		jQuery('.menu').append(htmll);
    }

});

