<? $es_movil = 'no'; include('concha.php');?>
<?php

$tablet_browser = 0;
$mobile_browser = 0;
$body_class = 'desktop';

if (preg_match('/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    $tablet_browser++;
    $body_class = "tablet";
}

if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    $mobile_browser++;
    $body_class = "mobile";
}

if ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {
    $mobile_browser++;
    $body_class = "mobile";
}

$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4));
$mobile_agents = array(
    'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',
    'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',
    'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',
    'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',
    'newt','noki','palm','pana','pant','phil','play','port','prox',
    'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',
    'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',
    'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',
    'wapr','webc','winw','winw','xda ','xda-');

if (in_array($mobile_ua,$mobile_agents)) {
    $mobile_browser++;
}

if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'opera mini') > 0) {
    $mobile_browser++;
    //Check for tablets on opera mini alternative headers
    $stock_ua = strtolower(isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])?$_SERVER['HTTP_X_OPERAMINI_PHONE_UA']:(isset($_SERVER['HTTP_DEVICE_STOCK_UA'])?$_SERVER['HTTP_DEVICE_STOCK_UA']:''));
    if (preg_match('/(tablet|ipad|playbook)|(android(?!.*mobile))/i', $stock_ua)) {
      $tablet_browser++;
    }
}
if ($tablet_browser > 0) {
// Si es tablet has lo que necesites

}
else if ($mobile_browser > 0) {
// Si es dispositivo mobil has lo que necesites
  $es_movil = 'si';
}
else {
// Si es ordenador de escritorio has lo que necesites

}
?>



 <?php 

$sql = "SELECT *
FROM  `publicidades_gif` WHERE lugar = '905'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
if ($es_movil == 'si') {

?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-responsive publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<? } else {};


	  }
$consulta->free_result();?>

  <?       if ($adsense == ' ') {} else { ?>
<div class="row" style="padding: 15px;text-align: center;">
 <? echo $adsense; ?>
</div>
         <?  }; ?>


                                <?php if ($funcion10 == 'si') {?>

     <div class="row d-none">

         <div class="col-12 col-sm-12 col-md-12 col-lg-12">

            <!--iframe src="https://radio-mascotas.com/resultados_mundial.php" width="100%" height="170" scrolling="no" style="width: 1px; min-width: 100%; *width: 100%;" class="" frameborder="0"></iframe-->

         </div>

     </div>


 <?php  } else {}; ?>


<style>
.img-contenedor img {
    -webkit-transition:all .5s ease; /* Safari y Chrome */
    -moz-transition:all .5s ease; /* Firefox */
    -o-transition:all .5s ease; /* IE 9 */
    -ms-transition:all .5s ease; /* Opera */
    width:100%;
}

.img-contenedor:hover img {
    -webkit-transform:scale(1.05);
    -moz-transform:scale(1.05);
    -ms-transform:scale(1.05);
    -o-transform:scale(1.05);
    transform:scale(1.05);
} </style>



    <?php

$haycuber = 0;



$sql = "SELECT * FROM notas_tapa WHERE cu3er = '1' ORDER BY ID desc";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$haycuber = 1;
}
$consulta->free_result();
if ($haycuber == 1) {
?>


          <div id="tritop" class="row">

            <div id="tritop1" class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<?php include 'cu3er12.php';?>
                    </div>

            <div id="tritop2" class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<?php include 'cu3er22.php';?>

            </div>

            <div id="tritop3" class="col-xs-12 col-sm-4 col-md-4 col-lg-4">

<?php include 'cu3er32.php';?>
                    </div>

          </div>






		  <?php  } else {};?>



<?php     $tam_ancho = 960;




$sql = "SELECT * FROM publicidades_swf WHERE lugar = '910'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];


$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];
$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];




	$tam_alto = $alto * $tam_ancho / $ancho;




    ?>
      <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
          <param name="src" value="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
          <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
      </object>
      <br>

      <?
	  }
$consulta->free_result();

?>




<?php 

$sql = "SELECT *
FROM  `publicidades_slide` WHERE lugar = '910'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

 $width_slide = "100%";  include 'publicidad_slider_virgen.php';

	  }
$consulta->free_result();?>



<?php 

$sql = "SELECT *
FROM  `publicidades_gif` WHERE lugar = '910'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-responsive publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<?


	  }
$consulta->free_result();?>



  <?php       if ($cu3er == 2 or $cu3er == 3) {   include 'cu3erg_new.php'; };?>


<?php     $tam_ancho = 960;




$sql = "SELECT * FROM publicidades_swf WHERE lugar = '912'";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];


