Browse Source

Uploading files #1

tags/v1.0
sandiamesa_fqqh1o 8 months ago
parent
commit
e75995c960
5 changed files with 256 additions and 0 deletions
  1. +34
    -0
      404.php
  2. +66
    -0
      archive.php
  3. +88
    -0
      comments.php
  4. +28
    -0
      footer-fullscreen.php
  5. +40
    -0
      footer.php

+ 34
- 0
404.php View File

@@ -0,0 +1,34 @@
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

get_header(); ?>

<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'simplenineteen' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'simplenineteen' ); ?></p>

<?php get_search_form(); ?>

</div><!-- .page-content -->
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .wrap -->

<?php
get_footer();

+ 66
- 0
archive.php View File

@@ -0,0 +1,66 @@
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

get_header(); ?>

<div class="wrap">

<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php endif; ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php
if ( have_posts() ) :
?>
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();

/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/post/content', get_post_format() );

endwhile;

the_posts_pagination(
array(
'prev_text' => simplenineteen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'simplenineteen' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'simplenineteen' ) . '</span>' . simplenineteen_get_svg( array( 'icon' => 'arrow-right' ) ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'simplenineteen' ) . ' </span>',
)
);

else :

get_template_part( 'template-parts/post/content', 'none' );

endif;
?>

</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->

<?php
get_footer();

+ 88
- 0
comments.php View File

@@ -0,0 +1,88 @@
<?php
/**
* The template for displaying comments
*
* This is the template that displays the area of the page that contains both the current comments
* and the comment form.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>

<div id="comments" class="comments-area">

<?php
// You can start editing here -- including this comment!
if ( have_comments() ) :
?>
<h2 class="comments-title">
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
/* translators: %s: post title */
printf( _x( 'One Reply to &ldquo;%s&rdquo;', 'comments title', 'simplenineteen' ), get_the_title() );
} else {
printf(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s Reply to &ldquo;%2$s&rdquo;',
'%1$s Replies to &ldquo;%2$s&rdquo;',
$comments_number,
'comments title',
'simplenineteen'
),
number_format_i18n( $comments_number ),
get_the_title()
);
}
?>
</h2>

<ol class="comment-list">
<?php
wp_list_comments(
array(
'avatar_size' => 100,
'style' => 'ol',
'short_ping' => true,
'reply_text' => simplenineteen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'simplenineteen' ),
)
);
?>
</ol>

<?php
the_comments_pagination(
array(
'prev_text' => simplenineteen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'simplenineteen' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'simplenineteen' ) . '</span>' . simplenineteen_get_svg( array( 'icon' => 'arrow-right' ) ),
)
);

endif; // Check for have_comments().

// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>

<p class="no-comments"><?php _e( 'Comments are closed.', 'simplenineteen' ); ?></p>
<?php
endif;

comment_form();
?>

</div><!-- #comments -->

+ 28
- 0
footer-fullscreen.php View File

@@ -0,0 +1,28 @@
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.2
*/
?>
</div><!-- #content -->
</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php
if(is_single()){
get_template_part( 'template-parts/footer/modal', 'social' );
}
?>
<?php wp_footer(); ?>
</body>
</html>

+ 40
- 0
footer.php View File

@@ -0,0 +1,40 @@
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.2
*/

?>

</div><!-- #content -->

<footer id="colophon" class="site-footer" role="contentinfo">
<div class="wrap">
<?php
get_template_part( 'template-parts/footer/footer', 'widgets' );
get_template_part( 'template-parts/footer/site', 'info' );
?>
</div><!-- .wrap -->
</footer><!-- #colophon -->
</div><!-- .site-content-contain -->
</div><!-- #page -->

<?php
if(is_single()){
get_template_part( 'template-parts/footer/modal', 'social' );
}
?>

<?php wp_footer(); ?>

</body>
</html>

Loading…
Cancel
Save