summaryrefslogtreecommitdiffstats
path: root/templates/sidebar.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:00:32 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:38:46 -0500
commitef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch)
treee4377fb129a899e65aaaf421f8c97098aecaedd5 /templates/sidebar.inc.php
parent8a750c3e875d590d351c3042570a134fcdf03e5d (diff)
downloadampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'templates/sidebar.inc.php')
-rw-r--r--templates/sidebar.inc.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index 664ec3ed..ba2670ab 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -1,5 +1,5 @@
<?php
-/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
@@ -37,29 +37,29 @@ $web_path = Config::get('web_path');
?>
<ul id="sidebar-tabs">
<?php
- foreach ($sidebar_items as $item) {
- if (Access::check('interface',$item['access'])) {
- $li_params = "id='sb_tab_" . $item['id'] . "' class='sb1" . ${'sidebar_'.$item['id'] } . "'";
- ?><li <?php echo $li_params; ?>>
- <?php
+ foreach ($sidebar_items as $item) {
+ if (Access::check('interface',$item['access'])) {
+ $li_params = "id='sb_tab_" . $item['id'] . "' class='sb1" . ${'sidebar_'.$item['id'] } . "'";
+ ?><li <?php echo $li_params; ?>>
+ <?php
// Button
echo Ajax::button("?page=index&action=sidebar&button=".$item['id'],$item['icon'],$item['title'],'sidebar_'.$item['id']);
- // Include subnav if it's the selected one
- // so that it's generated inside its parent li
- if ($item['id']==$_SESSION['state']['sidebar_tab']) {
- ?><div id="sidebar-page"><?php
- require_once Config::get('prefix') . '/templates/sidebar_' . $_SESSION['state']['sidebar_tab'] . '.inc.php';
- ?></div><?php
+ // Include subnav if it's the selected one
+ // so that it's generated inside its parent li
+ if ($item['id']==$_SESSION['state']['sidebar_tab']) {
+ ?><div id="sidebar-page"><?php
+ require_once Config::get('prefix') . '/templates/sidebar_' . $_SESSION['state']['sidebar_tab'] . '.inc.php';
+ ?></div><?php
}
?></li><?php
}
- }
+ }
?>
<li id="sb_tab_logout" class="sb1">
- <a href="<?php echo Config::get('web_path'); ?>/logout.php" id="sidebar_logout" >
- <?php echo UI::get_icon('logout', T_('Logout')); ?>
- </a>
+ <a href="<?php echo Config::get('web_path'); ?>/logout.php" id="sidebar_logout" >
+ <?php echo UI::get_icon('logout', T_('Logout')); ?>
+ </a>
</li>
</ul>