Esempio n. 1
0
function shandora_get_social_icons($header = true)
{
    if ($header) {
        $id = 'top-social-icons';
        $class = 'right social-icons';
        $navclass = 'large-6 column right';
    } else {
        $id = 'footer-social-icons';
        $class = 'social-icons';
        $navclass = '';
    }
    $output = '<nav class="' . $navclass . '">
	    <ul class="' . $class . '" id="' . $id . '">';
    if (function_exists('icl_get_languages')) {
        $output .= shandora_get_country_selection();
    }
    if (bon_get_option('social_facebook')) {
        $output .= '<li><a target="blank" href="http://facebook.com/' . bon_get_option('social_facebook') . '" title="' . __('Follow us on Facebook', 'bon') . '"><span class="sha-facebook"></span></a></li>';
    }
    if (bon_get_option('social_twitter')) {
        $output .= '<li><a target="blank" href="http://twitter.com/' . bon_get_option('social_twitter') . '" title="' . __('Follow us on Twitter', 'bon') . '"><span class="sha-twitter"></span></a></li>';
    }
    if (bon_get_option('social_google_plus')) {
        $output .= '<li><a target="blank" href="http://plus.google.com/' . bon_get_option('social_google_plus') . '" title="' . __('Follow us on Google Plus', 'bon') . '"><span class="sha-googleplus"></span></a></li>';
    }
    if (bon_get_option('social_pinterest')) {
        $output .= '<li><a target="blank" href="http://pinterest.com/' . bon_get_option('social_pinterest') . '" title="' . __('Follow us on Pinterest', 'bon') . '"><span class="sha-pinterest"></span></a></li>';
    }
    if (bon_get_option('social_flickr')) {
        $output .= '<li><a target="blank" href="http://flickr.com/photos/' . bon_get_option('social_flickr') . '" title="' . __('Follow us on Flickr', 'bon') . '"><span class="sha-flickr"></span></a></li>';
    }
    if (bon_get_option('social_vimeo')) {
        $output .= '<li><a target="blank" href="http://vimeo.com/' . bon_get_option('social_vimeo') . '" title="' . __('Find us on Vimeo', 'bon') . '"><span class="sha-vimeo"></span></a></li>';
    }
    if (bon_get_option('social_youtube')) {
        $output .= '<li><a target="blank" href="http://youtube.com/' . bon_get_option('social_youtube') . '" title="' . __('Find us on YouTube', 'bon') . '"><span class="sha-youtube"></span></a></li>';
    }
    if (bon_get_option('social_linkedin')) {
        $output .= '<li><a target="blank" href="http://linkedin.com/' . bon_get_option('social_linkedin') . '" title="' . __('Find us on LinkedIn', 'bon') . '"><span class="sha-linkedin"></span></a></li>';
    }
    if (bon_get_option('social_instagram')) {
        $output .= '<li><a target="blank" href="http://instagram.com/' . bon_get_option('social_instagram') . '" title="' . __('Follow us on Instagram', 'bon') . '"><span class="sha-instagram"></span></a></li>';
    }
    if (bon_get_option('social_yelp')) {
        $output .= '<li><a target="_blank" href="http://www.yelp.com/user_details?userid=' . bon_get_option('social_yelp') . '" title="' . __('Find us on Yelp', 'bon') . '"><span class="bonicons bi-yelp"></span></a></li>';
    }
    $output .= '</ul></nav>';
    echo $output;
}
Esempio n. 2
0
    function shandora_get_footer_copyright()
    {
        ?>
		<div class="footer-copyright footer-inner">

			<div class="row">
				<div class="column large-12 footer-column"><div class="row">
					<div id="social-icon-footer" class="large-4 column large-uncentered small-11 small-centered">
						<?php 
        $enable_footer_social = bon_get_option('enable_footer_social', 'yes');
        if ($enable_footer_social == 'yes') {
            shandora_get_social_icons(false);
        } else {
            if ($enable_footer_social != 'yes' && function_exists('icl_get_languages')) {
                echo '<nav><ul id="footer-social-icons" class="social-icons">' . shandora_get_country_selection() . '</ul></nav>';
            } else {
                echo "&nbsp;";
            }
        }
        ?>
						
					</div>

					<div id="copyright-text" class="large-8 column large-uncentered small-11 small-centered">
						<div><?php 
        echo bon_get_option('footer_copyright', apply_atomic_shortcode('footer_content', '<div class="credit">' . __('Copyright &copy; [the-year] [site-link]. Powered by [wp-link] and [theme-link].', 'bon') . '</div>'));
        ?>
</div>
					</div>
				</div></div>
			</div>

		</div>
		<?php 
    }