initial
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying 404 pages (not found).
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
?>
|
||||
<main class="site-main" role="main">
|
||||
<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
|
||||
<header class="page-header">
|
||||
<h1 class="entry-title"><?php esc_html_e( 'The page can’t be found.', 'hello-elementor' ); ?></h1>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<div class="page-content">
|
||||
<p><?php esc_html_e( 'It looks like nothing was found at this location.', 'hello-elementor' ); ?></p>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying archive pages.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
?>
|
||||
<main class="site-main" role="main">
|
||||
|
||||
<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
|
||||
<header class="page-header">
|
||||
<?php
|
||||
the_archive_title( '<h1 class="entry-title">', '</h1>' );
|
||||
the_archive_description( '<p class="archive-description">', '</p>' );
|
||||
?>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<div class="page-content">
|
||||
<?php
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
$post_link = get_permalink();
|
||||
?>
|
||||
<article class="post">
|
||||
<?php
|
||||
printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), esc_html( get_the_title() ) );
|
||||
printf( '<a href="%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
|
||||
the_excerpt();
|
||||
?>
|
||||
</article>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php wp_link_pages(); ?>
|
||||
|
||||
<?php
|
||||
global $wp_query;
|
||||
if ( $wp_query->max_num_pages > 1 ) :
|
||||
?>
|
||||
<nav class="pagination" role="navigation">
|
||||
<?php /* Translators: HTML arrow */ ?>
|
||||
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">←</span>' ) ); ?></div>
|
||||
<?php /* Translators: HTML arrow */ ?>
|
||||
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">→</span>' ) ); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</main>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying footer.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
?>
|
||||
<footer id="site-footer" class="site-footer" role="contentinfo">
|
||||
<?php // footer. ?>
|
||||
</footer>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying header.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
$site_name = get_bloginfo( 'name' );
|
||||
$tagline = get_bloginfo( 'description', 'display' );
|
||||
?>
|
||||
<header class="site-header" role="banner">
|
||||
|
||||
<div class="site-branding">
|
||||
<?php
|
||||
if ( has_custom_logo() ) {
|
||||
the_custom_logo();
|
||||
} elseif ( $site_name ) {
|
||||
?>
|
||||
<h1 class="site-title">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'hello-elementor' ); ?>" rel="home">
|
||||
<?php echo esc_html( $site_name ); ?>
|
||||
</a>
|
||||
</h1>
|
||||
<p class="site-description">
|
||||
<?php
|
||||
if ( $tagline ) {
|
||||
echo esc_html( $tagline );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ( has_nav_menu( 'menu-1' ) ) : ?>
|
||||
<nav class="site-navigation" role="navigation">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying search results.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
?>
|
||||
<main class="site-main" role="main">
|
||||
<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
|
||||
<header class="page-header">
|
||||
<h1 class="entry-title">
|
||||
<?php esc_html_e( 'Search results for: ', 'hello-elementor' ); ?>
|
||||
<span><?php echo get_search_query(); ?></span>
|
||||
</h1>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<div class="page-content">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
printf( '<h2><a href="%s">%s</a></h2>', esc_url( get_permalink() ), esc_html( get_the_title() ) );
|
||||
the_post_thumbnail();
|
||||
the_excerpt();
|
||||
endwhile;
|
||||
?>
|
||||
<?php else : ?>
|
||||
<p><?php esc_html_e( 'It seems we can\'t find what you\'re looking for.', 'hello-elementor' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php wp_link_pages(); ?>
|
||||
|
||||
<?php
|
||||
global $wp_query;
|
||||
if ( $wp_query->max_num_pages > 1 ) :
|
||||
?>
|
||||
<nav class="pagination" role="navigation">
|
||||
<?php /* Translators: HTML arrow */ ?>
|
||||
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">←</span>' ) ); ?></div>
|
||||
<?php /* Translators: HTML arrow */ ?>
|
||||
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">→</span>' ) ); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</main>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying singular post-types: posts, pages and user-defined custom post types.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
?>
|
||||
|
||||
<main <?php post_class( 'site-main' ); ?> role="main">
|
||||
<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
|
||||
<header class="page-header">
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<div class="page-content">
|
||||
<?php the_content(); ?>
|
||||
<div class="post-tags">
|
||||
<?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'hello-elementor' ), null, '</span>' ); ?>
|
||||
</div>
|
||||
<?php wp_link_pages(); ?>
|
||||
</div>
|
||||
|
||||
<?php comments_template(); ?>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
endwhile;
|
||||
Reference in New Issue
Block a user