Exemplo n.º 1
0
/**
 * Prints the description of the current image.
 * Converts and displays line breaks set in the admin field as <br />.
 *
 */
function printImageDesc()
{
    echo html_encodeTagged(getImageDesc());
}
Exemplo n.º 2
0
						</a>
					<?php 
} else {
    printDefaultSizedImage(html_encode(getImageTitle()), 'image', 'player');
}
?>
				</div>
				<div class="data">
					<?php 
if (getImageTitle()) {
    echo '<div class="c"><h4 class="box title">' . getImageTitle() . '</h4></div>';
}
?>
					<?php 
if (getImageDesc()) {
    echo '<div class="c"><div class="box desc">' . getImageDesc() . '</div></div>';
}
?>
					<?php 
if (getImageLocation()) {
    echo '<div class="c"><small class="box location">' . getImageLocation() . '</small></div>';
}
?>
					<?php 
if (getImageDate()) {
    echo '<div class="c"><small class="box date">' . getImageDate('%d.%m.%y %H:%M') . '</small></div>';
}
?>
				</div>
			</div>
<?php 
Exemplo n.º 3
0
    ?>
		<div class="audiovideo">
		<?php 
    printDefaultSizedImage(getBareImageTitle());
    ?>
		</div>
		<?php 
}
?>
	</div>


	<div id="narrow">

	<?php 
if (getImageDesc() != '') {
    ?>
		<div id="desc">
			<?php 
    printImageDesc(true);
    ?>
		</div>
	<?php 
}
?>

	<!-- exif -->


		<div id="comments">
		<?php 
Exemplo n.º 4
0
								<div><?php 
    echo getAlbumDesc();
    ?>
</div>
							</div>
						</li>
						<?php 
}
?>
						<?php 
while (next_image()) {
    ?>
						<li>
							<div class="thumb">
								<a title="<?php 
    echo html_encode(getImageDesc());
    ?>
" href="<?php 
    echo htmlspecialchars(getImageURL());
    ?>
">
									<img src="<?php 
    echo getCustomImageURL(150, NULL, NULL, 150, 150, NULL, NULL, true);
    ?>
" alt="<?php 
    echo html_encode(getBareImageTitle() . ' (' . getImageDate(getOption('date_format')) . ')');
    ?>
" />
								</a>
							</div>
						</li>
Exemplo n.º 5
0
 function getImagesHTML()
 {
     global $_zp_themeroot, $_zp_current_image, $_zp_current_album;
     $showImages = $this->getNumImages() > 0 && $this->albumPage >= $this->getFirstImagePage();
     $w = 318;
     if (!$showImages) {
         return '';
     }
     $inContext = $this->context & ZP_IMAGE || in_context(ZP_SEARCH);
     if ($inContext && $_zp_current_image) {
         $fileName = $_zp_current_image->getFileName();
         $folder = $_zp_current_image->album->getFilename();
     }
     $u = 0;
     $initialHeight = 0;
     $images = '';
     $start = $this->getAlbumPage() - ($this->getNumAlbums() > 0 ? $this->getFirstImagePage() - 1 : 0);
     $albumImages = $this->getAlbumImages($start);
     for ($k = 0; $k < count($albumImages); $k++) {
         $_zp_current_image = $this->getImage($albumImages[$k]);
         if ($u == 0) {
             $image = $_zp_current_image;
         }
         $cls = '';
         if (!$inContext && $u == 0 || $inContext && !$fileName && $u == 0 || $inContext && $_zp_current_image && $fileName == $_zp_current_image->getFileName() && $folder == $_zp_current_image->album->getFilename()) {
             $cls = 'force-selection';
             $image = $_zp_current_image;
         }
         $title = getImageTitle();
         $size = getSizeCustomImage(NULL, $w);
         $desc = getImageDesc();
         if (!empty($desc)) {
             //$desc = theme_clean($desc);
         } else {
             $desc = '';
         }
         $small = getCustomImageURL(NULL, $w);
         $full = getOption('protect_full_image') == 'Unprotected' ? getUnprotectedImageURL() : '';
         $thumb = getCustomImageURL(NULL, 32, 32);
         $width = $size[0];
         $height = $size[1];
         if ($width < $w + 2) {
             $width = $w + 2;
             $height = $height * ($w + 2) / $width;
         }
         if ($u == 0) {
             $initialHeight = $height;
         }
         $images .= "<span class='img img-{$u}' width='35' height='35'>" . "<a href='" . $this->getImageThumbLink() . "' sref='{$small}' title='{$title}' targetHeight='{$height}' >" . "<img src='{$thumb}' index='{$u}' width='35' height='35' title='{$title}' class='{$cls}' ref='{$full}' />" . "</a>" . "</span>";
         $u++;
     }
     $m = $u;
     while ($u < 8) {
         $images .= "<span class='img img-{$u}'>" . "<img src='{$_zp_themeroot}/resources/images/opa/bg-b-20.png' width='35' height='35' />" . "</span>";
         $u++;
     }
     if (!in_context(ZP_IMAGE)) {
         set_context(get_context() | ZP_IMAGE);
     }
     $_zp_current_image = $image;
     $numAlbums = $this->getNumAlbums();
     $slideshowLink = $this->getSlideshowLink();
     $s = ($this->getAlbumPage() - $this->getFirstImagePage()) * getOption('images_per_page');
     $batch = $s + 1 . "-" . ($s + $m);
     $imagesDivs = "<div id='subalbum-count' class='count'>" . (isset($slideshowLink) ? "<span id='album-slideshow-link' class='unselected'><a href='{$slideshowLink}'>Slideshow</a></span>" : "") . ($numAlbums > 0 ? "<span id='subalbum-count' class='unselected'>" . "<a href='" . $this->getAlbumTabLink() . "'>" . $numAlbums . " " . gettext($this->getAlbumTabText($numAlbums)) . "</a>" . "</span>" : "") . "<span class='selected last'>{$batch} / " . $this->getNumImages() . " " . gettext("images") . "</span></div>" . "<div id='images'>{$images}</div>" . "<div id='image-container'>" . "<img src='" . getCustomImageURL(NULL, $w) . "' width='316' />" . "</div> ";
     return $imagesDivs;
 }
Exemplo n.º 6
0
                    ?>
"></a>
								<?php 
                }
                ?>
								<div class="caption">
									<div class="image-title"><?php 
                printImageTitle(false);
                ?>
