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


PHP gallery::getLimitedImagesList方法代码示例

本文整理汇总了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;
                                    }
                                }
                            }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:67,代码来源:templates.php

示例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 .= '&amp;size=' . $_GET['size'] . '&amp;type=' . $_GET['type'];
    } elseif (!empty($_GET['size'])) {
        $images = $gallery->getLimitedImagesList('size', $_GET['size']);
        $linkdata .= '&amp;size=' . $_GET['size'];
    } elseif (!empty($_GET['type'])) {
        $images = $gallery->getLimitedImagesList('type', $_GET['type']);
        $linkdata .= '&amp;type=' . $_GET['type'];
    } else {
        $images = $gallery->getFullImagesList();
    }
开发者ID:Parashutik,项目名称:ReloadCMS,代码行数:31,代码来源:index.php


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