From 8dfda21f3f78b5cbfb9b1ffd73c0475e0e748561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Bj=C3=B6rk?= Date: Mon, 20 Apr 2020 21:34:41 +0200 Subject: [PATCH 01/10] Added CSS styles for figure captions. Changed RSS feed to /feed/rss for genericons. --- themes/twentyfifteen/css/style.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/twentyfifteen/css/style.css b/themes/twentyfifteen/css/style.css index 874c962..a98104b 100644 --- a/themes/twentyfifteen/css/style.css +++ b/themes/twentyfifteen/css/style.css @@ -880,7 +880,7 @@ a:focus { content: "\f516"; } -.social-navigation a[href$="/feed/"]:before { +.social-navigation a[href$="/feed/rss"]:before { content: "\f413"; } @@ -2092,6 +2092,12 @@ a.post-thumbnail:focus { margin-bottom: 0; } +.entry-content figcaption, +.entry-summary figcaption { + font-style: italic; + text-align: center; + padding-bottom: .5em; +} /** * 12.2 Post Formats From 8135a22b96248f6dfd14b10c1152497d779749c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Bj=C3=B6rk?= Date: Thu, 12 Dec 2019 16:34:17 +0100 Subject: [PATCH 02/10] Add `figcaption` styling to `twentysixteen` CSS. --- themes/twentysixteen/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/twentysixteen/css/style.css b/themes/twentysixteen/css/style.css index 33d0161..2681f07 100644 --- a/themes/twentysixteen/css/style.css +++ b/themes/twentysixteen/css/style.css @@ -2102,6 +2102,12 @@ body.search-no-results .page-header { margin-bottom: 3.5em; } +.entry-content figcaption, +.entry-summary figcaption { + font-style: italic; + text-align: center; + padding-bottom: .5em; +} /** * 11.3 - Post Formats From c8552f3c37cd49a25e6e98a8edda87a7fb45091d Mon Sep 17 00:00:00 2001 From: danpros Date: Wed, 6 May 2020 07:08:00 +0700 Subject: [PATCH 03/10] Use schema.org for breadcrumb Cleaning up the breadcrumb --- system/htmly.php | 32 ++++++++++++++++---------------- system/includes/functions.php | 6 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index 777a7f7..33d21f8 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -394,7 +394,7 @@ get('/front/edit', function () { } }); -// Show the "Add post" page +// Show the "Add content" page get('/add/content', function () { $req = $_GET['type']; @@ -412,7 +412,7 @@ get('/add/content', function () { 'type' => $type, 'is_admin' => true, 'bodyclass' => 'add-content', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add post' + 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add content' )); } else { $login = site_url() . 'login'; @@ -794,7 +794,7 @@ get('/add/category', function () { 'type' => 'is_category', 'is_admin' => true, 'bodyclass' => 'add-category', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add page' + 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add category' )); } else { $login = site_url() . 'login'; @@ -841,7 +841,7 @@ post('/add/category', function () { 'type' => 'is_category', 'is_admin' => true, 'bodyclass' => 'add-category', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add page' + 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add category' )); } }); @@ -1973,7 +1973,7 @@ get('/post/:name', function ($name) { } if (config('blog.enable') === 'true') { - $blog = ' Blog » '; + $blog = ' » '; } else { $blog = ''; } @@ -2010,7 +2010,7 @@ get('/post/:name', function ($name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'in-post category-' . $current->ct . ' type-' . $current->type, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title, + 'breadcrumb' => '', 'prev' => has_prev($prev), 'next' => has_next($next), 'type' => $var, @@ -2062,7 +2062,7 @@ get('/post/:name/edit', function ($name) { 'type' => $type, 'is_admin' => true, 'bodyclass' => 'edit-post', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } else { render('denied', array( @@ -2072,7 +2072,7 @@ get('/post/:name/edit', function ($name) { 'p' => $current, 'bodyclass' => 'denied', 'is_admin' => true, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } } else { @@ -2254,7 +2254,7 @@ get('/post/:name/delete', function ($name) { 'p' => $current, 'is_admin' => true, 'bodyclass' => 'delete-post', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } else { render('denied', array( @@ -2264,7 +2264,7 @@ get('/post/:name/delete', function ($name) { 'p' => $current, 'is_admin' => true, 'bodyclass' => 'delete-post', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } } else { @@ -2957,7 +2957,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { } if (config('blog.enable') === 'true') { - $blog = ' Blog » '; + $blog = ' » '; } else { $blog = ''; } @@ -2994,7 +2994,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'in-post category-' . $current->ct . ' type-' . $current->type, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title, + 'breadcrumb' => '', 'prev' => has_prev($prev), 'next' => has_next($next), 'type' => $var, @@ -3046,7 +3046,7 @@ get('/:year/:month/:name/edit', function ($year, $month, $name) { 'type' => $type, 'bodyclass' => 'edit-post', 'is_admin' => true, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } else { render('denied', array( @@ -3056,7 +3056,7 @@ get('/:year/:month/:name/edit', function ($year, $month, $name) { 'p' => $current, 'bodyclass' => 'denied', 'is_admin' => true, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } } else { @@ -3238,7 +3238,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) { 'p' => $current, 'bodyclass' => 'delete-post', 'is_admin' => true, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } else { render('denied', array( @@ -3248,7 +3248,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) { 'p' => $current, 'bodyclass' => 'delete-post', 'is_admin' => true, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title )); } } else { diff --git a/system/includes/functions.php b/system/includes/functions.php index a74df82..ae67524 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -268,13 +268,13 @@ function get_posts($posts, $page = 1, $perpage = 0) if($str[count($str) - 3] == 'uncategorized') { $category = default_category(); $post->category = '' . $category->title . ''; - $post->categoryb = '' . $category->title . ''; + $post->categoryb = '' . $category->title . ''; } else { foreach ($catC as $k => $v) { if ($v['0'] === $str[count($str) - 3]) { $post->category = '' . $v['1'] . ''; - $post->categoryb = '' . $v['1'] . ''; + $post->categoryb = '' . $v['1'] . ''; } } @@ -343,7 +343,7 @@ function get_posts($posts, $page = 1, $perpage = 0) foreach ($tag as $a) { $url[] = ''; - $bc[] = '' . $a[0] . ''; + $bc[] = '' . $a[0] . ''; } $post->tag = implode(' ', $url); From fb6fac0af1c3d6dc2b60c11cf5484283dd4819ce Mon Sep 17 00:00:00 2001 From: danpros Date: Wed, 6 May 2020 10:16:33 +0700 Subject: [PATCH 04/10] Clean up the themes --- themes/blog/layout.html.php | 18 ++++++++++-------- themes/blog/main.html.php | 5 ++--- themes/blog/post.html.php | 5 ++--- themes/blog/profile.html.php | 2 +- themes/clean/css/style.css | 8 ++++---- themes/clean/layout.html.php | 11 ++++++++++- themes/clean/main.html.php | 2 +- themes/clean/post.html.php | 4 +--- themes/clean/profile.html.php | 2 +- themes/default/layout.html.php | 11 ++++++++++- themes/default/main.html.php | 2 +- themes/default/post.html.php | 3 +-- themes/default/profile.html.php | 2 +- themes/logs/layout.html.php | 8 +++++++- themes/logs/main.html.php | 2 +- themes/logs/post.html.php | 4 +--- themes/logs/profile.html.php | 2 +- themes/twentyfifteen/main.html.php | 2 +- themes/twentyfifteen/post.html.php | 2 +- themes/twentyfifteen/profile.html.php | 2 +- themes/twentysixteen/layout.html.php | 1 - themes/twentysixteen/main.html.php | 2 +- themes/twentysixteen/post.html.php | 2 +- themes/twentysixteen/profile.html.php | 2 +- 24 files changed, 61 insertions(+), 43 deletions(-) diff --git a/themes/blog/layout.html.php b/themes/blog/layout.html.php index ad7a2a9..c9f6232 100644 --- a/themes/blog/layout.html.php +++ b/themes/blog/layout.html.php @@ -51,7 +51,6 @@

diff --git a/themes/clean/css/style.css b/themes/clean/css/style.css index b3c3f2a..f9ceb3f 100644 --- a/themes/clean/css/style.css +++ b/themes/clean/css/style.css @@ -211,16 +211,16 @@ h6 { text-decoration: none; } -.infront .post, .intag .post, .inarchive .post, .insearch .post, .inprofile .post { +.in-front .post, .in-tag .post, .in-archive .post, .in-search .post, .in-profile .post { border-bottom: 1px solid #dfdfdf; padding: 30px 0 10px 0; } -.infront .post.first { +.in-front .post.first { padding-top: 50px; } -.intag .post.first, .inarchive .post.first, .insearch .post.first, .inprofile .post.first { +.in-tag .post.first, .in-archive .post.first, .in-search .post.first, .in-profile .post.first { padding-top: 0px; } @@ -831,7 +831,7 @@ aside .copyright p { padding-top: 0px; } - .infront .post, .intag .post, .inarchive .post, .insearch .post { + .in-front .post, .in-tag .post, .in-archive .post, .in-search .post { padding: 30px 0 20px 0; } diff --git a/themes/clean/layout.html.php b/themes/clean/layout.html.php index c098f5b..7509864 100644 --- a/themes/clean/layout.html.php +++ b/themes/clean/layout.html.php @@ -35,7 +35,16 @@

-

Tags

+
+

Tags

+ +
    + $count):?> +
  • ()
  • + = 5) break;?> + +
+
diff --git a/themes/clean/main.html.php b/themes/clean/main.html.php index 54430b9..ab4edb6 100644 --- a/themes/clean/main.html.php +++ b/themes/clean/main.html.php @@ -29,7 +29,7 @@

title ?>

- - Posted in + - Posted in category ?> by - diff --git a/themes/clean/post.html.php b/themes/clean/post.html.php index fd5966a..3f7cb39 100644 --- a/themes/clean/post.html.php +++ b/themes/clean/post.html.php @@ -11,7 +11,7 @@

title ?>

- + - Posted in category ?> by - @@ -54,8 +54,6 @@ href="https://twitter.com/share?url=url ?>&text=title ?>">Twitter - Google+
-

Tags

+
+

Tags

+ +
    + $count):?> +
  • ()
  • + = 5) break;?> + +
+
diff --git a/themes/logs/main.html.php b/themes/logs/main.html.php index 1cadfaf..aaa5947 100644 --- a/themes/logs/main.html.php +++ b/themes/logs/main.html.php @@ -29,7 +29,7 @@

title ?>

- - Posted in + - Posted in category ?> by - diff --git a/themes/logs/post.html.php b/themes/logs/post.html.php index 30f2180..35ff851 100644 --- a/themes/logs/post.html.php +++ b/themes/logs/post.html.php @@ -11,7 +11,7 @@

title ?>

- + - Posted in category ?> by - @@ -54,8 +54,6 @@ href="https://twitter.com/share?url=url ?>&text=title ?>">Twitter - Google+