本文整理汇总了PHP中getAlbumLinkURL函数的典型用法代码示例。如果您正苦于以下问题:PHP getAlbumLinkURL函数的具体用法?PHP getAlbumLinkURL怎么用?PHP getAlbumLinkURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getAlbumLinkURL函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: html_encode
?>
<a href="<?php
echo html_encode(getAlbumLinkURL());
?>
" title="<?php
echo gettext('View album:');
?>
<?php
echo getBareAlbumTitle();
?>
"><?php
printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95);
?>
</a>
<a href="<?php
echo html_encode(getAlbumLinkURL());
?>
" title="<?php
echo gettext('View album:');
?>
<?php
echo getBareAlbumTitle();
?>
"><?php
printAlbumTitle();
?>
</a>
<?php
printAlbumDate("");
echo truncate_string(getAlbumDesc(), 45);
}
开发者ID:arinyc,项目名称:DevTools,代码行数:31,代码来源:search.php
示例2: printAdminToolbox
?>
<?php
if (function_exists('printAdminToolbox')) {
printAdminToolbox();
}
?>
</body>
</html>
<?php
} else {
header('Content-Type: application/xml');
$path = '';
$levels = explode('/', getAlbumLinkURL());
foreach ($levels as $v) {
$path = $path . '../';
}
$path = substr($path, 0, -1);
echo '<?xml version="1.0" encoding="UTF-8"?>
<simpleviewerGallery title="" maxImageWidth="' . $maxImageWidth . '" maxImageHeight="' . $maxImageHeight . '" textColor="' . $textColor . '" frameColor="' . $frameColor . '" frameWidth="' . $frameWidth . '" stagePadding="' . $stagePadding . '" thumbnailColumns="' . $thumbnailColumns . '" thumbnailRows="' . $thumbnailRows . '" navPosition="' . $navPosition . '" enableRightClickOpen="' . $enableRightClickOpen . '" backgroundImagePath="' . $backgroundImagePath . '" imagePath="' . $path . '" thumbPath="' . $path . '">';
while (next_image(true, 0, NULL, NULL, true)) {
if (isImagePhoto()) {
// simpleviewer does not do videos
?>
<image><filename><?php
echo getDefaultSizedImage();
?>
</filename>
<caption>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:album.php
示例3: htmlspecialchars
<div class="album">
<div class="albumthumb"><a href="<?php
echo htmlspecialchars(getAlbumLinkURL());
?>
" title="<?php
echo getAnnotatedAlbumTitle();
?>
">
<?php
printAlbumThumbImage(getAnnotatedAlbumTitle());
?>
</a>
</div>
<div class="albumtitle">
<h3><a href="<?php
echo htmlspecialchars(getAlbumLinkURL());
?>
" title="<?php
echo getAnnotatedAlbumTitle();
?>
">
<?php
printAlbumTitle();
?>
</a></h3> <?php
printAlbumDate();
?>
</div>
<div class="albumdesc"><?php
printAlbumDesc();
?>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:search.php
示例4: getPermalinkURL
/**
* Gets the permalink url of the item that should be trackbacked
* as we can't use template functions on trackback.php
*
* @param object $object Object of the item
* @return string
*/
function getPermalinkURL($object)
{
$host = "http://" . htmlentities($_SERVER["HTTP_HOST"], ENT_QUOTES, 'UTF-8');
$class = get_class($object);
// Workaround because the ZENPAGE_NEWS and ZENPAGE_PAGES constants are not setup (strangely only on my live server...)
if (getOption('zp_plugin_zenpage')) {
$zenpage_pages = getOption("zenpage_pages_page");
$zenpage_news = getOption("zenpage_news_page");
}
switch ($class) {
case "ZenpageNews":
// the & is escaped by the rdf function later
return $host . rewrite_path($zenpage_news . "/" . $object->getTitlelink(), $host . "/index.php?p=" . $zenpage_news . "&title=" . $object->getTitlelink());
break;
case "ZenpagePage":
return $host . rewrite_path($zenpage_pages . "/" . $object->getTitlelink(), $host . "/index.php?p=" . $zenpage_pages . "&title=" . $object->getTitlelink());
break;
case "Album":
return $host . getAlbumLinkURL($object);
break;
case "_Image":
return $host . rewrite_path($object->getAlbumName() . "/" . $object->getFilename(), $host . "/index.php?album=" . urlencode($object->getAlbumName()) . "&image=" . $object->getFilename());
break;
}
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:32,代码来源:comment_trackback.php
示例5: zenpageAlbumImage
/**
* support to show an image from an album
* The imagename is optional. If absent the album thumb image will be
* used and the link will be to the album. If present the link will be
* to the image.
*
* @param string $albumname
* @param string $imagename
* @param int $size the size to make the image. If omitted image will be 50% of 'image_size' option.
* @param bool $linkalbum set true to link specific image to album instead of image
*/
function zenpageAlbumImage($albumname, $imagename = NULL, $size = NULL, $linkalbum = false)
{
global $_zp_gallery;
echo '<br />';
$album = new Album($_zp_gallery, $albumname);
if ($album->loaded) {
if (is_null($size)) {
$size = floor(getOption('image_size') * 0.5);
}
$image = NULL;
if (is_null($imagename)) {
$linkalbum = true;
$image = $album->getAlbumThumbImage();
} else {
$image = newImage($album, $imagename);
}
if ($image && $image->loaded) {
makeImageCurrent($image);
if ($linkalbum) {
rem_context(ZP_IMAGE);
echo '<a href="' . html_encode(getAlbumLinkURL($album)) . '" title="' . sprintf(gettext('View the %s album'), $albumname) . '">';
add_context(ZP_IMAGE);
printCustomSizedImage(sprintf(gettext('View the album %s'), $albumname), $size);
rem_context(ZP_IMAGE | ZP_ALBUM);
echo '</a>';
} else {
echo '<a href="' . html_encode(getImageLinkURL($image)) . '" title="' . sprintf(gettext('View %s'), $imagename) . '">';
printCustomSizedImage(sprintf(gettext('View %s'), $imagename), $size);
rem_context(ZP_IMAGE | ZP_ALBUM);
echo '</a>';
}
} else {
?>
<span style="background:red;color:black;">
<?php
printf(gettext('<code>zenpageAlbumImage()</code> did not find the image %1$s:%2$s'), $albumname, $imagename);
?>
</span>
<?php
}
} else {
?>
<span style="background:red;color:black;">
<?php
printf(gettext('<code>zenpageAlbumImage()</code> did not find the album %1$s'), $albumname);
?>
</span>
<?php
}
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:61,代码来源:zenpage-template-functions.php
示例6: getAlbumTitle
?>
" title="View album: <?php
echo getAlbumTitle();
?>
"><?php
printAlbumThumbImage(getAlbumTitle(), 'reflect');
?>
</a>
</div>
<div class="albumdesc">
<small><?php
printAlbumDate("Date Taken: ");
?>
</small>
<h3><a href="<?php
echo getAlbumLinkURL();
?>
" title="View album: <?php
echo getAlbumTitle();
?>
"><?php
printAlbumTitle();
?>
</a></h3>
<p><?php
printAlbumDesc();
?>
</p>
<p><em>(<?php
$number = getNumImages();
if ($number > 1) {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php
示例7: printAlbumLink
/**
* Prints the album link url of the current album.
*
* @param string $text Insert the link text here.
* @param string $title Insert the title text here.
* @param string $class Insert here the CSS-class name with with you want to style the link.
* @param string $id Insert here the CSS-id name with with you want to style the link.
*/
function printAlbumLink($text, $title, $class = NULL, $id = NULL)
{
printLink(getAlbumLinkURL(), $text, $title, $class, $id);
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:12,代码来源:template-functions.php
示例8: printSortableAlbumLink
/**
* Print a link that allows the user to sort the current album if they are logged in.
* If they are already sorting, the Save button is displayed.
*
* @param string $text Insert the link text here.
* @param string $title Insert the title text here.
* @param string $class Insert here the CSS-class name with with you want to style the link.
* @param string $id Insert here the CSS-id name with with you want to style the link.
*/
function printSortableAlbumLink($text, $title, $class = NULL, $id = NULL)
{
global $_zp_sortable_list, $_zp_current_album;
if (zp_loggedin()) {
if (!isset($_GET['sortable'])) {
printLink(WEBPATH . "/" . ZENFOLDER . "/admin-albumsort.php?page=edit&album=" . urlencode($_zp_current_album->getFolder()), $text, $title, $class, $id);
} else {
$_zp_sortable_list->printForm(getAlbumLinkURL(), 'POST', gettext('Save'), 'button');
}
}
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:20,代码来源:template-functions.php
注:本文中的getAlbumLinkURL函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论