Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit f604a2b

Browse files
author
cristian-ungureanu
committed
update line separators
1 parent d62170b commit f604a2b

18 files changed

+3303
-1669
lines changed

404.php

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
<?php
2-
/**
3-
* The template for displaying 404 pages (Not Found).
4-
*/
5-
get_header(); ?>
6-
7-
<div class="clear"></div>
8-
9-
</header> <!-- / END HOME SECTION -->
10-
11-
<?php zerif_after_header_trigger(); ?>
12-
13-
<div id="content" class="site-content">
14-
15-
<div class="container">
16-
17-
<div class="content-left-wrap col-md-9">
18-
19-
<div id="primary" class="content-area">
20-
21-
<main id="main" class="site-main">
22-
23-
<article>
24-
25-
<header class="entry-header">
26-
27-
<?php zerif_404_title_trigger(); ?>
28-
29-
</header><!-- .entry-header -->
30-
31-
<div class="entry-content">
32-
33-
<?php zerif_404_content_trigger(); ?>
34-
35-
</div><!-- .entry-content -->
36-
37-
</article><!-- #post-## -->
38-
39-
</main><!-- #main -->
40-
41-
</div><!-- #primary -->
42-
43-
</div>
44-
45-
<?php zerif_sidebar_trigger(); ?>
46-
47-
</div><!-- .container -->
48-
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (Not Found).
4+
*/
5+
get_header(); ?>
6+
7+
<div class="clear"></div>
8+
9+
</header> <!-- / END HOME SECTION -->
10+
11+
<?php zerif_after_header_trigger(); ?>
12+
13+
<div id="content" class="site-content">
14+
15+
<div class="container">
16+
17+
<div class="content-left-wrap col-md-9">
18+
19+
<div id="primary" class="content-area">
20+
21+
<main id="main" class="site-main">
22+
23+
<article>
24+
25+
<header class="entry-header">
26+
27+
<?php zerif_404_title_trigger(); ?>
28+
29+
</header><!-- .entry-header -->
30+
31+
<div class="entry-content">
32+
33+
<?php zerif_404_content_trigger(); ?>
34+
35+
</div><!-- .entry-content -->
36+
37+
</article><!-- #post-## -->
38+
39+
</main><!-- #main -->
40+
41+
</div><!-- #primary -->
42+
43+
</div>
44+
45+
<?php zerif_sidebar_trigger(); ?>
46+
47+
</div><!-- .container -->
48+
4949
<?php get_footer(); ?>

archive.php

+75-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,75 @@
1-
<?php/** * The template for displaying Archive pages. */get_header(); ?><div class="clear"></div></header> <!-- / END HOME SECTION --><?php zerif_after_header_trigger(); ?><div id="content" class="site-content"><div class="container"> <?php zerif_before_archive_content_trigger(); ?> <div class="content-left-wrap col-md-9"> <?php zerif_top_archive_content_trigger(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main"> <?php if ( have_posts() ) : ?> <header class="page-header"> <?php /* Title */ zerif_page_header_title_archive_trigger(); /* Optional term description */ zerif_page_term_description_archive_trigger(); ?> </header><!-- .page-header --> <?php 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( 'content', get_post_format() ); endwhile; echo get_the_posts_navigation( array( 'next_text' => sprintf( __( 'Newer posts %s','zerif-lite' ), '<span class="meta-nav">&rarr;</span>' ), 'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ) , '<span class="meta-nav">&larr;</span>' ) ) ); else: get_template_part( 'content', 'none' ); endif; ?> </main><!-- #main --> </div><!-- #primary --> <?php zerif_bottom_archive_content_trigger(); ?> </div><!-- .content-left-wrap --> <?php zerif_after_archive_content_trigger(); ?> <?php zerif_sidebar_trigger(); ?></div><!-- .container --><?php get_footer(); ?>
1+
<?php
2+
/**
3+
* The template for displaying Archive pages.
4+
*/
5+
get_header(); ?>
6+
7+
<div class="clear"></div>
8+
9+
</header> <!-- / END HOME SECTION -->
10+
<?php zerif_after_header_trigger(); ?>
11+
<div id="content" class="site-content">
12+
13+
<div class="container">
14+
15+
<?php zerif_before_archive_content_trigger(); ?>
16+
17+
<div class="content-left-wrap col-md-9">
18+
19+
<?php zerif_top_archive_content_trigger(); ?>
20+
21+
<div id="primary" class="content-area">
22+
23+
<main id="main" class="site-main">
24+
25+
<?php if ( have_posts() ) : ?>
26+
27+
<header class="page-header">
28+
29+
<?php
30+
/* Title */
31+
zerif_page_header_title_archive_trigger();
32+
33+
/* Optional term description */
34+
zerif_page_term_description_archive_trigger();
35+
?>
36+
37+
</header><!-- .page-header -->
38+
39+
<?php while ( have_posts() ) : the_post();
40+
41+
/* Include the Post-Format-specific template for the content.
42+
43+
* If you want to override this in a child theme, then include a file
44+
45+
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
46+
47+
*/
48+
49+
get_template_part( 'content', get_post_format() );
50+
51+
endwhile;
52+
53+
echo get_the_posts_navigation( array( 'next_text' => sprintf( __( 'Newer posts %s','zerif-lite' ), '<span class="meta-nav">&rarr;</span>' ), 'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ) , '<span class="meta-nav">&larr;</span>' ) ) );
54+
55+
else:
56+
57+
get_template_part( 'content', 'none' );
58+
59+
endif; ?>
60+
61+
</main><!-- #main -->
62+
63+
</div><!-- #primary -->
64+
65+
<?php zerif_bottom_archive_content_trigger(); ?>
66+
67+
</div><!-- .content-left-wrap -->
68+
69+
<?php zerif_after_archive_content_trigger(); ?>
70+
71+
<?php zerif_sidebar_trigger(); ?>
72+
73+
</div><!-- .container -->
74+
75+
<?php get_footer(); ?>

comments.php

+97-97
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
1-
<?php
2-
/**
3-
* The template for displaying Comments.
4-
* The area of the page that contains both current comments
5-
* and the comment form.
6-
* If the current post is protected by a password and
7-
* the visitor has not yet entered the password we will
8-
* return early without loading the comments.
9-
*/
10-
if ( post_password_required() ) {
11-
return;
12-
}
13-
?>
14-
15-
<div id="comments" class="comments-area">
16-
17-
<?php if ( have_comments() ) : ?>
18-
19-
<h2 class="comments-title">
20-
21-
<?php
22-
$comments_number = get_comments_number();
23-
if ( 1 === $comments_number ) {
24-
/* translators: %s: post title */
25-
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'zerif-lite' ), get_the_title() );
26-
} else {
27-
printf(
28-
/* translators: 1: number of comments, 2: post title */
29-
_nx(
30-
'%1$s thought on &ldquo;%2$s&rdquo;',
31-
'%1$s thoughts on &ldquo;%2$s&rdquo;',
32-
$comments_number,
33-
'comments title',
34-
'zerif-lite'
35-
),
36-
number_format_i18n( $comments_number ),
37-
'<span>' . get_the_title() . '</span>'
38-
);
39-
}
40-
?>
41-
42-
</h2>
43-
44-
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
45-
46-
<nav id="comment-nav-above" class="comment-navigation">
47-
48-
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'zerif-lite' ); ?></h2>
49-
50-
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'zerif-lite' ) ); ?></div>
51-
52-
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'zerif-lite' ) ); ?></div>
53-
54-
</nav><!-- #comment-nav-above -->
55-
56-
<?php endif; // check for comment navigation ?>
57-
58-
<ul class="comment-list">
59-
60-
<?php
61-
62-
wp_list_comments( array(
63-
'style' => 'ul',
64-
'short_ping' => true,
65-
) );
66-
67-
?>
68-
69-
</ul><!-- .comment-list -->
70-
71-
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
72-
73-
<nav id="comment-nav-below" class="comment-navigation">
74-
75-
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'zerif-lite' ); ?></h2>
76-
77-
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'zerif-lite' ) ); ?></div>
78-
79-
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'zerif-lite' ) ); ?></div>
80-
81-
</nav><!-- #comment-nav-below -->
82-
83-
<?php endif; // check for comment navigation ?>
84-
85-
<?php endif; // have_comments() ?>
86-
87-
<?php
88-
89-
// If comments are closed and there are comments, let's leave a little note, shall we?
90-
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
91-
?>
92-
<p class="no-comments"><?php _e( 'Comments are closed.', 'zerif-lite' ); ?></p>
93-
94-
<?php endif; ?>
95-
96-
<?php comment_form(array('comment_notes_after' => '')); ?>
97-
1+
<?php
2+
/**
3+
* The template for displaying Comments.
4+
* The area of the page that contains both current comments
5+
* and the comment form.
6+
* If the current post is protected by a password and
7+
* the visitor has not yet entered the password we will
8+
* return early without loading the comments.
9+
*/
10+
if ( post_password_required() ) {
11+
return;
12+
}
13+
?>
14+
15+
<div id="comments" class="comments-area">
16+
17+
<?php if ( have_comments() ) : ?>
18+
19+
<h2 class="comments-title">
20+
21+
<?php
22+
$comments_number = get_comments_number();
23+
if ( 1 === $comments_number ) {
24+
/* translators: %s: post title */
25+
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'zerif-lite' ), get_the_title() );
26+
} else {
27+
printf(
28+
/* translators: 1: number of comments, 2: post title */
29+
_nx(
30+
'%1$s thought on &ldquo;%2$s&rdquo;',
31+
'%1$s thoughts on &ldquo;%2$s&rdquo;',
32+
$comments_number,
33+
'comments title',
34+
'zerif-lite'
35+
),
36+
number_format_i18n( $comments_number ),
37+
'<span>' . get_the_title() . '</span>'
38+
);
39+
}
40+
?>
41+
42+
</h2>
43+
44+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
45+
46+
<nav id="comment-nav-above" class="comment-navigation">
47+
48+
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'zerif-lite' ); ?></h2>
49+
50+
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'zerif-lite' ) ); ?></div>
51+
52+
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'zerif-lite' ) ); ?></div>
53+
54+
</nav><!-- #comment-nav-above -->
55+
56+
<?php endif; // check for comment navigation ?>
57+
58+
<ul class="comment-list">
59+
60+
<?php
61+
62+
wp_list_comments( array(
63+
'style' => 'ul',
64+
'short_ping' => true,
65+
) );
66+
67+
?>
68+
69+
</ul><!-- .comment-list -->
70+
71+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
72+
73+
<nav id="comment-nav-below" class="comment-navigation">
74+
75+
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'zerif-lite' ); ?></h2>
76+
77+
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'zerif-lite' ) ); ?></div>
78+
79+
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'zerif-lite' ) ); ?></div>
80+
81+
</nav><!-- #comment-nav-below -->
82+
83+
<?php endif; // check for comment navigation ?>
84+
85+
<?php endif; // have_comments() ?>
86+
87+
<?php
88+
89+
// If comments are closed and there are comments, let's leave a little note, shall we?
90+
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
91+
?>
92+
<p class="no-comments"><?php _e( 'Comments are closed.', 'zerif-lite' ); ?></p>
93+
94+
<?php endif; ?>
95+
96+
<?php comment_form(array('comment_notes_after' => '')); ?>
97+
9898
</div><!-- #comments -->

0 commit comments

Comments
 (0)