$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];
$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];




	$tam_alto = $alto * $tam_ancho / $ancho;




    ?>
   <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};
   ?>
      <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
          <param name="src" value="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
          <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
      </object>
      <br>

      <?
	  }
$consulta->free_result();

?>



        <?php 
$sql = "SELECT *
FROM  `publicidades_slide` WHERE lugar = '912'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

 $width_slide = "100%";  include 'publicidad_slider_virgen.php';

	  }
$consulta->free_result();?>



<?php 

$sql = "SELECT *
FROM  `publicidades_gif` WHERE lugar = '912'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-responsive publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<?


	  }
$consulta->free_result();?>




            <div class="row cuerpo-responsive"style="magin:0 auto;">







 <div id="posteos" class="col-xs-12 col-sm-12 col-md-9 col-lg-9">

        <div id="bannerch" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

 <?php
          if ($cu3er == 1) {



        $haycuber = 0;




$sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{$haycuber = 1;
}
$consulta->free_result();



         ?>

        <?php  if ($haycuber == 1) { ?>
    <!-- Example row of columns -->




                     <div id="myCarousel" class="carousel slide" data-ride="carousel">



                              <!-- Wrapper for slides -->
                              <div class="carousel-inner" role="listbox">



                               <?php
        $can = 0;



$sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_nota = $row["ID"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];
$can = $can + 1;
$etiqueta = $row["etiqueta"];
?>

    <div class="<? if ($can == 1) {?>item active<? } else {?>item<? };?>">

     <?php if ($etiqueta == '') {} else   {?>
 <div id="etiqueta" style="background-color:<?php echo $d_color_fondo_menu ?>";>
    <h5><span style=";font-family:<?php echo $style_titulo ?>;font-size:15px; color:#FFFFFF;"><?php echo $etiqueta ?></span></h5>
</div><?php };?>

                                  <?php if($nota == 0) {} else {?> <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo11) ?>"> <?php };?><img alt="PUBLICIDAD" src="<? echo $dom;?>/upload_pic/thumbnail_<?php echo $foto ?>.jpg" title="<?php echo $titulo ?>" width="100%" class="img-responsive" >
                                  <?php if ($titulo == '') {} else {?>
                                    <div id="carousel-caption" class="carousel-caption">
                                      <div align="left"  style="font-size:27px;  font-family:<?php echo $style_titulo ?>; "><?php echo $titulo ?></div>
<div align="left" style=" font-size:17px; <?php echo $style_bajada ?> "><?php echo $texto ?></div>

                                    </div><?php };?>
                                   <?php if($nota == 0) {} else {?> </a>



                                   <?php };?>
                                </div>

<?
}
$consulta->free_result();

                              ?>


                              </div>

                              <!-- Left and right controls -->
                              <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                              </a>
                              <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                              </a>






                            </div>





                         <?php  }  else {}?>




                           <?php  } else { };?>



                             <?php  if ($opcion8 == 'si') {?>
                           <?php   include 'slider_notis.php';?>
                            <?php   } else {};?>







        <?php 

$sql = "SELECT *
FROM  `publicidades_gif` WHERE lugar = '911'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-responsive publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<?


	  }
$consulta->free_result();?>



        <?php 

$sql = "SELECT *
FROM  `publicidades_slide` WHERE lugar = '911'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID_p = $row["ID"];

 $width_slide = "100%";  include 'publicidad_slider_virgen.php';

	  }
$consulta->free_result();?>


<?php     $tam_ancho = 669;




$sql = "SELECT * FROM publicidades_swf WHERE lugar = 911";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];


$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];
$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];




	$tam_alto = $alto * $tam_ancho / $ancho;




    ?>
   <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};
   ?>
      <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
          <param name="src" value="<?php echo $tdom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
          <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
      </object>
      <br>

      <?
	  }
$consulta->free_result();

?>

                    </div>

                    <?php if ($adsense == '') {} else { ?> <div class="col-lg-12 col-xs-12 col-sm-12 col-md-12" > <? echo $adsense; ?> </div> <? };?>

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

                   <div class="grid">



                           <?php $i = 0; ?> <? include 'marco1x.php'; if ($rss == 'no') {} else { ?><? include 'marco1_rssx.php';}; ?>



                        </div>


                  <?php   include 'slider_home.php';?>

            </div>



        <!-- End of columns -->

                <sidebar id="sidebar" class="col-sx-12 col-sm-12 col-md-3 col-lg-3" data-spy="" data-offset-top="">

                    <div class="grid">

                      <?  include 'propagandas3.php'; ?>

                        </div>

                </sidebar>
 </div>
          <!-- End of columns -->
