• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getAlbumDesc函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getAlbumDesc函数的典型用法代码示例。如果您正苦于以下问题:PHP getAlbumDesc函数的具体用法?PHP getAlbumDesc怎么用?PHP getAlbumDesc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getAlbumDesc函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:47,代码来源:functions.php


示例2: printAlbumDesc

/**
 * Prints description of the current album
 *
 * @author Ozh
 */
function printAlbumDesc()
{
    global $_zp_current_album;
    echo html_encodeTagged(getAlbumDesc());
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:10,代码来源:template-functions.php


示例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());
    ?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例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());
        ?>
">&raquo;</a>
						</p>
					</li>
					<?php 
        $x = $x + 1;
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.php


示例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 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:search.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 
}
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.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});"
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:index.php


示例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();
        ?>
">&raquo;</a>
				</p>
			</li>
			<?php 
        $x = $x + 1;
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例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.');
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例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';
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.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>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:gallery.php


示例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>';
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例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 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:content.php


示例14: getBareAlbumDesc

/**
 * Returns a text-only description of the current album.
 *
 * @return string
 */
function getBareAlbumDesc()
{
    return strip_tags(getAlbumDesc());
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:9,代码来源:template-functions.php


示例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");
    }
    ?>
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-masonry.php


示例16: while

?>
</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')) . ')';
    ?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:index.php


示例17: gettext

    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 
    }
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-galleria.php


示例18: gettext

        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 
}
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.php


示例19: printAlbumDate

    ?>
					</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>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:album.php


示例20: gettext

" 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 = '';
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:album.php



注:本文中的getAlbumDesc函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getAlbumFolder函数代码示例发布时间:2022-05-15
下一篇:
PHP getAlbumDate函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap