PageRenderTime 69ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/archive.php

https://github.com/unbgama/unbgama-antigo
PHP | 60 lines | 51 code | 4 blank | 5 comment | 5 complexity | 07a41e0c7f3b9098b53c909ec09fab8a MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage UnbGama
  5. * @since UnbGama 1.0
  6. */
  7. ?>
  8. <?php get_header(); ?>
  9. <!-- Inicio do Corpo -->
  10. <!--Sidebar Esquerda-->
  11. <?php get_sidebar(); ?>
  12. <div id="colunaCentral" class="row">
  13. <section id="primary">
  14. <div id="content" role="main">
  15. <?php if (have_posts()) : ?>
  16. <header class="page-header">
  17. <h1 class="page-title">
  18. <?php if ( is_day() ) : ?>
  19. <?php printf( __( 'Dia %s', 'unbgama' ), '<span>' . get_the_date() . '</span>' ); ?>
  20. <?php elseif ( is_month() ) : ?>
  21. <?php printf( __( 'M&ecirc;s %s', 'unbgama' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'unbgama' ) ) . '</span>' ); ?>
  22. <?php elseif ( is_year() ) : ?>
  23. <?php printf( __( 'Ano de %s', 'unbgama' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'unbgama' ) ) . '</span>' ); ?>
  24. <?php else : ?>
  25. <?php _e( 'Blog Archives', 'unbgama' ); ?>
  26. <?php endif; ?>
  27. </h1>
  28. </header>
  29. <div id="resultadoBusca">
  30. <?php while (have_posts()) : the_post(); ?>
  31. <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  32. <span><?php the_time('l, j \d\e F \d\e Y'); ?></span>
  33. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
  34. <?php the_excerpt(); ?>
  35. </a>
  36. <?php endwhile; ?>
  37. </div>
  38. <?php paginacao(); //unbgama_content_nav('nav-below'); ?>
  39. <?php else : ?>
  40. <article id="post-0" class="post no-results not-found">
  41. <header class="entry-header">
  42. <h1 class="entry-title"><?php printf(__('0 resultado(s) para "%s" encontrado(s)!', 'unbgama'), '<span>' . get_search_query() . '</span>'); ?></h1>
  43. </header><!-- .entry-header -->
  44. <div class="entry-content">
  45. <p><?php _e('Desculpe, mas a pesquisa năo retornou nenhum resultado. Tente uma palavra-chave diferente.', 'unbgama'); ?></p>
  46. </div><!-- .entry-content -->
  47. </article><!-- #post-0 -->
  48. <?php endif; ?>
  49. </div><!-- #content -->
  50. </section><!-- #primary -->
  51. </div>
  52. <div id="colunaDireita" class="span3 omega">
  53. <?php get_sidebar(); ?>
  54. </div>
  55. <!-- Inicio do Rodape -->
  56. <?php get_footer(); ?>