本文整理汇总了PHP中gallery::count_gallery_at_page方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::count_gallery_at_page方法的具体用法?PHP gallery::count_gallery_at_page怎么用?PHP gallery::count_gallery_at_page使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::count_gallery_at_page方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
global $_str;
// check for crack!
if (isset($_GET['page'])) {
system::count_parametr(5);
system::isset_numeric($_GET['page']);
} else {
system::count_parametr(3);
$_GET['page'] = 1;
}
if (isset($_GET['url'])) {
// получаем группу галереи
$_id_gallery_grupa = dbh::get_gallery_grupa_id($_GET['url']);
// проверяеим есть ли дети
$children = dbh::gallery_grupa_get_child($_id_gallery_grupa);
if (count($children)) {
// выводим группы
$_str .= gallery::get_group_gallery('/frontend/gallery/list.php');
} else {
// check for count gallery at page
gallery::count_gallery_at_page();
// get limit
$limit = pager::pager_limit(gallery::count_gallery(), GALLERY_AT_PAGE);
// выводим фото
$_str .= gallery::get_gallery($limit, '/frontend/gallery/show.php');
}
} else {
$_str .= gallery::get_group_gallery('/frontend/gallery/list.php');
}