BlogList
This commit is contained in:
parent
987a0a3c12
commit
dc483ea4fd
@ -12,7 +12,7 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo htmlspecialchars($FRAME_OPTIONS->title); ?></title>
|
||||
<title><?php echo ($FRAME_OPTIONS->title !== '') ? htmlspecialchars('Mikescher.com - ' . $FRAME_OPTIONS->title) : 'Mikescher.com'; ?></title>
|
||||
<meta name="google-site-verification" content="pZOhmjeJcQbRMNa8xRLam4dwJ2oYwMwISY1lRKreSSs"/>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<?php
|
||||
|
@ -12,7 +12,7 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo htmlspecialchars($FRAME_OPTIONS->title); ?></title>
|
||||
<title><?php echo ($FRAME_OPTIONS->title !== '') ? htmlspecialchars('Mikescher.com - ' . $FRAME_OPTIONS->title) : 'Mikescher.com'; ?></title>
|
||||
<meta name="google-site-verification" content="pZOhmjeJcQbRMNa8xRLam4dwJ2oYwMwISY1lRKreSSs"/>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<link rel="stylesheet" href="/data/css/styles.css" />
|
||||
|
@ -1,25 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php
|
||||
require_once (__DIR__ . '/../internals/base.php');
|
||||
require_once (__DIR__ . '/../internals/blog.php');
|
||||
|
||||
$allposts = Blog::listAllNewestFirst();
|
||||
require_once (__DIR__ . '/../internals/website.php');
|
||||
|
||||
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
|
||||
/** @var URLRoute $ROUTE */ global $ROUTE;
|
||||
/** @var Website $SITE */ global $SITE;
|
||||
?>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Mikescher.com - Blog</title>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<link rel="canonical" href="https://www.mikescher.com/blog"/>
|
||||
<?php printHeaderCSS(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mastercontainer">
|
||||
|
||||
<?php $HEADER_ACTIVE='blog'; include (__DIR__ . '/../fragments/header.php'); ?>
|
||||
<?php
|
||||
$FRAME_OPTIONS->title = 'Blog';
|
||||
$FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com/blog';
|
||||
$FRAME_OPTIONS->activeHeader = 'blog';
|
||||
|
||||
<div id="content" class="content-responsive">
|
||||
$allposts = $SITE->modules->Blog()->listAllNewestFirst();
|
||||
?>
|
||||
|
||||
<div class="blockcontent">
|
||||
|
||||
@ -43,13 +36,3 @@ $allposts = Blog::listAllNewestFirst();
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include (__DIR__ . '/../fragments/footer.php'); ?>
|
||||
|
||||
</div>
|
||||
<?php printAdditionalScripts(); ?>
|
||||
<?php printAdditionalStylesheets(); ?>
|
||||
</body>
|
||||
</html>
|
@ -13,7 +13,7 @@ $subview = $ROUTE->parameter['subview'];
|
||||
$post = $SITE->modules->Blog()->getFullBlogpost($id, $subview, $err);
|
||||
if ($post === null) { $FRAME_OPTIONS->setForced404($err); return; }
|
||||
|
||||
$FRAME_OPTIONS->title = 'Mikescher.com - ' . $post['title'];
|
||||
$FRAME_OPTIONS->title = $post['title'];
|
||||
$FRAME_OPTIONS->canonical_url = $post['canonical'];
|
||||
|
||||
if ($post['type'] == 'euler')
|
||||
|
@ -9,7 +9,7 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
<?php
|
||||
$message = isset($ROUTE->parameter['message']) ? $ROUTE->parameter['message'] : '';
|
||||
|
||||
$FRAME_OPTIONS->title = 'Mikescher.com - ' . $message;
|
||||
$FRAME_OPTIONS->title = $message;
|
||||
$FRAME_OPTIONS->canonical_url = null;
|
||||
$FRAME_OPTIONS->activeHeader = null;
|
||||
$FRAME_OPTIONS->contentCSSClasses []= 'content-fullheight';
|
||||
|
@ -7,7 +7,7 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
$FRAME_OPTIONS->title = 'Mikescher.com - Error';
|
||||
$FRAME_OPTIONS->title = 'Error';
|
||||
$FRAME_OPTIONS->canonical_url = null;
|
||||
$FRAME_OPTIONS->activeHeader = null;
|
||||
$FRAME_OPTIONS->contentCSSClasses []= 'content-fullheight';
|
||||
|
@ -7,7 +7,7 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
$FRAME_OPTIONS->title = 'Mikescher.com';
|
||||
$FRAME_OPTIONS->title = '';
|
||||
$FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com';
|
||||
$FRAME_OPTIONS->activeHeader = 'home';
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user