Instantly share code, notes, and snippets.
Created
June 13, 2017 14:46
-
Save congthien/cb7bba8428ea7ba6029dbad4e967c9d7 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* The template for displaying the footer. | |
* | |
* Contains the closing of the #content div and all content after. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | |
* | |
* @package OnePress | |
*/ | |
?> | |
<footer id="colophon" class="site-footer" role="contentinfo"> | |
<?php | |
$onepress_btt_disable = get_theme_mod('onepress_btt_disable'); | |
$onepress_social_footer_title = get_theme_mod('onepress_social_footer_title', esc_html__('Keep Updated', 'onepress')); | |
$onepress_newsletter_disable = get_theme_mod('onepress_newsletter_disable', '1'); | |
$onepress_social_disable = get_theme_mod('onepress_social_disable', '1'); | |
$onepress_newsletter_title = get_theme_mod('onepress_newsletter_title', esc_html__('Join our Newsletter', 'onepress')); | |
$onepress_newsletter_mailchimp = get_theme_mod('onepress_newsletter_mailchimp'); | |
if ( $onepress_newsletter_disable != '1' || $onepress_social_disable != '1' ) : ?> | |
<div class="footer-connect"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12 text-center"> | |
<?php | |
if ($onepress_social_disable != '1') { | |
?> | |
<div class="footer-social"> | |
<?php | |
if ($onepress_social_footer_title != '') echo '<h5 class="follow-heading">' . $onepress_social_footer_title . '</h5>'; | |
$socials = onepress_get_social_profiles(); | |
/** | |
* New Socials profiles | |
* | |
* @since 1.1.4 | |
* @change 1.2.1 | |
*/ | |
echo '<div class="footer-social-icons">'; | |
if ( $socials ) { | |
echo $socials; | |
} else { | |
/** | |
* Deprecated | |
* @since 1.1.4 | |
*/ | |
$twitter = get_theme_mod('onepress_social_twitter'); | |
$facebook = get_theme_mod('onepress_social_facebook'); | |
$google = get_theme_mod('onepress_social_google'); | |
$instagram = get_theme_mod('onepress_social_instagram'); | |
$rss = get_theme_mod('onepress_social_rss'); | |
if ($twitter != '') echo '<a target="_blank" href="' . $twitter . '" title="Twitter"><i class="fa fa-twitter"></i></a>'; | |
if ($facebook != '') echo '<a target="_blank" href="' . $facebook . '" title="Facebook"><i class="fa fa-facebook"></i></a>'; | |
if ($google != '') echo '<a target="_blank" href="' . $google . '" title="Google Plus"><i class="fa fa-google-plus"></i></a>'; | |
if ($instagram != '') echo '<a target="_blank" href="' . $instagram . '" title="Instagram"><i class="fa fa-instagram"></i></a>'; | |
if ($rss != '') echo '<a target="_blank" href="' . $rss . '"><i class="fa fa-rss"></i></a>'; | |
} | |
echo '</div>'; | |
?> | |
</div> | |
<?php } ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php endif; ?> | |
<div class="site-info"> | |
<div class="container"> | |
<?php if ($onepress_btt_disable != '1') : ?> | |
<div class="btt"> | |
<a class="back-top-top" href="#page" title="<?php echo esc_html__('Back To Top', 'onepress') ?>"><i class="fa fa-angle-double-up wow flash" data-wow-duration="2s"></i></a> | |
</div> | |
<?php endif; ?> | |
<?php | |
/** | |
* hooked onepress_footer_site_info | |
* @see onepress_footer_site_info | |
*/ | |
do_action('onepress_footer_site_info'); | |
?> | |
</div> | |
</div> | |
<!-- .site-info --> | |
</footer><!-- #colophon --> | |
<?php | |
/** | |
* Hooked: onepress_site_footer | |
* | |
* @see onepress_site_footer | |
*/ | |
do_action( 'onepress_site_end' ); | |
?> | |
</div><!-- #page --> | |
<?php wp_footer(); ?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment