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
7aa638da
Commit
7aa638da
authored
May 22, 2020
by
agata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auto] theme: twentytwelve 3.1
parent
7f9351d6
Changes
38
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
5903 additions
and
5808 deletions
+5903
-5808
wp-content/themes/twentytwelve/404.php
wp-content/themes/twentytwelve/404.php
+29
-29
wp-content/themes/twentytwelve/archive.php
wp-content/themes/twentytwelve/archive.php
+70
-66
wp-content/themes/twentytwelve/author.php
wp-content/themes/twentytwelve/author.php
+100
-88
wp-content/themes/twentytwelve/category.php
wp-content/themes/twentytwelve/category.php
+58
-52
wp-content/themes/twentytwelve/comments.php
wp-content/themes/twentytwelve/comments.php
+82
-81
wp-content/themes/twentytwelve/content-aside.php
wp-content/themes/twentytwelve/content-aside.php
+31
-28
wp-content/themes/twentytwelve/content-image.php
wp-content/themes/twentytwelve/content-image.php
+28
-28
wp-content/themes/twentytwelve/content-link.php
wp-content/themes/twentytwelve/content-link.php
+29
-26
wp-content/themes/twentytwelve/content-none.php
wp-content/themes/twentytwelve/content-none.php
+20
-20
wp-content/themes/twentytwelve/content-page.php
wp-content/themes/twentytwelve/content-page.php
+33
-33
wp-content/themes/twentytwelve/content-quote.php
wp-content/themes/twentytwelve/content-quote.php
+28
-25
wp-content/themes/twentytwelve/content-status.php
wp-content/themes/twentytwelve/content-status.php
+45
-42
wp-content/themes/twentytwelve/content.php
wp-content/themes/twentytwelve/content.php
+93
-82
wp-content/themes/twentytwelve/css/blocks.css
wp-content/themes/twentytwelve/css/blocks.css
+443
-443
wp-content/themes/twentytwelve/css/editor-blocks.css
wp-content/themes/twentytwelve/css/editor-blocks.css
+457
-457
wp-content/themes/twentytwelve/css/ie.css
wp-content/themes/twentytwelve/css/ie.css
+272
-272
wp-content/themes/twentytwelve/editor-style-rtl.css
wp-content/themes/twentytwelve/editor-style-rtl.css
+27
-27
wp-content/themes/twentytwelve/editor-style.css
wp-content/themes/twentytwelve/editor-style.css
+342
-342
wp-content/themes/twentytwelve/footer.php
wp-content/themes/twentytwelve/footer.php
+33
-30
wp-content/themes/twentytwelve/functions.php
wp-content/themes/twentytwelve/functions.php
+721
-705
wp-content/themes/twentytwelve/header.php
wp-content/themes/twentytwelve/header.php
+61
-61
wp-content/themes/twentytwelve/image.php
wp-content/themes/twentytwelve/image.php
+142
-141
wp-content/themes/twentytwelve/inc/custom-header.php
wp-content/themes/twentytwelve/inc/custom-header.php
+168
-168
wp-content/themes/twentytwelve/index.php
wp-content/themes/twentytwelve/index.php
+76
-71
wp-content/themes/twentytwelve/js/html5.js
wp-content/themes/twentytwelve/js/html5.js
+7
-7
wp-content/themes/twentytwelve/js/navigation.js
wp-content/themes/twentytwelve/js/navigation.js
+55
-55
wp-content/themes/twentytwelve/js/theme-customizer.js
wp-content/themes/twentytwelve/js/theme-customizer.js
+65
-65
wp-content/themes/twentytwelve/page-templates/front-page.php
wp-content/themes/twentytwelve/page-templates/front-page.php
+38
-38
wp-content/themes/twentytwelve/page-templates/full-width.php
wp-content/themes/twentytwelve/page-templates/full-width.php
+33
-33
wp-content/themes/twentytwelve/page.php
wp-content/themes/twentytwelve/page.php
+32
-32
wp-content/themes/twentytwelve/readme.txt
wp-content/themes/twentytwelve/readme.txt
+8
-5
wp-content/themes/twentytwelve/rtl.css
wp-content/themes/twentytwelve/rtl.css
+240
-239
wp-content/themes/twentytwelve/search.php
wp-content/themes/twentytwelve/search.php
+57
-52
wp-content/themes/twentytwelve/sidebar-front.php
wp-content/themes/twentytwelve/sidebar-front.php
+36
-36
wp-content/themes/twentytwelve/sidebar.php
wp-content/themes/twentytwelve/sidebar.php
+17
-17
wp-content/themes/twentytwelve/single.php
wp-content/themes/twentytwelve/single.php
+36
-36
wp-content/themes/twentytwelve/style.css
wp-content/themes/twentytwelve/style.css
+1833
-1823
wp-content/themes/twentytwelve/tag.php
wp-content/themes/twentytwelve/tag.php
+58
-53
No files found.
wp-content/themes/twentytwelve/404.php
View file @
7aa638da
<?php
/**
* The template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<article
id=
"post-0"
class=
"post error404 no-results not-found"
>
<header
class=
"entry-header"
>
<h1
class=
"entry-title"
>
<?php
_e
(
'This is somewhat embarrassing, isn’t it?'
,
'twentytwelve'
);
?>
</h1>
</header>
<div
class=
"entry-content"
>
<p>
<?php
_e
(
'It seems we can’t find what you’re looking for. Perhaps searching can help.'
,
'twentytwelve'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .entry-content -->
</article>
<!-- #post-0 -->
</div>
<!-- #content -->
</div>
<!-- #primary -->
<?php
get_footer
();
?>
<?php
/**
* The template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<article
id=
"post-0"
class=
"post error404 no-results not-found"
>
<header
class=
"entry-header"
>
<h1
class=
"entry-title"
>
<?php
_e
(
'This is somewhat embarrassing, isn’t it?'
,
'twentytwelve'
);
?>
</h1>
</header>
<div
class=
"entry-content"
>
<p>
<?php
_e
(
'It seems we can’t find what you’re looking for. Perhaps searching can help.'
,
'twentytwelve'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .entry-content -->
</article>
<!-- #post-0 -->
</div>
<!-- #content -->
</div>
<!-- #primary -->
<?php
get_footer
();
?>
wp-content/themes/twentytwelve/archive.php
View file @
7aa638da
<?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 Twelve 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_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
if
(
is_day
()
)
:
printf
(
__
(
'Daily Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
()
.
'</span>'
);
elseif
(
is_month
()
)
:
printf
(
__
(
'Monthly Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentytwelve'
)
)
.
'</span>'
);
elseif
(
is_year
()
)
:
printf
(
__
(
'Yearly Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentytwelve'
)
)
.
'</span>'
);
else
:
_e
(
'Archives'
,
'twentytwelve'
);
endif
;
?>
</h1>
</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
* 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
;
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
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 Twelve 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_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
if
(
is_day
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Daily Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
()
.
'</span>'
);
}
elseif
(
is_month
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Monthly Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentytwelve'
)
)
.
'</span>'
);
}
elseif
(
is_year
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Yearly Archives: %s'
,
'twentytwelve'
),
'<span>'
.
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentytwelve'
)
)
.
'</span>'
);
}
else
{
_e
(
'Archives'
,
'twentytwelve'
);
}
?>
</h1>
</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
;
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
wp-content/themes/twentytwelve/author.php
View file @
7aa638da
<?php
/**
* The template for displaying Author Archive pages
*
* Used to display archive-type pages for posts by an author.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<?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
();
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
printf
(
__
(
'Author Archives: %s'
,
'twentytwelve'
),
'<span class="vcard"><a class="url fn n" href="'
.
esc_url
(
get_author_posts_url
(
get_the_author_meta
(
'ID'
)
)
)
.
'" title="'
.
esc_attr
(
get_the_author
()
)
.
'" rel="me">'
.
get_the_author
()
.
'</a></span>'
);
?>
</h1>
</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
();
?>
<?php
twentytwelve_content_nav
(
'nav-above'
);
?>
<?php
// If a user has filled out their description, show a bio on their entries.
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
class=
"author-info"
>
<div
class=
"author-avatar"
>
<?php
/**
* Filter the author bio avatar size.
*
* @since Twenty Twelve 1.0
*
* @param int $size The height and width of the avatar in pixels.
*/
$author_bio_avatar_size
=
apply_filters
(
'twentytwelve_author_bio_avatar_size'
,
68
);
echo
get_avatar
(
get_the_author_meta
(
'user_email'
),
$author_bio_avatar_size
);
?>
</div>
<!-- .author-avatar -->
<div
class=
"author-description"
>
<h2>
<?php
printf
(
__
(
'About %s'
,
'twentytwelve'
),
get_the_author
()
);
?>
</h2>
<p>
<?php
the_author_meta
(
'description'
);
?>
</p>
</div>
<!-- .author-description -->
</div>
<!-- .author-info -->
<?php
endif
;
?>
<?php
/* Start the Loop */
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
get_template_part
(
'content'
,
get_post_format
()
);
?>
<?php
endwhile
;
?>
<?php
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
<?php
/**
* The template for displaying Author Archive pages
*
* Used to display archive-type pages for posts by an author.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<?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
();
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
/* translators: Author display name. */
printf
(
__
(
'Author Archives: %s'
,
'twentytwelve'
),
'<span class="vcard"><a class="url fn n" href="'
.
esc_url
(
get_author_posts_url
(
get_the_author_meta
(
'ID'
)
)
)
.
'" title="'
.
esc_attr
(
get_the_author
()
)
.
'" rel="me">'
.
get_the_author
()
.
'</a></span>'
);
?>
</h1>
</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
();
?>
<?php
twentytwelve_content_nav
(
'nav-above'
);
?>
<?php
// If a user has filled out their description, show a bio on their entries.
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
class=
"author-info"
>
<div
class=
"author-avatar"
>
<?php
/**
* Filter the author bio avatar size.
*
* @since Twenty Twelve 1.0
*
* @param int $size The height and width of the avatar in pixels.
*/
$author_bio_avatar_size
=
apply_filters
(
'twentytwelve_author_bio_avatar_size'
,
68
);
echo
get_avatar
(
get_the_author_meta
(
'user_email'
),
$author_bio_avatar_size
);
?>
</div>
<!-- .author-avatar -->
<div
class=
"author-description"
>
<h2>
<?php
/* translators: Author display name. */
printf
(
__
(
'About %s'
,
'twentytwelve'
),
get_the_author
()
);
?>
</h2>
<p>
<?php
the_author_meta
(
'description'
);
?>
</p>
</div>
<!-- .author-description -->
</div>
<!-- .author-info -->
<?php
endif
;
?>
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
?>
<?php
get_template_part
(
'content'
,
get_post_format
()
);
?>
<?php
endwhile
;
?>
<?php
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
wp-content/themes/twentytwelve/category.php
View file @
7aa638da
<?php
/**
* The template for displaying Category pages
*
* Used to display archive-type pages for posts in a category.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
printf
(
__
(
'Category Archives: %s'
,
'twentytwelve'
),
'<span>'
.
single_cat_title
(
''
,
false
)
.
'</span>'
);
?>
</h1>
<?php
if
(
category_description
()
)
:
// Show an optional category description ?>
<
div
class
=
"archive-meta"
><?
php
echo
category_description
();
?>
</div>
<?php
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
* 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
;
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
<?php
/**
* The template for displaying Category pages
*
* Used to display archive-type pages for posts in a category.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header
();
?>
<section
id=
"primary"
class=
"site-content"
>
<div
id=
"content"
role=
"main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
/* translators: %s: Category title. */
printf
(
__
(
'Category Archives: %s'
,
'twentytwelve'
),
'<span>'
.
single_cat_title
(
''
,
false
)
.
'</span>'
);
?>
</h1>
<?php
if
(
category_description
()
)
:
// Show an optional category description. ?>
<
div
class
=
"archive-meta"
><?
php
echo
category_description
();
?>
</div>
<?php
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
;
twentytwelve_content_nav
(
'nav-below'
);
?>
<?php
else
:
?>
<?php
get_template_part
(
'content'
,
'none'
);
?>
<?php
endif
;
?>
</div>
<!-- #content -->
</section>
<!-- #primary -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
wp-content/themes/twentytwelve/comments.php
View file @
7aa638da
<?php
/**
* The template for displaying Comments
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentytwelve_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 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! ?>
<?
php
if
(
have_comments
()
)
:
?>
<h2
class=
"comments-title"
>
<?php
if
(
1
===
get_comments_number
()
)
{
printf
(
/* translators: %s: The post title. */
__
(
'One thought on “%s”'
,
'twentytwelve'
),
'<span>'
.
get_the_title
()
.
'</span>'
);
}
else
{
printf
(
/* translators: %1$s: The number of comments. %2$s: The post title. */
_n
(
'%1$s thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
get_comments_number
(),
'twentytwelve'
),
number_format_i18n
(
get_comments_number
()
),
'<span>'
.
get_the_title
()
.
'</span>'
);
}
?>
</h2>
<ol
class=
"commentlist"
>
<?php
wp_list_comments
(
array
(
'callback'
=>
'twentytwelve_comment'
,
'style'
=>
'ol'
,
)
);
?>
</ol>
<!-- .commentlist -->
<?php
if
(
get_comment_pages_count
()
>
1
&&
get_option
(
'page_comments'
)
)
:
// are there comments to navigate through ?>
<
nav
id
=
"comment-nav-below"
class
=
"navigation"
role
=
"navigation"
>
<
h1
class
=
"assistive-text section-heading"
><?
php
_e
(
'Comment navigation'
,
'twentytwelve'
);
?>
</h1>
<div
class=
"nav-previous"
>
<?php
previous_comments_link
(
__
(
'← Older Comments'
,
'twentytwelve'
)
);
?>
</div>
<div
class=
"nav-next"
>
<?php
next_comments_link
(
__
(
'Newer Comments →'
,
'twentytwelve'
)
);
?>
</div>
</nav>
<?php
endif
;
// check for comment navigation ?>
<?
php
/* If there are no comments and comments are closed, let's leave a note.
* But we only want the note on posts and pages that had comments in the first place.
*/
if
(
!
comments_open
()
&&
get_comments_number
()
)
:
?>
<p
class=
"nocomments"
>
<?php
_e
(
'Comments are closed.'
,
'twentytwelve'
);
?>
</p>
<?php
endif
;
?>
<?php
endif
;
// have_comments() ?>
<?
php
comment_form
();
?>
</div>
<!-- #comments .comments-area -->
<?php
/**
* The template for displaying Comments
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentytwelve_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 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! ?>
<?
php
if
(
have_comments
()
)
:
?>
<h2
class=
"comments-title"
>
<?php
if
(
1
===
get_comments_number
()
)
{
printf
(
/* translators: %s: The post title. */
__
(
'One thought on “%s”'
,
'twentytwelve'
),
'<span>'
.
get_the_title
()
.
'</span>'
);
}
else
{
printf
(
/* translators: %1$s: The number of comments. %2$s: The post title. */
_n
(
'%1$s thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
get_comments_number
(),
'twentytwelve'
),
number_format_i18n
(
get_comments_number
()
),
'<span>'
.
get_the_title
()
.
'</span>'
);
}
?>
</h2>
<ol
class=
"commentlist"
>