當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。