Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (41 sloc) 1.47 KB
<?php
/**
* Display social media links set from theme options settings
*
*/
?>
<?php
$options = bigblank_get_theme_options();
$facebook = $options['facebook'];
$twitter = $options['twitter'];
$googleplus = $options['googleplus'];
$instagram = $options['instagram'];
$youtube = $options['youtube'];
$pinterest = $options['pinterest'];
$whatsapp = $options['whatsapp'];
?>
<?php if ($facebook || $twitter || $googleplus || $instagram || $youtube || $pinterest|| $whatsapp) : ?>
<div class="social-media">
<?php if ($facebook) : ?>
<a href="<?php echo $facebook; ?>" class="fa fa-facebook"></a>
<?php endif; ?>
<?php if ($twitter) : ?>
<a href="<?php echo $twitter; ?>" class="fa fa-twitter"></a>
<?php endif; ?>
<?php if ($googleplus) : ?>
<a href="<?php echo $googleplus; ?>" class="fa fa-google-plus"></a>
<?php endif; ?>
<?php if ($instagram) : ?>
<a href="<?php echo $instagram; ?>" class="fa fa-instagram"></a>
<?php endif; ?>
<?php if ($youtube) : ?>
<a href="<?php echo $youtube; ?>" class="fa fa-youtube-play"></a>
<?php endif; ?>
<?php if ($pinterest) : ?>
<a href="<?php echo $pinterest; ?>" class="fa fa-pinterest"></a>
<?php endif; ?>
<?php if ($whatsapp) : ?>
<a href="<?php echo $whatsapp; ?>" class="fa fa-whatsapp"></a>
<?php endif; ?>
</div><!-- .social-media -->
<?php endif; ?>