forked from bigemployee/BigBlankTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsocial-links.php
37 lines (37 loc) · 1.29 KB
/
social-links.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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'];
?>
<?php if ($facebook || $twitter || $googleplus || $instagram || $youtube || $pinterest) : ?>
<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; ?>
</div><!-- .social-media -->
<?php endif; ?>