<?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 WordPress
 * @subpackage Twenty_Nineteen
 * @since 1.0.0
 */

?>
	</div><!-- #content -->
</div><!-- #page -->
</div>
</diV>
<footer id="colophon" class="site-footer">
		<div class="txtAldea"></div>
		<ul class="icons">
			<?php
				$redes = [];
				$redes['youtube'] = 'fa-youtube-play';
				$redes['facebook'] = 'fa-facebook';
				$redes['instagram'] = 'fa-instagram';
				$redes['twitter'] = 'fa-twitter';
				$redes['soundcloud'] = 'fa-soundcloud';
				$redes['spotify'] = 'fa-spotify';
				$redes['bandcamp'] = 'fa-bandcamp';
				$redes['mail'] = 'fa-envelope';
				
				foreach ($redes as $slug => $icon) {
					$red = 	get_option( 'u99_rs_'.$slug , true );
					if($red != 1 && $red != ''){
						echo '<li><a rel="noopener" target="_blank" href="'.$red.'" class="icon circle '.$icon.'" title="seguinos en la red social '.$slug.'"><span class="label">seguinos en la red social '.$slug.'</span></a></li>';
					}
				}
			
			/*<li><a target="_blank" href="<?php $youtube; ?>" class="icon circle fa-youtube-play"><span class="label">Youtube</span></a></li>	
			<li><a target="_blank" href="https://www.facebook.com/todosbrujosuy/" class="icon circle fa-facebook"><span class="label">Facebook</span></a></li>
			<li><a target="_blank" href="https://www.instagram.com/todosbrujos/" class="icon circle fa-instagram"><span class="label">Instagram</span></a></li>
			<li><a target="_blank" href="https://twitter.com/MilongaExtrema" class="icon circle fa-twitter"><span class="label">Twitter</span></a></li>
			<li><a target="_blank" href="https://soundcloud.com/milongasextremas" class="icon circle fa-soundcloud"><span class="label">Soundcloud</span></a></li>*/
			?>
		</ul>
	</footer><!-- #colophon -->
	
</div>
<div id="divAuxScroll"></div>
<div id="touchhand"></div>
<div id="mostrarRemera" onClick="cerrarMostrarRemera()"></div>

<?php wp_footer(); ?>
<?php
global $u99_ll;
$ll=$u99_ll;
$ca = bin2hex(openssl_random_pseudo_bytes(16));
$_SESSION['ca'] = $ca;
// manipulate session variables
?>
<script>
	
	var altoIframe = '';

	
	
	var urlSitio='<?php echo get_bloginfo('url'); ?>';
	var u99_ll = '<?php echo $ll; ?>';
	var u99_ca = '<?php echo $ca; ?>';

	var listaContenido = {
		<?php
		global $listaContenido;
		foreach ($listaContenido as $key => $value) {
			echo $key.':{sitio_id: "'.$value['sitio_id'].'",
				post_id: "'.$value['post_id'].'",
				tipo: "'.$value['tipo'].'",
				fuente: "'.$value['fuente'].'"},';
		}
		?>
	}

	var is_home =<?php echo (is_home()) ? "true" : "false"; ?>;



	</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async defer src="https://www.googletagmanager.com/gtag/js?id=UA-143525963-1"></script>
	<script async defer>
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());

	gtag('config', 'UA-143525963-1');
	</script>
</body>
</html>
