1
0
www.mikescher.com/www/pages/books_list.php

48 lines
1.6 KiB
PHP
Raw Normal View History

2018-01-27 18:13:38 +01:00
<?php
2020-01-16 11:05:38 +01:00
require_once (__DIR__ . '/../internals/website.php');
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
2018-01-27 18:13:38 +01:00
?>
2020-01-16 11:05:38 +01:00
<?php
$FRAME_OPTIONS->title = 'Converted Books';
$FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com/books';
$FRAME_OPTIONS->activeHeader = 'books';
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
$allbooks = $SITE->modules->Books()->listAllNewestFirst();
?>
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
<div class="blockcontent booklst_content">
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
<div class="contentheader"><h1>Books/<wbr>Webserials I self-printed</h1><hr/></div>
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
<p>
These are some books I read but that do not have an official print version.<br />
So I type-setted them myself (mostly in <a href="https://www.lyx.org/">LyX</a>) and printed them <a href="https://www.epubli.de/">online</a>.<br />
I do <b>not</b> own the rights of any of these books.<br />
The LyX files and generated PDF's are public and everyone who wants can print them on his own.
</p>
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
<?php
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
echo '<div class="booklst_parent">' . "\n";
foreach ($allbooks as $book)
{
echo '<a class="booklst_entry" href="'.$book['url'].'">';
echo ' <div class="booklst_left">';
echo ' <img src="' . $book['preview_url'] . '" alt="Thumbnail ' . $book['title'] . '" />';
echo ' </div>';
echo ' <div class="booklst_right">';
echo ' <div class="booklst_date"><span>' . $book['date'] . '</span></div>';
echo ' <div class="booklst_title">' . htmlspecialchars($book['title']) . '</div>';
echo ' </div>';
echo '</a>' . "\n";
}
echo '</div>' . "\n";
2018-01-27 18:13:38 +01:00
2020-01-16 11:05:38 +01:00
?>
2018-01-27 18:13:38 +01:00
</div>