Yii 1.1: galleryview

动态图片展示及滚动特效
1 follower

This extension is ...

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example: view.php <?php $this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> SdbGoods::model()->findAll("image_default IS NOT NULL "), 'size'=>5, 'bigwidth'=>280, 'bigheight'=>280, 'smallwidth'=>100, 'smallheight'=>100, //'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', 'caption_text_color'=>'black', )); ?>

or

view.php

<?php $this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> $images, 'bigwidth'=>Yii::app()->config->get('smallwidth'), 'bigheight'=>Yii::app()->config->get('smallheight'), 'smallwidth'=>Yii::app()->config->get('thumbwidth'), 'smallheight'=>Yii::app()->config->get('thumheight'), 'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', )); ?>

最后更改\protected\extensions\galleryview\views里的两个视图文件中的变量为你的大图小图路径

Change Log

September 18, 2010

  • Initial release.

Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: johocn
  • Category: Web Service
  • Votes: +1
  • Downloaded: 569 times
  • Created on: Sep 18, 2010
  • Last updated: never