Switch the slideshow link from text to icon.

This commit is contained in:
Chad Kieffer
2008-12-06 17:18:55 +00:00
parent 611b8f44ed
commit dca3cd2e8d
3 changed files with 8 additions and 12 deletions

View File

@@ -23,19 +23,18 @@ class slideshow_block_Core {
"</script>";
}
private static function _piclens_link() {
return "<a href=\"javascript:PicLensLite.start()\" id=\"gSlideshowLink\" " .
"class=\"gButtonLink\">" .
_("Slideshow") .
"</a>";
private static function _piclens_link($theme) {
return "<a href=\"javascript:PicLensLite.start()\" id=\"gSlideshowLink\">" .
"<img src=\"" . $theme->url("images/ico-view-slideshow.png") . "\" alt=\"" .
_("View slideshow") . "\" /></a>";
}
public static function album_top($theme) {
return self::_piclens_link();
return self::_piclens_link($theme);
}
public static function photo_top($theme) {
return self::_piclens_link();
return self::_piclens_link($theme);
}
public static function tag_top($theme) {

View File

@@ -1,10 +1,9 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gAlbumHeader">
<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><?= $theme->album_top() ?></li>
<li><a href="#" id="gAddItemLink" class="gButtonLink">v <?= _("Options") ?></a></li>
</ul>
<h1><?= $item->title_edit ?></h1>

View File

@@ -1,11 +1,9 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gItemHeader">
<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><?= $theme->photo_top() ?></li>
<li><a href="#" id="gAddItemLink" class="gButtonLink">v <?= _("Options") ?></a></li>
</ul>
<h1><?= $item->title_edit ?></h1>