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

PHP getAlbumURL函数代码示例

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

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



在下文中一共展示了getAlbumURL函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: html_encode

        echo html_encode(getAlbumURL());
        ?>
" title="<?php 
        echo gettext('View album:');
        ?>
 <?php 
        printBareAlbumTitle();
        ?>
"><?php 
        printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95);
        ?>
</a>
									</div>
									<div class="albumdesc">
										<h3><a href="<?php 
        echo html_encode(getAlbumURL());
        ?>
" title="<?php 
        echo gettext('View album:');
        ?>
 <?php 
        printBareAlbumTitle();
        ?>
"><?php 
        printAlbumTitle();
        ?>
</a></h3>
										<?php 
        printAlbumDate("");
        ?>
										<p><?php 
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php


示例3: getAlbumURL

											<div class="album">
												<a class="albumthumb" href="<?php 
    echo getAlbumURL();
    ?>
" title="<?php 
    printf(gettext('View album:  %s'), getBareAlbumTitle());
    ?>
">
													<?php 
    printCustomAlbumThumbImage(getAlbumTitle(), 85, NULL, NULL, 85, 85);
    ?>
												</a>
												<div class="albumdesc">
													<h3>
														<a href="<?php 
    echo getAlbumURL();
    ?>
" title="<?php 
    printf(gettext('View album:  %s'), getBareAlbumTitle());
    ?>
">
															<?php 
    printAlbumTitle();
    ?>
														</a>
													</h3>
													<br />
													<small><?php 
    printAlbumDate();
    ?>
</small>
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:gallery.php


示例4: printCustomAlbumThumbImage

            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;
    }
    ?>
		</ul>
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例5: getGalleryTitleHeader

?>
			</div>
			<div id="gallery_title">
<?php 
echo getGalleryTitleHeader();
?>
			</div>
		</div>
		<div id="breadcrumb">
			<ul>
				<?php 
getFormattedMainSiteName('<li class="page">', '</li><li class="chevron"> > </li>');
echo '<li><a href="' . getGalleryIndexURL() . '">' . getBareGalleryTitle() . '</a></li>';
getParentBreadcrumbTLB('<li class="chevron"><a> &gt; </a></li>');
echo '<li class="chevron"><a> &gt; </a></li>';
echo '<li><a href="' . getAlbumURL() . '">' . getBareAlbumTitle() . '</a></li>';
echo '<li class="chevron"><a> &gt; </a></li>';
echo '<li><a>' . getBareImageTitle() . '</a></li>';
?>
			</ul>
		</div>
		<div id="menu">
<?php 
printThemeMenu();
?>
		</div>
		<div id="content" class="c">
			<div id="description">
				<div class="c">
					<div id="title" class="box"><h3><?php 
printImageTitle(true);
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例6: while

			<?php 
AlbumUtil::printNavigation($prevText, $nextText, false, 7, true);
?>
			<div class="nav-cell filler end"><span>&nbsp;</span></div>
		</div>
	</div>