</div>
									<?php 
                if (strlen(getImageDesc()) > 0) {
                    ?>
									<div class="image-desc">
										<?php 
                    echo shortenContent(getImageDesc(), 300, '...');
                    ?>
		
									</div>
									<?php 
                }
                ?>
									<div><?php 
                printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'hor-list', ', ', false);
                ?>
</div>
									<div class="download">
										<?php 
                if (isImageVideo()) {
                    $downLoadText = gettext('Video');
                } else {
Exemplo n.º 7
0
    function theme_content($map)
    {
        global $_zp_current_image, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="images">
				<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
					<div id="gallery" class="ad-gallery">
						<div class="ad-image-wrapper"></div>
						<div class="ad-controls"></div>
						<div class="ad-nav">
							<div class="ad-thumbs">
								<ul class="ad-thumb-list">
									<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
											<li>
												<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
													<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
															 class="image<?php 
                        echo $lastImage;
                        ?>
"
															 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
												</a>
											</li>
											<?php 
                    }
                }
                ?>
								</ul>
							</div>
						</div>
					</div>
				<?php 
            }
            ?>

				<div id="caption"<?php 
            if (getOption('garland_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
				</div>
				<div class="clearage"></div>
			</div><!-- images -->
			<br class="clearall" />
			<?php 
        }
    }
Exemplo n.º 8
0
?>
		</div>
		<div id="content" class="c">
			<div id="description">
				<div class="c">
					<div id="title" class="box"><h3><?php 
printImageTitle(true);
?>
</h3></div>
					<div id="date" class="box"><?php 
echo '( ' . getImageDate(getOption('date_format')) . ' )';
?>
</div>
				</div>
				<?php 
