<div class="social_widget">
<h3>Social Networks</h3>
{foreach name=x from=$social key=key item=h}
	{if !empty($h) AND $key neq "submit"}
	<div class="social_item">
	<img src="templates/default/assets/images/social/{$key}.png" />
	<a href="{$h}" target="_BLANK">{$h}</a>
	</div>
	{/if}
{/foreach}
</div>