diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-06-21 18:09:35 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-06-21 18:09:35 +0000 |
| commit | 2d9d56490e7a1ad9f47bdc84ba162368e3e3c857 (patch) | |
| tree | a8e28b6b78edf9694a2af6f7a6be04e9b1f05b05 /modules | |
| parent | 6615249c6f15c91444103d86ab57431de84c566c (diff) | |
| download | fisheye-2d9d56490e7a1ad9f47bdc84ba162368e3e3c857.tar.gz fisheye-2d9d56490e7a1ad9f47bdc84ba162368e3e3c857.tar.bz2 fisheye-2d9d56490e7a1ad9f47bdc84ba162368e3e3c857.zip | |
replaced random image module with more flexible image module
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_random_images.php | 28 | ||||
| -rw-r--r-- | modules/mod_random_images.tpl | 22 |
2 files changed, 0 insertions, 50 deletions
diff --git a/modules/mod_random_images.php b/modules/mod_random_images.php deleted file mode 100644 index 1f63de3..0000000 --- a/modules/mod_random_images.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -global $gQueryUserId, $module_rows, $module_params, $gGallery; - -require_once( FISHEYE_PKG_PATH.'FisheyeImage.php' ); - -$image = new FisheyeImage(); - -$listHash = $module_params; -$listHash['max_records'] = $module_rows; -$listHash['user_id'] = $gQueryUserId; -$listHash['sort_mode'] = 'random'; - -if( empty( $module_title ) ) { - if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { - $title = tra( "Random Images" ).': '.tra( $gLibertySystem->mContentTypes[$module_params['content_type_guid']]['content_description'] ); - } else { - $smarty->assign( 'showContentType', TRUE ); - $title = tra( "Random Images" ); - } - $smarty->assign( 'moduleTitle', $title ); -} - -$images = $image->getList( $listHash ); - -$smarty->assign('modImages', $images ); -$smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); -$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'y'); -?> diff --git a/modules/mod_random_images.tpl b/modules/mod_random_images.tpl deleted file mode 100644 index 40615fd..0000000 --- a/modules/mod_random_images.tpl +++ /dev/null @@ -1,22 +0,0 @@ -{* $Header: /cvsroot/bitweaver/_bit_fisheye/modules/Attic/mod_random_images.tpl,v 1.1 2005/06/20 06:03:55 spiderr Exp $ *} -{strip} -{if $gBitSystem->isPackageActive( 'fisheye' )} - {bitmodule title="$moduleTitle" name="randomimages"} - <ul> - {foreach from=$modImages item=img key=imageId} - <li><a href="{$img.display_url}" title="{$img.title} - {$img.last_modified|bit_short_datetime}, by {displayname user=$img.modifier_user real_name=$img.modifier_real_name nolink=1}{if (strlen($img.title) > $maxlen) AND ($maxlen > 0)}, {$img.title}{/if}"><img src="{$img.thumbnail_url}" /> - <h4>{if !$img.has_machine_name}{if $maxlen gt 0} - {$img.title|truncate:$maxlen:"...":true} - {else} - {$img.title} - {/if} - {/if}</h4> - </a> - </li> - {foreachelse} - <li></li> - {/foreach} - </ul> - {/bitmodule} -{/if} -{/strip} |
