summaryrefslogtreecommitdiffstats
path: root/template/standard/html
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
committerThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
commit52b077a48c743ba4d08ac00520a0bf1ef6deef5f (patch)
treeb4205c194167e0e03e273957cdd0aab3be9fdf01 /template/standard/html
downloadblog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.gz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.xz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.zip
Initial commit.v1.0
Diffstat (limited to 'template/standard/html')
-rw-r--r--template/standard/html/403.php11
-rw-r--r--template/standard/html/404.php11
-rw-r--r--template/standard/html/feed/item_page.php25
-rw-r--r--template/standard/html/feed/item_post.php26
-rw-r--r--template/standard/html/feed/main.php50
-rw-r--r--template/standard/html/home.php19
-rw-r--r--template/standard/html/main.php92
-rw-r--r--template/standard/html/page/item.php20
-rw-r--r--template/standard/html/page/list.php19
-rw-r--r--template/standard/html/page/main.php46
-rw-r--r--template/standard/html/pagination.php54
-rw-r--r--template/standard/html/post/item.php20
-rw-r--r--template/standard/html/post/list.php19
-rw-r--r--template/standard/html/post/main.php46
-rw-r--r--template/standard/html/search/main.php34
-rw-r--r--template/standard/html/search/result.php36
-rw-r--r--template/standard/html/user/item.php20
-rw-r--r--template/standard/html/user/list.php19
-rw-r--r--template/standard/html/user/main.php43
19 files changed, 610 insertions, 0 deletions
diff --git a/template/standard/html/403.php b/template/standard/html/403.php
new file mode 100644
index 0000000..5039678
--- /dev/null
+++ b/template/standard/html/403.php
@@ -0,0 +1,11 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: 403 Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-exclamation-triangle"></i><?=$Language->template('403_heading_text')?></h1>
+<p><?=$Language->template('403_heading_desc')?></p> \ No newline at end of file
diff --git a/template/standard/html/404.php b/template/standard/html/404.php
new file mode 100644
index 0000000..acb7ab9
--- /dev/null
+++ b/template/standard/html/404.php
@@ -0,0 +1,11 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: 404 Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-exclamation-triangle"></i><?=$Language->template('404_heading_text')?></h1>
+<p><?=$Language->template('404_heading_desc')?></p> \ No newline at end of file
diff --git a/template/standard/html/feed/item_page.php b/template/standard/html/feed/item_page.php
new file mode 100644
index 0000000..9defc25
--- /dev/null
+++ b/template/standard/html/feed/item_page.php
@@ -0,0 +1,25 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Feed Item Template [page] [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<item>
+ <title><?=escapeHTML($PAGE['ATTR']['NAME'])?></title>
+ <link><?=$PAGE['URL']?></link>
+ <guid isPermaLink="false"><?=$PAGE['GUID']?></guid>
+ <pubDate><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], '[RFC2822]')?></pubDate>
+ <dc:creator><?=escapeHTML($USER['ATTR']['FULLNAME'])?></dc:creator>
+ <description><?=escapeHTML(cut(removeLineBreaksAndTabs(removeHTML($PAGE['BODY']['HTML'])), 400))?></description>
+ <content:encoded>
+ <![CDATA[
+ <?=$PAGE['BODY']['HTML']?>
+ ]]>
+ </content:encoded>
+ <?php foreach($PAGE['FILE']['LIST'] as $fileURL): ?>
+ <media:content url="<?=$fileURL?>" medium="image"></media:content>
+ <?php endforeach; ?>
+</item> \ No newline at end of file
diff --git a/template/standard/html/feed/item_post.php b/template/standard/html/feed/item_post.php
new file mode 100644
index 0000000..f004316
--- /dev/null
+++ b/template/standard/html/feed/item_post.php
@@ -0,0 +1,26 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Feed Item Template [post] [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<item>
+ <title><?=escapeHTML($POST['ATTR']['NAME'])?></title>
+ <link><?=$POST['URL']?></link>
+ <guid isPermaLink="false"><?=$POST['GUID']?></guid>
+ <pubDate><?=parseDatetime($POST['ATTR']['TIME_INSERT'], '[RFC2822]')?></pubDate>
+ <dc:creator><?=escapeHTML($USER['ATTR']['FULLNAME'])?></dc:creator>
+ <description><?=escapeHTML(cut(removeLineBreaksAndTabs(removeHTML($POST['BODY']['HTML'])), 400))?></description>
+ <content:encoded>
+ <![CDATA[
+ <?=$POST['BODY']['HTML']?>
+ <p><small><strong>Kommentare:</strong> [<a href="https://keybase.io/nerdmind">0x33EB32A2</a>] blog&#64;nerdmind.de</small></p>
+ ]]>
+ </content:encoded>
+ <?php foreach($POST['FILE']['LIST'] as $fileURL): ?>
+ <media:content url="<?=$fileURL?>" medium="image"></media:content>
+ <?php endforeach; ?>
+</item> \ No newline at end of file
diff --git a/template/standard/html/feed/main.php b/template/standard/html/feed/main.php
new file mode 100644
index 0000000..174a841
--- /dev/null
+++ b/template/standard/html/feed/main.php
@@ -0,0 +1,50 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Feed Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+
+switch($FEED['TYPE']) {
+ case 'post':
+ $title = escapeHTML($BLOGMETA['NAME']).' ['.$Language->template('feed_only_posts').']';
+ $self = Application::getURL('feed/post/');
+ break;
+ case 'page':
+ $title = escapeHTML($BLOGMETA['NAME']).' ['.$Language->template('feed_only_pages').']';
+ $self = Application::getURL('feed/page/');
+ break;
+ default:
+ $title = escapeHTML($BLOGMETA['NAME']);
+ $self = Application::getURL('feed/');
+}
+?>
+<?='<?xml version="1.0" encoding="UTF-8" ?>'?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/">
+ <channel>
+ <title><?=$title?></title>
+ <link><?=$self?></link>
+ <language><?=$BLOGMETA['LANG']?></language>
+ <description><?=escapeHTML($BLOGMETA['DESC'])?></description>
+
+ <atom:link href="<?=$self?>" rel="self" type="application/rss+xml" />
+
+ <image>
+ <title><?=escapeHTML($BLOGMETA['NAME'])?></title>
+ <url><?=Application::getTemplateURL('rsrc/logo.png')?></url>
+ <link><?=$self?></link>
+ </image>
+
+ <!-- Feed items of type "post" -->
+ <?php foreach($FEED['LIST']['POSTS'] as $item): ?>
+ <?php echo $item ?>
+ <?php endforeach; ?>
+
+ <!-- Feed items of type "page" -->
+ <?php foreach($FEED['LIST']['PAGES'] as $item): ?>
+ <?php echo $item ?>
+ <?php endforeach; ?>
+ </channel>
+</rss> \ No newline at end of file
diff --git a/template/standard/html/home.php b/template/standard/html/home.php
new file mode 100644
index 0000000..42fc169
--- /dev/null
+++ b/template/standard/html/home.php
@@ -0,0 +1,19 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Home Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-home"></i><?=$Language->template('home_heading_text', escapeHTML(Application::get('BLOGMETA.NAME')))?><span class="head-link brackets"><i class="fa fa-rss"></i><a href="<?=Application::getURL('feed/')?>" title="Alle Inhalte">Feed</a></span></h1>
+<p><?=$Language->template('home_heading_desc', Application::get('POST.LIST_SIZE'))?></p>
+
+<ul class="item-list post">
+<?php foreach($LIST['POSTS'] as $post): ?>
+ <?php echo $post; ?>
+<?php endforeach; ?>
+</ul>
+
+<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/standard/html/main.php b/template/standard/html/main.php
new file mode 100644
index 0000000..19d3b29
--- /dev/null
+++ b/template/standard/html/main.php
@@ -0,0 +1,92 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Main Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<!DOCTYPE html>
+<html lang="<?=$BLOGMETA['LANG']?>">
+<head>
+ <meta charset="UTF-8" />
+ <meta name="referrer" content="origin-when-crossorigin" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+
+<?php if(isset($HEAD['DESC'])): ?>
+ <meta name="description" content="<?=escapeHTML($HEAD['DESC'])?>" />
+<?php endif; ?>
+
+<?php if(isset($HEAD['PERM'])): ?>
+ <link rel="canonical" href="<?=$HEAD['PERM']?>" />
+<?php endif; ?>
+
+ <meta property="og:site_name" content="<?=escapeHTML($BLOGMETA['NAME'])?>" />
+ <meta property="og:title" content="<?=escapeHTML($HEAD['NAME'])?>" />
+ <meta property="og:image" content="<?=Application::getTemplateURL('rsrc/logo.png')?>" />
+
+<?php if(isset($HEAD['OG_IMAGES'])): ?>
+ <?php foreach($HEAD['OG_IMAGES'] as $imageURL): ?>
+ <meta property="og:image" content="<?=$imageURL?>" />
+ <?php endforeach; ?>
+<?php endif; ?>
+
+ <link rel="icon" href="<?=Application::getURL('favicon.ico')?>" />
+ <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/main.css')?>" />
+
+ <link rel="alternate" type="application/rss+xml" href="<?=Application::getURL('feed/')?>" title="<?=escapeHTML($BLOGMETA['NAME'])?>" />
+ <link rel="alternate" type="application/rss+xml" href="<?=Application::getURL('feed/post/')?>" title="<?=escapeHTML($BLOGMETA['NAME'])?> [<?=$Language->template('feed_only_posts')?>]" />
+ <link rel="alternate" type="application/rss+xml" href="<?=Application::getURL('feed/page/')?>" title="<?=escapeHTML($BLOGMETA['NAME'])?> [<?=$Language->template('feed_only_pages')?>]" />
+
+ <title><?=escapeHTML("{$HEAD['NAME']} | {$BLOGMETA['NAME']} {$BLOGMETA['DESC']}")?></title>
+</head>
+<body>
+ <section id="container">
+ <header id="main-header">
+ <section>
+ <a href="<?=Application::getURL()?>" title="<?=escapeHTML("{$BLOGMETA['NAME']} {$BLOGMETA['DESC']}")?>">
+ <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=escapeHTML($BLOGMETA['NAME'])?>" />
+ </a>
+ </section>
+ <nav id="main-navi">
+ <label for="toogle-nav" id="toogle-nav-label" class="fa fa-bars"></label>
+ <input type="checkbox" id="toogle-nav" />
+ <ul>
+ <li>
+ <a href="<?=Application::getURL()?>" title="<?=$Language->template('navigation_home_desc', escapeHTML($BLOGMETA['NAME']))?>">
+ <i class="fa fa-home"></i><?=$Language->template('navigation_home_text')?>
+ </a>
+ </li>
+ <li>
+ <a href="<?=Application::getPostURL()?>" title="<?=$Language->text('post_overview')?>">
+ <i class="fa fa-newspaper-o"></i><?=$Language->text('posts')?>
+ </a>
+ </li>
+ <li>
+ <a href="<?=Application::getPageURL()?>" title="<?=$Language->text('page_overview')?>">
+ <i class="fa fa-file-text-o"></i><?=$Language->text('pages')?>
+ </a>
+ </li>
+ <li>
+ <a href="<?=Application::getUserURL()?>" title="<?=$Language->text('user_overview')?>">
+ <i class="fa fa-user"></i><?=$Language->text('users')?>
+ </a>
+ </li>
+ <li>
+ <a href="<?=Application::getURL('search/')?>" title="<?=$Language->template('navigation_search_desc')?>">
+ <i class="fa fa-search"></i><?=$Language->template('navigation_search_text')?>
+ </a>
+ </li>
+ </ul>
+ </nav>
+ </header>
+ <main>
+ <?=$HTML?>
+ </main>
+ <footer id="main-footer">
+ &copy; <?=escapeHTML($BLOGMETA['NAME'])?>
+ </footer>
+ </section>
+</body>
+</html> \ No newline at end of file
diff --git a/template/standard/html/page/item.php b/template/standard/html/page/item.php
new file mode 100644
index 0000000..29ab9cf
--- /dev/null
+++ b/template/standard/html/page/item.php
@@ -0,0 +1,20 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Page Item Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<li class="item-list-li page">
+ <header>
+ <h2>
+ <a href="<?=$PAGE['URL']?>"><?=escapeHTML($PAGE['ATTR']['NAME'])."\n"?></a>
+ <time class="brackets info" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ </h2>
+ </header>
+ <article>
+ <p><?=excerpt($PAGE['BODY']['HTML'], 600)?></p>
+ </article>
+</li> \ No newline at end of file
diff --git a/template/standard/html/page/list.php b/template/standard/html/page/list.php
new file mode 100644
index 0000000..b6a112d
--- /dev/null
+++ b/template/standard/html/page/list.php
@@ -0,0 +1,19 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Page List Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?><span class="head-link brackets"><i class="fa fa-rss"></i><a href="<?=Application::getURL('feed/page/')?>" title="Nur Seiten">Feed</a></span></h1>
+<p><?=$Language->template('page_base_heading_desc', $PAGINATION['THIS'])?></p>
+
+<ul class="item-list page">
+ <?php foreach($LIST['PAGES'] as $page): ?>
+ <?php echo $page; ?>
+ <?php endforeach; ?>
+</ul>
+
+<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/standard/html/page/main.php b/template/standard/html/page/main.php
new file mode 100644
index 0000000..b5e6a6d
--- /dev/null
+++ b/template/standard/html/page/main.php
@@ -0,0 +1,46 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Page Main Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+
+$user = "<a href=\"{$USER['URL']}\" title=\"alias »{$USER['ATTR']['USERNAME']}«\">{$USER['ATTR']['FULLNAME']}</a>";
+$time = "<time datetime=\"{$PAGE['ATTR']['TIME_INSERT']}\" title=\"".parseDatetime($PAGE['ATTR']['TIME_INSERT'], '[W]')."\">".parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->template('date_format'))."</time>";
+?>
+<h1><i class="fa fa-file-text-o"></i><?=escapeHTML($Language->template('page_main_heading_text', $PAGE['ATTR']['NAME']))?></h1>
+<p><?=$Language->template('page_main_heading_desc', [$user, $time])?></p>
+
+<section id="content" class="page">
+ <?=$PAGE['BODY']['HTML']?>
+</section>
+
+<section id="site-navi">
+
+ <?php if($PAGE['PREV']): ?>
+ <div><a href="<?=$PAGE['PREV']['URL']?>" title="<?=$Language->text('prev_page')?> »<?=escapeHTML($PAGE['PREV']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-left"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
+ <?php endif; ?>
+
+ <?php if($PAGE['NEXT']): ?>
+ <div><a href="<?=$PAGE['NEXT']['URL']?>" title="<?=$Language->text('next_page')?> »<?=escapeHTML($PAGE['NEXT']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-right"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
+ <?php endif; ?>
+
+</section>
+
+<script>
+ var prevPageURL = <?php echo json_encode($PAGE['PREV'] ? $PAGE['PREV']['URL'] : FALSE); ?>;
+ var nextPageURL = <?php echo json_encode($PAGE['NEXT'] ? $PAGE['NEXT']['URL'] : FALSE); ?>;
+
+ document.addEventListener('keyup', function(event) {
+ if(!event.ctrlKey && !event.shiftKey) {
+ (event.keyCode === 37 && prevPageURL) && (window.location.href = prevPageURL);
+ (event.keyCode === 39 && nextPageURL) && (window.location.href = nextPageURL);
+ }
+ }, false)
+</script> \ No newline at end of file
diff --git a/template/standard/html/pagination.php b/template/standard/html/pagination.php
new file mode 100644
index 0000000..221530e
--- /dev/null
+++ b/template/standard/html/pagination.php
@@ -0,0 +1,54 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Pagination Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<section id="site-navi">
+ <?php if($THIS > 1): ?>
+ <div><a href="<?=sprintf($HREF, $THIS-1)?>"><i class="fa fa-arrow-left"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
+ <?php endif; ?>
+
+ <section>
+ <div>
+ <ol>
+ <?php for($currentItem = 1; $currentItem <= $LAST; ++$currentItem): ?>
+ <?php
+ $href = sprintf($HREF, $currentItem);
+ $class = NULL;
+ $currentItemHTML = $currentItem;
+ if($currentItem === $THIS) {
+ $class = ' class="active"';
+ }
+
+ echo '<li'.$class.'><a href="'.$href.'">'.$currentItemHTML.'</a></li>';
+ ?>
+
+ <?php endfor; ?>
+ </ol>
+ </div>
+ </section>
+
+ <?php if($THIS < $LAST): ?>
+ <div><a href="<?=sprintf($HREF, $THIS+1)?>"><i class="fa fa-arrow-right"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
+ <?php endif; ?>
+</section>
+
+<script>
+ var prevPageURL = <?php echo json_encode($THIS > 1 ? sprintf($HREF, $THIS-1) : FALSE); ?>;
+ var nextPageURL = <?php echo json_encode($THIS < $LAST ? sprintf($HREF, $THIS+1) : FALSE); ?>;
+
+ document.addEventListener('keyup', function(event) {
+ if(!event.ctrlKey && !event.shiftKey) {
+ (event.keyCode === 37 && prevPageURL) && (window.location.href = prevPageURL);
+ (event.keyCode === 39 && nextPageURL) && (window.location.href = nextPageURL);
+ }
+ }, false)
+</script> \ No newline at end of file
diff --git a/template/standard/html/post/item.php b/template/standard/html/post/item.php
new file mode 100644
index 0000000..ab00624
--- /dev/null
+++ b/template/standard/html/post/item.php
@@ -0,0 +1,20 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Post Item Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<li class="item-list-li post">
+ <header>
+ <h2>
+ <a href="<?=$POST['URL']?>"><?=escapeHTML($POST['ATTR']['NAME'])."\n"?></a>
+ <time class="brackets info" datetime="<?=$POST['ATTR']['TIME_INSERT']?>"><?=parseDatetime($POST['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ </h2>
+ </header>
+ <article>
+ <?=$POST['BODY']['HTML']?>
+ </article>
+</li> \ No newline at end of file
diff --git a/template/standard/html/post/list.php b/template/standard/html/post/list.php
new file mode 100644
index 0000000..457c1df
--- /dev/null
+++ b/template/standard/html/post/list.php
@@ -0,0 +1,19 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Post List Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?><span class="head-link brackets"><i class="fa fa-rss"></i><a href="<?=Application::getURL('feed/post/')?>" title="Nur Beiträge">Feed</a></span></h1>
+<p><?=$Language->template('post_base_heading_desc', $PAGINATION['THIS'])?></p>
+
+<ul class="item-list post">
+ <?php foreach($LIST['POSTS'] as $post): ?>
+ <?php echo $post; ?>
+ <?php endforeach; ?>
+</ul>
+
+<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/standard/html/post/main.php b/template/standard/html/post/main.php
new file mode 100644
index 0000000..31d7102
--- /dev/null
+++ b/template/standard/html/post/main.php
@@ -0,0 +1,46 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: Post Main Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+
+$user = "<a href=\"{$USER['URL']}\" title=\"alias »{$USER['ATTR']['USERNAME']}«\">{$USER['ATTR']['FULLNAME']}</a>";
+$time = "<time datetime=\"{$POST['ATTR']['TIME_INSERT']}\" title=\"".parseDatetime($POST['ATTR']['TIME_INSERT'], '[W]')."\">".parseDatetime($POST['ATTR']['TIME_INSERT'], $Language->template('date_format'))."</time>";
+?>
+<h1><i class="fa fa-newspaper-o"></i><?=escapeHTML($Language->template('post_main_heading_text', $POST['ATTR']['NAME']))?></h1>
+<p><?=$Language->template('post_main_heading_desc', [$user, $time])?></p>
+
+<section id="content" class="post">
+ <?=$POST['BODY']['HTML']?>
+</section>
+
+<section id="site-navi">
+
+ <?php if($POST['PREV']): ?>
+ <div><a href="<?=$POST['PREV']['URL']?>" title="<?=$Language->text('prev_post')?> »<?=escapeHTML($POST['PREV']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-left"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
+ <?php endif; ?>
+
+ <?php if($POST['NEXT']): ?>
+ <div><a href="<?=$POST['NEXT']['URL']?>" title="<?=$Language->text('next_post')?> »<?=escapeHTML($POST['NEXT']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-right"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
+ <?php endif; ?>
+
+</section>
+
+<script>
+ var prevPageURL = <?php echo json_encode($POST['PREV'] ? $POST['PREV']['URL'] : FALSE); ?>;
+ var nextPageURL = <?php echo json_encode($POST['NEXT'] ? $POST['NEXT']['URL'] : FALSE); ?>;
+
+ document.addEventListener('keyup', function(event) {
+ if(!event.ctrlKey && !event.shiftKey) {
+ (event.keyCode === 37 && prevPageURL) && (window.location.href = prevPageURL);
+ (event.keyCode === 39 && nextPageURL) && (window.location.href = nextPageURL);
+ }
+ }, false)
+</script> \ No newline at end of file
diff --git a/template/standard/html/search/main.php b/template/standard/html/search/main.php
new file mode 100644
index 0000000..b749517
--- /dev/null
+++ b/template/standard/html/search/main.php
@@ -0,0 +1,34 @@
+<h1><i class="fa fa-search"></i><?=$Language->template('search_base_heading_text')?></h1>
+<p><?=$Language->template('search_base_heading_desc')?></p>
+
+<?php if($SEARCH['INFO']): ?>
+ <div class="red"><?=$SEARCH['INFO']?></div>
+<?php endif; ?>
+
+<form action="" method="GET">
+ <input type="search" name="q" placeholder="<?=$Language->template('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>" />
+
+ <select name="d">
+ <option value=""><?=$Language->text('date_d')?></option>
+
+ <?php foreach($FORM['OPTIONS']['D'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['D'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+ <select name="m">
+ <option value=""><?=$Language->text('date_m')?></option>
+
+ <?php foreach($FORM['OPTIONS']['M'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['M'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+ <select name="y">
+ <option value=""><?=$Language->text('date_y')?></option>
+
+ <?php foreach($FORM['OPTIONS']['Y'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['Y'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+
+ <input type="submit" value="<?=$Language->text('search')?>" />
+</form> \ No newline at end of file
diff --git a/template/standard/html/search/result.php b/template/standard/html/search/result.php
new file mode 100644
index 0000000..e79eb98
--- /dev/null
+++ b/template/standard/html/search/result.php
@@ -0,0 +1,36 @@
+<h1><?=$Language->template('search_result_heading_text', escapeHTML($SEARCH['TEXT']))?></h1>
+<p><?=$Language->template('search_result_heading_desc')?></p>
+
+<form action="" method="GET">
+ <input type="search" name="q" placeholder="<?=$Language->template('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>" />
+
+ <select name="d">
+ <option value=""><?=$Language->text('date_d')?></option>
+
+ <?php foreach($FORM['OPTIONS']['D'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['D'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+ <select name="m">
+ <option value=""><?=$Language->text('date_m')?></option>
+
+ <?php foreach($FORM['OPTIONS']['M'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['M'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+ <select name="y">
+ <option value=""><?=$Language->text('date_y')?></option>
+
+ <?php foreach($FORM['OPTIONS']['Y'] as $option): ?>
+ <option value="<?=$option?>"<?=($FORM['SELECT']['Y'] === $option) ? ' selected' : '' ?>><?=$option?></option>
+ <?php endforeach; ?>
+ </select>
+
+ <input type="submit" value="<?=$Language->text('search')?>" />
+</form>
+
+<ul class="item-list post">
+ <?php foreach($RESULT['LIST'] as $post): ?>
+ <?php echo $post; ?>
+ <?php endforeach; ?>
+</ul> \ No newline at end of file
diff --git a/template/standard/html/user/item.php b/template/standard/html/user/item.php
new file mode 100644
index 0000000..78a757d
--- /dev/null
+++ b/template/standard/html/user/item.php
@@ -0,0 +1,20 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: User Item Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<li class="item-list-li user">
+ <header>
+ <h2>
+ <?=escapeHTML($USER['ATTR']['FULLNAME'])."\n"?>
+ <a class="brackets info" href="<?=$USER['URL']?>"><?=escapeHTML($USER['ATTR']['USERNAME'])?></a>
+ </h2>
+ </header>
+ <article>
+ <?=$USER['BODY']['HTML']?>
+ </article>
+</li> \ No newline at end of file
diff --git a/template/standard/html/user/list.php b/template/standard/html/user/list.php
new file mode 100644
index 0000000..922a3a4
--- /dev/null
+++ b/template/standard/html/user/list.php
@@ -0,0 +1,19 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: User List Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-user"></i><?=$Language->text('user_overview')?></h1>
+<p><?=$Language->template('user_base_heading_desc', $PAGINATION['THIS'])?></p>
+
+<ul class="item-list user">
+ <?php foreach($LIST['USERS'] as $user): ?>
+ <?php echo $user; ?>
+ <?php endforeach; ?>
+</ul>
+
+<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php
new file mode 100644
index 0000000..adc0534
--- /dev/null
+++ b/template/standard/html/user/main.php
@@ -0,0 +1,43 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Standard: User Main Template [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+?>
+<h1><i class="fa fa-user"></i><?=$Language->template('user_heading_text', [escapeHTML($USER['ATTR']['FULLNAME']), $USER['ATTR']['USERNAME']])?></h1>
+<p><em><?=$Language->template('user_heading_desc', [escapeHTML($USER['ATTR']['FULLNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p>
+
+<section id="content" class="user">
+ <?=$USER['BODY']['HTML']?>
+</section>
+
+<section id="site-navi">
+
+ <?php if($USER['PREV']): ?>
+ <div><a href="<?=$USER['PREV']['URL']?>" title="<?=$Language->text('prev_user')?> »<?=escapeHTML($USER['PREV']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-left"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
+ <?php endif; ?>
+
+ <?php if($USER['NEXT']): ?>
+ <div><a href="<?=$USER['NEXT']['URL']?>" title="<?=$Language->text('next_user')?> »<?=escapeHTML($USER['NEXT']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-right"></i></a></div>
+ <?php else: ?>
+ <div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
+ <?php endif; ?>
+
+</section>
+
+<script>
+ var prevPageURL = <?php echo json_encode($USER['PREV'] ? $USER['PREV']['URL'] : FALSE); ?>;
+ var nextPageURL = <?php echo json_encode($USER['NEXT'] ? $USER['NEXT']['URL'] : FALSE); ?>;
+
+ document.addEventListener('keyup', function(event) {
+ if(!event.ctrlKey && !event.shiftKey) {
+ (event.keyCode === 37 && prevPageURL) && (window.location.href = prevPageURL);
+ (event.keyCode === 39 && nextPageURL) && (window.location.href = nextPageURL);
+ }
+ }, false)
+</script> \ No newline at end of file