diff options
| author | lsces <lester@lsces.co.uk> | 2014-05-31 22:58:45 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-05-31 22:58:45 +0100 |
| commit | 0079eba641d5be99a992edf24bcc0767d2faee78 (patch) | |
| tree | 0719250ee0bc29f93dcb531b8acdf4ae504b56f0 /display_contact.php | |
| parent | e2d8f876031520c7262436fe371c25916dea3b43 (diff) | |
| download | contact-0079eba641d5be99a992edf24bcc0767d2faee78.tar.gz contact-0079eba641d5be99a992edf24bcc0767d2faee78.tar.bz2 contact-0079eba641d5be99a992edf24bcc0767d2faee78.zip | |
Initial code to add image/document gallery to contact package
STill needs a means of supplying gallery number for related gallery.
Diffstat (limited to 'display_contact.php')
| -rw-r--r-- | display_contact.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/display_contact.php b/display_contact.php index 926ae15..bae0974 100644 --- a/display_contact.php +++ b/display_contact.php @@ -20,6 +20,17 @@ $gBitSystem->verifyPermission( 'p_contact_view' ); include_once( CONTACT_PKG_PATH.'lookup_contact_inc.php' ); +require_once( FISHEYE_PKG_PATH.'FisheyeGallery.php'); +require_once( FISHEYE_PKG_PATH.'FisheyeImage.php'); +global $gBitSystem, $fisheyeErrors, $fisheyeWarnings, $fisheyeSuccess; +$lookup = array(); +$gGallery = new FisheyeGallery(4); +$gGallery->load(); +$gGallery->loadImages(0,4); +$gBitSmarty->assign_by_ref('gGallery', $gGallery); +$gBitSmarty->assign_by_ref('galleryId', $gGallery->mGalleryId); +$gBitSmarty->assign('galLayout', 'fixed_grid'); + if ( !$gContent->isValid() ) { header ("location: ".CONTACT_PKG_URL."list.php"); die; |
