diff options
| -rw-r--r-- | edit.php | 3 | ||||
| -rw-r--r-- | templates/edit_gallery.tpl | 8 | ||||
| -rw-r--r-- | templates/view_image.tpl | 9 |
3 files changed, 16 insertions, 4 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.15 2006/09/06 04:51:15 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.16 2006/09/06 05:14:29 spiderr Exp $ * @package fisheye * @subpackage functions */ @@ -48,6 +48,7 @@ if( !empty( $_REQUEST['savegallery'] ) ) { $gContent->storePreference( 'is_public', !empty( $_REQUEST['is_public'] ) ? $_REQUEST['is_public'] : NULL ); $gContent->storePreference( 'allow_comments', !empty( $_REQUEST['allow_comments'] ) ? $_REQUEST['allow_comments'] : NULL ); $gContent->storePreference( 'gallery_pagination', !empty( $_REQUEST['gallery_pagination'] ) ? $_REQUEST['gallery_pagination'] : NULL ); + $gContent->storePreference( 'link_original_images', !empty( $_REQUEST['link_original_images'] ) ? $_REQUEST['link_original_images'] : NULL ); // make sure var is fully stuffed with current data $gContent->load(); // set the mappings, or if nothing checked, nuke them all diff --git a/templates/edit_gallery.tpl b/templates/edit_gallery.tpl index 4708367..eb5ffab 100644 --- a/templates/edit_gallery.tpl +++ b/templates/edit_gallery.tpl @@ -56,6 +56,14 @@ function updateGalleryPagination() { {/if} <div class="row"> + {formlabel label="Show Original Images" for="link_original_images"} + {forminput} + <input type="checkbox" name="link_original_images" id="link_original_images" value="y" {if $gContent->getPreference('link_original_images') eq 'y'}checked="checked"{/if} /> + {formhelp note="Display a link to the original image for anyone viewing the images in the gallery."} + {/forminput} + </div> + + <div class="row"> {formlabel label="Gallery Pagination" for="gallery-pagination"} {forminput} {html_options name="gallery_pagination" id="gallery-pagination" options=$galleryPaginationTypes selected=$gContent->getPreference('gallery_pagination',$gBitSystem->getConfig('default_gallery_pagination',$smarty.const.FISHEYE_PAGINATION_FIXED_GRID)) onchange="updateGalleryPagination();"} diff --git a/templates/view_image.tpl b/templates/view_image.tpl index b7b1fc9..51f0c4d 100644 --- a/templates/view_image.tpl +++ b/templates/view_image.tpl @@ -38,12 +38,15 @@ <div class="pagination"> {tr}View other sizes{/tr}<br /> + • {foreach key=size from=$gContent->mInfo.image_file.thumbnail_url item=url} {if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{$size}{if $url != $gContent->mInfo.display_url}</a>{/if} • {/foreach} - <a href="{$gContent->mInfo.image_file.source_url}">Original</a> - {if $gContent->mInfo.width && $gContent->mInfo.height} - {$gContent->mInfo.width}x{$gContent->mInfo.height} + {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference('link_original_images')} + <a href="{$gContent->mInfo.image_file.source_url}">Original</a> + {if $gContent->mInfo.width && $gContent->mInfo.height} + {$gContent->mInfo.width}x{$gContent->mInfo.height} + {/if} {/if} </div> |
