Beispiel #1
0
function ji_show_thumb()
{
    /*
    	$cw - crop width
    	$ch - crop height
    	$iw - image width
    	$ih - image height
    */
    $iw = $cw = THM_WIDTH;
    $ih = $ch = THM_HEIGHT;
    ?>
<li>
	<a href="<?php 
    echo getAlbumURL();
    ?>
"
		title="<?php 
    echo getAlbumTitle();
    ?>
"><img
		src="<?php 
    echo getCustomAlbumThumb(null, $iw, $ih, $cw, $ch);
    ?>
"
		alt="<?php 
    echo getAlbumTitle();
    ?>
"
		width="<?php 
    echo $iw;
    ?>
" height="<?php 
    echo $ih;
    ?>
" />
		<span><?php 
    echo getNumImages() . ' images';
    if (getAlbumDesc() == '') {
        echo '<br /><br />[' . getAlbumTitle() . ']';
    } else {
        echo '<br /><br />' . getAlbumDesc();
    }
    ?>
</span></a>
</li>
<?php 
}
Beispiel #2
0
			<div class="image">
				<a href="<?php 
    echo getAlbumURL();
    ?>
"
					title="<?php 
    if (getAlbumDesc() == "") {
        echo getAlbumTitle();
    } else {
        echo getAlbumTitle() . ' - ' . getAlbumDesc();
    }
    ?>
"><img
					src="<?php 
    echo getCustomAlbumThumb(0, 100, 100);
    ?>
"
					alt="<?php 
    echo 'Album ' . ($count + ($currentPage - 1) * $albumsPerPage) . ' of ' . getNumAlbums();
    ?>
"
					width="100" height="100"<?php 
    if ($pc_AjaxFx) {
        echo '
				onLoad="new Effect.Fade(this, {from: 1 , to: .5, queue: \'parallel\', duration: .3});"
				onMouseOver="new Effect.Appear(this, {from: .5 , to: 1, queue: \'parallel\', duration: .3});"
				onMouseOut="new Effect.Fade(this, {from: 1 , to: .5, queue: \'parallel\', duration: .3});"
				';
    }
    ?>
Beispiel #3
0
<?php 
while (next_album()) {
    ?>
						<li id="<?php 
    echo 'album-' . $_zp_current_album->getID();
    ?>
" class="album">
							<a title="<?php 
    echo html_encode(getAlbumDesc());
    ?>
" href="<?php 
    echo htmlspecialchars(getAlbumURL());
    ?>
">
								<img src="<?php 
    echo getCustomAlbumThumb(298, NULL, NULL, 298, 178, NULL, NULL, false);
    ?>
" alt="<?php 
    echo html_encode(getAlbumTitle() . ' (' . getAlbumDate(getOption('date_format')) . ')');
    ?>
" />
							<span><?php 
    echo getAlbumTitle() . '<br />(' . getAlbumDate(getOption('date_format')) . ')';
    ?>
</span>
							</a>
						</li>
<?php 
}
?>
					</ul>
/**
 * Returns a link to a un-cropped custom sized version of the current album thumb within the given height and width dimensions.
 *
 * @param int $width width
 * @param int $height height
 * @return string
 */
function getCustomAlbumThumbMaxSpace($width, $height)
{
    global $_zp_current_album;
    $albumthumb = $_zp_current_album->getAlbumThumbImage();
    getMaxSpaceContainer($width, $height, $albumthumb, true);
    return getCustomAlbumThumb(NULL, $width, $height, NULL, NULL, NULL, NULL);
}
Beispiel #5
0
				<div>
					<ul class="list">
						<?php 
while (next_album()) {
    $c++;
    ?>
							<li class="thumb album">
								<a title="<?php 
    echo html_encode(getAlbumDesc());
    ?>
" href="<?php 
    echo htmlspecialchars(getAlbumURL());
    ?>
">
									<img src="<?php 
    echo getCustomAlbumThumb(250, NULL, NULL, 250, 150, NULL, NULL, false);
    ?>
" alt="<?php 
    echo html_encode(getAlbumTitle() . ' (' . getAlbumDate(getOption('date_format')) . ')');
    ?>
" />
									<span><?php 
    echo getAlbumTitle() . '<br />(' . getAlbumDate(getOption('date_format')) . ')';
    ?>
</span>
								</a>
							</li>
						<?php 
}
?>
						<div class="clear_left"></div>
Beispiel #6
0
				</div>

				<script>
					var data = [
						<?php 
    $c = 0;
    if (isAlbumPage()) {
        while (next_album(true)) {
            if ($c == 0) {
                echo '{' . "\n";
            } else {
                echo ',{' . "\n";
            }
            echo 'thumb: \'' . getAlbumThumb() . '\',' . "\n";
            echo 'image: \'' . getCustomAlbumThumb(getOption('image_size')) . '\',' . "\n";
            echo 'big: \'' . getCustomAlbumThumb(getOption('zpbase_galbigsize')) . '\',' . "\n";
            echo 'title: \'' . html_encode(getBareAlbumTitle()) . '\',' . "\n";
            if (getNumAlbums() > 0 && getNumImages() > 0) {
                $divider = '/ ';
            } else {
                $divider = '';
            }
            if (getNumAlbums() > 0) {
                $albumcount = getNumAlbums() . ' ' . gettext('albums');
            } else {
                $albumcount = '';
            }
            if (getNumImages() > 0) {
                $imagecount = getNumImages() . ' ' . gettext('images');
            } else {
                $imagecount = '';
Beispiel #7
0
<div id="album-nav" class="left opa60">
	<div class="nav-cell filler"><span>&nbsp;</span></div>
	<?php 
$prevText = "<div id='image-nav-prev' class='image-nav-scroll opa60'><img src='{$_zp_themeroot}/resources/images/arrow_up.png' width='16' height='16'/></div>";
$nextText = "<div id='image-nav-next' class='image-nav-scroll opa60 {$cls}'><img src='{$_zp_themeroot}/resources/images/arrow_down.png' width='16' height='16'/></div>";
$prevNext = AlbumUtil::printNavigation($prevText, $nextText, false, 7, true);
?>
	<div class="nav-cell filler end"><span>&nbsp;</span></div>
</div>

<div style="padding-left: 1px;">
	<div id="album-menu" class="opa60">
		<div id="album-thumb">
			<img src="<?php 
echo getCustomAlbumThumb(NULL, 192, 48, 192, 48, NULL, null, false);
?>
" width="195" height="48"/>
		</div>
	</div>
	
	<?php 
$desc = getAlbumDesc();
if (!$isAlbumPage && isset($desc) && trim($desc) != '') {
    ?>
		<div id="album-description" class="opa60">
			<?php 
    echo getAlbumDesc();
    ?>
		</div>
	<?php