diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /templates/show_album_art.inc.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-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/show_album_art.inc.php')
-rw-r--r-- | templates/show_album_art.inc.php | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 838bf5fb..1ff7fefc 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.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) @@ -30,33 +30,33 @@ $i = 0; <tr> <?php while ($i <= $rows) { - $j=0; - while ($j < 4) { - $key = $i*4+$j; - $image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key; - $dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album')); - if (!isset($images[$key])) { echo "<td> </td>\n"; } - else { + $j=0; + while ($j < 4) { + $key = $i*4+$j; + $image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key; + $dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album')); + if (!isset($images[$key])) { echo "<td> </td>\n"; } + else { ?> - <td align="center"> - <a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo T_('Album Art'); ?>" border="0" height="175" width="175" /></a> - <br /> - <p align="center"> - <?php if (is_array($dimensions)) { ?> - [<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['height']); ?>] - <?php } else { ?> - <span class="error"><?php echo T_('Invalid'); ?></span> - <?php } ?> - [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo T_('Select'); ?></a>] - </p> - </td> + <td align="center"> + <a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo T_('Album Art'); ?>" border="0" height="175" width="175" /></a> + <br /> + <p align="center"> + <?php if (is_array($dimensions)) { ?> + [<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['height']); ?>] + <?php } else { ?> + <span class="error"><?php echo T_('Invalid'); ?></span> + <?php } ?> + [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo T_('Select'); ?></a>] + </p> + </td> <?php - } // end else - $j++; - } // end while cells - if($i < $rows) { echo "</tr>\n<tr>"; } + } // end else + $j++; + } // end while cells + if($i < $rows) { echo "</tr>\n<tr>"; } else { echo "</tr>"; } - $i++; + $i++; } // end while ?> </table> |