Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
noblogs-wp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
noblogs-wp
Commits
174e6991
Commit
174e6991
authored
May 22, 2020
by
agata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auto] theme: twentyfourteen 2.8
parent
e601b5e8
Changes
52
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
12514 additions
and
12374 deletions
+12514
-12374
wp-content/themes/twentyfourteen/404.php
wp-content/themes/twentyfourteen/404.php
+32
-32
wp-content/themes/twentyfourteen/archive.php
wp-content/themes/twentyfourteen/archive.php
+74
-75
wp-content/themes/twentyfourteen/author.php
wp-content/themes/twentyfourteen/author.php
+76
-75
wp-content/themes/twentyfourteen/category.php
wp-content/themes/twentyfourteen/category.php
+64
-59
wp-content/themes/twentyfourteen/comments.php
wp-content/themes/twentyfourteen/comments.php
+84
-84
wp-content/themes/twentyfourteen/content-aside.php
wp-content/themes/twentyfourteen/content-aside.php
+66
-66
wp-content/themes/twentyfourteen/content-audio.php
wp-content/themes/twentyfourteen/content-audio.php
+66
-66
wp-content/themes/twentyfourteen/content-featured-post.php
wp-content/themes/twentyfourteen/content-featured-post.php
+34
-34
wp-content/themes/twentyfourteen/content-gallery.php
wp-content/themes/twentyfourteen/content-gallery.php
+66
-66
wp-content/themes/twentyfourteen/content-image.php
wp-content/themes/twentyfourteen/content-image.php
+66
-66
wp-content/themes/twentyfourteen/content-link.php
wp-content/themes/twentyfourteen/content-link.php
+66
-66
wp-content/themes/twentyfourteen/content-none.php
wp-content/themes/twentyfourteen/content-none.php
+36
-31
wp-content/themes/twentyfourteen/content-page.php
wp-content/themes/twentyfourteen/content-page.php
+33
-33
wp-content/themes/twentyfourteen/content-quote.php
wp-content/themes/twentyfourteen/content-quote.php
+66
-66
wp-content/themes/twentyfourteen/content-video.php
wp-content/themes/twentyfourteen/content-video.php
+66
-66
wp-content/themes/twentyfourteen/content.php
wp-content/themes/twentyfourteen/content.php
+76
-76
wp-content/themes/twentyfourteen/css/blocks.css
wp-content/themes/twentyfourteen/css/blocks.css
+400
-400
wp-content/themes/twentyfourteen/css/editor-blocks.css
wp-content/themes/twentyfourteen/css/editor-blocks.css
+484
-484
wp-content/themes/twentyfourteen/css/editor-style.css
wp-content/themes/twentyfourteen/css/editor-style.css
+720
-720
wp-content/themes/twentyfourteen/css/ie.css
wp-content/themes/twentyfourteen/css/ie.css
+1334
-1334
wp-content/themes/twentyfourteen/featured-content.php
wp-content/themes/twentyfourteen/featured-content.php
+39
-39
wp-content/themes/twentyfourteen/footer.php
wp-content/themes/twentyfourteen/footer.php
+38
-35
wp-content/themes/twentyfourteen/functions.php
wp-content/themes/twentyfourteen/functions.php
+691
-684
wp-content/themes/twentyfourteen/genericons/genericons.css
wp-content/themes/twentyfourteen/genericons/genericons.css
+197
-197
wp-content/themes/twentyfourteen/header.php
wp-content/themes/twentyfourteen/header.php
+74
-74
wp-content/themes/twentyfourteen/image.php
wp-content/themes/twentyfourteen/image.php
+82
-82
wp-content/themes/twentyfourteen/images/pattern-dark.svg
wp-content/themes/twentyfourteen/images/pattern-dark.svg
+16
-16
wp-content/themes/twentyfourteen/images/pattern-light.svg
wp-content/themes/twentyfourteen/images/pattern-light.svg
+6
-6
wp-content/themes/twentyfourteen/inc/back-compat.php
wp-content/themes/twentyfourteen/inc/back-compat.php
+70
-67
wp-content/themes/twentyfourteen/inc/custom-header.php
wp-content/themes/twentyfourteen/inc/custom-header.php
+153
-153
wp-content/themes/twentyfourteen/inc/customizer.php
wp-content/themes/twentyfourteen/inc/customizer.php
+174
-170
wp-content/themes/twentyfourteen/inc/featured-content.php
wp-content/themes/twentyfourteen/inc/featured-content.php
+518
-517
wp-content/themes/twentyfourteen/inc/template-tags.php
wp-content/themes/twentyfourteen/inc/template-tags.php
+253
-252
wp-content/themes/twentyfourteen/inc/widgets.php
wp-content/themes/twentyfourteen/inc/widgets.php
+301
-300
wp-content/themes/twentyfourteen/index.php
wp-content/themes/twentyfourteen/index.php
+62
-62
wp-content/themes/twentyfourteen/js/customizer.js
wp-content/themes/twentyfourteen/js/customizer.js
+37
-37
wp-content/themes/twentyfourteen/js/functions.js
wp-content/themes/twentyfourteen/js/functions.js
+2
-1
wp-content/themes/twentyfourteen/js/html5.js
wp-content/themes/twentyfourteen/js/html5.js
+7
-7
wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js
...ent/themes/twentyfourteen/js/keyboard-image-navigation.js
+20
-20
wp-content/themes/twentyfourteen/page-templates/contributors.php
...ent/themes/twentyfourteen/page-templates/contributors.php
+53
-53
wp-content/themes/twentyfourteen/page-templates/full-width.php
...ntent/themes/twentyfourteen/page-templates/full-width.php
+43
-43
wp-content/themes/twentyfourteen/page.php
wp-content/themes/twentyfourteen/page.php
+49
-49
wp-content/themes/twentyfourteen/readme.txt
wp-content/themes/twentyfourteen/readme.txt
+8
-4
wp-content/themes/twentyfourteen/rtl.css
wp-content/themes/twentyfourteen/rtl.css
+876
-869
wp-content/themes/twentyfourteen/search.php
wp-content/themes/twentyfourteen/search.php
+55
-50
wp-content/themes/twentyfourteen/sidebar-content.php
wp-content/themes/twentyfourteen/sidebar-content.php
+16
-16
wp-content/themes/twentyfourteen/sidebar-footer.php
wp-content/themes/twentyfourteen/sidebar-footer.php
+19
-19
wp-content/themes/twentyfourteen/sidebar.php
wp-content/themes/twentyfourteen/sidebar.php
+29
-29
wp-content/themes/twentyfourteen/single.php
wp-content/themes/twentyfourteen/single.php
+41
-41
wp-content/themes/twentyfourteen/style.css
wp-content/themes/twentyfourteen/style.css
+4524
-4436
wp-content/themes/twentyfourteen/tag.php
wp-content/themes/twentyfourteen/tag.php
+66
-61
wp-content/themes/twentyfourteen/taxonomy-post_format.php
wp-content/themes/twentyfourteen/taxonomy-post_format.php
+86
-86
No files found.
wp-content/themes/twentyfourteen/404.php
View file @
174e6991
<?php
/**
* The template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<header
class=
"page-header"
>
<h1
class=
"page-title"
>
<?php
_e
(
'Not Found'
,
'twentyfourteen'
);
?>
</h1>
</header>
<div
class=
"page-content"
>
<p>
<?php
_e
(
'It looks like nothing was found at this location. Maybe try a search?'
,
'twentyfourteen'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .page-content -->
</div>
<!-- #content -->
</div>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
<?php
/**
* The template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<header
class=
"page-header"
>
<h1
class=
"page-title"
>
<?php
_e
(
'Not Found'
,
'twentyfourteen'
);
?>
</h1>
</header>
<div
class=
"page-content"
>
<p>
<?php
_e
(
'It looks like nothing was found at this location. Maybe try a search?'
,
'twentyfourteen'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .page-content -->
</div>
<!-- #content -->
</div>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
wp-content/themes/twentyfourteen/archive.php
View file @
174e6991
<?php
/**
* The template for displaying Archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one. For example, Twenty Fourteen
* already has tag.php for Tag archives, category.php for Category archives,
* and author.php for Author archives.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"page-header"
>
<h1
class=
"page-title"
>
<?php
if
(
is_day
()
)
:
printf
(
__
(
'Daily Archives: %s'
,
'twentyfourteen'
),
get_the_date
()
);
elseif
(
is_month
()
)
:
printf
(
__
(
'Monthly Archives: %s'
,
'twentyfourteen'
),
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentyfourteen'
)
)
);
elseif
(
is_year
()
)
:
printf
(
__
(
'Yearly Archives: %s'
,
'twentyfourteen'
),
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentyfourteen'
)
)
);
else
:
_e
(
'Archives'
,
'twentyfourteen'
);
endif
;
?>
</h1>
</header>
<!-- .page-header -->
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
<?php
/**
* The template for displaying Archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one. For example, Twenty Fourteen
* already has tag.php for Tag archives, category.php for Category archives,
* and author.php for Author archives.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"page-header"
>
<h1
class=
"page-title"
>
<?php
if
(
is_day
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Daily Archives: %s'
,
'twentyfourteen'
),
get_the_date
()
);
}
elseif
(
is_month
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Monthly Archives: %s'
,
'twentyfourteen'
),
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentyfourteen'
)
)
);
}
elseif
(
is_year
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Yearly Archives: %s'
,
'twentyfourteen'
),
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentyfourteen'
)
)
);
}
else
{
_e
(
'Archives'
,
'twentyfourteen'
);
}
?>
</h1>
</header>
<!-- .page-header -->
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want
* to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
wp-content/themes/twentyfourteen/author.php
View file @
174e6991
<?php
/**
* The template for displaying Author archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
/*
* Queue the first post, that way we know what author
* we're dealing with (if that is the case).
*
* We reset this later so we can run the loop properly
* with a call to rewind_posts().
*/
the_post
();
printf
(
__
(
'All posts by %s'
,
'twentyfourteen'
),
get_the_author
()
);
?>
</h1>
<?php
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
class=
"author-description"
>
<?php
the_author_meta
(
'description'
);
?>
</div>
<?php
endif
;
?>
</header>
<!-- .archive-header -->
<?php
/*
* Since we called the_post() above, we need to rewind
* the loop back to the beginning that way we can run
* the loop properly, in full.
*/
rewind_posts
();
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
<?php
/**
* The template for displaying Author archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
/*
* Queue the first post, that way we know what author
* we're dealing with (if that is the case).
*
* We reset this later so we can run the loop properly
* with a call to rewind_posts().
*/
the_post
();
/* translators: %s: Author display name. */
printf
(
__
(
'All posts by %s'
,
'twentyfourteen'
),
get_the_author
()
);
?>
</h1>
<?php
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
class=
"author-description"
>
<?php
the_author_meta
(
'description'
);
?>
</div>
<?php
endif
;
?>
</header>
<!-- .archive-header -->
<?php
/*
* Since we called the_post() above, we need
* to rewind the loop back to the beginning.
* That way we can run the loop properly, in full.
*/
rewind_posts
();
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want
* to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
wp-content/themes/twentyfourteen/category.php
View file @
174e6991
<?php
/**
* The template for displaying Category pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
printf
(
__
(
'Category Archives: %s'
,
'twentyfourteen'
),
single_cat_title
(
''
,
false
)
);
?>
</h1>
<?php
// Show an optional term description.
$term_description
=
term_description
();
if
(
!
empty
(
$term_description
)
)
:
printf
(
'<div class="taxonomy-description">%s</div>'
,
$term_description
);
endif
;
?>
</header>
<!-- .archive-header -->
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
<?php
/**
* The template for displaying Category pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"content-area"
>
<div
id=
"content"
class=
"site-content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
/* translators: %s: Category title. */
printf
(
__
(
'Category Archives: %s'
,
'twentyfourteen'
),
single_cat_title
(
''
,
false
)
);
?>
</h1>
<?php
// Show an optional term description.
$term_description
=
term_description
();
if
(
!
empty
(
$term_description
)
)
:
printf
(
'<div class="taxonomy-description">%s</div>'
,
$term_description
);
endif
;
?>
</header>
<!-- .archive-header -->
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the post format-specific template for the content. If you want
* to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part
(
'content'
,
get_post_format
()
);
endwhile
;
// Previous/next page navigation.
twentyfourteen_paging_nav
();
else
:
// If no content, include the "No posts found" template.
get_template_part
(
'content'
,
'none'
);
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
(
'content'
);
get_sidebar
();
get_footer
();
wp-content/themes/twentyfourteen/comments.php
View file @
174e6991
<?php
/**
* The template for displaying Comments
*
* The area of the page that contains comments and the comment form.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 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
if
(
have_comments
()
)
:
?>
<h2
class=
"comments-title"
>
<?php
$comments_number
=
get_comments_number
();
if
(
'1'
===
$comments_number
)
{
/* translators: %s:
post title */
printf
(
_x
(
'One thought on “%s”'
,
'comments title'
,
'twentyfourteen'
),
get_the_title
()
);
}
else
{
printf
(
/* translators: 1:
number of comments, 2: post title */
_nx
(
'%1$s thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
$comments_number
,
'comments title'
,
'twentyfourteen'
),
number_format_i18n
(
$comments_number
),
get_the_title
()
);
}
?>
</h2>
<?php
if
(
get_comment_pages_count
()
>
1
&&
get_option
(
'page_comments'
)
)
:
?>
<nav
id=
"comment-nav-above"
class=
"navigation comment-navigation"
role=
"navigation"
>
<h1
class=
"screen-reader-text"
>
<?php
_e
(
'Comment navigation'
,
'twentyfourteen'
);
?>
</h1>
<div
class=
"nav-previous"
>
<?php
previous_comments_link
(
__
(
'← Older Comments'
,
'twentyfourteen'
)
);
?>
</div>
<div
class=
"nav-next"
>
<?php
next_comments_link
(
__
(
'Newer Comments →'
,
'twentyfourteen'
)
);
?>
</div>
</nav>
<!-- #comment-nav-above -->
<?php
endif
;
// Check for comment navigation. ?>
<
ol
class
=
"comment-list"
>
<?
php
wp_list_comments
(
array
(
'style'
=>
'ol'
,
'short_ping'
=>
true
,
'avatar_size'
=>
34
,
)
);
?>
</ol>
<!-- .comment-list -->
<?php
if
(
get_comment_pages_count
()
>
1
&&
get_option
(
'page_comments'
)
)
:
?>
<nav
id=
"comment-nav-below"
class=
"navigation comment-navigation"
role=
"navigation"
>
<h1
class=
"screen-reader-text"
>
<?php
_e
(
'Comment navigation'
,
'twentyfourteen'
);
?>
</h1>
<div
class=
"nav-previous"
>
<?php
previous_comments_link
(
__
(
'← Older Comments'
,
'twentyfourteen'
)
);
?>
</div>
<div
class=
"nav-next"
>
<?php
next_comments_link
(
__
(
'Newer Comments →'
,
'twentyfourteen'
)
);
?>
</div>
</nav>
<!-- #comment-nav-below -->
<?php
endif
;
// Check for comment navigation. ?>
<?
php
if
(
!
comments_open
()
)
:
?>
<p
class=
"no-comments"
>
<?php
_e
(
'Comments are closed.'
,
'twentyfourteen'
);
?>
</p>
<?php
endif
;
?>
<?php
endif
;
// have_comments() ?>
<?
php
comment_form
();
?>
</div>
<!-- #comments -->
<?php
/**
* The template for displaying Comments
*
* The area of the page that contains comments and the comment form.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 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
if
(
have_comments
()
)
:
?>
<h2
class=
"comments-title"
>
<?php
$comments_number
=
get_comments_number
();
if
(
'1'
===
$comments_number
)
{
/* translators: %s:
Post title. */
printf
(
_x
(
'One thought on “%s”'
,
'comments title'
,
'twentyfourteen'
),
get_the_title
()
);
}
else
{
printf
(
/* translators: 1:
Number of comments, 2: Post title. */
_nx
(
'%1$s thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
$comments_number
,
'comments title'
,
'twentyfourteen'
),
number_format_i18n
(
$comments_number
),
get_the_title
()
);
}
?>
</h2>