pastebin

Paste Search Dynamic
Recent pastes
sidebar
  1.  
  2. <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 sidebar">
  3.   <div class="col-xs-12 col-lg-12">
  4.     <h3 class="font-italic">Mais Lidas</h3>
  5.   </div>
  6.  
  7.   <?php foreach ($this->top5 as $key => $row) : //echo "<pre>";  var_dump($row); die();
  8.   ?>
  9.  
  10.     <div class="col-xs-12 col-lg-12 item-maislidas nopad">
  11.       <div class="col-xs-2 col-lg-2 text-center">
  12.         <h2 class="font-b600"><?= $key + 1;  ?></h2>
  13.       </div>
  14.       <div class="col-xs-10 col-lg-10">
  15.         <h4 class="font-italic font-b600"><a style="color: <?= $row->color; ?>" href="/materia/<?= $row->slug; ?>"><?= $row->titulo; ?></a></h4>
  16.       </div>
  17.     </div>
  18.  
  19.   <?php endforeach; ?>
  20.  
  21.  
  22.   <?php if (!empty($this->artistas)) : ?>
  23.     <div class="col-xs-12 col-lg-12">
  24.       <h3 class="font-italic">Artistas</h3>
  25.  
  26.     <?php foreach ($this->artistas as $key => $row) : //echo "<pre>";  var_dump($row); die();
  27.     ?>
  28.       <div class="col-xs-6 col-lg-6 artistas nopad">
  29.         <figure class="col-lg-12">
  30.           <a href="/artista/<?= $row->slug; ?>"><img src="/assets/uploads/artistas/<?= $row->imagem_thumb; ?>" alt="<?= $row->nome; ?>" /></a>
  31.           <hr class="col-xs-12 col-lg-12" />
  32.           <figcaption class="text-center">
  33.           <a href="/artista/<?= $row->slug; ?>"><?= $row->nome; ?></a>
  34.       </figcaption>
  35.         </figure>
  36.       </div>
  37.   <?php endforeach; ?>
  38.   <a href="/artistas" target="_blank" type="button" class="btn btn-secondary btn-lg btn-block btn-anchor" role="button">VER MAIS</a>
  39.   </div>
  40. <?php endif; ?>
  41.  
  42.  
  43.  
  44.   <?php if (!empty($this->promocoes)) : ?>
  45.     <div class="col-xs-12 col-lg-12">
  46.       <h3 class="font-italic">Concursos</h3>
  47.     </div>
  48.     <?php foreach ($this->promocoes as $key => $row) : //echo "<pre>";  var_dump($row); die();
  49.     ?>
  50.       <div class="col-xs-12 col-lg-12 item-concursos nopad">
  51.         <div class="col-xs-8 col-lg-8">
  52.           <p class="data">até <?= date("d/m/Y", strtotime($row->data_fim)); ?></p>
  53.           <h4 class="font-italic font-b600"><a href="/promocoes/<?= $row->slug; ?>" style="color: #de7e21;"><?= $row->promocao; ?></a></h4>
  54.         </div>
  55.         <div class="col-xs-4 col-lg-4">
  56.           <a href="/promocoes/<?= $row->slug; ?>"><img class="img-responsive" src="/assets/uploads/promocoes/<?= $row->imagem; ?>" alt="<?= $row->promocao; ?>" /></a>
  57.         </div>
  58.       </div>
  59.   <?php endforeach;
  60.   endif; ?>
  61.  
  62.   <?php if (!empty($this->postagenda)) : ?>
  63.     <div class="col-xs-12 col-lg-12">
  64.       <h3 class="font-italic">Agenda</h3>
  65.     </div>
  66.     <?php foreach ($this->postagenda as $key => $row) : //echo "<pre>";  var_dump($row); die();
  67.     ?>
  68.       <div class="col-xs-12 col-lg-12 item-concursos nopad">
  69.         <div class="col-xs-8 col-lg-8">
  70.           <h4 class="font-italic font-b600"><a style="color: <?= $row->color; ?>" target="_blank" href="/materia/<?= $row->slug; ?>"><?= $row->titulo; ?></a></h4>
  71.           <p><?= $row->resumo; ?></p>
  72.         </div>
  73.         <div class="col-xs-4 col-lg-4 nopad">
  74.           <a href="/materia/<?= $row->slug; ?>"><img class="img-responsive" src="/assets/uploads/blog/<?= $row->imagem; ?>" alt="<?= $row->titulo; ?>" /></a>
  75.         </div>
  76.       </div>
  77.   <?php endforeach;
  78.   endif; ?>
  79.  
  80.  
  81.   <?php if (!empty($this->youtube) && $this->url() !== "/") : ?>
  82.     <div class="col-xs-12 col-lg-12">
  83.       <h3 class="font-italic">Alpha no YouTube</h3>
  84.     </div>
  85.     <?php foreach ($this->youtube as $key => $row) : //echo "<pre>";  var_dump($row); die();
  86.       if ($key == 0) : ?>
  87.         <div class="col-xs-12 col-lg-12 item-concursos nopad">
  88.           <div class="col-xs-12 col-lg-12">
  89.             <iframe width="100%" height="180" src="https://www.youtube.com/embed/<?= $row->id->videoId; ?>" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  90.           </div>
  91.           <div class="col-xs-12 col-lg-12">
  92.             <h4 class="font-italic font-b600"><a style="color: #f00" target="_blank" href="https://www.youtube.com/watch?v=<?= $row->id->videoId; ?>"><?= explode("|", $row->snippet->title)[0]; ?></a></h4>
  93.           </div>
  94.         </div>
  95.  
  96.       <?php continue;
  97.       endif;
  98.       if ($key == 3) : break;
  99.       endif; ?>
  100.  
  101.       <div class="col-xs-12 col-lg-12 item-concursos nopad">
  102.         <div class="col-xs-12 col-lg-12">
  103.           <iframe width="100%" height="180" src="https://www.youtube.com/embed/<?= $row->id->videoId; ?>" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  104.         </div>
  105.         <div class="col-xs-12 col-lg-12">
  106.           <h4 class="font-italic font-b600"><a style="color: #f00" target="_blank" href="https://www.youtube.com/watch?v=<?= $row->id->videoId; ?>"><?= explode("|", $row->snippet->title)[0]; ?></a></h4>
  107.         </div>
  108.       </div>
  109.   <?php endforeach;
  110.   endif; ?>
  111.  
  112. </div>
Parsed in 0.117 seconds