diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-08 02:32:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-08 02:32:45 +0000 |
commit | 3460950693c609876022a02eb5f42a59c768029e (patch) | |
tree | 4ea3cad99ebd54630f896832ba682d5c25fd3726 /templates | |
parent | 47628fb4b901a5737743264ba14dca52be64a268 (diff) | |
download | ampache-3460950693c609876022a02eb5f42a59c768029e.tar.gz ampache-3460950693c609876022a02eb5f42a59c768029e.tar.bz2 ampache-3460950693c609876022a02eb5f42a59c768029e.zip |
tweaked album of the moment mojo and theoritical fix for flash player
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_box.inc.php | 2 | ||||
-rw-r--r-- | templates/show_index.inc.php | 2 | ||||
-rw-r--r-- | templates/show_random_albums.inc.php | 7 |
3 files changed, 5 insertions, 6 deletions
diff --git a/templates/show_box.inc.php b/templates/show_box.inc.php index 0682a9c4..6be8f960 100644 --- a/templates/show_box.inc.php +++ b/templates/show_box.inc.php @@ -22,9 +22,11 @@ ?> <span class="box-title"><?php echo $title; ?></span> <ol> + <?php if (count($items)) { ?> <?php foreach ($items as $item) { echo $item; } ?> + <?php } else { echo '<span class="error">' . _('Not Enough Data') . '</span>'; } ?> </ol> diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php index bc782046..37ce8246 100644 --- a/templates/show_index.inc.php +++ b/templates/show_index.inc.php @@ -31,7 +31,7 @@ </div> <div id="random_selection"> <?php - $albums = get_random_albums('5'); + $albums = get_random_albums('6'); if (count($albums)) { require_once(conf('prefix') . '/templates/show_random_albums.inc.php'); } ?> </div> diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index 04280235..4f8ebb41 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -29,12 +29,9 @@ $web_path = conf('web_path'); $album->format(); ?> <td> - <a target="_blank" href="<?php echo $web_path; ?>/image.php?type=popup&id=<?php echo $album_id; ?>"> - <img src="<?php echo $web_path; ?>/image.php?thumb=1&id=<?php echo $album_id; ?>" width="75" height="75" border="0"> + <a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>"> + <img src="<?php echo $web_path; ?>/image.php?thumb=1&id=<?php echo $album_id; ?>" width="75" height="75" border="0" title="<?php echo $album->f_title; ?>"> </a> - - <br /> - <?php echo $album->f_link; ?> </td> <?php } ?> </tr> |