/**
 * 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();
    }
}
Example #2
0
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 
}
?>
/**
 * @deprecated
 */
function printCustomSizedImageMaxHeight($maxheight)
{
    deprecated_function_notify(gettext('Use printCustomSizedImageMaxSpace().'));
    if (getFullWidth() === getFullHeight() or getDefaultHeight() > $maxheight) {
        printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
    } else {
        printDefaultSizedImage(getImageTitle());
    }
}
Example #4
0
    ?>
</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">
					<strong>
Example #5
0
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';
}
?>
Example #6
0
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}\"" : "") . " />";
}
/**
 * This function is considered deprecated. 
 * Please use the new replacement get/printCustomSizedImageMaxSpace(). 
 * 
 * Prints out a sized image up to $maxheight tall (as width the value set in the admin option is taken)
 *
 * @param int $maxheight how bif the picture should be
 */
function printCustomSizedImageMaxHeight($maxheight)
{
    trigger_error(gettext('printCustomSizedImageMaxHeight is deprecated. Use printCustomSizedImageMaxSpace().'), E_USER_NOTICE);
    if (getFullWidth() === getFullHeight() or getDefaultHeight() > $maxheight) {
        printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
    } else {
        printDefaultSizedImage(getImageTitle());
    }
}
Example #8
0
</span>
			</div>
		</div> <!-- wrapnav -->

	</div> <!-- header -->

			<!-- The Image -->
			<?php 
makeImageCurrent(getRandomImages(true));
$size = floor(getOption('image_size') * $imagereduction);
if ($imagereduction != 1) {
    setOption('image_size', $size, false);
}
$s = getDefaultWidth() + 22;
$wide = "style=\"width:" . $s . "px;";
$s = getDefaultHeight() + 72;
$high = " height:" . $s . "px;\"";
?>
			<div id="image" <?php 
echo $wide . $high;
?>
>
			<p align="center">
			<?php 
echo gettext('Picture of the day');
?>
			</p>
				<div id="image_container">
					<a href="<?php 
echo htmlspecialchars(getGalleryIndexURL());
?>