<footer id="tb-footer">
  {% if footer_top %}
		<div class="footer-top-cms">
			<div class="container">
				{{ footer_top }}
			</div>
		</div>
	  {% endif %}
  <div class="container">
  <div class="tb-comen-row">
    <div class="row">
    {% if footer_left %}
      <div class="footer-left-cms col-lg-3">
            {{ footer_left }}
        </div>
    {% endif %}
    <div class="col-lg-7">
    <div class="row">
      <div class="col-lg-4">
      <div class="footer-commen footer-{{ text_account|replace({' ': '-'})|lower }}">
        <h5>{{ text_account }}</h5>
        <ul class="list-unstyled">
          <li><a href="{{ account }}">{{ text_account }}</a></li>
          <li><a href="{{ order }}">{{ text_order }}</a></li>
          <li><a href="{{ wishlist }}">{{ text_wishlist }}</a></li>
          <li><a href="{{ newsletter }}">{{ text_newsletter }}</a></li>
        </ul>
         </div>
      </div>
      {% if informations %}
      <div class="col-lg-4">
        <div class="footer-commen footer-{{ text_information|replace({' ': '-'})|lower }}">
          <h5>{{ text_information }}</h5>
          <ul class="list-unstyled">
          {% for information in informations %}
            <li><a href="{{ information.href }}">{{ information.title }}</a></li>
            {% endfor %}
          </ul>
          </div>
      </div>
      {% endif %} 
      <div class="col-lg-4">
      <div class="footer-commen footer-{{ text_extra }}">
        <h5>{{ text_extra }}</h5>
        <ul class="list-unstyled">
          <li><a href="{{ manufacturer }}">{{ text_manufacturer }}</a></li>
          <li><a href="{{ voucher }}">{{ text_voucher }}</a></li>
          <li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>
          <li><a href="{{ special }}">{{ text_special }}</a></li>
        </ul>
         </div>
      </div>
      </div>
      </div>
<!--   
    <div class="col-lg-4">
        <div class="footer-commen footer-{{ text_service }}">
          <h5>{{ text_service }}</h5>
          <ul class="list-unstyled">
            <li><a href="{{ contact }}">{{ text_contact }}</a></li>
            <li><a href="{{ return }}">{{ text_return }}</a></li>
            <li><a href="{{ sitemap }}">{{ text_sitemap }}</a></li>
          </ul>
          </div>
      </div>
    --> 
      {% if footer_right %}
        <div class="footer-column footer-right-cms col-lg-2">
      {{ footer_right }}
        </div>
      {% endif %}
    </div>
    </div>
  </div>
  <div class="footer-bottom">
    <div class="container">
      <div class="row">
        <div class="footer-bottom-left col-lg-6">
          <p>{{ powered }}</p>
        </div>
        <div class="block-social col-lg-6">
          {% if footer_bottom %}
        <div class="footer-bottom-cms">
        {{ footer_bottom }}
        </div>
        {% endif %}
        </div>
      </div>
    </div>
  </div>
</footer>
</div>
{% if module_tb_live_search_status %}

			<script><!--
				var tb_live_search = {
					selector: '#search input[name=\'search\']',
					text_no_matches: '{{ text_empty }}',
					height: '50px'
				}

				$(document).ready(function() {
					var html = '';
					html += '<div class="live-search">';
					html += '	<ul>';
					html += '	</ul>';
					html += '<div class="result-text"></div>';
					html += '</div>';

					//$(tb_live_search.selector).parent().closest('div').after(html);
					$(tb_live_search.selector).after(html);

					$(tb_live_search.selector).autocomplete({
						'source': function(request, response) {
							var filter_name = $(tb_live_search.selector).val();
							var cat_id = 0;
							var module_tb_live_search_min_length = '{{ module_tb_live_search_min_length|abs }}';
							if (filter_name.length < module_tb_live_search_min_length) {
								$('.live-search').css('display','none');
							}
							else{
								var html = '';
								html += '<li style="text-align: center;height:10px;">';
								html +=	'<img class="loading" src="image/catalog/demo/banners/loading.gif" />';
								html +=	'</li>';
								$('.live-search ul').html(html);
								$('.live-search').css('display','block');

								$.ajax({
									url: 'index.php?route=extension/module/tb_live_search&filter_name=' +  encodeURIComponent(filter_name),
									dataType: 'json',
									success: function(result) {
										var products = result.products;
										$('.live-search ul li').remove();
										$('.result-text').html('');
										if (!$.isEmptyObject(products)) {
											var show_image = {{ module_tb_live_search_show_image|abs }};
											var show_price = {{ module_tb_live_search_show_price|abs }};
											var show_description = {{ module_tb_live_search_show_description|abs }};
											$('.result-text').html('<a href="{{ module_tb_live_search_href }}'+filter_name+'" class="view-all-results">{{ text_view_all_results|e }} ('+result.total+')</a>');

											$.each(products, function(index,product) {
												var html = '';

												html += '<li>';
												html += '<a href="' + product.url + '" title="' + product.name + '">';
												if(product.image && show_image){
													html += '	<div class="product-image col-sm-4"><img alt="' + product.name + '" src="' + product.image + '"></div>';
												}
												html += '<div class="search-description col-sm-8 col-xs-8">';
												html += '	<div class="product-name">' + product.name ;
												if(show_description){
													html += '<p>' + product.extra_info + '</p>';
												}
												html += '</div>';
												if(show_price){
													if (product.special) {
														html += '	<div class="product-price"><span class="price">' + product.special + '</span><span class="special">' + product.price + '</span></div>';
													} else {
														html += '	<div class="product-price"><span class="price">' + product.price + '</span></div>';
													}
												}
												html += '</div>';
												html += '<span style="clear:both"></span>';
												html += '</a>';
												html += '</li>';
												$('.live-search ul').append(html);
											});
										} else {
											var html = '';
											html += '<li style="text-align: center;height:10px;">';
											html +=	tb_live_search.text_no_matches;
											html +=	'</li>';

											$('.live-search ul').html(html);
										}
										$('.live-search').css('display','block');
										return false;
									}
								});
							}
						},
						'select': function(product) {
							$(tb_live_search.selector).val(product.name);
						}
					});

					$(document).bind( "mouseup touchend", function(e){
					  var container = $('.live-search');
					  if (!container.is(e.target) && container.has(e.target).length === 0)
					  {
					    container.hide();
					  }
					});
				});
			//--></script>
		{% endif %}


{% for script in scripts %}
<script src="{{ script }}"></script>
{% endfor %}
<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.
Please donate via PayPal to donate@opencart.com
//-->

</body></html>