first commit: gustavoo-portfolio theme + gustavoo-portfolio-core plugin
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Empty result state.
|
||||
*
|
||||
* @package Gustavo_Portfolio
|
||||
*/
|
||||
?>
|
||||
|
||||
<section class="no-results not-found" aria-labelledby="no-results-title">
|
||||
<h2 id="no-results-title" class="no-results__title"><?php esc_html_e( 'Nada encontrado', 'gustavoo-portfolio' ); ?></h2>
|
||||
<?php if ( is_search() ) : ?>
|
||||
<p><?php esc_html_e( 'Não encontramos conteúdo com esses termos. Tente palavras diferentes.', 'gustavoo-portfolio' ); ?></p>
|
||||
<?php get_search_form(); ?>
|
||||
<?php else : ?>
|
||||
<p><?php esc_html_e( 'Ainda não há publicações aqui.', 'gustavoo-portfolio' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Page content.
|
||||
*
|
||||
* @package Gustavo_Portfolio
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'page-article' ); ?>>
|
||||
<header class="page-article__header">
|
||||
<p class="eyebrow"><?php esc_html_e( 'Página', 'gustavoo-portfolio' ); ?></p>
|
||||
<?php the_title( '<h1 class="page-article__title">', '</h1>' ); ?>
|
||||
</header>
|
||||
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<figure class="page-article__media">
|
||||
<?php the_post_thumbnail( 'full', array( 'class' => 'page-article__image' ) ); ?>
|
||||
</figure>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="entry-content prose">
|
||||
<?php the_content(); ?>
|
||||
<?php
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Páginas deste conteúdo', 'gustavoo-portfolio' ) . '"><span>' . esc_html__( 'Páginas:', 'gustavoo-portfolio' ) . '</span>',
|
||||
'after' => '</nav>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user