1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-11-09 23:06:45 +00:00
tcl_update_db/menu.php
Peter Sorger f6d7b28313
Added RSS feed to menu.php
Added RSS feed to menu.php with a nice icon
2018-06-04 09:34:32 -04:00

42 lines
1.5 KiB
PHP

<?php
$menu_items = array(
array('index.php', 'view_agenda', 'Version Table'),
array('timeline.php', 'view_list', 'Version Timeline'),
array('rss.php', 'rss_feed', 'RSS Feed'),
'---',
array('https://github.com/mbirth/tcl_update_db', 'code', 'GitHub Source'),
);
$this_page = basename($_SERVER['SCRIPT_NAME']);
?>
<aside class="mdc-drawer mdc-drawer--temporary">
<nav class="mdc-drawer__drawer">
<header class="mdc-drawer__header">
<div class="mdc-drawer__header-content mdc-theme--text-primary-on-primary mdc-theme--primary-bg">
BlackBerry/TCL Firmwares
</div>
</header>
<nav class="mdc-drawer__content mdc-list-group">
<div class="mdc-list">
<?php
foreach ($menu_items as $mi) {
if (is_array($mi)) {
if ($mi[0] == $this_page) {
echo '<a class="mdc-list-item mdc-list-item--selected" href="#">' . PHP_EOL;
} else {
echo '<a class="mdc-list-item" href="' . $mi[0] . '">' . PHP_EOL;
}
echo '<i class="material-icons mdc-list-item__graphic" aria-hidden="true">' . $mi[1] . '</i>' . $mi[2] . PHP_EOL;
echo '</a>' . PHP_EOL;
} elseif ($mi == '---') {
echo '</div>' . PHP_EOL;
echo '<hr class="mdc-list-divider"/>' . PHP_EOL;
echo '<div class="mdc-list">' . PHP_EOL;
}
}
?>
</div>
</nav>
</nav>
</aside>