示例#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 
}
/**
 * Prints description of the current album
 *
 * @author Ozh
 */
function printAlbumDesc()
{
    global $_zp_current_album;
    echo html_encodeTagged(getAlbumDesc());
}
示例#3
0
    echo html_encode(getAlbumTitle() . ' (' . getAlbumDate(getOption('date_format')) . ')');
    ?>
" />
								</a>
							</div>
							<div class="album">
								<div class="gras"><?php 
    echo getAlbumTitle();
    ?>
</div>
								<div class="italic"><small><?php 
    echo '(' . getAlbumDate(getOption('date_format')) . ')';
    ?>
</small></div>
								<div><?php 
    echo getAlbumDesc();
    ?>
</div>
							</div>
						</li>
						<?php 
}
?>
						<?php 
while (next_image()) {
    ?>
						<li>
							<div class="thumb">
								<a title="<?php 
    echo html_encode(getImageDesc());
    ?>
示例#4
0
">
							<?php 
        if (isLandscape()) {
            printCustomAlbumThumbImage(getBareAlbumTitle(), null, 160, 120, 160, 120);
        } else {
            printCustomAlbumThumbImage(getBareAlbumTitle(), null, 120, 160, 120, 160);
        }
        ?>
						</a>
						<span class="front-date"><?php 
        printAlbumDate();
        ?>
</span>
						<p class="front-desc">
							<?php 
        echo html_encodeTagged(truncate_string(getAlbumDesc(), 175));
        ?>
							<a href="<?php 
        echo htmlspecialchars(getAlbumURL());
        ?>
" title="<?php 
        echo gettext('View album:');
        ?>
 <?php 
        echo html_encode(getBareAlbumTitle());
        ?>
">&raquo;</a>
						</p>
					</li>
					<?php 
        $x = $x + 1;
示例#5
0
        ?>
" title="<?php 
        echo gettext('View album:');
        ?>
 <?php 
        echo getBareAlbumTitle();
        ?>
"><?php 
        printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 238, 100, 238, 100);
        ?>
</a>
						<h4><a href="<?php 
        echo htmlspecialchars(getAlbumURL());
        ?>
" title="<?php 
        echo getBareAlbumTitle() . ' (' . getAlbumDate() . ') - ' . getAlbumDesc();
        ?>
"><?php 
        echo shortenContent(getBareAlbumTitle(), 30, '...');
        ?>
</a></h4>				
					</li>
					<?php 
        $x++;
    }
    ?>
					
				</ul>
			</div>
			<?php 
}
示例#6
0
            echo getNumAlbums() . ' ' . gettext("subalbums");
        }
        ?>
		<?php 
        echo $divider;
        ?>
		<?php 
        if (getNumImages() > 0) {
            echo getNumImages() . ' ' . gettext("images");
        }
        ?>
							</li>
						</ul>
					</div>
					<p class="albumdesc"><?php 
        echo strip_tags(truncate_string(getAlbumDesc(), 80, '...'));
        ?>
</p>
					<hr />
				</div>
				<?php 
        $c++;
        if ($c == 3) {
            echo '<br class="clear" />';
            $c = 0;
        }
    }
    ?>
		<?php 
}
?>
示例#7
0
<?php 
$albumsPerPage = getOption('albums_per_page');
$count = 1;
while (next_album() && $count <= $albumsPerPage) {
    ?>

			<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});"
示例#8
0
">
					<?php 
        if (isLandscape()) {
            printCustomAlbumThumbImage(getBareAlbumTitle(), null, 160, 120, 160, 120);
        } else {
            printCustomAlbumThumbImage(getBareAlbumTitle(), null, 120, 160, 120, 160);
        }
        ?>
				</a>
				<span class="front-date"><?php 
        printAlbumDate();
        ?>
</span>
				<p class="front-desc">
					<?php 
        echo shortenContent(getAlbumDesc(), 175, '...');
        ?>
					<a href="<?php 
        echo htmlspecialchars(getAlbumURL());
        ?>
" title="<?php 
        echo gettext('View SubAlbum:');
        ?>
 <?php 
        echo getBareAlbumTitle();
        ?>
">&raquo;</a>
				</p>
			</li>
			<?php 
        $x = $x + 1;
示例#9
0
        ?>
	<?php 
        if ($imagepresent) {
            ?>
	<div class="wrapper">
		<div class="centered">
			<div class="container">
				<div class="content">
					<div class="slideshow-container">
						
						<div id="loading" class="loader"></div>
						<div id="slideshow" class="slideshow"></div>
					</div>
					<div id="caption" class="caption-container">
						<div id="albumdesc"><?php 
            echo shortenContent(getAlbumDesc(), 500, '...');
            ?>
</div>
						<div><?php 
            printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'hor-list', ', ');
            ?>
