<?php include ("config.php");  ?>
<?php include("admin/includes/lang/$pulse_lang.php"); ?>
<?php include ("admin/bd/stream.php");  ?>
<?php include ("admin/bd/mural.php");  ?>
<?php include ("admin/bd/tv.php");  ?>
<?php include ("admin/bd/automacao.php");  ?>
<?php include ("admin/bd/top5.php");  ?>
<?php include ("admin/bd/enquete.php"); ?>
<?php include ("admin/bd/anunciantes.php");  ?>
<?php include ("admin/bd/doacao.php");  ?>
<?php include ("admin/bd/ouvinte.php");  ?>
<?php include ("admin/bd/chat.php"); ?>
<?php include ("admin/bd/theme.php"); ?>
<?php $version = file_get_contents("version.txt"); ?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
	<meta charset="utf-8">
	<meta name="description" content="<?php echo $page_desc; ?>">
	<meta name="keywords" content="<?php echo $page_words; ?>" />
	<meta content="yes" name="apple-mobile-web-app-capable" />
	<meta name="viewport" content="minimum-scale=1.0, width=device-width, maximum-scale=1, user-scalable=no" />
	<link rel="icon" href="admin/assets/img/favicon.jpg">
	<link rel="shortcut icon" href="admin/assets/img/favicon.jpg" />
	<link href='https://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="assets/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="assets/css/flexslider.css">
	<link rel="stylesheet" type="text/css" href="assets/css/jquery.vegas.css">
	<link rel="stylesheet" href="assets/css/<?php echo $theme; ?>?v=<?php echo $version; ?>">
	<link rel="stylesheet" type="text/css" href="assets/css/<?php echo $corsite; ?>.css?v=<?php echo $version; ?>">
	<style type="text/css">
	<?php if ($theme == "light.css"){ ?>
		.poll-simple .poll-title {color: #000 !important;}.poll-simple .poll-table td {color: #000 !important;}.poll-simple .poll-input-cont {background-color: #696969 !important;}.poll-simple .poll-inner{color: #000 !important;}
	<?php } ?>
	</style>
	<script async  src="assets/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	<script src="assets/js/jquery.js"></script>
	<script type="text/javascript" src="assets/enquete/ajax-poll.php"></script>
</head>
<body>
	<?php include 'menu.php'; ?>

	<div id="ajaxArea">
		<div class="pageContentArea">

			<section id="home-slider">
				<div class="container">
					<div class="home-inner">
						<div id="homeSliderNav" class="slider-nav"> 
							<a id="home-prev" href="#" class="prev fa fa-chevron-left"></a>
							<a id="home-next" href="#" class="next fa fa-chevron-right"></a>
						</div>
						<div id="flex-home" class="flexslider" data-animation="slide" data-animationSpeed="1000" data-autoPlay="true" data-slideshowSpeed="7000">
							<ul class="slides">
								<?php $gallery = "Slider"; include("admin/includes/gallery.php"); ?>
							</ul>
						</div>
					</div>
				</div>
			</section>

			<div class="rockPlayerHolder"></div>

			<div class="clearfix"></div>

			<section id="updates">
				<div class="container">
					<div class="row">

						<div class="col-lg-3 col-md-3 col-sm-3">
							<h1><?php echo $lang_locutor_ar; ?></h1>
							<?php include 'admin/includes/locutor/no-ar-home.php'; ?>
							<?php include 'admin/includes/pedido-page.php'; ?>
							
							<?php if ($ouvinte_mes == 1 || $ouvinte_mes == ""){ ?>
								<h1><?php echo $lang_ouvinte_do_mes; ?></h1>  
								<div class="event-feed">
									<h5><?php echo $ouvinte_nome; ?></h5>
								</div>
								<center>
									<img src="admin/assets/img/ouvinte.png" alt="<?php echo $ouvinte_nome; ?>"/>
								</center>
								<center>
									<?php include ("admin/bd/botoes/$ouvface_select"); ?>
									<?php include ("admin/bd/botoes/$ouvtw_select"); ?>
									<?php include ("admin/bd/botoes/$ouvinst_select"); ?>
								</center>
							<?php } ?>
								<?php if ($enquete == 1) { ?>
									<h1><?php echo $lang_enquete; ?></h1>
									<div class='ajax-poll' tclass='poll-simple' style='width:100%;'></div>
								<?php } ?>
						</div>

						<div class="col-lg-6 col-md-6 col-sm-6">
							<?php if ($chat == 1) { ?>
								<h1><?php echo $nome_chat; ?></h1>
								<div class="chat-borda" style="width:100%; height:320px;">
								<script type="text/javascript" src="chat/jaxinit.js"></script>
								</div><br/>
							<?php } ?>
							<?php if ($tv == 1) { ?>
									<h1><?php echo $nome_tv; ?></h1>
									<center>
									<?php include_once("admin/data/pages/camera-estudio.html"); ?>
									</center><br/>
							<?php } ?>
							<h1><?php echo $lang_h_noticias; ?></h1>
							<?php include_once("admin/includes/news-list.php"); ?>
							<br><br>
							<h1><?php echo $lang_h_videos; ?></h1>
							<div class="news-feed text-center">
								<div class="row">
									<?php include_once("admin/includes/videos-home.php"); ?>
								</div>
							</div>
						</div>

						<div class="col-lg-3 col-md-3 col-sm-3">
							<h1><?php echo $lang_aplicativos; ?></h1>
							<div class="banner-app">
								<?php include ("admin/bd/$apk_select"); ?>
								<?php include ("admin/bd/$ios_select"); ?>
							</div>
							<br/>
							<h1><?php echo $lang_ouca_celular; ?></h1>
							<center>
								<?php include ("admin/bd/botoes/$bapk_select"); ?>
								<?php include ("admin/bd/botoes/$bios_select"); ?>
								<?php include ("admin/bd/botoes/$bwin_select"); ?>
								<?php include ("admin/bd/botoes/$bblack_select"); ?>
							</center>
							<br/>
							<?php include 'top-musica.php'; ?>
							<?php  
								if ($mural == 1) {echo "<h1>$lang_h_recado</h1>";
									include_once("admin/includes/recados/recados-home.php");
									echo "<br>";
								}
							?>
							<?php if ($doacao == 1) { ?>
								<h1><?php echo $lang_doacao; ?></h1>
								<center><?php echo $msg_doacao; ?>
								<form target="_blank" action="https://pagseguro.uol.com.br/checkout/v2/donation.html" method="post">
								<input type="hidden" name="receiverEmail" value="<?php echo $email_pagseguro ?>" />
								<input type="hidden" name="currency" value="BRL" />
								<input type="hidden" name="iot" value="button" />
								<input type="image" src="assets/img/pagseguro.png" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
								</form>
								<br/></center>
							<?php } ?>
						</div>
					</div>
				</div>
			</section>
		</div>
	</div>
<?php include ("anuncios.php");  ?>
<?php include ("rodape.php");  ?>
	<script defer  src="assets/js/playtop5.js?v=<?php echo $version; ?>"></script>
	<script defer  src="assets/js/bootstrap.min.js?v=<?php echo $version; ?>"></script>
	<script defer  src="assets/js/jquery.flexslider-min.js?v=<?php echo $version; ?>"></script> 
	<script defer  src="assets/js/jquery.carouFredSel-6.2.1-packed.js?v=<?php echo $version; ?>"></script>  
	<script defer  src="assets/js/jquery.vegas.min.js?v=<?php echo $version; ?>"></script> 
	<script defer  src="assets/js/main.js?v=<?php echo $version; ?>"></script>  
	<script src="admin/includes/tracker.php?uri=<?php echo $_SERVER['REQUEST_URI']; ?>&ref=<?php echo $_SERVER['HTTP_REFERER']; ?>"></script>
	<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $analytics_id; ?>"></script>
	<script>
		window.dataLayer = window.dataLayer || [];
		function gtag(){dataLayer.push(arguments);}
		gtag('js', new Date());
		gtag('config', '<?php echo $analytics_id; ?>');
	</script>
</body>
</html>