diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-17 22:00:39 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-17 22:00:39 +0200 |
commit | 5555624546ea48d6327700f32b80848e0662dc90 (patch) | |
tree | 47d61fb756a6cb008aaf33586d292fcfe43da2a1 /template/standard/html | |
parent | 91d8a28c664afa5378735bcd0efe068dd74d589f (diff) | |
parent | 0a2614cb69fc732c2115ef2f0c356f39f602d311 (diff) | |
download | blog-5555624546ea48d6327700f32b80848e0662dc90.tar.gz blog-5555624546ea48d6327700f32b80848e0662dc90.tar.xz blog-5555624546ea48d6327700f32b80848e0662dc90.zip |
Merge branch 'master' into 'optimization'optimization
Diffstat (limited to 'template/standard/html')
-rw-r--r-- | template/standard/html/403.php | 11 | ||||
-rw-r--r-- | template/standard/html/404.php | 11 | ||||
-rw-r--r-- | template/standard/html/feed/item_page.php | 27 | ||||
-rw-r--r-- | template/standard/html/feed/item_post.php | 27 | ||||
-rw-r--r-- | template/standard/html/feed/main.php | 52 | ||||
-rw-r--r-- | template/standard/html/home.php | 19 | ||||
-rw-r--r-- | template/standard/html/main.php | 102 | ||||
-rw-r--r-- | template/standard/html/page/item.php | 20 | ||||
-rw-r--r-- | template/standard/html/page/list.php | 19 | ||||
-rw-r--r-- | template/standard/html/page/main.php | 34 | ||||
-rw-r--r-- | template/standard/html/pagination.php | 39 | ||||
-rw-r--r-- | template/standard/html/post/item.php | 20 | ||||
-rw-r--r-- | template/standard/html/post/list.php | 19 | ||||
-rw-r--r-- | template/standard/html/post/main.php | 34 | ||||
-rw-r--r-- | template/standard/html/search/main.php | 34 | ||||
-rw-r--r-- | template/standard/html/search/result.php | 36 | ||||
-rw-r--r-- | template/standard/html/user/item.php | 20 | ||||
-rw-r--r-- | template/standard/html/user/list.php | 19 | ||||
-rw-r--r-- | template/standard/html/user/main.php | 31 |
19 files changed, 0 insertions, 574 deletions
diff --git a/template/standard/html/403.php b/template/standard/html/403.php deleted file mode 100644 index 092988e..0000000 --- a/template/standard/html/403.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: 403 Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<h1><i class="fa fa-exclamation-triangle"></i><?=$Language->text('403_heading_text')?></h1> -<p><?=$Language->text('403_heading_desc')?></p>
\ No newline at end of file diff --git a/template/standard/html/404.php b/template/standard/html/404.php deleted file mode 100644 index a45eecc..0000000 --- a/template/standard/html/404.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: 404 Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<h1><i class="fa fa-exclamation-triangle"></i><?=$Language->text('404_heading_text')?></h1> -<p><?=$Language->text('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 deleted file mode 100644 index 4935282..0000000 --- a/template/standard/html/feed/item_page.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Feed Item Template [page] [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# - -$HTML = $PAGE['BODY']['HTML'](); -?> -<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(description($HTML, 400))?></description> - <content:encoded> - <![CDATA[ - <?=$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 deleted file mode 100644 index 30e97ab..0000000 --- a/template/standard/html/feed/item_post.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Feed Item Template [post] [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# - -$HTML = $POST['BODY']['HTML'](); -?> -<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(description($HTML, 400))?></description> - <content:encoded> - <![CDATA[ - <?=$HTML?> - ]]> - </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 deleted file mode 100644 index 84e7888..0000000 --- a/template/standard/html/feed/main.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Feed Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# - -$BLOGMETA_NAME = escapeHTML($BLOGMETA['NAME']); - -switch($FEED['TYPE']) { - case 'post': - $title = $Language->text('feed_name_posts', $BLOGMETA_NAME); - $self = Application::getURL('feed/post/'); - break; - case 'page': - $title = $Language->text('feed_name_pages', $BLOGMETA_NAME); - $self = Application::getURL('feed/page/'); - break; - default: - $title = $Language->text('feed_name_items', $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><?=Application::getURL()?></link> - <language><?=$BLOGMETA['LANG']?></language> - <description><?=escapeHTML($BLOGMETA['DESC'])?></description> - - <atom:link href="<?=$self?>" rel="self" type="application/rss+xml" /> - - <image> - <title><?=$title?></title> - <url><?=Application::getTemplateURL('rsrc/logo.png')?></url> - <link><?=Application::getURL()?></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 deleted file mode 100644 index d49c71b..0000000 --- a/template/standard/html/home.php +++ /dev/null @@ -1,19 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Home Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<h1><i class="fa fa-home"></i><?=$Language->text('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="<?=$Language->text('feed_name_items', escapeHTML($BLOGMETA['NAME']))?>">Feed</a></span></h1> -<p><?=$Language->text('home_heading_desc', Application::get('POST.LIST_SIZE'))?></p> - -<div class="item-container post"> - <?php foreach($LIST['POSTS'] as $post): ?> - <?php echo $post; ?> - <?php endforeach; ?> -</div> - -<?=$PAGINATION['HTML']?>
\ No newline at end of file diff --git a/template/standard/html/main.php b/template/standard/html/main.php deleted file mode 100644 index 19eceec..0000000 --- a/template/standard/html/main.php +++ /dev/null @@ -1,102 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Main Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# - -#=============================================================================== -# Escape parameters which are used several times here to reduce escapeHTML calls -#=============================================================================== -$HEAD_NAME = isset($HEAD['NAME']) ? escapeHTML($HEAD['NAME']) : NULL; -$HEAD_DESC = isset($HEAD['DESC']) ? escapeHTML($HEAD['DESC']) : NULL; -$BLOGMETA_NAME = escapeHTML($BLOGMETA['NAME']); -$BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); -?> -<!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="<?=$HEAD_DESC?>" /> -<?php endif; ?> - -<?php if(isset($HEAD['PERM'])): ?> - <link rel="canonical" href="<?=$HEAD['PERM']?>" /> -<?php endif; ?> - - <meta property="og:site_name" content="<?=$BLOGMETA_NAME?>" /> - <meta property="og:title" content="<?=$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::getTemplateURL('rsrc/favicon.ico')?>" /> - <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/main.css')?>" title="<?=$BLOGMETA_NAME?>" /> - - <link rel="alternate" type="application/rss+xml" title="<?=$Language->text('feed_name_items', $BLOGMETA_NAME)?>" href="<?=Application::getURL('feed/')?>" /> - <link rel="alternate" type="application/rss+xml" title="<?=$Language->text('feed_name_posts', $BLOGMETA_NAME)?>" href="<?=Application::getURL('feed/post/')?>" /> - <link rel="alternate" type="application/rss+xml" title="<?=$Language->text('feed_name_pages', $BLOGMETA_NAME)?>" href="<?=Application::getURL('feed/page/')?>" /> - - <script defer src="<?=Application::getTemplateURL('rsrc/main.js')?>"></script> - - <title><?="{$HEAD_NAME} | {$BLOGMETA_NAME} {$BLOGMETA_DESC}"?></title> -</head> -<body> - <div id="container"> - <header id="main-header"> - <div> - <a href="<?=Application::getURL()?>" title="<?="{$BLOGMETA_NAME} {$BLOGMETA_DESC}"?>"> - <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>" /> - </a> - </div> - <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->text('navigation_home_desc', $BLOGMETA_NAME)?>"> - <i class="fa fa-home"></i><?=$Language->text('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->text('navigation_search_desc')?>"> - <i class="fa fa-search"></i><?=$Language->text('navigation_search_text')?> - </a> - </li> - </ul> - </nav> - </header> - <main> - <?=$HTML?> - </main> - <footer id="main-footer"> - © <?=$BLOGMETA_NAME?> - </footer> - </div> -</body> -</html>
\ No newline at end of file diff --git a/template/standard/html/page/item.php b/template/standard/html/page/item.php deleted file mode 100644 index f2803fa..0000000 --- a/template/standard/html/page/item.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Page Item Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<article class="item"> - <header> - <h2> - <a title="<?=$Language->text('select_page')?>: »<?=escapeHTML($PAGE['ATTR']['NAME'])?>«" href="<?=$PAGE['URL']?>"><?=escapeHTML($PAGE['ATTR']['NAME'])?></a> - </h2> - <time class="brackets info" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time> - </header> - <blockquote cite="<?=$PAGE['URL']?>"> - <p><?=excerpt($PAGE['BODY']['HTML'](), 600)?></p> - </blockquote> -</article>
\ No newline at end of file diff --git a/template/standard/html/page/list.php b/template/standard/html/page/list.php deleted file mode 100644 index b2361bf..0000000 --- a/template/standard/html/page/list.php +++ /dev/null @@ -1,19 +0,0 @@ -<?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="<?=$Language->text('feed_name_pages', escapeHTML($BLOGMETA['NAME']))?>">Feed</a></span></h1> -<p><?=$Language->text('page_overview_heading_desc', $PAGINATION['THIS'])?></p> - -<div class="item-container page"> - <?php foreach($LIST['PAGES'] as $page): ?> - <?php echo $page; ?> - <?php endforeach; ?> -</div> - -<?=$PAGINATION['HTML']?>
\ No newline at end of file diff --git a/template/standard/html/page/main.php b/template/standard/html/page/main.php deleted file mode 100644 index aa2a5a0..0000000 --- a/template/standard/html/page/main.php +++ /dev/null @@ -1,34 +0,0 @@ -<?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->text('date_format'))."</time>"; -?> -<h1><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?></h1> -<p><?=$Language->text('page_main_heading_desc', [$user, $time])?></p> - -<div id="content" class="page"> - <?=$PAGE['BODY']['HTML']()?> -</div> - -<section id="site-navi"> - - <?php if($PAGE['PREV']): ?> - <div><a id="prev-site" 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 id="next-site" 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>
\ No newline at end of file diff --git a/template/standard/html/pagination.php b/template/standard/html/pagination.php deleted file mode 100644 index df5293e..0000000 --- a/template/standard/html/pagination.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Pagination Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<div id="site-navi"> - <?php if($THIS > 1): ?> - <div><a id="prev-site" 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; ?> - - <div> - <ol> - <?php - for($current = 1; $current <= $LAST; ++$current) { - $class = ''; - $href = sprintf($HREF, $current); - - if($current === $THIS) { - $class = ' class="active"'; - } - - echo "<li{$class}><a href=\"{$href}\">{$current}</a></li>"; - } - ?> - </ol> - </div> - - <?php if($THIS < $LAST): ?> - <div><a id="next-site" 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; ?> -</div>
\ No newline at end of file diff --git a/template/standard/html/post/item.php b/template/standard/html/post/item.php deleted file mode 100644 index c4035cb..0000000 --- a/template/standard/html/post/item.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: Post Item Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<article class="item"> - <header> - <h2> - <a title="<?=$Language->text('select_post')?>: »<?=escapeHTML($POST['ATTR']['NAME'])?>«" href="<?=$POST['URL']?>"><?=escapeHTML($POST['ATTR']['NAME'])?></a> - </h2> - <time class="brackets info" datetime="<?=$POST['ATTR']['TIME_INSERT']?>"><?=parseDatetime($POST['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time> - </header> - <blockquote cite="<?=$POST['URL']?>"> - <?=$POST['BODY']['HTML']()?> - </blockquote> -</article>
\ No newline at end of file diff --git a/template/standard/html/post/list.php b/template/standard/html/post/list.php deleted file mode 100644 index 7622170..0000000 --- a/template/standard/html/post/list.php +++ /dev/null @@ -1,19 +0,0 @@ -<?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="<?=$Language->text('feed_name_posts', escapeHTML($BLOGMETA['NAME']))?>">Feed</a></span></h1> -<p><?=$Language->text('post_overview_heading_desc', $PAGINATION['THIS'])?></p> - -<div class="item-container post"> - <?php foreach($LIST['POSTS'] as $post): ?> - <?php echo $post; ?> - <?php endforeach; ?> -</div> - -<?=$PAGINATION['HTML']?>
\ No newline at end of file diff --git a/template/standard/html/post/main.php b/template/standard/html/post/main.php deleted file mode 100644 index e91fa4e..0000000 --- a/template/standard/html/post/main.php +++ /dev/null @@ -1,34 +0,0 @@ -<?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->text('date_format'))."</time>"; -?> -<h1><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?></h1> -<p><?=$Language->text('post_main_heading_desc', [$user, $time])?></p> - -<div id="content" class="post"> - <?=$POST['BODY']['HTML']()?> -</div> - -<section id="site-navi"> - - <?php if($POST['PREV']): ?> - <div><a id="prev-site" 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 id="next-site" 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>
\ No newline at end of file diff --git a/template/standard/html/search/main.php b/template/standard/html/search/main.php deleted file mode 100644 index 61bd6a5..0000000 --- a/template/standard/html/search/main.php +++ /dev/null @@ -1,34 +0,0 @@ -<h1><i class="fa fa-search"></i><?=$Language->text('search_base_heading_text')?></h1> -<p><?=$Language->text('search_base_heading_desc')?></p> - -<?php if($SEARCH['INFO']): ?> - <div class="red"><?=$SEARCH['INFO']?></div> -<?php endif; ?> - -<form action="" method="GET"> - <input autofocus type="search" name="q" placeholder="<?=$Language->text('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 deleted file mode 100644 index 044afe1..0000000 --- a/template/standard/html/search/result.php +++ /dev/null @@ -1,36 +0,0 @@ -<h1><?=$Language->text('search_result_heading_text', escapeHTML($SEARCH['TEXT']))?></h1> -<p><?=$Language->text('search_result_heading_desc')?></p> - -<form action="" method="GET"> - <input autofocus type="search" name="q" placeholder="<?=$Language->text('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> - -<div class="item-container post"> - <?php foreach($RESULT['LIST'] as $post): ?> - <?php echo $post; ?> - <?php endforeach; ?> -</div>
\ No newline at end of file diff --git a/template/standard/html/user/item.php b/template/standard/html/user/item.php deleted file mode 100644 index 45106af..0000000 --- a/template/standard/html/user/item.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: User Item Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<article class="item"> - <header> - <h2> - <a title="<?=$Language->text('select_user')?>: »<?=escapeHTML($USER['ATTR']['FULLNAME'])?>«" href="<?=$USER['URL']?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a> - </h2> - <span class="brackets info"><?=escapeHTML($USER['ATTR']['USERNAME'])?></span> - </header> - <blockquote cite="<?=$USER['URL']?>"> - <?=$USER['BODY']['HTML']()?> - </blockquote> -</article>
\ No newline at end of file diff --git a/template/standard/html/user/list.php b/template/standard/html/user/list.php deleted file mode 100644 index ebc231d..0000000 --- a/template/standard/html/user/list.php +++ /dev/null @@ -1,19 +0,0 @@ -<?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->text('user_overview_heading_desc', $PAGINATION['THIS'])?></p> - -<div class="item-container user"> - <?php foreach($LIST['USERS'] as $user): ?> - <?php echo $user; ?> - <?php endforeach; ?> -</div> - -<?=$PAGINATION['HTML']?>
\ No newline at end of file diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php deleted file mode 100644 index a72b3d3..0000000 --- a/template/standard/html/user/main.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# Standard: User Main Template [Thomas Lange <code@nerdmind.de>] # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# # -# [see documentation] # -# # -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -?> -<h1><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?></h1> -<p><em><?=$Language->text('user_main_heading_desc', [escapeHTML($USER['ATTR']['USERNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p> - -<div id="content" class="user"> - <?=$USER['BODY']['HTML']()?> -</div> - -<section id="site-navi"> - - <?php if($USER['PREV']): ?> - <div><a id="prev-site" href="<?=$USER['PREV']['URL']?>" title="<?=$Language->text('prev_user')?> »<?=escapeHTML($USER['PREV']['ATTR']['FULLNAME'])?>«"><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 id="next-site" href="<?=$USER['NEXT']['URL']?>" title="<?=$Language->text('next_user')?> »<?=escapeHTML($USER['NEXT']['ATTR']['FULLNAME'])?>«"><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>
\ No newline at end of file |