本文整理汇总了PHP中gallery::getLimitedImagesList方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::getLimitedImagesList方法的具体用法?PHP gallery::getLimitedImagesList怎么用?PHP gallery::getLimitedImagesList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::getLimitedImagesList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rcms_parse_dynamik_menu
//.........这里部分代码省略.........
if (count($art2) > 0) {
unset($arr['ddm_article'][$pic_right . ' ' . cut_text($conval) . ' '][' ' . cut_text($artval['title']) . ' ']);
$arr['ddm_article'][$pic_right . ' ' . cut_text($conval) . ' '][$pic_right . ' ' . cut_text($artval['title']) . ' '] = array('-' => '?module=articles&c=' . $conkey . '&b=' . $artval['id']);
$art2 = array_reverse($art2);
foreach ($art2 as $art2key => $art2val) {
$count3++;
if ($count3 != $dyna['max']) {
$arr['ddm_article'][$pic_right . ' ' . cut_text($conval) . ' '][$pic_right . ' ' . cut_text($artval['title']) . ' '][' ' . cut_text($art2val['title']) . ' '] = '?module=articles&c=' . $conkey . '&b=' . $artval['id'] . '&a=' . $art2val['id'];
}
}
}
}
}
}
}
}
}
}
$item[4] = 'ddm_article';
}
$item[3] = 'articles.png';
} elseif ($item[0] == '?module=gallery') {
if (!isset($dyna['use_gal'])) {
$gallery = new gallery();
$kw = $gallery->getAvaiableValues('keywords');
$count = 0;
if (is_array($kw)) {
$kw = array_reverse($kw);
$count++;
if (!isset($dyna['min'])) {
foreach ($kw as $key => $val) {
if ($count != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By keywords') . ' '][$pic_right . ' ' . cut_text($val) . ' '] = array('-' => '?module=gallery&keyword=' . $val);
$kw2 = $gallery->getLimitedImagesList('keywords', $val);
$kw2 = array_reverse($kw2);
$count2 = 0;
foreach ($kw2 as $key2 => $val2) {
$count2++;
if ($count2 != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By keywords') . ' '][$pic_right . ' ' . cut_text($val) . ' '][' ' . cut_text($val2) . ' '] = '?module=gallery&id=' . $val2;
}
}
}
}
}
}
$kw = $gallery->getAvaiableValues('size');
$count = 0;
if (is_array($kw)) {
$kw = array_reverse($kw);
$count++;
$item[1] .= ' ' . $pic_down;
if (!isset($dyna['min'])) {
foreach ($kw as $key => $val) {
if ($count != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By size') . ' '][$pic_right . ' ' . cut_text($val) . ' '] = array('-' => '?module=gallery&size=' . $val);
$kw2 = $gallery->getLimitedImagesList('size', $val);
$kw2 = array_reverse($kw2);
$count2 = 0;
foreach ($kw2 as $key2 => $val2) {
$count2++;
if ($count2 != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By size') . ' '][$pic_right . ' ' . cut_text($val) . ' '][' ' . cut_text($val2) . ' '] = '?module=gallery&id=' . $val2;
}
}
}
示例2: gallery
<?php
////////////////////////////////////////////////////////////////////////////////
// Copyright (C) ReloadCMS Development Team //
// http://reloadcms.com //
// This product released under GNU General Public License v2 //
////////////////////////////////////////////////////////////////////////////////
$gallery = new gallery();
$system->config['pagename'] = __('Gallery');
if (!empty($_GET['id']) && ($image_data = $gallery->getData(basename($_GET['id'])))) {
$id = basename($_GET['id']);
$linkdata = '';
if (!empty($_GET['size']) && !empty($_GET['type'])) {
$images_s = $gallery->getLimitedImagesList('size', $_GET['size']);
$images_t = $gallery->getLimitedImagesList('type', $_GET['type']);
$images = array();
foreach ($images_s as $image) {
if (in_array($image, $images_t)) {
$images[] = $image;
}
}
$linkdata .= '&size=' . $_GET['size'] . '&type=' . $_GET['type'];
} elseif (!empty($_GET['size'])) {
$images = $gallery->getLimitedImagesList('size', $_GET['size']);
$linkdata .= '&size=' . $_GET['size'];
} elseif (!empty($_GET['type'])) {
$images = $gallery->getLimitedImagesList('type', $_GET['type']);
$linkdata .= '&type=' . $_GET['type'];
} else {
$images = $gallery->getFullImagesList();
}