* 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
16 lines
877 B
Smarty
16 lines
877 B
Smarty
|
|
{if $smarty.session.AUTHENTICATED|default:"0" == 1}
|
|
<a href="#left-sidebar" data-icon="arrow-l" data-iconpos="notext" data-shadow="false" data-iconshadow="false" class="ui-icon-nodisc">Left Sidebar</a>
|
|
{/if}
|
|
<div data-role="navbar">
|
|
<ul>
|
|
<li><a href="{$smarty.server.PHP_SELF}" data-icon="info" data-ajax="false">News</a></li>
|
|
{if $smarty.session.AUTHENTICATED|default:"0" == 1}
|
|
<li><a href="{$smarty.server.PHP_SELF}?page=statistics&action=pool" data-icon="grid" data-ajax="false">Statistics</a></li>
|
|
<li><a href="{$smarty.server.PHP_SELF}?page=logout" data-icon="gear" data-ajax="false">Logout</a></li>
|
|
{else}
|
|
<li><a href="{$smarty.server.PHP_SELF}?page=login" data-icon="gear" data-ajax="false">Login</a></li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|