if (getImageDesc() or zp_loggedin()) {
    echo '<div class="c"><div id="desc" class="box">';
    echo printImageDesc(true);
    echo '</div></div>';
}
if (getTags() or zp_loggedin()) {
    echo '<div class="c"><div id="tags" class="box">';
    printTags('links', '', '', ', ', true, '', true);
    echo '</div></div>';
}
if (function_exists('printRating')) {
    echo '<div class="c"><div id="rating">';
    printRating();
    echo '</div></div>';
}
?>
Exemplo n.º 9
0
    function theme_content($map)
    {
        global $_zp_current_image, $_zp_current_album, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="content">
				<div id="main">
					<div id="images">
						<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
							<div id="gallery" class="ad-gallery">
								<div class="ad-image-wrapper"></div>
								<div class="ad-controls"></div>
								<div class="ad-nav">
									<div class="ad-thumbs">
										<ul class="ad-thumb-list">
											<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
													<li>
														<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
															<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
																	 class="image<?php 
                        echo $lastImage;
                        ?>
"
																	 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
														</a>
													</li>
													<?php 
                    }
                }
                ?>
										</ul>
									</div>
								</div>
							</div>
							<?php 
            }
            ?>

						<div id="caption"<?php 
            if (getOption('effervescence_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
						</div>
						<div class="clearage"></div>
						<?php 
            if (!empty($points) && $map) {
                function map_callback($map)
                {
                    global $points;
                    foreach ($points as $coord) {
                        addGeoCoord($map, $coord);
                    }
                }
                ?>
							<div id="map_link">
							<?php 
                printGoogleMap(NULL, NULL, NULL, 'album_page', 'map_callback');
                ?>
							</div>
						<?php 
            }
            ?>
					</div><!-- images -->
			<?php 
            if (function_exists('printAddToFavorites')) {
                printAddToFavorites($_zp_current_album);
            }
            ?>
			<?php 
            @call_user_func('printRating');
            ?>
				</div><!-- main -->
				<div class="clearage"></div>
			</div><!-- content -->
			<?php 
        }
    }
Exemplo n.º 10
0
					<?php 
$singletag = getTags();
$tagstring = implode(', ', $singletag);
?>
					<ul class="image-info">
						<?php 
if (strlen(getImageDate()) > 0 || zp_loggedin()) {
    ?>
<li class="date"><?php 
    printImageDate('');
    ?>
</li><?php 
}
?>
						<?php 
if (strlen(getImageDesc()) > 0 || zp_loggedin()) {
    ?>
<li class="desc"><?php 
    printImageDesc();
    ?>
</li><?php 
}
if (strlen($tagstring) > 0 || zp_loggedin()) {
    ?>
<li class="tags"><?php 
    printTags('links', ' ', 'taglist', ', ');
    ?>
</li><?php 
}
?>
					</ul>
Exemplo n.º 11
0
/**
 * Returns a text-only description of the current image.
 *
 * @return string
 */
function getBareImageDesc()
{
    return strip_tags(getImageDesc());
}
/**
 * Returns a text-only description of the current image.
 *
 * @return string
 */
function getBareImageDesc()
{
    return html_encode(getImageDesc());
}
Exemplo n.º 13
0
?>
		<?php 
if (!empty($tburl)) {
    ?>
			</a>
			<?php 
}
?>
	</div>
	<div id="narrow">
        <div style="text-align:center; font-weight: bold; color: #999;"><?php 
printImageTitle(true);
?>
</div>
		<?php 
$d = getImageDesc();
if (!empty($d)) {
    ?>
 <div class="imagedesc"><?php 
    printImageDesc(true);
    ?>
</div> <?php 
}
?>
		<?php 
/* printTags('links', gettext('<strong>Tags:</strong>').' ', 'taglist', ', '); */
?>
		<br style="clear:both;" /><br />
		<?php 
