verifyPackage( 'contact' ); $gBitSystem->verifyPermission( 'p_contact_view' ); include_once CONTACT_PKG_INCLUDE_PATH . 'lookup_contact_inc.php'; global $gBitSystem, $fisheyeErrors, $fisheyeWarnings, $fisheyeSuccess; $lookup = []; $lookup['max_records'] = 4; $gGallery = new FisheyeGallery( $gContent->mInfo['client_gallery'] ); $gGallery->load(); $gGallery->loadImages( $lookup ); $gBitSmarty->assign( 'gGallery', $gGallery ); $gBitSmarty->assign( 'galleryId', $gGallery->mGalleryId ); $gBitSmarty->assign( 'galLayout', 'fixed_grid' ); if (!$gContent->isValid()) { header( "location: " . CONTACT_PKG_URL . "list_contacts.php" ); die; } if ($gContent->isCommentable()) { $commentsParentId = $gContent->mContentId; $comments_vars = [ 'contact' ]; $comments_prefix_var = 'contact:'; $comments_object_var = 'contact'; $comments_return_url = $_SERVER['PHP_SELF'] . "?content_id=" . $gContent->mContentId; include_once LIBERTY_PKG_INCLUDE_PATH . 'comments_inc.php'; if (isset($_REQUEST['post_comment_submit']) and !$_REQUEST['post_comment_submit'] == 'Post' ) { header ("location: ".CONTACT_PKG_URL."index.php?content_id=".$gContent->mContentId ); die; } } $gBitSmarty->assign( 'isPerson', $gContent instanceof \Bitweaver\Contact\ContactPerson ); $gBitSmarty->assign( 'gXrefInfo', $gContent->mXrefInfo ); $gBitSystem->setBrowserTitle( $gContent->mInfo['title'] ); $gBitSystem->display( 'bitpackage:contact/show_contact.tpl');