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

Commit 6f6c9d3

Browse files
Started to fix grunt
1 parent b3bbe04 commit 6f6c9d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+6641
-4668
lines changed

404.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
/**
33
* The template for displaying 404 pages (Not Found).
4+
*
5+
* @package zerif-lite
46
*/
57
get_header(); ?>
68

@@ -46,4 +48,4 @@
4648

4749
</div><!-- .container -->
4850

49-
<?php get_footer(); ?>
51+
<?php get_footer(); ?>

archive-download.php

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
/**
33
* The template for displaying Archive pages.
4+
*
5+
* @package zerif-lite
46
*/
57
get_header(); ?>
68

@@ -36,9 +38,12 @@
3638

3739
</header><!-- .page-header -->
3840

39-
<?php while ( have_posts() ) : the_post();
41+
<?php
42+
while ( have_posts() ) :
43+
the_post();
4044

41-
/* Include the Post-Format-specific template for the content.
45+
/*
46+
Include the Post-Format-specific template for the content.
4247
4348
* If you want to override this in a child theme, then include a file
4449
@@ -50,13 +55,21 @@
5055

5156
endwhile;
5257

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>' ) ) );
58+
echo get_the_posts_navigation(
59+
array(
60+
/* translators: Newer post arrow */
61+
'next_text' => sprintf( __( 'Newer posts %s','zerif-lite' ), '<span class="meta-nav">&rarr;</span>' ),
62+
/* translators: Older post arrow */
63+
'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ) , '<span class="meta-nav">&larr;</span>' ),
64+
)
65+
);
5466

55-
else:
67+
else :
5668

5769
get_template_part( 'content', 'none' );
5870

59-
endif; ?>
71+
endif;
72+
?>
6073

6174
</main><!-- #main -->
6275

@@ -70,4 +83,4 @@
7083

7184
</div><!-- .container -->
7285

73-
<?php get_footer(); ?>
86+
<?php get_footer(); ?>

archive.php

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
/**
33
* The template for displaying Archive pages.
4+
*
5+
* @package zerif-lite
46
*/
57
get_header(); ?>
68

@@ -36,9 +38,12 @@
3638

3739
</header><!-- .page-header -->
3840

39-
<?php while ( have_posts() ) : the_post();
41+
<?php
42+
while ( have_posts() ) :
43+
the_post();
4044

41-
/* Include the Post-Format-specific template for the content.
45+
/*
46+
Include the Post-Format-specific template for the content.
4247
4348
* If you want to override this in a child theme, then include a file
4449
@@ -50,13 +55,21 @@
5055

5156
endwhile;
5257

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>' ) ) );
58+
echo get_the_posts_navigation(
59+
array(
60+
/* translators: Newer posts arrow */
61+
'next_text' => sprintf( __( 'Newer posts %s','zerif-lite' ), '<span class="meta-nav">&rarr;</span>' ),
62+
/* translators: Older posts arrow */
63+
'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ) , '<span class="meta-nav">&larr;</span>' ),
64+
)
65+
);
5466

55-
else:
67+
else :
5668

5769
get_template_part( 'content', 'none' );
5870

59-
endif; ?>
71+
endif;
72+
?>
6073

6174
</main><!-- #main -->
6275

@@ -72,4 +85,4 @@
7285

7386
</div><!-- .container -->
7487

75-
<?php get_footer(); ?>
88+
<?php get_footer(); ?>

comments.php

+44-34
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* If the current post is protected by a password and
77
* the visitor has not yet entered the password we will
88
* return early without loading the comments.
9+
*
10+
* @package zerif-lite
911
*/
1012
if ( post_password_required() ) {
1113
return;
@@ -14,34 +16,34 @@
1416

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

17-
<?php if ( have_comments() ) : ?>
19+
<?php if ( have_comments() ) { ?>
1820

1921
<h2 class="comments-title">
2022

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-
?>
23+
<?php
24+
$comments_number = get_comments_number();
25+
if ( 1 === $comments_number ) {
26+
/* translators: %s: post title */
27+
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'zerif-lite' ), get_the_title() );
28+
} else {
29+
printf(
30+
/* translators: 1: number of comments, 2: post title */
31+
_nx(
32+
'%1$s thought on &ldquo;%2$s&rdquo;',
33+
'%1$s thoughts on &ldquo;%2$s&rdquo;',
34+
$comments_number,
35+
'comments title',
36+
'zerif-lite'
37+
),
38+
number_format_i18n( $comments_number ),
39+
'<span>' . get_the_title() . '</span>'
40+
);
41+
}
42+
?>
4143

4244
</h2>
4345

44-
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
46+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { ?>
4547

4648
<nav id="comment-nav-above" class="comment-navigation">
4749

@@ -53,22 +55,24 @@
5355

5456
</nav><!-- #comment-nav-above -->
5557

56-
<?php endif; // check for comment navigation ?>
58+
<?php } ?>
5759

5860
<ul class="comment-list">
5961

6062
<?php
6163

62-
wp_list_comments( array(
63-
'style' => 'ul',
64-
'short_ping' => true,
65-
) );
64+
wp_list_comments(
65+
array(
66+
'style' => 'ul',
67+
'short_ping' => true,
68+
)
69+
);
6670

6771
?>
6872

6973
</ul><!-- .comment-list -->
7074

71-
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
75+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { ?>
7276

7377
<nav id="comment-nav-below" class="comment-navigation">
7478

@@ -80,19 +84,25 @@
8084

8185
</nav><!-- #comment-nav-below -->
8286

83-
<?php endif; // check for comment navigation ?>
87+
<?php } ?>
8488

85-
<?php endif; // have_comments() ?>
89+
<?php } ?>
8690

8791
<?php
8892

8993
// 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' ) ) :
94+
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
9195
?>
92-
<p class="no-comments"><?php _e( 'Comments are closed.', 'zerif-lite' ); ?></p>
96+
<p class="no-comments"><?php _e( 'Comments are closed.', 'zerif-lite' ); ?></p>
9397

9498
<?php endif; ?>
9599

96-
<?php comment_form(array('comment_notes_after' => '')); ?>
100+
<?php
101+
comment_form(
102+
array(
103+
'comment_notes_after' => '',
104+
)
105+
);
106+
?>
97107

98-
</div><!-- #comments -->
108+
</div><!-- #comments -->

content-archive-download.php

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22
/**
3+
* Content for Downloads archive
4+
*
35
* @package zerif
46
*/
57
?>
@@ -9,10 +11,10 @@
911
<div class="edd_download_image">
1012
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
1113

12-
<?php
13-
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
14+
<?php
15+
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
1416
the_post_thumbnail();
15-
}
17+
}
1618
?>
1719
</a>
1820
</div>
@@ -21,6 +23,12 @@
2123
<div itemprop="description" class="edd_download_excerpt">
2224
<?php the_excerpt(); ?>
2325
</div><!-- .entry-content -->
24-
<?php echo edd_get_purchase_link( array( 'download_id' => get_the_ID() ) ); ?>
26+
<?php
27+
echo edd_get_purchase_link(
28+
array(
29+
'download_id' => get_the_ID(),
30+
)
31+
);
32+
?>
2533
</div>
26-
</div><!-- #post-## -->
34+
</div><!-- #post-## -->

0 commit comments

Comments
 (0)