* Login to mobile version to enable sidebar * Swipe right to display your old dashboard * Modified `home.inc.php` to default to news at all times again * Modified sidebar implementation to change via config setting * Modified mobile navigation bar and header * Added `sidebar_prop.tpl` file for both themes Some breaking changes might be introduced here if you are running your own template implementation. Please ensure that `home/default.tpl` will display the news posts. `sidebar.tpl` is now `sidebar_prop.tpl`. If the files are missing you will get a PHP error. Check your logs what file is missing and create them from my original samples. Fixes #283
20 lines
514 B
PHP
20 lines
514 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
|
|
// Include markdown library
|
|
use \Michelf\Markdown;
|
|
|
|
// Fetch active news to display
|
|
$aNews = $news->getAllActive();
|
|
foreach ($aNews as $key => $aData) {
|
|
// Transform Markdown content to HTML
|
|
$aNews[$key]['content'] = Markdown::defaultTransform($aData['content']);
|
|
}
|
|
|
|
// Load news entries for Desktop site and unauthenticated users
|
|
$smarty->assign("NEWS", $aNews);
|
|
$smarty->assign("CONTENT", "default.tpl");
|
|
?>
|