Difference between revisions of "How to output thumbnail url"

From JReviews Documentation
Jump to: navigation, search
(Created page with " For listing detail page (thumbnail of the main image): <source lang="php"> <?php echo $Thumbnail->thumb($listing,0,array('return_src'=>true,'tn_mode'=>$introThumbnailMode,'dimen...")
 
Line 1: Line 1:
 
+
For the listing detail page (thumbnail of the main image):
For listing detail page (thumbnail of the main image):
+
 
<source lang="php">
 
<source lang="php">
 
<?php echo $Thumbnail->thumb($listing,0,array('return_src'=>true,'tn_mode'=>$introThumbnailMode,'dimensions'=>array($introThumbnailSize)));?>
 
<?php echo $Thumbnail->thumb($listing,0,array('return_src'=>true,'tn_mode'=>$introThumbnailMode,'dimensions'=>array($introThumbnailSize)));?>

Revision as of 12:22, 2 November 2011

For the listing detail page (thumbnail of the main image):

<?php echo $Thumbnail->thumb($listing,0,array('return_src'=>true,'tn_mode'=>$introThumbnailMode,'dimensions'=>array($introThumbnailSize)));?>


For the category/search list pages:

<?php echo $Thumbnail->thumb($listing,0,array('return_src'=>true,'tn_mode'=>$this->Config->list_thumb_mode,'location'=>'list','dimensions'=>array($this->Config->list_image_resize)));?>


For the listings module:

<?php echo $Thumbnail->thumb($listing, 0, array('return_src'=>true,'tn_mode'=>$tn_mode,'location'=>'module'.$tn_width,'dimensions'=>array($tn_width)));?>