<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package Spun
 */

$spun_facebook = get_theme_mod( 'jetpack-facebook' );
$spun_twitter = get_theme_mod( 'jetpack-twitter' );
$spun_tumblr = get_theme_mod( 'jetpack-tumblr' );
$spun_linkedin = get_theme_mod( 'jetpack-linkedin' );
?>

	</div><!-- #main .site-main -->

	<footer id="colophon" class="site-footer" role="contentinfo">
		<hr style="border-top: 1px dashed #000000; background-color:rgba(0, 0, 0, 0.0);">
		
		<div class="textarea" style="background-color:rgba(0, 0, 0, 0.75); padding-left:20px; padding-top:10px; padding-bottom:10px; " >
			<p style="color:#FFFFFF; margin-bottom:0px;"><?php _e( 'Juan Carlos Carvajal Bermúdez', 'spun' ); ?></p>
		</div>
		
		
		<?php if ( $spun_facebook || $spun_twitter || $spun_tumblr || $spun_linkedin ) : ?>
			<div class="social-links">
			<?php if ( $spun_facebook ) : ?>
				<a href="<?php echo esc_url( $spun_facebook ); ?>" class="facebook-link" data-icon="&#xF204;">
					<span class="screen-reader-text"><?php esc_html_e( 'Facebook', 'spun' ); ?></span>
				</a>
			<?php endif; ?>
			<?php if ( $spun_linkedin ) : ?>
				<a href="<?php echo esc_url( $spun_linkedin ); ?>" class="linkedin-link" data-icon="&#xF214;">
					<span class="screen-reader-text"><?php esc_html_e( 'LinkedIn', 'spun' ); ?></span>
				</a>
			<?php endif; ?>
			<?php if ( $spun_twitter ) : ?>
				<a href="<?php echo esc_url( $spun_twitter ); ?>" class="twitter-link" data-icon="&#xF202;">
					<span class="screen-reader-text"><?php esc_html_e( 'Twitter', 'spun' ); ?></span>
				</a>
			<?php endif; ?>
			<?php if ( $spun_tumblr ) : ?>
				<a href="<?php echo esc_url( $spun_tumblr ); ?>" class="tumblr-link" data-icon="&#xF214;">
					<span class="screen-reader-text"><?php esc_html_e( 'Tumblr', 'spun' ); ?></span>
				</a>
			<?php endif; ?>
			</div>
		<?php endif; ?>


		<!-- Piwik -->
		<script type="text/javascript">
		  var _paq = _paq || [];
		  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
		  _paq.push(['trackPageView']);
		  _paq.push(['enableLinkTracking']);
		  (function() {
		    var u="//piwik.juan-carlos.info/";
		    _paq.push(['setTrackerUrl', u+'piwik.php']);
		    _paq.push(['setSiteId', '1']);
		    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
		    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
		  })();
		</script>
		<!-- End Piwik Code -->



	</footer><!-- #colophon .site-footer -->
</div><!-- #page .hfeed .site -->

<?php wp_footer(); ?>

</body>
</html>