Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="search-result">
- <ul class="program__list">
- <?php foreach ( $posts_ as $pst ) : ?>
- <?php if ( $pst['post_type'] == 'programa' ) : ?>
- <li class="program__item">
- <a href="<?php echo $pst[ 'link' ]; ?>">
- <figure class="program__image mask">
- <figcaption class="program__caption">
- <?php if ( $pst[ 'titulo' ] ) :?>
- <h2 class="program__title"><?php echo $pst[ 'titulo' ]; ?></h2>
- <?php endif; ?>
- </figcaption>
- <img src="<?php echo $pst[ 'img' ]; ?>" alt="<?php echo $pst[ 'titulo' ]; ?>">
- </figure>
- </a>
- </li>
- <?php else: ?>
- <li class="card">
- <a class="card__link-post" href="<?php echo $pst[ 'link' ]; ?>">
- <div class="card__content">
- <?php if ( array_key_exists( 'categoria', $pst ) && $pst[ 'categoria' ] ) : ?>
- <h4 class="card__cat"><?php echo $pst[ 'categoria' ][ 'nome' ]; ?></h4>
- <?php endif; ?>
- <?php if ( $pst[ 'titulo' ] ) : ?>
- <h3 class="card__title"><?php echo $pst[ 'titulo' ]; ?></h3>
- <?php endif; ?>
- <?php if ( $pst[ 'resumo' ] ) : ?>
- <p class="card__desc"><?php echo $pst[ 'resumo' ]; ?></p>
- <?php endif; ?>
- </div>
- <?php if ( $pst[ 'img' ] ) : ?>
- <figure class="card__figure">
- <img class="card__thumb" src="<?php echo $pst[ 'img' ]; ?>" alt="#titulo-card">
- </figure>
- <?php endif; ?>
- </a>
- </li>
- <?php endif; ?>
- <?php endforeach; ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement