Added album and item view icons (album, hybrid, slideshow, full size). Added "Options" menu placeholder to display item options (add, edit, subscribe, permissions, etc.). Renamed gAlbumHeaderMenu to gItemMenu which can be used on both album and item views.

This commit is contained in:
Chad Kieffer
2008-12-05 06:06:02 +00:00
parent 0d1c040605
commit bfd3a21dfd
7 changed files with 36 additions and 16 deletions

View File

@@ -299,6 +299,10 @@ table.gBlockContent td {
/* Album ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#gAlbumHeader {
position: relative;
}
#gAlbumHeader h1 {
display: inline;
margin-right: .6em;
@@ -309,10 +313,6 @@ table.gBlockContent td {
display: inline;
}
#gAlbumHeaderButtons {
float: right;
}
#gAlbumGrid {
margin-top: 20px;
}
@@ -492,6 +492,18 @@ table.gMetadata td.toggle {
width: 100%;
}
#gItemMenu {
margin: 0 0 20px 20px;
position: absolute;
right: 0;
top: 0;
}
#gItemMenu li {
float: left;
margin: 0 3px;
}
/* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#gBreadcrumbs {
@@ -656,8 +668,10 @@ table.gMetadata td.toggle {
.gButtonLink {
border: 1px solid #ccc;
padding: 5px;
margin-left: 5px;
display: block;
height: 24px;
line-height: 1.7em;
padding: 3px 1em 0;
}
.gButtonLink:hover {

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

View File

@@ -1,8 +1,12 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gAlbumHeader">
<div id="gAlbumHeaderButtons">
<?= $theme->album_top() ?>
</div>
<ul id="gItemMenu">
<li><?= $theme->album_top() ?></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-album.png") ?>" alt="<?= _("View album") ?>" /></a></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-hybrid.png") ?>" alt="<?= _("View album in hybrid mode") ?>" /></a></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-slideshow.png") ?>" alt="<?= _("View slideshow") ?>" /></a></li>
<li><a href="#" id="gAddItemLink" class="gButtonLink">v <?= _("Options") ?></a></li>
</ul>
<h1><?= $item->title_edit ?></h1>
<div class="gDescription"><?= $item->description_edit ?></div>
</div>

View File

@@ -1,18 +1,20 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gItemHeader">
<div id="gItemHeaderButtons">
<a href="" class="gButtonLink">
<?= sprintf(_("Full size (%dx%d)"), $item->width, $item->height) ?>
</a>
<?= $theme->photo_top() ?>
</div>
<ul id="gItemMenu">
<li><?= $theme->photo_top() ?></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-fullsize.png") ?>" alt="<?= sprintf(_("View full size image (%dx%d)"), $item->width, $item->height) ?>" /></a></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-album.png") ?>" alt="<?= _("View album") ?>" /></a></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-hybrid.png") ?>" alt="<?= _("View album in hybrid mode") ?>" /></a></li>
<li><a href="#"><img src="<?= $theme->url("images/ico-view-slideshow.png") ?>" alt="<?= _("View slideshow") ?>" /></a></li>
<li><a href="#" id="gAddItemLink" class="gButtonLink">v <?= _("Options") ?></a></li>
</ul>
<h1><?= $item->title_edit ?></h1>
</div>
<div id="gItem">
<img id="gPhotoID-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>"
width="<?= $item->resize_width ?>"
height="<?= $item->resize_height ?>" />
<h1><?= $item->title_edit ?></h1>
<div><?= $item->description_edit ?></div>
<?= $theme->photo_bottom() ?>