Advertisement
info1atual

Código para Ad-inserter (versão imagem maior)

Jul 26th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.96 KB | None | 0 0
  1. <?php
  2.     $links = [];
  3.       $images = [];
  4.       $index = 0;
  5.  
  6.       $link01 = 'http://bit.ly/2UTWRDm' . '?vend=' . 'edna-marcelino' . '&prod=' . 'katarine-green';
  7.     $link02 = 'http://bit.ly/2HSEcnL' . '?vend=' . 'edna-marcelino' . '&prod=' . 'cronicas-trigom';
  8.     $link03 = 'https://goo.gl/PdYsGC' . '?vend=' . 'thiago-alves'  . '&prod=' . 'ekklesia-1';
  9.     $link04 = 'http://bit.ly/2YXNogm' . '?vend=' . 'thiago-alves' . '&prod=' . 'ekklesia-2';
  10.     $link05 = 'https://goo.gl/6QCrVt' . '?vend=' . 'alcione-bastos' . '&prod=' . 'katarine-green';
  11.     $link06 = 'https://goo.gl/mN7Ghv' . '?vend=' . 'alcione-bastos' . '&prod=' . 'cronicas-trigom';
  12.     $link07 = 'https://goo.gl/4JKw47' . '?vend=' . 'marcelino-silva' . '&prod=' . 'div-e-segundo-cas';
  13.     $link08 = 'https://goo.gl/mvdP4r' . '?vend=' . 'marcelino-silva' . '&prod=' . 'ekklesia-1';
  14.     $link09 = 'https://goo.gl/rMjuwF' . '?vend=' . 'marcia-freitas' . '&prod=' . 'ekklesia-1';
  15.     $link10 = 'https://goo.gl/zdxicn' . '?vend=' . 'marcia-freitas' . '&prod=' . 'ekklesia-2';
  16.    
  17.     $titulo01 = 'Ekklesia e Reforma Já! Vol. 1';
  18.     $titulo02 = 'Ekklesia e Reforma Já! Vol. 2';
  19.     $titulo03 = 'Manual do Novo Convertido';
  20.     $titulo04 = 'Kátarine Green - Das Trevas à Luz';
  21.     $titulo05 = 'Crônicas de Trigôm - Páginas de Pura Loucura';
  22.     $titulo06 = 'Divórcio e Segundo Casamento';
  23.  
  24.       $img01 = 'http://despertaipovos.com.br/site/wp-content/uploads/2019/04/ekklesia-capa-01-editada.png';
  25.       $img02 = 'http://despertaipovos.com.br/site/wp-content/uploads/2019/03/capa-ekklesia-e-reforma-já-2.jpg';
  26.       $img03 = 'http://despertaipovos.com.br/site/wp-content/uploads/2019/04/manual-novo-convertido.jpeg';
  27.     $img04 = 'http://despertaipovos.com.br/site/wp-content/uploads/2019/04/eu-capa-livro-katarine-green.jpg';
  28.     $img05 = 'http://despertaipovos.com.br/site/wp-content/uploads/2017/04/cronicas-de-trigon.jpeg';
  29.     $img06 = 'http://despertaipovos.com.br/site/wp-content/uploads/2019/04/divorcio-e-novo-casamento.jpg';
  30.  
  31.     // Edna
  32.     $links[0] = "
  33.        <a style='text-decoration: none' href = '". $link01 ."' target='_blank'>
  34.            <h4 style='margin-top: 5px; font-size: 18px 5px'>". $titulo04 ."</h4>
  35.            <img style='clear: both' width='300' src='". $img04 ."' alt='Livro, Teologia'>
  36.        </a>";
  37.     $links[1] = "
  38.        <a style='text-decoration: none' href = '". $link02 ."' target='_blank'>
  39.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo05 . "</h4>
  40.            <img style='clear: both' width='300' src='". $img05 ."' alt='Livro, Teologia'>
  41.        </a>";
  42.  
  43.     // Thiago Alves
  44.     $links[2] = "
  45.        <a style='text-decoration: none' href = '". $link03 ."' target='_blank'>
  46.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo01 . "</h4>
  47.            <img style='clear: both' width='300' src='". $img01 ."' alt='Livro, Teologia'>
  48.        </a>";
  49.     $links[3] = "
  50.        <a style='text-decoration: none' href = '". $link04 ."' target='_blank'>
  51.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo02 . "</h4>
  52.            <img style='clear: both' width='300' src='". $img02 ."' alt='Livro, Teologia'>
  53.        </a>";
  54.  
  55.     // Alcy
  56.     $links[4] = "
  57.        <a style='text-decoration: none' href = '". $link05 ."' target='_blank'>
  58.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo04 . "</h4>
  59.            <img style='clear: both' width='300' src='". $img04 ."' alt='Livro, Ficção'>
  60.        </a>";
  61.     $links[5] = "
  62.        <a style='text-decoration: none' href = '". $link06 ."' target='_blank'>
  63.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo05 . "</h4>
  64.            <img style='clear: both' width='300' src='". $img05 ."' alt='Livro, Ficção'>
  65.        </a>";
  66.  
  67.     // Marcelino
  68.     $links[6] = "
  69.        <a style='text-decoration: none' href = '". $link07 ."' target='_blank'>
  70.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo06 . "</h4>
  71.            <img style='clear: both' width='300' src='". $img06 ."' alt='Livro, Teologia'>
  72.        </a>";
  73.     $links[7] = "
  74.        <a style='text-decoration: none' href = '". $link08 ."' target='_blank'>
  75.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo01 . "</h4>
  76.            <img style='clear: both' width='300' src='". $img01 ."' alt='Livro, Teologia'>
  77.        </a>";
  78.    
  79.     // Samuel
  80.     $links[6] = "
  81.        <a style='text-decoration: none' href = '". $link09 ."' target='_blank'>
  82.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo01 . "</h4>
  83.            <img style='clear: both' width='300' src='". $img01 ."' alt='Livro, Teologia'>
  84.        </a>";
  85.     $links[7] = "
  86.        <a style='text-decoration: none' href = '". $link10 ."' target='_blank'>
  87.            <h4 style='margin-top: 5px; font-size: 18px; font-weight: bold'>". $titulo02 . "</h4>
  88.            <img style='clear: both' width='300' src='". $img02 ."' alt='Livro, Teologia'>
  89.        </a>";
  90.  
  91.     $index = mt_rand(0,count($links)-1);
  92.     // echo $index;
  93.    
  94. ?>
  95. <div id="marketing-images" style="margin-top:11px;display:block;clear:both">
  96.   <!-- <hr style='margin-bottom: 14px; margin-top: 14px'> -->
  97.   <div style="display:block;clear:both;">
  98.     <span style="font-size: 12px">Recomendado pra você:</span>
  99.   </div>
  100.   <?php echo $links[$index] ?>
  101.   <div style="display:block;clear:both;margin-top:12px">
  102.     <span style="font-size: 12px">Campanha:</span>
  103.   </div>
  104.   <div style="display:block;clear:both;">
  105.     <a target="_blank" href="https://www.amazon.com.br/b?_encoding=UTF8&tag=despertaipovo-20&linkCode=ur2&linkId=4b5794c50056f6dd6e20efc16ad02616&camp=1789&creative=9325&node=7874675011"><b>Leia um LIVRO!</b></a><img src="//ir-br.amazon-adsystem.com/e/ir?t=despertaipovo-20&l=ur2&o=33" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
  106.   </div>
  107. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement