printHomeLink('', ' | '); } echo gettext('Home'); ?> </span> </div> </div> <!-- wrapnav --> </div> <!-- header --> <!-- The Image --> <?php $randomImage = getRandomImages($imageofday = getThemeOption('effervescence_daily_album_image')); if ($randomImage) { makeImageCurrent($randomImage); $size = floor(getOption('image_size') * $imagereduction); $s = getDefaultWidth($size) + 22; $wide = " style=\"width:" . $s . "px;"; $s = getDefaultHeight($size) + 72; $high = " height:" . $s . "px;\""; } else { $wide = " style=\"width:332px;"; $high = " height:162px;\""; } if ($imageofday) { ?> <p align="center"> <?php echo gettext('Picture of the day'); ?> </p> <?php
/** * Show video player with video loaded or display the image. * * @param string $alt Alt text * @param string $class Optional style class * @param string $id Optional style id */ function printDefaultSizedImage($alt, $class = NULL, $id = NULL) { global $_zp_current_image; if (is_null($_zp_current_image)) { return; } if (!$_zp_current_image->getShow()) { $class .= " not_visible"; } $album = $_zp_current_image->getAlbum(); $pwd = $album->getPassword(); if (!empty($pwd)) { $class .= " password_protected"; } if (isImagePhoto()) { //Print images $html = '<img src="' . html_encode(pathurlencode(getDefaultSizedImage())) . '" alt="' . html_encode($alt) . '"' . ' width="' . getDefaultWidth() . '" height="' . getDefaultHeight() . '"' . ($class ? " class=\"{$class}\"" : "") . ($id ? " id=\"{$id}\"" : "") . " />"; $html = zp_apply_filter('standard_image_html', $html); echo $html; } else { // better be a plugin class then echo $_zp_current_image->getContent(); } }
printImageTitle(true); ?> </h1> <div id="descText"><?php printImageDesc(true); ?> </div> <?php } ?> </div> <?php $ls = isLandscape(); setOption('image_size', 480, false); $w = getDefaultWidth(); $h = getDefaultHeight(); if ($ls) { $wide = ''; } else { $wide = "style=\"width:" . ($w + 22) . "px;\""; } ?> <div class="main" <?php echo $wide; ?> > <?php if ($show = !checkForPassword()) { ?> <p id="photo">
printHomeLink('', ' | '); printGalleryIndexURL(' | '); printParentBreadcrumb(); printAlbumBreadcrumb("", " | "); ?> </span> <?php printImageTitle(); ?> </div> </div> </div> <!-- The Image --> <?php $s = getDefaultWidth() + 22; $wide = " style=\"width:" . $s . "px;"; $s = getDefaultHeight() + 22; $high = " height:" . $s . "px;\""; ?> <div id="image" <?php echo $wide . $high; ?> > <?php if (isImagePhoto()) { $fullimage = getFullImageURL(); $imgclass = 'photo'; } else { $fullimage = NULL; $imgclass = 'video';
} ?> </div> <div id="image"> <?php if (isImagePhoto()) { ?> <img src="<?php echo html_encode(pathurlencode(getDefaultSizedImage())); ?> " alt="<?php printBareImageTitle(); ?> " style="max-width:<?php echo getDefaultWidth(); ?> px"/> <?php } else { printDefaultSizedImage(getImageTitle()); } if (isImageVideo() && getOption('zpmobile_mediadirectlink')) { ?> <p><a href="<?php echo html_encode(getUnprotectedImageURL()); ?> " title="<?php echo gettext('Direct link'); ?> " rel="external"><?php
function printDefaultSizedImageAlt($alt, $class = NULL, $id = NULL) { echo "<img style=\"filter: alpha(opacity=0); -moz-opacity: 0; -khtml-opacity: 0; opacity: 0;\" onload=\"opacity('fadein', 0, 100, 500)\" id=\"fadein\" src=\"" . getDefaultSizedImage() . "\" alt=\"{$alt}\"" . " width=\"" . getDefaultWidth() . "\" height=\"" . getDefaultHeight() . "\"" . ($class ? " class=\"{$class}\"" : "") . ($id ? " id=\"{$id}\"" : "") . " />"; }
/** * Show video player with video loaded or display the image. * * @param string $alt Alt text * @param string $class Optional style class * @param string $id Optional style id */ function printDefaultSizedImage($alt, $class = NULL, $id = NULL) { global $_zp_current_image; if (is_null($_zp_current_image)) { return; } if (!$_zp_current_image->getShow()) { $class .= " not_visible"; } $album = $_zp_current_image->getAlbum(); $pwd = $album->getPassword(); if (zp_loggedin() && !empty($pwd)) { $class .= " password_protected"; } if (isImagePhoto()) { //Print images echo '<img src="' . htmlspecialchars(getDefaultSizedImage()) . '" alt="' . html_encode($alt) . '"' . ' title="' . html_encode($alt) . '"' . ' width="' . getDefaultWidth() . '" height="' . getDefaultHeight() . '"' . ($class ? " class=\"{$class}\"" : "") . ($id ? " id=\"{$id}\"" : "") . " />"; } else { // better be a plugin class then echo $_zp_current_image->getBody(); } }