blob: 01c0613c7d4afbecbd4e50e3d86b9fcb400d8b29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* @version $Header: /cvsroot/bitweaver/_bit_fisheye/display_fisheye_image_inc.php,v 1.11 2008/06/25 22:21:09 spiderr Exp $
* @package fisheye
* @subpackage functions
*/
if( !$gContent->isValid() ) {
$gBitSystem->setHttpStatus( 404 );
$gBitSystem->fatalError( tra( "No image exists with the given ID" ) ,'error.tpl', '' );
}
$displayHash = array( 'perm_name' => 'p_fisheye_view' );
$gContent->invokeServices( 'content_display_function', $displayHash );
// Get the proper thumbnail size to display on this page
reset($gContent->mStorage);
$imageStorage = current($gContent->mStorage);
$thumbSize = (!empty( $_REQUEST['size'] ) ? $_REQUEST['size'] :
(!empty( $_COOKIE['fisheyeviewsize'] ) ? $_COOKIE['fisheyeviewsize'] :
$gBitSystem->getConfig('fisheye_image_default_thumbnail_size', FISHEYE_DEFAULT_THUMBNAIL_SIZE)));
// This is handled by LM so we can probably trim
// $gContent->mInfo['display_url'] = $gContent->getThumbnailUrl( $thumbSize );
$gBitSystem->setBrowserTitle( $gContent->getTitle() );
$gBitSystem->display( $gContent->getRenderTemplate() , NULL, array( 'display_mode' => 'display' ));
?>
|