Last active
February 13, 2017 19:44
-
-
Save tmosest/8247e87f5f50677babc567bfee60e2f3 to your computer and use it in GitHub Desktop.
Header Social Media Options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$twitterURL = get_theme_mod('twitter_setting'); | |
$linkedinURL = get_theme_mod('linkined_setting'); | |
$rssURL = get_theme_mod('rss_setting'); | |
$googleURL = get_theme_mod('googleplus_setting'); | |
$facebookURL = get_theme_mod('facebook_setting'); | |
$youTubeURL = get_theme_mod('youtube_setting'); | |
$githubURL = get_theme_mod('github_setting'); | |
$hasAdminLinks = get_theme_mod('adminLinkSetting'); | |
?> | |
<div class="hidden-xs col-sm-8 text-right socialWrap dropdown"> | |
<?php // Twitter URL | |
if($twitterURL): | |
?> | |
<!-- Twitter --> | |
<a class="fa fa-twitter" | |
href="<?php echo $twitterURL; ?>" | |
target='_blank'> | |
</a> | |
<?php endif; ?> | |
<?php // Linkedin URL | |
if($linkedinURL): | |
?> | |
<!-- Linkedin --> | |
<a class="fa fa-linkedin" | |
href="<?php echo $linkedinURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> | |
<?php // RSS URL | |
if($rssURL): | |
?> | |
<!-- RSS Feed --> | |
<a class="fa fa-rss" | |
href="<?php echo $rssURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> | |
<?php // Google URL | |
if($googleURL): | |
?> | |
<a class="fa fa-google-plus" | |
href="<?php echo $googleURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> | |
<?php // Facebook URL | |
if($facebookURL): | |
?> | |
<!-- Facebook --> | |
<a class="fa fa-facebook" | |
href="<?php echo $facebookURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> | |
<?php // Youtube URL | |
if($youTubeURL): | |
?> | |
<!-- Youtube --> | |
<a class="fa fa-youtube" | |
href="<?php echo $youTubeURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> | |
<?php // Github URL | |
if($githubURL): | |
?> | |
<!-- Github --> | |
<a class="fa fa-github" | |
href="<?php echo $githubURL; ?>" | |
target="_blank"> | |
</a> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment