summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2014-05-31 22:58:45 +0100
committerlsces <lester@lsces.co.uk>2014-05-31 22:58:45 +0100
commit0079eba641d5be99a992edf24bcc0767d2faee78 (patch)
tree0719250ee0bc29f93dcb531b8acdf4ae504b56f0
parente2d8f876031520c7262436fe371c25916dea3b43 (diff)
downloadcontact-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.
-rw-r--r--display_contact.php11
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;