当前位置: 首页>>代码示例>>PHP>>正文


PHP printNewsPageListWithNav函数代码示例

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


在下文中一共展示了printNewsPageListWithNav函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printNewsPageList

/**
 * Prints the page number list for news page navigation
 *
 * @param string $class The CSS class for the disabled link
 *
 * @return string
 */
function printNewsPageList($class = 'pagelist')
{
    printNewsPageListWithNav("", "", false, $class, true);
}
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:11,代码来源:zenpage-template-functions.php

示例2: printNewsDate

					<?php 
            printNewsDate();
            printNewsCategories(', ', ' | ', 'hor-list');
            ?>
				</div>

				<?php 
            printNewsContent();
            ?>

			</div>
			<?php 
        }
        ?>
		</div>

		<div class="pagination-news clearfix">
			<?php 
        printNewsPageListWithNav(' » ', ' « ', true, 'clearfix');
        ?>
		</div>

	<?php 
    }
    ?>

<?php 
    include 'inc_footer.php';
} else {
    include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php

示例3: printBaseAlbumMenuJump

				<div id="page-nav" class="clearfix">
					<div class="jump"><?php 
    printBaseAlbumMenuJump('count', gettext('Gallery Index'));
    ?>
</div>
				</div>
				<?php 
} else {
    ?>
				<div class="page-nav">
					<div class="jump"><?php 
    printBaseAlbumMenuJump('count', gettext('Gallery Index'));
    ?>
</div>
					<?php 
    printNewsPageListWithNav(gettext('Next »'), gettext('« Prev'), true, 'pagination', true);
    ?>
				</div>
				<?php 
}
?>
				
			</div>
			
			<?php 
if ($zpbase_newsstyle == 'blog-style') {
    ?>
			<div id="sidebar">
				<div class="block">
					<h3><?php 
    echo gettext('Categories');
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-news.php

示例4: printNewsContent

							<?php 
        printNewsContent();
        printCodeblock(1);
        ?>
						</div>	
						<?php 
    }
    ?>
					</div>
					<?php 
    if (getNextNewsPageURL() || getPrevNewsPageURL()) {
        ?>
				
					<div id="pagination">
						<?php 
        printNewsPageListWithNav(gettext('Next →'), gettext('← Prev'), true, '');
        ?>
					</div>
					<?php 
    }
    ?>
					<?php 
}
?>
 
				</div>
				<div id="sidebar"<?php 
if ($zpmin_switch) {
    echo ' class="switch"';
}
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:news.php

示例5: commonNewsLoop

function commonNewsLoop($paged)
{
    $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
    while (next_news()) {
        $newstypedisplay = gettext('news');
        if (stickyNews()) {
            $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
        }
        ?>
		<div class="newsarticle<?php 
        if (stickyNews()) {
            echo ' sticky';
        }
        ?>
">
			<h3><?php 
        printNewsURL();
        echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
        ?>
</h3>
			<div class="newsarticlecredit">
				<span class="newsarticlecredit-left">
					<?php 
        $count = @call_user_func('getCommentCount');
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        ?>
				</span>
				<?php 
        if (!empty($cat)) {
            echo ' | ';
            printNewsCategories(", ", gettext("Categories: "), "newscategories");
        }
        ?>
			</div> <!-- newsarticlecredit -->
			<?php 
        printCodeblock(1);
        ?>
			<?php 
        printNewsContent();
        ?>
		<?php 
        printCodeblock(2);
        ?>
			<br class="clearall" />
		</div>
		<?php 
    }
    if ($paged) {
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:56,代码来源:functions.php

示例6: printNewsContent

							<?php 
        printNewsContent();
        ?>
							<?php 
        printCodeblock(1);
        ?>
							<?php 
        printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ', ');
        ?>
							<br style="clear:both;" /><br />
						</div>

						<?php 
    }
    echo "</div><br/><hr/>";
    printNewsPageListWithNav(gettext('next »'), gettext('« prev'));
}
?>


			</div><!-- content left-->


			<div id="sidebar">
				<?php 
include "sidebar.php";
?>
			</div><!-- sidebar -->


			<div id="footer">
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php

示例7: printNewsContent

        printNewsContent();
        ?>
									<?php 
        printCodeblock(1);
        ?>
									<?php 
        if (getTags()) {
            echo gettext('<strong>Tags:</strong>');
        }
        printTags('links', '', 'taglist', ', ');
        ?>
									<br style="clear:both;" /><br />
								</div>
								<?php 
    }
    printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'), true, 'pagelist', true);
}
?>


</div><!-- content left-->


	<div id="sidebar">
		<?php 
include "sidebar.php";
?>
	</div><!-- sidebar -->


	<div id="footer">
开发者ID:nataliakuruch,项目名称:negpos,代码行数:31,代码来源:news.php

示例8: printNewsDate

 <small>(<?php 
            printNewsDate();
            ?>
)</small>
											<div class="albumdesc"><?php 
            echo shortenContent(getBare(getNewsContent()), 57, '(...)', false);
            ?>
</div>
										</a>
									</li>
								<?php 
        }
        ?>
							</ul>
		<?php 
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true, 7);
    }
    ?>

					</div>
					<div class="content-secondary">
				<?php 
    jqm_printMenusLinks();
    ?>
					</div>
				</div><!-- /content -->
			<?php 
    jqm_printBacktoTopLink();
    ?>
			<?php 
    jqm_printFooterNav();
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:news.php

示例9: printNewsContent

            ?>
	    <?php 
            printNewsContent();
            ?>
	    <?php 
            printCodeblock(2);
            ?>
	    <p><?php 
            printNewsReadMoreLink();
            ?>
</p>
	    
	    </div>	
	<?php 
        }
        printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'));
    }
}
?>
 

			</div><!-- content left-->
			<div id="sidebar">
			<?php 
include "sidebar.php";
?>
			</div><!-- sidebar -->
			<br style="clear:both" />
		</div> <!-- main2 -->
		
	</div> <!-- content -->
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:news.php

示例10: commonNewsLoop

function commonNewsLoop($paged)
{
    $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
    while (next_news()) {
        $newstype = getNewsType();
        $newstypedisplay = $newstypes[$newstype];
        if (stickyNews()) {
            $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
        }
        ?>
		<div class="newsarticle<?php 
        if (stickyNews()) {
            echo ' sticky';
        }
        ?>
">
			<h3><?php 
        printNewsTitleLink();
        echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
        ?>
</h3>
			<div class="newsarticlecredit">
				<span class="newsarticlecredit-left">
					<?php 
        $count = getCommentCount();
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        ?>
				</span>
				<?php 
        if (is_GalleryNewsType()) {
            echo ' | ' . gettext("Album:") . " <a href='" . getNewsAlbumURL() . "' title='" . getBareNewsAlbumTitle() . "'>" . getNewsAlbumTitle() . "</a>";
        } else {
            if (!empty($cat) && !in_context(ZP_ZENPAGE_NEWS_CATEGORY)) {
                echo ' | ';
                printNewsCategories(", ", gettext("Categories: "), "newscategories");
            }
        }
        ?>
			</div> <!-- newsarticlecredit -->
			<br clear="all" />
			<?php 
        printCodeblock(1);
        ?>
			<?php 
        printNewsContent();
        ?>
			<?php 
        printCodeblock(2);
        ?>
			<br clear="all" />
			</div>
	<?php 
    }
    if ($paged) {
        printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'), true, 'pagelist', true);
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:62,代码来源:functions.php

示例11: printNewsContent

                ?>
							</div>
							<?php 
            }
            ?>
							<?php 
            printNewsContent();
            ?>
						</div>
					</div>
					<?php 
        }
        ?>
					<?php 
        if (getNextNewsPageURL() || getPrevNewsPageURL()) {
            printNewsPageListWithNav(gettext('next') . ' »', '« ' . gettext('prev'), true, 'pagination', true);
        }
        ?>
					<?php 
    }
    ?>
					
				</div>
				
				<div class="page-sidebar pad">
					<?php 
    if (is_NewsArticle()) {
        ?>
					<div class="single-nav">
						<?php 
        if ($prev = getNextPrevNews('prev')) {
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:news.php

示例12: printNewsURL

				</div>
				<h3><?php 
        printNewsURL();
        ?>
</h3>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock();
        ?>
			</div>
		<?php 
    }
    ?>
		<div class="page-nav">
			<?php 
    printNewsPageListWithNav('»', '«', 'true', 'page-nav');
    ?>
		</div>
	<?php 
}
?>

</div>

<?php 
include "inc-footer.php";
?>

开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:29,代码来源:news.php

示例13: printAllNewsCategories

				<?php 
        include 'inc_print_news.php';
        ?>
			<?php 
    }
    ?>
			</div>
		</div>

		<div class="span3">
	<?php 
    printAllNewsCategories(gettext('All news'), false, 'news-cat-list', 'active');
    ?>
		</div>
	</div>

	<div class="row">
		<div class="span12">
			<div class="pagination">
	<?php 
    printNewsPageListWithNav('»', '«', true, 'pagination top-margin-reset', true, 7);
    ?>
			</div>
		</div>
	</div>
<?php 
}
?>

<?php 
include 'inc_footer.php';
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php


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