if (function_exists('printSlideShowLink')) {
    echo '<span id="slideshowlink">';
Exemplo n.º 14
0
    header('Content-Type: application/xml');
    $path = '..';
    echo '<?xml version="1.0" encoding="UTF-8"?>
<simpleviewerGallery title=""  maxImageWidth="' . $maxImageWidth . '" maxImageHeight="' . $maxImageHeight . '" textColor="' . $textColor . '" frameColor="' . $frameColor . '" frameWidth="' . $frameWidth . '" stagePadding="' . $stagePadding . '" thumbnailColumns="' . $thumbnailColumns . '" thumbnailows="' . $thumbnailRows . '" navPosition="' . $navPosition . '" enableRightClickOpen="' . $enableRightClickOpen . '" backgroundImagePath="' . $backgroundImagePath . '" imagePath="' . $path . '" thumbPath="' . $path . '">';
    ?>

<?php 
    while (next_image(true)) {
        ?>
<image><filename><?php 
        echo htmlspecialchars(getFullImageURL());
        ?>
</filename><caption><![CDATA[<a href="<?php 
        echo htmlspecialchars(getImageLinkURL());
        ?>
" title="<?php 
        echo gettext('Open in a new window');
        ?>
">
<font face="Times"><u><b><em><?php 
        echo getImageTitle();
        ?>
</font></em></b></u></a></u>
<br></font><?php 
        echo getImageDesc();
        ?>
]]></caption></image><?php 
    }
    ?>
</simpleviewerGallery><?php 
}
Exemplo n.º 15
0
<?php 
$imagesPerPage = getOption('images_per_page');
$count = 1;
while (next_image() && $count <= $imagesPerPage) {
    ?>

			<div class="image">
				<a href="<?php 
    echo getImageURL();
    ?>
"
					title="<?php 
    if (getImageDesc() == "") {
        echo getImageTitle();
    } else {
        echo getImageTitle() . ' - ' . getImageDesc();
    }
    ?>
"><img
					src="<?php 
    echo getCustomImageURL(100, 100, 100, 100);
    ?>
"
					alt="<?php 
    echo 'Image ' . ($count + ($currentPage - 1) * $imagesPerPage) . ' of ' . getNumImages();
    ?>
"
					width="100" height="100"<?php 
    if ($pc_AjaxFx) {
        echo '
				onLoad="new Effect.Fade(this, {from: 1 , to: .5, queue: \'parallel\', duration: .3});"
Exemplo n.º 16
0
    while (next_album()) {
        $a = $_zp_current_album;
        $thumb = $a->getAlbumThumbImage();
        $title = $a->getTitle();
        $desc = $a->getDesc();
        $customThumb = $thumb->getCustomImage(NULL, 202, 56, 202, 56, NULL, NULL, false);
        $url = getAlbumURL();
        echo "\t<div class='thumb' index='{$u}' title='{$title}' location='{$customThumb}' url='{$url}'><description>{$desc}</description></div>\n";
        $u++;
    }
} else {
    $u = 0;
    while (next_image()) {
        $title = getImageTitle();
        $size = getSizeCustomImage(NULL, 383);
        $desc = getImageDesc();
        if (!empty($desc)) {
            $desc = theme_clean($desc);
        } else {
            $desc = '';
        }
        $thumb = getImageThumb();
        $small = getCustomImageURL(NULL, 383);
        $full = getFullImageURL();
        $width = $size[0];
        $height = $size[1];
        $rating = $_zp_current_image->get('rating');
        echo "\t<div class='thumb' index='{$u}' title='{$title}' \n\t\twidth='{$width}' " . "\n\t\theight='{$height}' \n\t\turl='{$full}' \n\t\tpreviewUrl='{$small}'" . "\n\t\tlocation='{$thumb}' \n\t\trating='{$rating}' \n\t\tobject_id='" . $_zp_current_image->id . "'>" . "\n\t\t<description>\n\t\t\t{$desc}\n\t\t</description>\n\t</div>\n";
        $u++;
    }
}
Exemplo n.º 17
0
/**
 * Causes a Google map to be printed based on the gps data in all the images in the album
 * @param  string $zoomlevel the zoom in for the map. NULL will use the default
 * @param string $defaultmaptype the starting display of the map valid values are G_NORMAL_MAP | G_SATELLITE_MAP | G_HYBRID_MAP | G_PHYSICAL_MAP | G_SATELLITE_3D_MAP
 * @param int $width is the image width of the map. NULL will use the default
 * @param int $height is the image height of the map. NULL will use the default
 * @param string $text text for the pop-up link
 * @param bool $toggle set to true to hide initially
 * @param string $id DIV id
 * @param int $firstPageImages the number of images on transition pages.
 * @param array $mapselections array of the maps to be used.
 * @param bool $addphysical Adds physical map.
 * @param bool $addwiki Adds wikipedia georeferenced data on your maps
 * @param string $background the background color for the map
 * @param string $mapcontrol values None | Small | Large
 * @param string $maptypecontrol values Buttons | List
 * @param string $customJS the extra javascript needed by the theme
 */
function printAlbumMap($zoomlevel = NULL, $defaultmaptype = NULL, $width = NULL, $height = NULL, $text = '', $toggle = true, $id = 'googlemap', $firstPageImages = 0, $mapselections = NULL, $addwiki = NULL, $background = NULL, $mapcontrol = NULL, $maptypecontrol = NULL, $customJS = NULL)
{
    global $_zp_phoogle, $_zp_images, $_zp_current_album, $_zp_current_image;
    if (getOption('gmaps_apikey') != '') {
        $foundLocation = false;
        $defaultmaptype = setupAllowedMaps($defaultmaptype, $mapselections);
        if ($zoomlevel) {
            $_zp_phoogle->zoomLevel = $zoomlevel;
        }
        if (!is_null($width)) {
            $_zp_phoogle->setWidth($width);
        } else {
            $_zp_phoogle->setWidth(getOption('gmaps_width'));
        }
        if (!is_null($height)) {
            $_zp_phoogle->setHeight($height);
        } else {
            $_zp_phoogle->setHeight(getOption('gmaps_height'));
        }
        if (!is_null($mapcontrol)) {
            $_zp_phoogle->setControlMap($mapcontrol);
        } else {
            $_zp_phoogle->setControlMap(getOption('gmaps_control'));
        }
        if (!is_null($maptypecontrol)) {
            $_zp_phoogle->setControlMapType($maptypecontrol);
        } else {
            $_zp_phoogle->setControlMapType(getOption('gmaps_control_maptype'));
        }
        if (!is_null($background)) {
            $_zp_phoogle->setBackGround($background);
        } else {
            $_zp_phoogle->setBackGround(getOption('gmaps_background'));
        }
        if (!is_null($customJS)) {
            $_zp_phoogle->customJS = $customJS;
        }
        resetCurrentAlbum();
        // start from scratch
        while (next_image(getOption('gmaps_show_all_album_points'), $firstPageImages)) {
            $exif = getImageEXIFData();
            if (!empty($exif['EXIFGPSLatitude']) && !empty($exif['EXIFGPSLongitude'])) {
                $foundLocation = true;
                $lat = $exif['EXIFGPSLatitude'];
                $long = $exif['EXIFGPSLongitude'];
                if ($exif['EXIFGPSLatitudeRef'] == 'S') {
                    $lat = '-' . $lat;
                }
                if ($exif['EXIFGPSLongitudeRef'] == 'W') {
                    $long = '-' . $long;
                }
                $infoHTML = '<a href="' . pathurlencode(getImageLinkURL()) . '"><img src="' . pathurlencode(getImageThumb()) . '" alt="' . getImageDesc() . '" ' . 'style=" margin-left: 30%; margin-right: 10%; border: 0px; "/></a>' . '<p>' . getImageDesc() . '</p>';
                addPoint($lat, $long, js_encode($infoHTML));
            }
        }
        resetCurrentAlbum();
        // clear out any 'damage'
        if ($foundLocation) {
            $dataid = $id . '_data';
            //to avoid problems with google earth and the toggle options, the toggle option is removed from here when GE is activated
            //it is possible to have both functionnality work but the toogle option should then be integrated in the phoogle map class dirctly within the script
            //that calls the map and should alos trigger a map type change. check Sobre theme or  have alook at www.kaugite.com for an example
            $toggle = $toggle && $defaultmaptype != 'G_SATELLITE_3D_MAP';
            if (is_null($text)) {
                $text = gettext('Google Map');
            }
            echo "<a href=\"javascript: vtoggle('{$dataid}');\" title=\"" . gettext('Display or hide the Google Map.') . "\">";
            echo $text;
            echo "</a>\n";
            echo "  <div id=\"{$dataid}\"" . ($toggle ? " style=\"color:black; visibility: hidden;position:absolute;left: -3000px;top: -3000px\"" : '') . ">\n";
            $_zp_phoogle->showMap(is_null($zoomlevel));
            echo "  </div>\n";
        }
    }
}
Exemplo n.º 18
0
echo imageNumber() . '/' . getNumImages();
?>
</span>
		</div>
		<div class="sidebar-divide">
			<div id="full-image-details">
				<h2><?php 
printImageTitle(true);
?>
</h2>
				<div class="sidebar-section"><?php 
printImageDate('', '', null, true);
?>
</div>
				<?php 
if (getImageDesc() || zp_loggedin()) {
    ?>
<div class="sidebar-section"><?php 
    printImageDesc(true);
    ?>
</div><?php 
}
?>
				<?php 
if (getTags() || zp_loggedin()) {
    ?>
<div class="sidebar-section"><?php 
    printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', '');
    ?>
</div><?php 
}
Exemplo n.º 19
0
"
					alt="<?php 
    echo getImageTitle();
    ?>
"
					width="<?php 
    echo $iw;
    ?>
" height="<?php 
    echo $ih;
    ?>
" />
					<span><?php 
    echo 'image size: ' . getFullWidth() . 'x' . getFullHeight();
    if (getImageDesc() != '') {
        echo '<br /><br />' . getImageDesc();
    }
    ?>
</span></a>
			</li>

		<?php 
}
?>
		</ul>
        
	</div>

   <div id="fullplate-navigation">
      <ul>
   <?php