Sindbad~EG File Manager

Current Path : /var/www/html/forumdainovacaors.com.br/wp-content/themes/itt/singles/
Upload File :
Current File : /var/www/html/forumdainovacaors.com.br/wp-content/themes/itt/singles/single-agenda.php

<?php
 
  $id = $post->ID;
  $terms_full = get_the_terms($post->ID, 'category_agenda');
  if (!$terms_full) {
    $terms = null;
  } else {
    foreach ($terms_full as $row) {
      $terms[] = $row->name;
    }
  }
?>
<section class="single-page pt-4">
  <?php if (have_posts()): while (have_posts()) : the_post(); ?>
    <div class="panel">
        <div class="row">
            <div class="col-md-3 card-section-left">
                <div class="h-100 d-flex schedule-wrapper w-75">
                    <div class="schedule-date mr-auto ml-3 my-2 w-50">
                        <?php
                        setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
                        date_default_timezone_set('America/Sao_Paulo');
                        $dateSchedule = strtotime(Util::datePtToEn(get_field('date-schedule')));
                        $data = explode("/",utf8_encode(strftime('%d/%b', $dateSchedule)));
                        echo strtoupper($data[0]."<br>".$data[1]);
                        ?>
                        <hr>
                        <p class="hour">
                          <img class="clock" src="<?php echo get_template_directory_uri(); ?>/public/assets/images/clock.svg" />            
                          <?php
                              $hora = date("H:i", $dateSchedule);
                              $data = date("H:i", $hora);
                              echo $hora;
                          ?>
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-md-9 card-section-left">
                <div class="title-border"></div>
                <h1 class="title bold">
                  <?php 
                  $encoding = mb_internal_encoding(); // ou UTF-8, ISO-8859-1...
                  echo mb_strtoupper(get_the_title(), $encoding); // retorna VIRÁ
                  ?>
                </h1>
                <h4>
                  <?php echo $post->subtitle ?>
                </h4>
            </div>
        </div>

        <div class="col-lg-2 col-12" id="componente-compartilhar-agenda">
          <?php get_template_part('components/item', 'compartilhar'); ?>
        </div>
          <div class="col-lg-10 col-12 mx-auto">
            <img src="<?php echo get_the_post_thumbnail_url(); ?>" 
                alt="<?php echo get_post_meta( $thumbnail_id, '_wp_attachment_image_alt', true); ?>"
                class="mb-2">
            <div class="small">
                <?php echo get_field('source'); ?>
            </div>
            <div class="mt-3 mb-5">
                <?php the_content(); ?>
                <?php edit_post_link("Editar"); ?>
            </div>
            <?php if (is_user_logged_in()): ?>
              <div class="mt-3 mb-5 attachments-associado">
                <?php echo get_field('attachments'); ?>
              </div>
            <?php endif; ?>
            <hr>
            <div class="row">
                <div class="small col-md-4">
                <p class="bold">
                  Por: <?php the_author(); ?>
                </p>
                </div>                
                <?php if($terms != null): ?>
                <div class="col-md-8 text-right">
                <?php foreach ($terms as $row): ?>
                    <span class="badge">
                      <?php _e(strtoupper($row), 'itt'); ?></span>
                <?php endforeach; ?>
                </div>
                <?php endif; ?>
            </div>
          </div>
    </div>
  <?php endwhile; ?>
  <?php else: ?>
      <h1><?php _e( 'Não encontrado.', 'html5blank' ); ?></h1>
  <?php endif; ?>
</section>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists