summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2007-08-15 23:11:49 +0000
committerspocky <spocky@ampache>2007-08-15 23:11:49 +0000
commit376d632160618bba772d88e57d95405317cf8920 (patch)
tree235a3dfbaa6d24a4995d0ba17460e460d0fdeee9 /templates
parentc8bfff18ef4f70b0abf9f3d7e2eaf0079bab29f8 (diff)
downloadampache-376d632160618bba772d88e57d95405317cf8920.tar.gz
ampache-376d632160618bba772d88e57d95405317cf8920.tar.bz2
ampache-376d632160618bba772d88e57d95405317cf8920.zip
updated css (sidebar, random albums, global classes)
cleaned up html corrected a typo in show_objects
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.inc.php4
-rw-r--r--templates/header.inc.php4
-rw-r--r--templates/show_album.inc.php4
-rw-r--r--templates/show_objects.inc.php2
-rw-r--r--templates/show_random_albums.inc.php21
5 files changed, 18 insertions, 17 deletions
diff --git a/templates/footer.inc.php b/templates/footer.inc.php
index 2b306aa5..66afe41d 100644
--- a/templates/footer.inc.php
+++ b/templates/footer.inc.php
@@ -21,8 +21,8 @@
*/
?>
</div> <!-- end id="content"-->
-<!-- I really hate IE -->
-</td></tr></table>
+<!-- I really hate IE
+</td></tr></table> -->
</div> <!-- end id="maincontainer"-->
<div id="footer">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
diff --git a/templates/header.inc.php b/templates/header.inc.php
index 844ff186..90f4782a 100644
--- a/templates/header.inc.php
+++ b/templates/header.inc.php
@@ -77,8 +77,8 @@ if (Config::get('use_rss')) { ?>
<div id="rightbar"><!-- This is the rightbar -->
<?php require_once Config::get('prefix') . '/templates/rightbar.inc.php'; ?>
</div>
-<!-- I hate IE... -->
-<table class="smeg-ie" width="100%"><tr><td>
+<!-- I hate IE...
+<table class="smeg-ie" width="100%"><tr><td> -->
<div id="content">
<?php if (Config::get('int_config_version') != Config::get('config_version') AND $GLOBALS['user']->has_access(100)) { ?>
<div class="fatalerror">
diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php
index 7e10e085..203f911f 100644
--- a/templates/show_album.inc.php
+++ b/templates/show_album.inc.php
@@ -37,9 +37,9 @@ $title = scrub_out($album->name) . ' (' . $album->year . ') -- ' . $album->f_ar
?>
</div>
<div style="display:table-cell;vertical-align:top;">
- <div style="float:left; display:inline;" id="rating_<?php echo $album->id; ?>_album">
+ <!--<div style="float:left; display:inline;" id="rating_<?php echo $album->id; ?>_album">-->
<?php Rating::show($album->id,'album'); ?>
- </div>
+ <!--</div>-->
</div>
<strong><?php echo _('Actions'); ?>:</strong><br />
<div id="information_actions">
diff --git a/templates/show_objects.inc.php b/templates/show_objects.inc.php
index 0cb0d935..72e79f89 100644
--- a/templates/show_objects.inc.php
+++ b/templates/show_objects.inc.php
@@ -33,7 +33,7 @@
foreach ($objects as $object) {
$object->format();
?>
-<tr id="object_row_<?php echo $object->uid; ?>" class="<?php echo flip_class(); ?>">
+<tr id="object_row_<?php echo $object->id; ?>" class="<?php echo flip_class(); ?>">
<?php require Config::get('prefix') . '/templates/show_object_row.inc.php'; ?>
</tr>
<?php } ?>
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php
index a3fcd98e..e8e4749d 100644
--- a/templates/show_random_albums.inc.php
+++ b/templates/show_random_albums.inc.php
@@ -21,30 +21,31 @@
$web_path = Config::get('web_path');
?>
<?php show_box_top(_('Albums of the Moment')); ?>
-<table class="tabledata">
-<tr>
+
<?php
foreach ($albums as $album_id) {
$album = new Album($album_id);
$album->format();
$name = scrub_out('[' . $album->artist . '] ' . $album->name);
?>
- <td>
+ <div class="random_album">
<a href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $album_id; ?>">
<?php if (Config::get('show_album_art')) { ?>
<img src="<?php echo $web_path; ?>/image.php?thumb=3&amp;id=<?php echo $album_id; ?>" width="80" height="80" border="0" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
<?php } else { ?>
<?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?>
<?php } ?>
- </a><br />
+ </a>
<?php
if(Config::get('ratings')){
- echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">";
- show_rating_static($album->id, 'album');}
- echo "</div>";
+ //echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">";
+ show_rating_static($album->id, 'album');
+ //echo "</div>";
+ }
?>
- </td>
+ <span class="play_album"><?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Play Album'),'play_full_' . $album->id); ?></span>
+ </div>
+
<?php } ?>
-</tr>
-</table>
+
<?php show_box_bottom(); ?>