</div>	
						<div id="controls" class="controls"></div>
						<div class="photo-index"></div>
					</div>
				</div>
			</div>
			<!-- If javascript is disabled in the users browser, the following message will display  -->
			<noscript>
				<?php 
            echo gettext('Sorry, please enable Javascript in your browser to view our gallery.');
示例#10
0
" />
						</a>
					</li>
<?php 
}
?>
				</ul>
				<div class="data">
					<?php 
if (getAlbumTitle()) {
    echo '<div class="c"><h4 class="box title">' . getAlbumTitle() . '</h4></div>';
}
?>
					<?php 
if (getAlbumDesc()) {
    echo '<div class="c"><div class="box desc">' . getAlbumDesc() . '</div></div>';
}
?>
					<?php 
if (getAlbumDate()) {
    echo '<div class="c"><small class="box date">' . getAlbumDate('%d.%m.%y %H:%M') . '</small></div>';
}
?>
				</div>
			</div>
<?php 
include_once 'footer.php';
?>
		</div>
<?php 
include_once 'analytics.php';
示例#11
0
				<div id="main"<?php 
if ($zpmin_switch) {
    echo ' class="switch"';
}
?>
>
					<div id="albums-wrap">
						<?php 
while (next_album()) {
    ?>
						<div class="album-maxspace">
							<a class="thumb-link" href="<?php 
    echo html_encode(getAlbumURL());
    ?>
" title="<?php 
    echo getNumAlbums() . ' ' . gettext('subalbums') . ' / ' . getNumImages() . ' ' . gettext('images') . ' - ' . strip_tags(shortenContent(getAlbumDesc(), 300, '...'));
    ?>
">
								<?php 
    if ($zpmin_thumb_crop) {
        printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, $zpmin_album_thumb_size, $zpmin_album_thumb_size, $zpmin_album_thumb_size, $zpmin_album_thumb_size);
    } else {
        printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), $zpmin_album_thumb_size);
    }
    ?>
								<span class="album-title"><?php 
    echo shortenContent(getBareAlbumTitle(), 25, '...');
    ?>
</span>
							</a>
						</div>
示例#12
0
						<div class="c">
							<h4 class="box title">
								<?php 
printAlbumTitle(true);
?>
							</h4>
							<div class="box diaporama">
								<?php 
if (function_exists('printSlideShowLink')) {
    printSlideShowLink(gettext('View Slideshow'));
}
?>
							</div>
						</div>
						<?php 
if (getAlbumDesc() or zp_loggedin()) {
    echo '<div class="c"><div class="box desc">';
    echo printAlbumDesc(true);
    echo '</div></div>';
}
?>
						<?php 
if (getAlbumDate()) {
    echo '<div class="c"><small class="box date">' . getAlbumDate('%d.%m.%y %H:%M') . '</small></div>';
}
?>
						<?php 
if (getTags() or zp_loggedin()) {
    echo '<div class="c"><div class="box tags">';
    printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', '');
    echo '</div></div>';
示例#13
0
if (!is_null($_zp_current_album->getParent())) {
    printParentBreadcrumb('<em class="wrap">', '</em><em class="wrap">', '</em>');
}
?>
			<em class="wrap"><?php 
echo getAlbumTitle();
?>
</em>
		</span>
	</div>
	<div class="clear"></div>
</div>

<?php 
if (count($_zp_current_album->getSubalbums()) > 0) {
    $desc = getAlbumDesc();
    if (!isset($desc) || trim($desc) == '') {
        $desc = getOption('simplicity2_no_album_description_text');
    }
    ?>
	<?php 
    AlbumUtil::printCollage();
    ?>

	<div id="site-description" class="album opa30">
		<?php 
    echo $desc;
    ?>
	</div>

<?php 
/**
 * Returns a text-only description of the current album.
 *
 * @return string
 */
function getBareAlbumDesc()
{
    return strip_tags(getAlbumDesc());
}
示例#15
0
if ($zpmin_switch) {
    echo ' class="switch"';
}
?>
>
					<div class="sidebar-divide">
						<h3><?php 
printAlbumTitle(true);
?>
</h3>
						<div class="sidebar-section"><?php 
printAlbumDate('', '', null, true);
?>
</div>
						<?php 
if (getAlbumDesc() || zp_loggedin()) {
    ?>
<div class="sidebar-section"><?php 
    printAlbumDesc(true);
    ?>
</div><?php 
}
?>
						<?php 
if (getTags() || zp_loggedin()) {
    ?>
<div class="sidebar-section"><?php 
    printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', '');
    ?>
</div><?php 
}
示例#16
0
    echo html_encode(getAlbumURL());
    ?>
" title="<?php 
    printAlbumTitle();
    ?>
">
								<?php 
    if (getOption('thumb_crop')) {
        printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), getOption('thumb_size'), null, null, 'remove-attributes');
    } else {
        printAlbumThumbImage(getAnnotatedAlbumTitle(), 'remove-attributes');
    }
    ?>
							</a>
							<p class="album-desc"><?php 
    echo truncate_string(strip_tags(getAlbumDesc()), 140, '...');
    ?>
