<?php 

$strTitle = "TIEMPO DE FLORECER";
$strUrl   = "https://altares.mviglobal.org/en_vivo/";
$strUrlImg= "http://altares.mviglobal.org/en_vivo/images/lluvia_300x300.jpg";
$strUrlImgRect="http://altares.mviglobal.org/en_vivo/images/Altares_Jan06.jpg";
$strUrlFb = "https://www.facebook.com/MVIQUERETARO/videos/207180717736368";
$strUrlYt = "https://www.youtube.com/watch?v=DqnhS54XKvk";

$strTypeImage = "image/jpeg";
$strWidthImg  = "300";
$strHeightImg = "300";

$strVerseText = "7 »Si a un árbol se le derriba, queda al menos la esperanza de que retoñe y de que no se marchiten sus renuevos. 8 Tal vez sus raíces envejezcan en la tierra y su tronco muera en su terreno, 9 pero al sentir el agua, florecerá; echará ramas como árbol recién plantado.";
$strVerse     = "Job 14:7-9 (NVI)";
$strContent= "<i>'".$strVerseText."'</i><br><b>".$strVerse."</b>";
?>
<!DOCTYPE html>
<html prefix="og: https://ogp.me/ns#">
<head>
<title><?= $strTitle ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="<?= $strVerse  ?>" />
<meta property="og:url" content="<?= $strUrl ?>" />
<meta name="description" content="<?= $strVerseText?>" />
<meta name="image" content="<?= $strUrlImgRect?>" />
 <script src="https://kit.fontawesome.com/1e4203a92c.js" crossorigin="anonymous"></script>
 <style>
    body {
        background-color: #e1d271;
        font-family: "Monaco";
        color: white;
    }
    #block_container {
        text-align:center;}
    #bloc1, #bloc2 {
        display:inline;
    } 
    .btn {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 32px;
    }
    .btnFb {
        background-color: #008CBA;
    }
    .btnYt {
        background-color: red;
    }
    .responsive {
        max-width: 80%;
        height: auto;
    }
 </style>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
    <div id="block_container">
        <img src="images/logoAltaresYellow.png"><br>
        <img src="images/Altares_Jan06.jpg" class="responsive"><br>
        <h1>&iexcl;Bienvenido!</h1>
        <h2><?= $strTitle ?></h2>
        <h3><i><?= $strVerseText ?></i> <b><?=$strVerse?></b> </h3>
        <div id="bloc1"><button class="btn btnFb"><i class="fab fa-facebook"></i></button></div>  
        <div id="bloc2"><button class="btn btnYt"><i class="fab fa-youtube-square"></i></button></div>
    </div>
    <script>
        $('.btnFb').click(function() {
           window.location = "<?= $strUrlFb ?>"; 
        });
        
        $('.btnYt').click(function() {
           window.location = "<?= $strUrlYt ?>"; 
        });
    </script>
</body>
</html>