本文整理汇总了PHP中getAlbumDesc函数的典型用法代码示例。如果您正苦于以下问题:PHP getAlbumDesc函数的具体用法?PHP getAlbumDesc怎么用?PHP getAlbumDesc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getAlbumDesc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ji_show_thumb
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
}
示例2: printAlbumDesc
/**
* Prints description of the current album
*
* @author Ozh
*/
function printAlbumDesc()
{
global $_zp_current_album;
echo html_encodeTagged(getAlbumDesc());
}
示例3: html_encode
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: printCustomAlbumThumbImage
">
<?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());
?>
">»</a>
</p>
</li>
<?php
$x = $x + 1;
示例5: gettext
?>
" 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: getNumAlbums
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: getOption
<?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: printCustomAlbumThumbImage
">
<?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();
?>
">»</a>
</p>
</li>
<?php
$x = $x + 1;
示例9: shortenContent
?>
<?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: getAlbumTitle
" />
</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: while
<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: printAlbumTitle
<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: printParentBreadcrumb
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
示例14: getBareAlbumDesc
/**
* Returns a text-only description of the current album.
*
* @return string
*/
function getBareAlbumDesc()
{
return strip_tags(getAlbumDesc());
}
示例15: html_encode
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");
}
?>