</p>
							<div class="album-stats">
								<?php 
    if (getNumAlbums() > 0 && getNumImages() > 0) {
        $divider = '- ';
    } else {
        $divider = '';
    }
    ?>
								<?php 
    if (getNumAlbums() > 0) {
        echo getNumAlbums() . ' ' . gettext("subalbums");
    }
    ?>
示例#17
0
?>
</li>
				</ul>	
			</div>
			<div id="content" class="c">
				<div id="leftbox">
					<ul class="list c">
<?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')) . ')';
    ?>
示例#18
0
    if ($c > 0) {
        ?>
				<div id="galleria"></div>
				<?php 
    } else {
        ?>
				<p class="center"><?php 
        echo gettext('No valid albums or images to display...');
        ?>
</p>
				<?php 
    }
    ?>

				<?php 
    if (getAlbumDesc()) {
        ?>
<div id="object-desc"><?php 
        printAlbumDesc();
        ?>
</div><?php 
    }
    ?>
				<?php 
    if (function_exists('printGoogleMap')) {
        ?>
<div id="map-wrap"><?php 
        printGoogleMap('Google Map', null, 'hide');
        ?>
</div><?php 
    }
示例#19
0
        echo gettext('View album:');
        printAnnotatedAlbumTitle();
        ?>
">
		<?php 
        printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, 79, 79, 79, 79, NULL, null, NULL, NULL);
        ?>
										<h3><?php 
        printAlbumTitle();
        ?>
<small> (<?php 
        printAlbumDate('');
        ?>
)</small></h3>
										<div class="albumdesc"><?php 
        echo html_encodeTagged(shortenContent(getAlbumDesc(), 100, '(...)', false));
        ?>
</div>
										<small class="ui-li-aside ui-li-count"><?php 
        jqm_printImageAlbumCount();
        ?>
</small>
									</a>
								</li>
						<?php 
    }
    ?>
						</ul>
					<?php 
}
?>
示例#20
0
    ?>
					</li>
					<?php 
    if (strlen(getAlbumDate()) > 0) {
        ?>
<li class="date"><?php 
        printAlbumDate('');
        ?>
</li><?php 
    }
    ?>
	<?php 
    if (strlen(getAlbumDesc()) > 0) {
        ?>
<li class="desc"><?php 
        echo html_encodeTagged(shortenContent(getAlbumDesc(), 150, '...'));
        ?>
</li><?php 
    }
    ?>
			<?php 
    if (strlen($tagstring) > 0) {
        ?>
<li class="tags"><?php 
        printTags('links', ' ', 'taglist', ', ');
        ?>
</li><?php 
    }
    ?>
				</ul>
			</div>
示例#21
0
文件: album.php 项目: rb26/zenphoto
" title="<?php 
    echo gettext('View album:');
    ?>
">
									<?php 
    printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, 79, 79, 79, 79, NULL, null, NULL, NULL);
    ?>
									<h3><?php 
    printAlbumTitle();
    ?>
<small> (<?php 
    printAlbumDate('');
    ?>
)</small></h3>
									<div class="albumdesc"><?php 
    echo shortenContent(getAlbumDesc(), 100, '(...)', false);
    ?>
</div>
									<small class="ui-li-aside ui-li-count"><?php 
    jqm_printImageAlbumCount();
    ?>
</small>
								</a>
							</li>
			<?php 
}
?>
		</ul>
		<div class="ui-grid-c">
			<?php 
$count = '';
示例#22
0
                                if ($anumber > 1 && $inumber == 0) {
                                    printf(gettext('%u albums'), $anumber);
                                } else {
                                    if ($anumber == 1 && $inumber > 1) {
                                        printf(gettext('1 album,&nbsp;%u photos'), $inumber);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        echo ')</em><br/>';
    }
    $text = getAlbumDesc();
    if (strlen($text) > 50) {
        $text = preg_replace("/[^ ]*\$/", '', substr($text, 0, 50)) . "...";
    }
    echo $text;
    ?>
					</p>
				</li>
			<?php 
}
if (!$first) {
    echo "\n</ul>\n</div>\n";
}
?>

	<ul class="slideset">
示例#23
0
        ?>
" title="<?php 
        echo gettext('View album:');
        ?>
 <?php 
        printBareAlbumTitle();
        ?>
"><?php 
        printAlbumTitle();
        ?>
</a></h3>
										<?php 
        printAlbumDate("");
        ?>
										<p><?php 
        echo truncate_string(getAlbumDesc(), 45);
        ?>
</p>
									</div>
								</div>
							<?php 
    }
    ?>
						</div>
					<?php 
}
?>
					<?php 
if (getNumImages() > 0) {
    ?>
						<div id="images">
/**
 * Returns a text-only description of the current album.
 *
 * @return string
 */
function getBareAlbumDesc()
{
    return html_encode(getAlbumDesc());
}