Advertisement
info1atual

Código para Ad-inserter (Gospel Contei - Notícias)

Jul 22nd, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.26 KB | None | 0 0
  1. <?php
  2.     $block1links = [];
  3.     $block1images = [];
  4.     $block1index = 0;
  5.  
  6.     $block1link0 = 'https://www.gospelcontei.com.br/2019/07/eyshila-faz-homenagem-emocionante-a-cantora-gospel-bruna-karla/2075/';
  7.     $block1link02 = 'https://www.gospelcontei.com.br/2019/07/cantor-gospel-davi-sacer-e-tietado-por-angolanos-no-aeroporto/1932/';
  8.     $block1link03 = 'https://www.gospelcontei.com.br/2019/07/pastor-expulsa-demonio-a-tapas-e-video-viraliza-nas-redes-sociais/2105/';
  9.     $block1link04 = 'https://www.gospelcontei.com.br';
  10.    
  11.     $block1titulo0 = 'Cantora Gospel ...';
  12.     $block1titulo1 = 'Cantor Gospel ...';
  13.     $block1titulo2 = 'Pastor ... Evangélico';
  14.     $block1titulo3 = 'Notícias Gospel ... Mundo Cristão';
  15.  
  16.     $block1img0 = 'https://www.gospelcontei.com.br/wp-content/uploads/2019/06/Logo-contei.png';
  17.     $block1img1 = 'https://www.gospelcontei.com.br/wp-content/uploads/2019/06/Logo-contei.png';
  18.     $block1img2 = 'https://www.gospelcontei.com.br/wp-content/uploads/2019/06/Logo-contei.png';
  19.     $block1img3 = 'https://www.gospelcontei.com.br/wp-content/uploads/2019/06/Logo-contei.png';
  20.  
  21.     $block1links[0] = "
  22.        <a style='display: block; text-decoration: none; margin-top: 7px; margin-bottom: 8px' href = '". $block1link0 ."' target='_blank'>
  23.            <img style='clear: both; float: left; margin-top: 3px; margin-right: 6px; height: 61px; min-width: 61px' src='". $block1img0 ."' alt='Cantora Gospel'>
  24.            <div>
  25.                <div style=''>
  26.                     <span style='font-size: 13px;'><small>Leia também:</small></span>
  27.                 </div>
  28.                 <div style='margin-top: -5px'>
  29.                    <span style='font-size: 18px; margin-top: 1px'>". $block1titulo0 ."</span>
  30.                </div>
  31.            </div>
  32.        </a>";
  33.     $block1links[1] = "
  34.        <a style='display: block; text-decoration: none; margin-top: 7px; margin-bottom: 8px' href = '". $block1link1 ."' target='_blank'>
  35.            <img style='clear: both; float: left; margin-top: 3px; margin-right: 6px; height: 61px; min-width: 61px' src='". $block1img1 ."' alt='Cantor Gospel'>
  36.            <div>
  37.                <div style=''>
  38.                     <span style='font-size: 13px;'><small>Leia também:</small></span>
  39.                 </div>
  40.                 <div style='margin-top: -5px'>
  41.                    <span style='font-size: 18px; margin-top: 1px'>". $block1titulo1 . "</span>
  42.                </div>
  43.            </div>
  44.        </a>";
  45.  
  46.     $block1links[2] = "
  47.        <a style='display: block; text-decoration: none; margin-top: 7px; margin-bottom: 8px' href = '". $block1link2 ."' target='_blank'>
  48.            <img style='clear: both; float: left; margin-top: 3px; margin-right: 6px; height: 61px; min-width: 61px' src='". $block1img2 ."' alt='Pastor, Pastor Evangélico'>
  49.            <div>
  50.                <div style=''>
  51.                     <span style='font-size: 13px;'><small>Leia também:</small></span>
  52.                 </div>
  53.                 <div style='margin-top: -5px'>
  54.                    <span style='font-size: 18px; margin-top: 1px'>". $block1titulo2 . "</span>
  55.                </div>
  56.            </div>
  57.        </a>";
  58.     $block1links[3] = "
  59.        <a style='display: block; text-decoration: none; margin-top: 7px; margin-bottom: 8px' href = '". $block1link3 ."' target='_blank'>
  60.            <img style='clear: both; float: left; margin-top: 3px; margin-right: 6px; height: 61px; min-width: 61px' src='". $block1img3 ."' alt='Notícias Gospel'>
  61.            <div>
  62.                <div style=''>
  63.                     <span style='font-size: 13px;'><small>Leia também:</small></span>
  64.                 </div>
  65.                 <div style='margin-top: -5px'>
  66.                    <span style='font-size: 18px; margin-top: 1px'>". $block1titulo3 . "</span>
  67.                </div>
  68.            </div>
  69.        </a>";
  70.  
  71.     $block1index = mt_rand(0,count($block1links)-1);
  72.     // echo $block1index;
  73.    
  74. ?>
  75. <div id="marketing-block1images" style="min-height: 136px">
  76.   <hr style='margin-bottom: 14px; margin-top: 14px'>
  77.   <div class="gen50">  
  78.     <?php echo $block1links[$block1index] ?>
  79.   </div>
  80. </div>
  81.  
  82. <style>
  83.   .gen50 {
  84.     height: auto;
  85.     width: 50%; float: left;
  86.     -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
  87.     border: 1px solid transparent;
  88.     padding: 0;
  89.   }
  90.  
  91.   @media (max-width: 768px) {
  92.     .gen50 {
  93.       width: 100%;
  94.     }
  95.   }
  96. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement