From ce1cfa43454305343d8b9ddc7800fbd2fc9cb5df Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 8 Jun 2022 11:15:25 +0200 Subject: [PATCH] Replace changelog with page --- CHANGELOG.md | 18 ------- sitemap.xml | 5 ++ src/assets/js/changelog.js | 3 ++ src/classes/page.php | 6 +++ src/pages/changelog.php | 101 +++++++++++++++++++++++++++++++++++++ src/pages/home.php | 14 ----- 6 files changed, 115 insertions(+), 32 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 src/assets/js/changelog.js create mode 100644 src/pages/changelog.php diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 5b83206f..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,18 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -### Added -- This changelog -- Wish properties -- Button to mark wish as fulfilled - -### Improved -- Card design - -### Fixed - - Various small bugs diff --git a/sitemap.xml b/sitemap.xml index a7fe7c94..2277e4ed 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -30,4 +30,9 @@ 2022-06-08T10:45:19+00:00 1.00 + + https://wishthis.online/changelog + 2022-06-08T10:45:19+00:00 + 1.00 + diff --git a/src/assets/js/changelog.js b/src/assets/js/changelog.js new file mode 100644 index 00000000..8085e894 --- /dev/null +++ b/src/assets/js/changelog.js @@ -0,0 +1,3 @@ +$(function() { + $('.menu .item').tab(); +}); diff --git a/src/classes/page.php b/src/classes/page.php index 9b5ab385..f379fa3b 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -126,6 +126,7 @@ class Page 'login', 'maintenance', 'register', + 'changelog', ); if ( !isset($_SESSION['user']) @@ -682,6 +683,11 @@ class Page ?> + +
+ +
+
diff --git a/src/pages/changelog.php b/src/pages/changelog.php new file mode 100644 index 00000000..7228e238 --- /dev/null +++ b/src/pages/changelog.php @@ -0,0 +1,101 @@ + + */ + +namespace wishthis; + +$page = new Page(__FILE__, __('Changelog')); +$page->header(); +$page->bodyStart(); +$page->navigation(); +?> + +
+
+

title ?>

+ +
+ +
+ +
+ +
+
+
+ +
+

+
+ +
+

+
    +
  • Blog
  • +
+ +

+
    +
  • Localisation (many new translations added)
  • +
+ +

+
    +
  • Changelog is now a page instead of a downloadable markdown file
  • +
+ +

+
    +
  • Various minor things (typos, menu order, etc)
  • +
+
+ +
+
+ +
+
+ +
+

+
+ +
+

+
    +
  • This changelog
  • +
  • Wish properties
  • +
  • Button to mark wish as fulfilled
  • +
+ +

+
    +
  • Card design
  • +
+ +

+
    +
  • Various small bugs
  • +
+
+ +
+
+
+ +
+ +
+
+ +footer(); +$page->bodyEnd(); +?> diff --git a/src/pages/home.php b/src/pages/home.php index 84f5908c..ec11ec01 100644 --- a/src/pages/home.php +++ b/src/pages/home.php @@ -111,20 +111,6 @@ $page->navigation(); - -
-

- -

- ' . __('Changelog') . ' ()' - ); - ?> -

-