Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
fe09b7ce
Commit
fe09b7ce
authored
May 22, 2020
by
agata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auto] theme: twentyten 3.0
parent
5a8d06da
Changes
30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
5497 additions
and
5400 deletions
+5497
-5400
wp-content/themes/twentyten/404.php
wp-content/themes/twentyten/404.php
+30
-30
wp-content/themes/twentyten/archive.php
wp-content/themes/twentyten/archive.php
+70
-65
wp-content/themes/twentyten/attachment.php
wp-content/themes/twentyten/attachment.php
+27
-27
wp-content/themes/twentyten/author.php
wp-content/themes/twentyten/author.php
+85
-74
wp-content/themes/twentyten/blocks.css
wp-content/themes/twentyten/blocks.css
+255
-255
wp-content/themes/twentyten/category.php
wp-content/themes/twentyten/category.php
+39
-38
wp-content/themes/twentyten/comments.php
wp-content/themes/twentyten/comments.php
+95
-95
wp-content/themes/twentyten/editor-blocks.css
wp-content/themes/twentyten/editor-blocks.css
+308
-308
wp-content/themes/twentyten/editor-style-rtl.css
wp-content/themes/twentyten/editor-style-rtl.css
+29
-29
wp-content/themes/twentyten/editor-style.css
wp-content/themes/twentyten/editor-style.css
+297
-297
wp-content/themes/twentyten/footer.php
wp-content/themes/twentyten/footer.php
+69
-66
wp-content/themes/twentyten/functions.php
wp-content/themes/twentyten/functions.php
+755
-737
wp-content/themes/twentyten/header.php
wp-content/themes/twentyten/header.php
+132
-125
wp-content/themes/twentyten/index.php
wp-content/themes/twentyten/index.php
+33
-33
wp-content/themes/twentyten/languages/twentyten.pot
wp-content/themes/twentyten/languages/twentyten.pot
+423
-423
wp-content/themes/twentyten/license.txt
wp-content/themes/twentyten/license.txt
+281
-281
wp-content/themes/twentyten/loop-attachment.php
wp-content/themes/twentyten/loop-attachment.php
+182
-172
wp-content/themes/twentyten/loop-page.php
wp-content/themes/twentyten/loop-page.php
+48
-48
wp-content/themes/twentyten/loop-single.php
wp-content/themes/twentyten/loop-single.php
+91
-82
wp-content/themes/twentyten/loop.php
wp-content/themes/twentyten/loop.php
+208
-197
wp-content/themes/twentyten/onecolumn-page.php
wp-content/themes/twentyten/onecolumn-page.php
+32
-32
wp-content/themes/twentyten/page.php
wp-content/themes/twentyten/page.php
+33
-33
wp-content/themes/twentyten/readme.txt
wp-content/themes/twentyten/readme.txt
+8
-5
wp-content/themes/twentyten/rtl.css
wp-content/themes/twentyten/rtl.css
+291
-289
wp-content/themes/twentyten/search.php
wp-content/themes/twentyten/search.php
+43
-38
wp-content/themes/twentyten/sidebar-footer.php
wp-content/themes/twentyten/sidebar-footer.php
+62
-62
wp-content/themes/twentyten/sidebar.php
wp-content/themes/twentyten/sidebar.php
+59
-59
wp-content/themes/twentyten/single.php
wp-content/themes/twentyten/single.php
+28
-28
wp-content/themes/twentyten/style.css
wp-content/themes/twentyten/style.css
+1450
-1439
wp-content/themes/twentyten/tag.php
wp-content/themes/twentyten/tag.php
+34
-33
No files found.
wp-content/themes/twentyten/404.php
View file @
fe09b7ce
<?php
/**
* Template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<div
id=
"post-0"
class=
"post error404 not-found"
>
<h1
class=
"entry-title"
>
<?php
_e
(
'Not Found'
,
'twentyten'
);
?>
</h1>
<div
class=
"entry-content"
>
<p>
<?php
_e
(
'Apologies, but the page you requested could not be found. Perhaps searching will help.'
,
'twentyten'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .entry-content -->
</div>
<!-- #post-0 -->
</div>
<!-- #content -->
</div>
<!-- #container -->
<script
type=
"text/javascript"
>
//
f
ocus on search field after it has loaded
document
.
getElementById
(
'
s
'
)
&&
document
.
getElementById
(
'
s
'
).
focus
();
</script>
<?php
get_footer
();
?>
<?php
/**
* Template for displaying 404 pages (Not Found)
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<div
id=
"post-0"
class=
"post error404 not-found"
>
<h1
class=
"entry-title"
>
<?php
_e
(
'Not Found'
,
'twentyten'
);
?>
</h1>
<div
class=
"entry-content"
>
<p>
<?php
_e
(
'Apologies, but the page you requested could not be found. Perhaps searching will help.'
,
'twentyten'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .entry-content -->
</div>
<!-- #post-0 -->
</div>
<!-- #content -->
</div>
<!-- #container -->
<script
type=
"text/javascript"
>
//
F
ocus on search field after it has loaded
.
document
.
getElementById
(
'
s
'
)
&&
document
.
getElementById
(
'
s
'
).
focus
();
</script>
<?php
get_footer
();
?>
wp-content/themes/twentyten/archive.php
View file @
fe09b7ce
<?php
/**
* 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.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Queue the first post, that way we know
* what date 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().
*/
if
(
have_posts
()
)
{
the_post
();
}
?>
<h1
class=
"page-title"
>
<?php
if
(
is_day
()
)
:
?>
<?php
printf
(
__
(
'Daily Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
()
);
?>
<?php
elseif
(
is_month
()
)
:
?>
<?php
printf
(
__
(
'Monthly Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentyten'
)
)
);
?>
<?php
elseif
(
is_year
()
)
:
?>
<?php
printf
(
__
(
'Yearly Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentyten'
)
)
);
?>
<?php
else
:
?>
<?php
_e
(
'Blog Archives'
,
'twentyten'
);
?>
<?php
endif
;
?>
</h1>
<?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
();
/*
* Run the loop for the archives page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-archive.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'archive'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
<?php
/**
* 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.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Queue the first post, that way we know
* what date 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().
*/
if
(
have_posts
()
)
{
the_post
();
}
?>
<h1
class=
"page-title"
>
<?php
if
(
is_day
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Daily Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
()
);
}
elseif
(
is_month
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Monthly Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentyten'
)
)
);
}
elseif
(
is_year
()
)
{
/* translators: %s: Date. */
printf
(
__
(
'Yearly Archives: <span>%s</span>'
,
'twentyten'
),
get_the_date
(
_x
(
'Y'
,
'yearly archives date format'
,
'twentyten'
)
)
);
}
else
{
_e
(
'Blog Archives'
,
'twentyten'
);
}
?>
</h1>
<?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
();
/*
* Run the loop for the archives page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-archive.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'archive'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
wp-content/themes/twentyten/attachment.php
View file @
fe09b7ce
<?php
/**
* Template for displaying attachments
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
class=
"single-attachment"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Run the loop to output the attachment.
* If you want to overload this in a child theme then include a file
* called loop-attachment.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'attachment'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_footer
();
?>
<?php
/**
* Template for displaying attachments
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
class=
"single-attachment"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Run the loop to output the attachment.
* If you want to overload this in a child theme then include a file
* called loop-attachment.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'attachment'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_footer
();
?>
wp-content/themes/twentyten/author.php
View file @
fe09b7ce
<?php
/**
* Template for displaying Author Archive pages
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Queue the first post, that way we know who
* the author is when we try to get their name,
* URL, description, avatar, etc.
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if
(
have_posts
()
)
{
the_post
();
}
?>
<h1
class=
"page-title author"
>
<?php
printf
(
__
(
'Author Archives: %s'
,
'twentyten'
),
'<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>
<?php
// If a user has filled out their description, show a bio on their entries.
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
id=
"entry-author-info"
>
<div
id=
"author-avatar"
>
<?php
/**
* Filter the Twenty Ten author bio avatar size.
*
* @since Twenty Ten 1.0
*
* @param int The height and width avatar dimensions in pixels. Default 60.
*/
echo
get_avatar
(
get_the_author_meta
(
'user_email'
),
apply_filters
(
'twentyten_author_bio_avatar_size'
,
60
)
);
?>
</div>
<!-- #author-avatar -->
<div
id=
"author-description"
>
<h2>
<?php
printf
(
__
(
'About %s'
,
'twentyten'
),
get_the_author
()
);
?>
</h2>
<?php
the_author_meta
(
'description'
);
?>
</div>
<!-- #author-description -->
</div>
<!-- #entry-author-info -->
<?php
endif
;
?>
<?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
();
/*
* Run the loop for the author archive page to output the authors posts
* If you want to overload this in a child theme then include a file
* called loop-author.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'author'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
<?php
/**
* Template for displaying Author Archive pages
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header
();
?>
<div
id=
"container"
>
<div
id=
"content"
role=
"main"
>
<?php
/*
* Queue the first post, that way we know who
* the author is when we try to get their name,
* URL, description, avatar, etc.
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if
(
have_posts
()
)
{
the_post
();
}
?>
<h1
class=
"page-title author"
>
<?php
/* translators: %s: Author display name. */
printf
(
__
(
'Author Archives: %s'
,
'twentyten'
),
'<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>
<?php
// If a user has filled out their description, show a bio on their entries.
if
(
get_the_author_meta
(
'description'
)
)
:
?>
<div
id=
"entry-author-info"
>
<div
id=
"author-avatar"
>
<?php
/**
* Filter the Twenty Ten author bio avatar size.
*
* @since Twenty Ten 1.0
*
* @param int The height and width avatar dimensions in pixels. Default 60.
*/
$author_bio_avatar_size
=
apply_filters
(
'twentyten_author_bio_avatar_size'
,
60
);
echo
get_avatar
(
get_the_author_meta
(
'user_email'
),
$author_bio_avatar_size
);
?>
</div>
<!-- #author-avatar -->
<div
id=
"author-description"
>
<h2>
<?php
/* translators: %s: Author display name. */
printf
(
__
(
'About %s'
,
'twentyten'
),
get_the_author
()
);
?>
</h2>
<?php
the_author_meta
(
'description'
);
?>
</div>
<!-- #author-description -->
</div>
<!-- #entry-author-info -->
<?php
endif
;
?>
<?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
();
/*
* Run the loop for the author archive page to output the authors posts
* If you want to overload this in a child theme then include a file
* called loop-author.php and that will be used instead.
*/
get_template_part
(
'loop'
,
'author'
);
?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php
get_sidebar
();
?>
<?php
get_footer
();
?>
wp-content/themes/twentyten/blocks.css
View file @
fe09b7ce
/*
Theme Name: Twenty Ten
Description: Used to style blocks.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General Block Styles
2.0 Blocks - Common Blocks
3.0 Blocks - Formatting
4.0 Blocks - Layout Elements
5.0 Blocks - Widgets
6.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 General Block Styles
--------------------------------------------------------------*/
/* Captions */
[
class
^=
"wp-block-"
]
:not
(
.wp-block-gallery
)
figcaption
{
color
:
#777
;
font-family
:
"Helvetica Neue"
,
Arial
,
Helvetica
,
"Nimbus Sans L"
,
sans-serif
;
}
/* Alignments */
[
class
^=
"wp-block-"
]
.alignleft
,
[
class
^=
"wp-block-"
]
.alignleft
{
margin-right
:
24px
;
}
[
class
^=
"wp-block-"
]
.alignright
,
[
class
^=
"wp-block-"
]
.alignright
{
margin-left
:
24px
;
}
/*--------------------------------------------------------------
2.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p
.has-drop-cap
:not
(
:focus
)
::first-letter
{
font-size
:
5em
;
margin-top
:
0.1em
;
}
/* Image */
.wp-block-image
figure
{
margin-bottom
:
24px
;
}
.wp-block-image
figcaption
{
margin
:
-7px
0
20px
;
;
padding
:
9px
9px
1.0em
;
text-align
:
center
;
}
.wp-block-image.alignfull
,
.wp-block-image.alignfull
img
{
margin
:
0
;
}
/* Gallery */
.wp-block-gallery
{
margin
:
0
0
24px
;
}
.wp-block-gallery
.blocks-gallery-image
figcaption
,
.wp-block-gallery
.blocks-gallery-item
figcaption
{
font-family
:
"Helvetica Neue"
,
Arial
,
Helvetica
,
"Nimbus Sans L"
,
sans-serif
;
left
:
0
;
right
:
0
;
width
:
auto
;
}
/* Quotes */
.wp-block-quote
:not
(
.is-large
)
:not
(
.is-style-large
)
{
border
:
none
;
padding
:
0
3em
;
}
.wp-block-quote
cite
{
color
:
inherit
;
font-size
:
inherit
;
font-weight
:
600
;
}
/* Audio */
.wp-block-audio
{
margin-left
:
0
;
margin-right
:
0
;
}
.wp-block-audio
audio
{
display
:
block
;
width
:
100%
;
}
/* File */
.rtl
.wp-block-file
*
+
.wp-block-file__button
{
margin
:
0
0
0
0.75em
;
}
/*--------------------------------------------------------------
3.0 Blocks - Formatting
--------------------------------------------------------------*/
/* Code */
.wp-block-code
{
background-color
:
transparent
;
border
:
0
;
padding
:
0
;
}
/* Pullquote */
.wp-block-pullquote
p
{
font-size
:
1.5em
;
}
.wp-block-pullquote__citation
,
.wp-block-pullquote
cite
{
color
:
inherit
;
font-size
:
inherit
;
font-weight
:
600
;
text-transform
:
none
;
}
/* Table */
.wp-block-table
td
,
.wp-block-table
th
{
border
:
none
;
}
.wp-block-table
td
{
border-top
:
1px
solid
#e7e7e7
;
}
.wp-block-table
tr
:nth-child
(
odd
)
td
{
background
:
#f2f7fc
;
}
/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Separator */
.wp-block-separator
{
border
:
0
;
}
/* Media & Text */
.wp-block-media-text
{
margin-bottom
:
24px
;
}
/*--------------------------------------------------------------
5.0 Blocks - Widgets
--------------------------------------------------------------*/
/* Archives, Categories & Latest Posts */
.wp-block-archives.aligncenter
,
.wp-block-categories.aligncenter
,
.wp-block-latest-posts.aligncenter
{
margin-left
:
20px
;
text-align
:
center
;
}
.rtl
.wp-block-archives.aligncenter
,
.rtl
.wp-block-categories.aligncenter
,
.rtl
.wp-block-latest-posts.aligncenter
{
margin-left
:
0
;
margin-right
:
20px
;
}
/* Latest Comments */
.wp-block-latest-comments
{
margin
:
0
0
24px
;
}
/* Latest Posts */
.wp-block-latest-posts.is-grid
{
margin-left
:
0
;
margin-right
:
0
;
}
/*--------------------------------------------------------------