diff options
| author | Lester Caine <lester@lsces.co.uk> | 2009-03-30 13:23:01 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2009-03-30 13:23:01 +0000 |
| commit | f902ca35de984cf4013226976a3efb82f77848ba (patch) | |
| tree | 9d5e57490e9c0272cbab152e66bf675e42860db7 /display_fisheye_gallery_inc.php | |
| parent | 892740f09f2af2b2690071434c8f83a0ba546c56 (diff) | |
| download | fisheye-f902ca35de984cf4013226976a3efb82f77848ba.tar.gz fisheye-f902ca35de984cf4013226976a3efb82f77848ba.tar.bz2 fisheye-f902ca35de984cf4013226976a3efb82f77848ba.zip | |
ajax image scroller added to gallery layout options
Diffstat (limited to 'display_fisheye_gallery_inc.php')
| -rw-r--r-- | display_fisheye_gallery_inc.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/display_fisheye_gallery_inc.php b/display_fisheye_gallery_inc.php index ffa5641..4771da6 100644 --- a/display_fisheye_gallery_inc.php +++ b/display_fisheye_gallery_inc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/display_fisheye_gallery_inc.php,v 1.9 2008/07/06 09:09:56 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/display_fisheye_gallery_inc.php,v 1.10 2009/03/30 13:23:01 lsces Exp $ * @package fisheye * @subpackage functions */ @@ -32,8 +32,14 @@ $gBitSmarty->assign_by_ref('cols_per_page', $gContent->mInfo['cols_per_page']); $gContent->loadImages( $page ); $gContent->addHit(); -if(( $pagination = $gContent->getPreference( 'gallery_pagination' )) && $pagination == 'auto_flow' ) { - $gBitThemes->loadCss( FISHEYE_PKG_PATH."div_layout.css", TRUE ); +if( $pagination = $gContent->getPreference( 'gallery_pagination' ) ) { + if ( $pagination == 'auto_flow' ) { + $gBitThemes->loadCss( FISHEYE_PKG_PATH."div_layout.css", TRUE ); + } + else if ( $pagination == 'ajax_scroller' ) { + $gBitThemes->loadCss( FISHEYE_PKG_PATH."mb_layout.css", TRUE ); + $gBitThemes->loadAjax( 'jquery', array( UTIL_PKG_PATH.'/javascript/libs/jquery/plugins/mbgallery/mbGallery.js', UTIL_PKG_PATH.'/javascript/libs/jquery/plugins/mbgallery/mbGalleryBox.js' ) ); + } } $gBitSystem->setBrowserTitle( $gContent->getTitle().' '.tra('Gallery') ); $gBitSystem->display( $gContent->getRenderTemplate() , NULL, array( 'display_mode' => 'display' )); |
