本文整理汇总了PHP中getPrevNewsURL函数的典型用法代码示例。如果您正苦于以下问题:PHP getPrevNewsURL函数的具体用法?PHP getPrevNewsURL怎么用?PHP getPrevNewsURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPrevNewsURL函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getPrevNewsURL
if ($_zenpage_enabled) {
include 'inc_header.php';
?>
<div id="headline-news">
<?php
if (is_NewsArticle()) {
?>
<div class="control-nav-news">
<div class="nav-img clearfix">
<ul class="clearfix">
<?php
if (getPrevNewsURL()) {
?>
<li><a href="<?php
$article_url = getPrevNewsURL();
echo $article_url['link'];
?>
" title="<?php
echo $article_url['title'];
?>
">« <?php
echo gettext('newer');
?>
</a></li>
<?php
} else {
?>
<li class="disabledlink"><span>« <?php
echo gettext('newer');
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php
示例2: gettext
echo gettext("Comments:");
?>
<?php
echo getCommentCount();
}
?>
</span>
</div>
<?php
printNewsContent();
printCodeblock(1);
?>
</div>
<div id="pagination">
<?php
if (getPrevNewsURL()) {
?>
<div class="prev"><?php
printPrevNewsLink('←');
?>
</div><?php
}
?>
<?php
if (getNextNewsURL()) {
?>
<div class="next"><?php
printNextNewsLink('→');
?>
</div><?php
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:news.php
示例3: printPrevNewsLink
printPrevNewsLink();
?>
</div><?php
}
?>
<?php
if (getNextNewsURL()) {
?>
<div class="singlenews_next"><?php
printNextNewsLink();
?>
</div><?php
}
?>
<?php
if (getPrevNewsURL() or getNextNewsURL()) {
?>
<br style="clear:both" /><?php
}
?>
<div class="newsarticlewrapper" style="margin-top: 1em; padding-bottom:0.4em;"><div class="newsarticle">
<h3 style="color: #82996F;"><?php
printNewsTitle();
?>
</h3>
<div class="newsarticlecredit"><span class="newsarticlecredit-left"><?php
printNewsDate();
?>
| <?php
echo gettext("Comments:");
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php
示例4: getNextNewsURL
?>
<?php
if (getNextNewsURL()) {
$nextnews = getNextNewsURL();
?>
<a class="imgnext" href="<?php
echo html_encode($nextnews['link']);
?>
" data-role="button" data-icon="arrow-r" data-iconpos="right" data-inline="true"><?php
echo gettext("next");
?>
</a><?php
}
?>
<?php
if (getPrevNewsURL() || getNextNewsURL()) {
}
?>
<?php
} else {
printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true, 7);
?>
<ul data-role="listview" data-inset="true" data-theme="a" class="ui-listview ui-group-theme-a">
<?php
while (next_news()) {
?>
<li>
<a href="<?php
echo html_encode(jqm_getLink());
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:news.php
示例5: printPrevNewsLink
/**
* Prints the link of the previous article in single news article pagination if available
*
* NOTE: This is not available if using the CombiNews feature
*
* @param string $next If you want to show something with the title of the article like a symbol
* @return string
*/
function printPrevNewsLink($prev = "« ")
{
$article_url = getPrevNewsURL();
if ($article_url && array_key_exists('link', $article_url) && $article_url['link'] != "") {
echo html_encode($prev) . " <a href=\"" . html_encode($article_url['link']) . "\" title=\"" . html_encode(getBare($article_url['title'])) . "\">" . $article_url['title'] . "</a>";
}
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:15,代码来源:template-functions.php
示例6: getPrevNewsURL
<div class="clear_left"></div>
<div id="move">
<?php
if (is_NewsArticle()) {
?>
<div id="prev" <?php
if (getPrevNewsURL()) {
echo 'class="active"';
}
?>
>
<?php
if (getPrevNewsURL()) {
?>
<a href="<?php
echo getPrevNewsURL()['link'];
?>
">Prev</a><?php
} else {
?>
<span>Prev</span><?php
}
?>
</div>
<div id="next" <?php
if (getNextNewsURL()) {
echo 'class="active"';
}
?>
>
<?php
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:news.php
注:本文中的getPrevNewsURL函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论