本文整理汇总了PHP中gallery::getAvaiableValues方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::getAvaiableValues方法的具体用法?PHP gallery::getAvaiableValues怎么用?PHP gallery::getAvaiableValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::getAvaiableValues方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rcms_parse_dynamik_menu
//.........这里部分代码省略.........
unset($arr['ddm_article'][' ' . cut_text($conval) . ' ']);
$arr['ddm_article'][$pic_right . ' ' . cut_text($conval) . ' '] = array('-' => '?module=articles&c=' . $conkey);
$art = array_reverse($art);
foreach ($art as $artkey => $artval) {
$count2++;
if ($count2 != $dyna['max']) {
$arr['ddm_article'][$pic_right . ' ' . cut_text($conval) . ' '][' ' . cut_text($artval['title']) . ' '] = '?module=articles&c=' . $conkey . '&b=' . $artval['id'];
$art2 = $articles->getArticles($artval['id']);
$count3 = 0;
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);
示例2: foreach
}
}
}
if ((!empty($_POST['gcd']) || @$_POST['gcd'] === '0') && $system->checkForRight('GALLERY')) {
$gallery->removeComment($id, $_POST['gcd']);
}
foreach ($gallery->getComments($id) as $message) {
show_window('', rcms_parse_module_template('gallery-comment.tpl', $message), 'center');
}
if (isset($system->config['forum-guest']) and !LOGGED_IN) {
show_window(__('Post comment'), __('You are not logined!'), 'center');
} else {
show_window(__('Post comment'), rcms_parse_module_template('gallery-form.tpl'), 'center');
}
} else {
$data['sizes'] = $gallery->getAvaiableValues('size');
$data['types'] = $gallery->getAvaiableValues('type');
$data['keywords'] = $gallery->getAvaiableValues('keywords');
$linkdata = '?module=' . $module;
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']);