本文整理汇总了PHP中getAlbumTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP getAlbumTitle函数的具体用法?PHP getAlbumTitle怎么用?PHP getAlbumTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getAlbumTitle函数的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: m9GetRSS
function m9GetRSS($option)
{
global $_zp_current_album;
$host = htmlentities($_SERVER['HTTP_HOST'], ENT_QUOTES, 'UTF-8');
$lang = getOption('locale');
switch ($option) {
case 'gallery':
return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang;
case 'album':
return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&albumname=' . urlencode($_zp_current_album->getFilename()) . '&lang=' . $lang;
case 'collection':
return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&folder=' . urlencode($_zp_current_album->getFilename()) . '&lang=' . $lang;
case 'comments':
return 'http://' . $host . WEBPATH . '/rss-comments.php?lang=' . $lang;
case 'comments-image':
return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_image->getID() . '&title=' . urlencode(getImageTitle()) . '&type=image&lang=' . $lang;
case 'comments-album':
return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_album->getID() . '&title=' . urlencode(getAlbumTitle()) . '&type=album&lang=' . $lang;
case 'albums-rss':
return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang . '&albumsmode';
}
}
示例3: while
<br clear="all" />
<?php
$x = 0;
while (next_album()) {
?>
<div class="album">
<div class="albumthumb"><a href="<?php
echo getAlbumURL();
?>
" title="<?php
echo getBareAlbumTitle();
?>
" rel="lightbox-album">
<?php
printAlbumThumbImage(getAlbumTitle(), "reflect");
?>
</a>
</div>
<div class="albumtitle"><h1><a href="<?php
echo getAlbumURL();
?>
" title="<?php
echo getBareAlbumTitle();
?>
">
<?php
printAlbumTitle();
?>
</a></h1>
示例4: imageNumber
// Slimbox does not do video
if (is_null($firstImage)) {
$lastImage = imageNumber();
$firstImage = $lastImage;
} else {
$lastImage++;
}
?>
<!-- Image thumbnails or no flash -->
<div class="image">
<div class="imagethumb">
<?php
$annotate = annotateImage();
if ($personality == 'Slimbox') {
echo "<a href=\"" . htmlspecialchars(getCustomImageURL(550, null)) . "\"";
echo "rel=\"lightbox[" . getAlbumTitle() . "]\"\n";
} else {
echo '<a href="' . htmlspecialchars(getImageLinkURL()) . '"';
}
echo " title=\"" . $annotate . "\">\n";
printImageThumb($annotate);
echo "</a>";
?>
</div>
</div>
<?php
}
}
echo '<div class="clearage"></div>';
if (function_exists('printSlideShowLink') && $personality != 'Smoothgallery') {
echo "<p align=\"center\">";
示例5: printTrackbackRDF
/**
* Prints the RDF trackback url information for external clients to autodiscover.
* This code is invisible and within comments on the theme page.
*
* For theme usage.
*
*/
function printTrackbackRDF()
{
global $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_current_album, $_zp_current_image;
// check if Zenpage is there...
if (getOption('zp_plugin_zenpage')) {
if (is_NewsArticle()) {
$trackback = $this->getTrackbackURL($_zp_current_zenpage_news);
$title = getNewsTitle();
$permalink = $this->getPermalinkURL($_zp_current_zenpage_news, $host);
}
if (is_Pages()) {
$trackback = $this->getTrackbackURL($_zp_current_zenpage_page);
$title = getPageTitle();
$permalink = $this->getPermalinkURL($_zp_current_zenpage_page);
}
}
if (in_context(ZP_ALBUM)) {
$trackback = $this->getTrackbackURL($_zp_current_album);
$title = getAlbumTitle();
$permalink = $this->getPermalinkURL($_zp_current_album);
}
if (in_context(ZP_IMAGE)) {
$trackback = $this->getTrackbackURL($_zp_current_image);
$title = getImageTitle();
$permalink = $this->getPermalinkURL($_zp_current_image);
}
echo $this->rdf_autodiscover("", $title, "", $permalink, $trackback, "");
}
示例6: getRSSHeaderLink
/**
* Returns the RSS link for use in the HTML HEAD
*
* @param string $option type of RSS: "Gallery" feed for the whole gallery
* "Album" for only the album it is called from
* "Collection" for the album it is called from and all of its subalbums
* "Comments" for all comments
* "Comments-image" for comments of only the image it is called from
* "Comments-album" for comments of only the album it is called from
* @param string $linktext title of the link
* @param string $lang optional to display a feed link for a specific language. Enter the locale like "de_DE" (the locale must be installed on your Zenphoto to work of course). If empty the locale set in the admin option or the language selector (getOption('locale') is used.
*
*
* @return string
* @since 1.1
*/
function getRSSHeaderLink($option, $linktext = '', $lang = '')
{
global $_zp_current_album;
$host = htmlentities($_SERVER["HTTP_HOST"], ENT_QUOTES, 'UTF-8');
if (empty($lang)) {
$lang = getOption("locale");
}
switch ($option) {
case "Gallery":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?lang=" . $lang . "\" />\n";
case "Album":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n";
case "Collection":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n";
case "Comments":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?lang=" . $lang . "\" />\n";
case "Comments-image":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n";
case "Comments-album":
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n";
}
}
示例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: gettext
$("a.thickbox").colorbox({
maxWidth:"98%",
maxHeight:"98%",
close: '<?php
echo gettext("close");
?>
'
});
});
// ]]> -->
</script>
<?php
}
?>
<?php
printRSSHeaderLink('Album', getAlbumTitle());
?>
</head>
<body>
<?php
zp_apply_filter('theme_body_open');
?>
<div style="margin-top: 16px;"><!-- somehow the thickbox.css kills the top margin here that all other pages have... -->
</div>
<div id="main">
<div id="header">
<h1><?php
echo getGalleryTitle();
?>
</h1>
示例9: printAlbumTitle
?>
"><?php
printAlbumTitle();
?>
</a></h3>
</div>
<div id="album_box">
<div id="album_position"><a href="<?php
echo getAlbumURL();
?>
" title="View album: <?php
echo getAlbumTitle();
?>
"><?php
printAlbumThumbImage(getAlbumTitle());
?>
</a></div>
</div>
<div class="albumdesc">
<?php
printAlbumDate("Date Taken: ");
?>
<p><?php
printAlbumDesc();
?>
</p>
</div>
<p style="margin:0px;padding:0px;clear: both; "> </p>
</div>
示例10: define
<?php
require_once 'theme_functions.php';
define("AREA", GALLERY);
TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . " slideshow", "slideshow");
include_once 'template.php';
示例11: printf
?>
" title="<?php
printf(gettext('View album: %s'), sanitize(getAlbumTitle()));
?>
">
<?php
printCustomAlbumThumbImage(getAlbumTitle(), 85, NULL, NULL, 85, 85);
?>
</a>
<div class="albumdesc">
<h3>
<a href="<?php
echo getAlbumLinkURL();
?>
" title="<?php
printf(gettext('View album: %s'), sanitize(getAlbumTitle()));
?>
">
<?php
printAlbumTitle();
?>
</a>
</h3>
<br />
<small><?php
printAlbumDate();
?>
</small>
</div>
<p style="clear: both;"></p>
</div>
示例12:
<?php
$f = $_REQUEST['f'];
if (isset($f) && $f == 'xml') {
require_once 'theme_functions.php';
include 'tiles/album/fetch-thumbs.php';
} else {
require_once 'theme_functions.php';
MenuUtil::setArea(THEME_GALLERY);
TileSet::init(getAlbumTitle(), "album");
include_once 'template.php';
}
示例13: define
<?php
require_once 'theme_functions.php';
define("AREA", GALLERY);
TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . ' : ' . getImageTitle(), "album");
include_once 'template.php';
示例14: getRSSHeaderLink
/**
* Returns the RSS link for use in the HTML HEAD
*
* @param string $option type of RSS: "Gallery" feed for the whole gallery
* "Album" for only the album it is called from
* "Collection" for the album it is called from and all of its subalbums
* "Comments" for all comments
* "Comments-image" for comments of only the image it is called from
* "Comments-album" for comments of only the album it is called from
* @param string $linktext title of the link
* @param string $lang optional to display a feed link for a specific language. Enter the locale like "de_DE" (the locale must be installed on your Zenphoto to work of course). If empty the locale set in the admin option or the language selector (getOption('locale') is used.
*
*
* @return string
* @since 1.1
*/
function getRSSHeaderLink($option, $linktext = '', $lang = '')
{
global $_zp_current_album;
$host = html_encode($_SERVER["HTTP_HOST"]);
$protocol = SERVER_PROTOCOL . '://';
if ($protocol == 'https_admin') {
$protocol = 'https://';
}
if (empty($lang)) {
$lang = getOption("locale");
}
switch ($option) {
case "Gallery":
if (getOption('RSS_album_image')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&lang=" . $lang . "\" />\n";
}
case "Album":
if (getOption('RSS_album_image')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n";
}
case "Collection":
if (getOption('RSS_album_image')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n";
}
case "Comments":
if (getOption('RSS_comments')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&lang=" . $lang . "\" />\n";
}
case "Comments-image":
if (getOption('RSS_comments')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n";
}
case "Comments-album":
if (getOption('RSS_comments')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n";
}
case "AlbumsRSS":
if (getOption('RSS_album_image')) {
return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&lang=" . $lang . "&albumsmode\" />\n";
}
}
}
示例15: googleCheckout
/**
* Places Google Checkout Options on your page.
*
* @param array $pricelist optional array of specific pricing for the image.
*/
function googleCheckout($pricelist = NULL)
{
if (!is_array($pricelist)) {
$pricelist = GoogleCheckoutPricelistFromString(getOption('GoogleCheckout_pricelist'));
}
?>
<div id="GoogleCheckout" class="product">
<input type="hidden" class="product-image" value="<?php
echo getImageThumb();
?>
" />
<input type="hidden" class="product-title" value="Album: <?php
echo getAlbumTitle();
?>
Photo: <?php
echo getImageTitle();
?>
" />
<input type="hidden" class="product-shipping" value="<?php
echo getOption('googleCheckout_ship_cost');
?>
" />
Size/Finish: <select class="product-attr-sizefinish">
<option googlecart-set-product-price=""></option>
<?php
foreach ($pricelist as $key => $price) {
?>
<option googlecart-set-product-price="<?php
echo $price;
?>
"><?php
echo $key;
?>
</option>
<?php
}
?>
</select><br />
Price: <span class="product-price">Choose Size/Finish</span><br />
How Many: <input type="text" class="googlecart-quantity" value="1" style="width:20px;" />
<span class="googlecart-add-button"></span>
</div>
<?php
}