<div id="tmdmegafooter_wrap">
	<footer>
		<div class="{% if not footercontainer %}container {% else %}container-fluid{% endif %}">
			<div class="row">
				{% for megafooter in megafooters %}
				{% set col = megafooter|length %}
				{% set class ='' %}
				{% if col=='4' %}
				{% set col = megafooter|length %}
					{% set class ='col-sm-3 megabox' %}
				{% elseif col=='3' %}
					{% set class ='col-sm-4 megabox' %}
				{% elseif col=='2' %}
					{% set class ='col-sm-6 megabox' %}
				{% elseif col=='1' %}
					{% set class ='col-sm-12 col-xs-12 text-center megabox' %}
				{% endif %}
				{% for footer in megafooter %}
				<div class="{% if col=='1' %}{{ class }}{% else %} {{ class }} {{ mobileclass }}{% endif %}" {% if footer.editor %} id="editor" {% endif %}> 
					{% if footer.titlestatus %}<h3> {{ footer.title }}</h3>{% endif %}
					{% if footer.editor %}{{ footer.editor }}{% endif %}
					{% if footer.sublink %}
					<ul class="list-unstyled">
						{% for link in footer.sublink %}
						<li>
							{% if footerlinknew %}
							<a href="{{ link.href }}" target="_blank" >{{ link.name }}</a>
							{% else %}
							<a href="{{ link.href }}">{{ link.name }}</a>
							{% endif %}
						</li>
						{% endfor %}
					</ul>
					{% endif %}
				</div>
				{% endfor %}
				{% endfor %}
			</div>
		</div>
	</footer>
	
</div>

<!-- css code start here -->
<style type="text/css">
#tmdmegafooter_wrap footer{
	background:{{ footerbg }} !important; 
	border-color:{{ footerbg }} !important; 
	font-size:{{ footerlinksize }} !important;
}
#tmdmegafooter_wrap h3{
	color:{{ footertitle }} !important;
	font-size:{{ footertitlesize}} !important;
} 
#tmdmegafooter_wrap a{
	color:{{ footerlink }} !important; 
}
#tmdmegafooter_wrap, #tmdmegafooter_wrap p{
	color:{{ footerpowd }} !important; 
}
#tmdmegafooter_wrap a:hover{
	color:{{ footerhlink }} !important;
}
</style>
<!-- css code start here -->
</body>
</html>