BooksList+BooksView
This commit is contained in:
parent
dc483ea4fd
commit
cdec6903f6
@ -16,12 +16,12 @@ require_once (__DIR__ . '/../internals/website.php');
|
||||
<meta name="google-site-verification" content="pZOhmjeJcQbRMNa8xRLam4dwJ2oYwMwISY1lRKreSSs"/>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<?php
|
||||
if ($FRAME_OPTIONS->canonical_url !== null) echo '<link rel="canonical" href="'.$FRAME_OPTIONS->canonical_url.'"/>';
|
||||
foreach ($FRAME_OPTIONS->stylesheets as $cssfile) echo '<link rel="stylesheet" href="' . $cssfile . '"/>';
|
||||
if ($FRAME_OPTIONS->canonical_url !== null) echo '<link rel="canonical" href="'.$FRAME_OPTIONS->canonical_url.'"/>' . "\n";
|
||||
foreach ($FRAME_OPTIONS->stylesheets as $cssfile) echo '<link rel="stylesheet" href="' . $cssfile . '"/>' . "\n";
|
||||
foreach ($FRAME_OPTIONS->scripts as $scriptfile)
|
||||
{
|
||||
if ($scriptfile[1]) echo '<script src="' . $scriptfile[0] . '" defer></script>';
|
||||
else echo '<script src="' . $scriptfile[0] . '" type="text/javascript" ></script>';
|
||||
if ($scriptfile[1]) echo '<script src="' . $scriptfile[0] . '" defer></script>' . "\n";
|
||||
else echo '<script src="' . $scriptfile[0] . '" type="text/javascript" ></script>' . "\n";
|
||||
}
|
||||
?>
|
||||
</head>
|
||||
|
@ -1,25 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php
|
||||
require_once (__DIR__ . '/../internals/base.php');
|
||||
require_once (__DIR__ . '/../internals/books.php');
|
||||
|
||||
$allbooks = Books::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 - Converted Books</title>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<link rel="canonical" href="https://www.mikescher.com/books"/>
|
||||
<?php printHeaderCSS(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mastercontainer">
|
||||
|
||||
<?php $HEADER_ACTIVE = 'books'; include (__DIR__ . '/../fragments/header.php'); ?>
|
||||
<?php
|
||||
$FRAME_OPTIONS->title = 'Converted Books';
|
||||
$FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com/books';
|
||||
$FRAME_OPTIONS->activeHeader = 'books';
|
||||
|
||||
<div id="content" class="content-responsive">
|
||||
$allbooks = $SITE->modules->Books()->listAllNewestFirst();
|
||||
?>
|
||||
|
||||
<div class="blockcontent booklst_content">
|
||||
|
||||
@ -52,13 +45,3 @@ $allbooks = Books::listAllNewestFirst();
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include (__DIR__ . '/../fragments/footer.php'); ?>
|
||||
|
||||
</div>
|
||||
<?php printAdditionalScripts(); ?>
|
||||
<?php printAdditionalStylesheets(); ?>
|
||||
</body>
|
||||
</html>
|
@ -1,30 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php
|
||||
require_once (__DIR__ . '/../internals/base.php');
|
||||
require_once (__DIR__ . '/../internals/books.php');
|
||||
|
||||
|
||||
$id = $OPTIONS['id'];
|
||||
|
||||
$book = Books::getBook($id);
|
||||
if ($book === NULL) httpError(404, 'Book not found');
|
||||
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 - <?php echo $book['title']; ?></title>
|
||||
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
||||
<?php printHeaderCSS(); ?>
|
||||
<?php echo '<link rel="canonical" href="' . $book['url'] . '"/>'; ?>
|
||||
<?php includeAdditionalScript("/data/javascript/ms_basic.js", 'defer', true) ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mastercontainer">
|
||||
|
||||
<?php $HEADER_ACTIVE = 'book'; include (__DIR__ . '/../fragments/header.php'); ?>
|
||||
<?php
|
||||
$id = $ROUTE->parameter['id'];
|
||||
|
||||
$book = $SITE->modules->Books()->getBook($id);
|
||||
if ($book === null) { $FRAME_OPTIONS->setForced404("Books not found"); return; }
|
||||
|
||||
$FRAME_OPTIONS->title = $book['title'];
|
||||
$FRAME_OPTIONS->canonical_url = $book['url'];
|
||||
$FRAME_OPTIONS->activeHeader = 'book';
|
||||
|
||||
$FRAME_OPTIONS->addScript('/data/javascript/ms_basic.js', true);
|
||||
?>
|
||||
|
||||
<div id="content" class="content-responsive">
|
||||
|
||||
<div class="blockcontent">
|
||||
|
||||
@ -70,7 +64,7 @@ if ($book === NULL) httpError(404, 'Book not found');
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24">
|
||||
<use xlink:href="/data/images/icons.svg#github"/>
|
||||
</svg>
|
||||
<span><?php echo Books::getRepositoryHost($book); ?></span>
|
||||
<span><?php echo $SITE->modules->Books()->getRepositoryHost($book); ?></span>
|
||||
</a>
|
||||
<a class="iconbutton" href="<?php echo $book['online'] ?>">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24">
|
||||
@ -116,12 +110,3 @@ if ($book === NULL) httpError(404, 'Book not found');
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include (__DIR__ . '/../fragments/footer.php'); ?>
|
||||
|
||||
</div>
|
||||
<?php printAdditionalScripts(); ?>
|
||||
<?php printAdditionalStylesheets(); ?>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user