diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-07-25 20:02:05 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-07-25 20:02:05 +0000 |
| commit | 18c7d1bed3043cbb682431cc297f4d235b137d1e (patch) | |
| tree | 59e12f3fcd7eeab8a2f33aea1cec0c83e357b7e6 /modules | |
| parent | bed166d3feb3d32725782b2834fb36032aad1ba8 (diff) | |
| download | fisheye-18c7d1bed3043cbb682431cc297f4d235b137d1e.tar.gz fisheye-18c7d1bed3043cbb682431cc297f4d235b137d1e.tar.bz2 fisheye-18c7d1bed3043cbb682431cc297f4d235b137d1e.zip | |
Merge recent changes R1 1.0.2 beta --> HEAD
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_images.php | 7 | ||||
| -rw-r--r-- | modules/mod_images.tpl | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/mod_images.php b/modules/mod_images.php index b937bb1..bbdf5a5 100644 --- a/modules/mod_images.php +++ b/modules/mod_images.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.php,v 1.3 2005/06/28 07:45:43 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.php,v 1.4 2005/07/25 20:02:04 squareing Exp $ * @package fisheye * @subpackage modules */ @@ -20,7 +20,7 @@ $listHash = $module_params; if( !empty( $gContent ) && $gContent->mInfo['content_type_guid'] == FISHEYEGALLERY_CONTENT_TYPE_GUID ) { $displayCount = empty( $gContent->mItems ) ? 0 : count( $gContent->mItems ); $thumbCount = $gContent->mInfo['rows_per_page'] * $gContent->mInfo["cols_per_page"]; - $listHash['gallery_id'] = $_REQUEST['gallery_id']; + $listHash['gallery_id'] = $gContent->mGalleryId; $display = $displayCount >= $thumbCount; } @@ -30,6 +30,7 @@ if( $display ) { if( $gQueryUserId ) { $listHash['user_id'] = $gQueryUserId; } elseif( !empty( $_REQUEST['user_id'] ) ) { + $smarty->assign( 'userGallery', $_REQUEST['user_id'] ); $listHash['user_id'] = $_REQUEST['user_id']; } elseif( !empty( $module_params['recent_users'] ) ) { $listHash['recent_users'] = TRUE; @@ -62,7 +63,7 @@ if( $display ) { $moduleTitle .= ' Images'; $moduleTitle = tra( $moduleTitle ); - + if( !empty( $listHash['user_id'] ) ) { $moduleTitle .= ' '.tra('by').' '.BitUser::getDisplayName( TRUE, current( $images ) ); } elseif( !empty( $listHash['recent_users'] ) ) { diff --git a/modules/mod_images.tpl b/modules/mod_images.tpl index 8f27a37..45a98e0 100644 --- a/modules/mod_images.tpl +++ b/modules/mod_images.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.tpl,v 1.2 2005/06/28 07:45:43 spiderr Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.tpl,v 1.3 2005/07/25 20:02:05 squareing Exp $ *} {strip} {if $gBitSystem->isPackageActive( 'fisheye' ) && $modImages} {bitmodule title="$moduleTitle" name="fisheye_images"} @@ -31,6 +31,9 @@ <li></li> {/foreach} </ul> + {if $userGallery} + <a href="{$smarty.const.FISHEYE_PKG_URL}index.php?user_id={$userGallery}">{tr}See more...{/tr}</a> + {/if} {/bitmodule} {/if} {/strip} |