<?php 
if ($isAlbumPage) {
    $u = 0;
    while (next_album()) {
        $a = $_zp_current_album;
        $thumb = $a->getAlbumThumbImage();
        $title = $a->getTitle();
        $desc = $a->getDesc();
        $customThumb = $thumb->getCustomImage(NULL, 202, 56, 202, 56, NULL, NULL, false);
        $url = getAlbumURL();
        echo "\t<div class='thumb' index='{$u}' title='{$title}' location='{$customThumb}' url='{$url}'><description>{$desc}</description></div>\n";
        $u++;
    }
} else {
    $u = 0;
    while (next_image()) {
        $title = getImageTitle();
        $size = getSizeCustomImage(NULL, 383);
        $desc = getImageDesc();
        if (!empty($desc)) {
            $desc = theme_clean($desc);
        } else {
            $desc = '';
        }
        $thumb = getImageThumb();
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:fetch-thumbs.php


示例7: printAlbumURL

/**
 * 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 printAlbumURL($text, $title, $class = NULL, $id = NULL)
{
    printLinkHTML(getAlbumURL(), $text, $title, $class, $id);
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:12,代码来源:template-functions.php


示例8: getNumAlbums

             $albumcount = getNumAlbums() . ' ' . gettext('albums');
         } else {
             $albumcount = '';
         }
         if (getNumImages() > 0) {
             $imagecount = getNumImages() . ' ' . gettext('images');
         } else {
             $imagecount = '';
         }
         $desc1 = $albumcount . $divider . $imagecount . ' ... <a href="' . html_encode(getAlbumURL()) . '">' . gettext('Goto Album') . ' &rarr;</a>';
         $desc2 = '<p>' . getBareAlbumDesc() . '</p>';
         $desc2 = str_replace("\r\n", '<br />', $desc2);
         $desc2 = str_replace("\r", '<br />', $desc2);
         $desc = $desc1 . $desc2;
         echo 'description: \'' . js_encode($desc) . '\',' . "\n";
         echo 'link: \'' . html_encode(getAlbumURL()) . '\'' . "\n";
         echo '}' . "\n";
         $c++;
     }
 }
 while (next_image(true)) {
     if (isImagePhoto($_zp_current_image)) {
         if ($c == 0) {
             echo '{' . "\n";
         } else {
             echo ',{' . "\n";
         }
         echo 'thumb: \'' . getImageThumb() . '\',' . "\n";
         echo 'image: \'' . getDefaultSizedImage() . '\',' . "\n";
         echo 'big: \'' . getCustomImageURL(getOption('zpbase_galbigsize')) . '\',' . "\n";
         echo 'title: \'' . html_encode(getBareImageTitle()) . '\',' . "\n";
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-galleria.php


示例9: unset

        echo $s;
        ?>
</a><?php 
    }
}
unset($seg_path);
?>
		</div>
	</div>
	<div id="content">
		<div id="content_albums">
			<?php 
foreach ($root_album->subalbums as $i => $album) {
    ?>
				<a href="<?php 
    echo getAlbumURL($album->path);
    ?>
"><?php 
    echo $album->name;
    ?>
</a><br />
			<?php 
}
?>
		</div>
		<div id="content_photos">
<?php 
if (count($root_album->photos) === 0) {
    //	echo "<script>document.getElementById('photos').visibility = hidden;</script>";
} else {
    foreach ($root_album->photos as $i => $p) {
开发者ID:ninionino,项目名称:spg,代码行数:31,代码来源:album.php


示例10: getAlbumLinkURL

/**
 * @deprecated
 * @since 1.4.6
 *
 */
function getAlbumLinkURL($album = NULL)
{
    deprecated_functions::notify(gettext('use getAlbumURL()'));
    return getAlbumURL();
}
开发者ID:rb26,项目名称:zenphoto,代码行数:10,代码来源:deprecated-functions.php


示例11: getHTMLMetaData

    /**
     * Prints html meta data to be used in the <head> section of a page
     *
     */
    static function getHTMLMetaData()
    {
        global $_zp_gallery, $_zp_galley_page, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_gallery_page, $_zp_current_category, $_zp_authority, $_zp_conf_vars, $_myFavorites, $htmlmetatags_need_cache;
        zp_register_filter('image_processor_uri', 'htmlmetatags::ipURI');
        $host = sanitize("http://" . $_SERVER['HTTP_HOST']);
        $url = $host . getRequestURI();
        // Convert locale shorttag to allowed html meta format
        $locale = str_replace("_", "-", getUserLocale());
        $canonicalurl = '';
        // generate page title, get date
        $pagetitle = "";
        // for gallery index setup below switch
        $date = strftime(DATE_FORMAT);
        // if we don't have a item date use current date
        $desc = getBareGalleryDesc();
        $thumb = '';
        if (getOption('htmlmeta_sitelogo')) {
            $thumb = getOption('htmlmeta_sitelogo');
        }
        $type = 'article';
        switch ($_zp_gallery_page) {
            case 'index.php':
                $desc = getBareGalleryDesc();
                $canonicalurl = $host . getGalleryIndexURL();
                $type = 'website';
                break;
            case 'album.php':
                $pagetitle = getBareAlbumTitle() . " - ";
                $date = getAlbumDate();
                $desc = getBareAlbumDesc();
                $canonicalurl = $host . getAlbumURL();
                if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                    $thumb = $host . getAlbumThumb();
                }
                break;
            case 'image.php':
                $pagetitle = getBareImageTitle() . " (" . getBareAlbumTitle() . ") - ";
                $date = getImageDate();
                $desc = getBareImageDesc();
                $canonicalurl = $host . getImageURL();
                if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                    $thumb = $host . getImageThumb();
                }
                break;
            case 'news.php':
                if (function_exists("is_NewsArticle")) {
                    if (is_NewsArticle()) {
                        $pagetitle = getBareNewsTitle() . " - ";
                        $date = getNewsDate();
                        $desc = trim(getBare(getNewsContent()));
                        $canonicalurl = $host . $_zp_current_zenpage_news->getLink();
                    } else {
                        if (is_NewsCategory()) {
                            $pagetitle = $_zp_current_category->getTitlelink() . " - ";
                            $date = strftime(DATE_FORMAT);
                            $desc = trim(getBare($_zp_current_category->getDesc()));
                            $canonicalurl = $host . $_zp_current_category->getLink();
                            $type = 'category';
                        } else {
                            $pagetitle = gettext('News') . " - ";
                            $desc = '';
                            $canonicalurl = $host . getNewsIndexURL();
                            $type = 'website';
                        }
                    }
                }
                break;
            case 'pages.php':
                $pagetitle = getBarePageTitle() . " - ";
                $date = getPageDate();
                $desc = trim(getBare(getPageContent()));
                $canonicalurl = $host . $_zp_current_zenpage_page->getLink();
                break;
            default:
                // for all other possible static custom pages
                $custompage = stripSuffix($_zp_gallery_page);
                $standard = array('contact' => gettext('Contact'), 'register' => gettext('Register'), 'search' => gettext('Search'), 'archive' => gettext('Archive view'), 'password' => gettext('Password required'));
                if (is_object($_myFavorites)) {
                    $standard['favorites'] = gettext('My favorites');
                }
                if (array_key_exists($custompage, $standard)) {
                    $pagetitle = $standard[$custompage] . " - ";
                } else {
                    $pagetitle = $custompage . " - ";
                }
                $desc = '';
                $canonicalurl = $host . getCustomPageURL($custompage);
                break;
        }
        // shorten desc to the allowed 200 characters if necesssary.
        $desc = html_encode(trim(substr(getBare($desc), 0, 160)));
        $pagetitle = $pagetitle . getBareGalleryTitle();
        // get master admin
        $admin = $_zp_authority->getMasterUser();
        $author = $admin->getName();
        $meta = '';
//.........这里部分代码省略.........
开发者ID:andrewfandrew,项目名称:ferdinand-miranda,代码行数:101,代码来源:html_meta_tags.php


示例12: printSearchForm

printSearchForm();
?>
			</div>
			<div id="menu">
				<?php 
printThemeMenu();
?>
			</div>
			<div id="breadcrumb">
				<ul>
				<?php 
getFormattedMainSiteName('<li class="page">', '</li><li class="chevron"> > </li>');
echo '<li><a href="' . getGalleryIndexURL() . '" class="activ">' . getBareGalleryTitle() . '</a></li>';
getParentBreadcrumbTLS('<li class="chevron"><a> &gt; </a></li>');
echo '<li class="chevron"><a> &gt; </a></li>';
echo '<li><a href="' . getAlbumURL() . '">' . html_encode(getBareAlbumTitle()) . '</a></li>';
echo '<li class="chevron"><a> &gt; </a></li>';
echo '<li><a>' . html_encode(getBareImageTitle()) . '</a></li>';
?>
				</ul>
			</div>
			<div id="content">
				<div class="description">
					<div class="title">
						<h3><?php 
echo html_encode(getImageTitle());
?>
</h3>
						<?php 
if (function_exists('zenFBLike')) {
    zenFBLike();
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例13: getSubalbumsHTML

 function getSubalbumsHTML()
 {
     $numAlbums = $this->getNumAlbums();
     if ($numAlbums <= 0 || $this->albumPage >= $this->getFirstImagePage()) {
         return '';
     }
     global $_zp_themeroot, $_zp_gallery, $_zp_current_image, $_zp_current_album;
     $w = 318;
     $slideshowLink = $this->getSlideshowLink();
     $subalbums = "<div id='subalbums'>";
     $i = 0;
     $albums = $this->getAlbums();
     $page = $this->getAlbumPage();
     $start = ($page - 1) * getOption('albums_per_page');
     $albums = array_slice($albums, $start, getOption('albums_per_page'));
     for ($u = 0; $u < count($albums); $u++) {
         $a = new Album($_zp_gallery, $albums[$u]);
         $thumb = $a->getAlbumThumbImage();
         $title = $a->getTitle();
         $desc = $a->getDesc();
         $customThumb = $thumb->getCustomImage(NULL, 104, 56, 104, 56, NULL, NULL, false);
         $subalbums .= "<span class='subalbum' id='subalbum-{$u}' width='104' height='56' >" . "<a href='" . getAlbumURL($a) . "' >" . "<img width='104' height='56' src='{$customThumb}'/></a></span>";
         $i++;
     }
     $m = $i;
     $i++;
     while ($i <= getOption('albums_per_page')) {
         $subalbums .= "<span class='subalbum' id='subalbum-{$i}'>" . "<img width='104' height='56' src='{$_zp_themeroot}/resources/images/opa/bg-b-20.png'/>" . "</span>";
         $i++;
     }
     $subalbums .= "</div>";
     $s = ($this->getAlbumPage() - 1) * getOption('albums_per_page');
     $batch = $s + 1 . "-" . ($s + $m);
     $subalbums = "<div id='subalbum-count' class='count'>" . (isset($slideshowLink) && $this->getNumImages() > 0 ? "<span id='album-slideshow-link' class='unselected'><a href='{$slideshowLink}'>Slideshow</a></span>" : "") . "<span class='selected'>{$batch} / " . $numAlbums . " " . gettext($this->getAlbumTabText($numAlbums)) . "</span>" . ($this->getNumImages() > 0 ? "<span class='unselected last'><a href='" . $this->getImageTabLink() . "'>" . $this->getNumImages() . " " . gettext("images") . "</a></span>" : "<span class='unselected last'>" . $this->getNumImages() . " " . gettext("image") . "</span>") . "</div>" . $subalbums;
     if ($this->showRandomImage()) {
         $img = $this->getRandomAlbumImage();
         $subalbums .= "<div id='random-album-image'>";
         $previous = $_zp_current_image;
         $_zp_current_image = $img;
         $size = getSizeCustomImage(NULL, $w + 2);
         $small = getCustomImageURL(NULL, $w + 2);
         $width = $img->getWidth();
         $height = $img->getHeight();
         $ratio = ($w + 2) / $width;
         $height = $height * $ratio;
         $subalbums .= "<img src='{$small}' width='" . ($w + 2) . "' height='{$height}'/>";
         $subalbums .= "<div class='caption'>Random selection</div>";
         $subalbums .= "</div>";
         $_zp_current_image = $previous;
     }
     return $subalbums;
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:52,代码来源:GalleryController.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getAlert函数代码示例发布时间:2022-05-15
下一篇:
PHP getAlbumTitle函数代码示例发布时间: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