<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Nineteen
 * @since 1.0.0
 */

get_header();
echo '<div id="fb-root"></div>';
?>
	<div class="container containerPrimary">
		<section id="primary" class="content-area">
			<main id="main" class="site-main row">

			<div class="espacioInicial contenedorPantalla" style="background-image: url('<?php echo get_theme_file_uri().'/img/todosbrujosLogo.webp'; ?>');"></div>
			<!--div class="contenedorPantalla">
			</div-->
			<div class="contenedorPantalla pantallaPlaylist">
				<div id="pantallaPlaylist" class="contenidoPantalla">
					<div  class="iconsbtn"><span class="icon circle fa-music fa-1x"></span><span class="label">Escuchá Aldea</span></div>
					<?php
						$tipo = array( 'bandcamp-album','soundcloud-users', 'soundcloud-tracks', 'spotify-playlist', 'spotify-track', 'spotify-album' );
						$cantidadPost = 1;
						$altoIframe = '100%';
						$name = 'pantallaPlaylist';
						$i = 1;
						//include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) );
					?>
					<div id="<?php echo $name.'Item_'.$i ?>" class="iframePantalla cargando">
					<?php
						include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) );
					?>
					</div>
				</div>
			</div>
			<div class="contenedorPantalla pantallaNoticias">
				<div id="pantallaNoticias" class="contenidoPantalla">
					<div  class="iconsbtn"><span class="icon circle fa-bullhorn fa-1x"></span><span class="label">Noticias</span></div>
					<?php
						$name = 'pantallaNoticias';
						//include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) );
					?>
					
					<div id="<?php echo $name.'Item_'.$i ?>" class="iframePantalla cargando">
						<?php
							include( locate_template( 'template-parts/content/content-inner-timeline.php', false, false ) );
						?>
					</div>
				</div>
			</div>
			<div class="contenedorPantalla pantallaVideos">
				<div id="pantallaVideos" class="contenidoPantalla">
					<div  class="iconsbtn"><span class="icon circle fa-video fa-1x"></span><span class="label">Videos</span></div>
					<div id="pantallaVideosContent" class="cargando" >
						<?php
							$name = 'pantallaVideos';
							$tipo = array( 'facebook-videos', 'youtube-video', 'youtube-list' );
							$cantidadPost = 2;
							//include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) ); 
						?>
						<div id="<?php echo $name.'Item_'.$i ?>" class="iframePantalla cargando">
						<?php
							include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) );
						?>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="contenedorPantalla pantallaMerchandaising">
				<div id="pantallaMerchandaising">
					<div  class="iconsbtn"><span class="icon circle fa-shopping-cart fa-1x"></span><span class="label">Merchandaising</span></div>
					<?php
						$tipo = array( 'localmedia-img' );
						$cantidadPost = 6;
						$altoIframe = '100%';
						$name = 'pantallaMerchandaising';
						//include( locate_template( 'template-parts/content/content-tarjeta.php', false, false ) );
					?>
					
					<div  class="iframePantalla" style="background-image:none">
						<?php
							include( locate_template( 'template-parts/content/content-tarjeta-merchandaising.php', false, false ) );
						?>
					</div>
				</div>
			</div>-->
			<!--div class="contenedorPantalla pantallaRedes">
				<div class="contenidoPantalla">
					<div class="contenidoPantallaRedes iframePantalla"></div>
					<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 target="_blank" href="'.$red.'" class="icon circle '.$icon.' fa-5x"><span class="label">Seguinos en '.$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>
					</div>
				</div>
			</div-->
						
			</main><!-- .site-main -->
		</section><!-- .content-area -->
	</div>

	
<?php
get_footer();
