From d2fe54d166c3d6e2b038eb09dc1a976740f52d53 Mon Sep 17 00:00:00 2001 From: danpros Date: Thu, 21 Nov 2024 05:44:18 +0700 Subject: [PATCH] Prepare release --- cache/installedVersion.json | 2 +- index.php | 2 +- system/admin/views/layout.html.php | 2 +- system/htmly.php | 4 ++++ system/includes/functions.php | 6 ++++++ themes/clean/layout.html.php | 2 +- themes/logs/layout.html.php | 2 +- 7 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cache/installedVersion.json b/cache/installedVersion.json index c59ca463..4fd652b9 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,3 +1,3 @@ { - "tag_name": "v3.0.1" + "tag_name": "v3.0.2" } \ No newline at end of file diff --git a/index.php b/index.php index 90373979..3ef4269d 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ " /> - + diff --git a/system/htmly.php b/system/htmly.php index 90e88530..32c2c0f3 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -3518,6 +3518,8 @@ $author->description = $current->authorDescription; $author->about = $current->authorAbout; $author->avatar = $current->authorAvatar; + $author->rss = $current->authorRss; + $author->slug = $current->author; if (array_key_exists('prev', $post)) { $prev = $post['prev']; @@ -4693,6 +4695,8 @@ $author->description = $current->authorDescription; $author->about = $current->authorAbout; $author->avatar = $current->authorAvatar; + $author->rss = $current->authorRss; + $author->slug = $current->author; if (array_key_exists('prev', $post)) { $prev = $post['prev']; diff --git a/system/includes/functions.php b/system/includes/functions.php index 1ef276df..fbd9fdd6 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -441,6 +441,7 @@ function get_posts($posts, $page = 1, $perpage = 0) // The post author + author url $post->author = $author; $post->authorUrl = site_url() . 'author/' . $author; + $post->authorRss = site_url() . 'author/' . $author . '/feed'; $profile = get_author($author); if (isset($profile[0])) { @@ -1268,6 +1269,7 @@ function default_profile($name) $author->url = site_url(). 'author/' . $name; $author->slug = $name; $author->file = ''; + $author->rss = $author->url . '/feed'; return $tmp[] = $author; } @@ -2048,9 +2050,11 @@ function has_prev($prev) 'tag' => $prev->tag, 'author' => $prev->author, 'authorName' => $prev->authorName, + 'authorDescription' => $prev->authorDescription, 'authorAbout' => $prev->authorAbout, 'authorUrl' => $prev->authorUrl, 'authorAvatar' => $prev->authorAvatar, + 'authorRss' => $prev->authorRss, 'related' => $prev->related, 'views' => $prev->views, 'type' => $prev->type, @@ -2087,9 +2091,11 @@ function has_next($next) 'tag' => $next->tag, 'author' => $next->author, 'authorName' => $next->authorName, + 'authorDescription' => $prev->authorDescription, 'authorAbout' => $next->authorAbout, 'authorUrl' => $next->authorUrl, 'authorAvatar' => $next->authorAvatar, + 'authorRss' => $next->authorRss, 'related' => $next->related, 'views' => $next->views, 'type' => $next->type, diff --git a/themes/clean/layout.html.php b/themes/clean/layout.html.php index fc69499d..c8ce330b 100644 --- a/themes/clean/layout.html.php +++ b/themes/clean/layout.html.php @@ -7,7 +7,7 @@ - +