Example #1
0
<footer class="content-info row bg-primary" role="contentinfo">
	<div class="content-info-inner col-sm-12 col-xs-12">
		<div class="footer-right col-sm-12">
			<div class="nav-footer-wrapper col-sm-12 col-xs-12">
			<?php 
if (has_nav_menu('footer_navigation')) {
    wp_nav_menu(array('theme_location' => 'footer_navigation', 'depth' => 1, 'menu_class' => 'nav nav-footer nav-footer-contact'));
}
?>
			</div>
			<div class="col-sm-12">
				<div class="social-footer-wrap social-footer-wrap-contact col-sm-8 col-sm-push-2">
				<?php 
alfath_social_icon('footer');
?>
				</div>
				<div class="to-top-wrap col-sm-3 col-xs-4 no-padding pull-right">
					<a href="#page-top" class="back-to-top">
						<i class="to-top alf alf-up alf-2x"></i>
					</a>
				</div>
			</div>

		</div>
	</div>
</footer>
Example #2
0
/**
 * Show social icon on header or footer
 * @param  string $prefix blank on header, footer for footer
 * @return string         html code, display social icons
 */
function alfath_social_show($prefix = "")
{
    if (!empty($prefix) && $prefix !== 'footer') {
        return;
    }
    global $options;
    $pos = 'social-switch';
    if (!empty($prefix) && $prefix === 'footer') {
        $before = '<div class="social-footer-wrap col-sm-9 col-xs-8 col-xs-push-2 col-md-push-2">';
        $after = '</div>';
        $pos .= '-' . $prefix;
    } else {
        $before = '<span class="col-md-3 col-md-offset-5 col-sm-12 col-xs-12 text-center no-padding">';
        $after = '</span>';
    }
    if (isset($options[$pos]) && $options[$pos] === '1') {
        echo $before;
        echo alfath_social_icon($prefix);
        echo $after;
    }
}