summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2010-12-28 17:17:03 -0500
committerspiderr <spider@viovio.com>2010-12-28 17:17:03 -0500
commita0e80a396fced520fc75f27cfde0346af7ebb6b0 (patch)
tree2c6525a99b1cafa7257ea29159adb3ae5c111fab
parenteba8237dc12e3850bad6491e1a915eca24c8be6e (diff)
downloadfisheye-a0e80a396fced520fc75f27cfde0346af7ebb6b0.tar.gz
fisheye-a0e80a396fced520fc75f27cfde0346af7ebb6b0.tar.bz2
fisheye-a0e80a396fced520fc75f27cfde0346af7ebb6b0.zip
completely modularize gallery_views
-rw-r--r--templates/gallery_icons_inc.tpl20
-rw-r--r--templates/view_image_details.tpl19
2 files changed, 39 insertions, 0 deletions
diff --git a/templates/gallery_icons_inc.tpl b/templates/gallery_icons_inc.tpl
new file mode 100644
index 0000000..9803fcc
--- /dev/null
+++ b/templates/gallery_icons_inc.tpl
@@ -0,0 +1,20 @@
+<div class="floaticon">
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo}
+ {if $gContent->hasUpdatePermission()}
+ {if $gBitUser->hasPermission( 'p_fisheye_download_gallery_arc' ) }
+ <a title="{tr}Download Gallery{/tr}" href="{$smarty.server.REQUEST_URI}?download=1">{biticon ipackage="icons" iname="system-file-manager" iexplain="Download Gallery"}</a>
+ {/if}
+ <a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="document-properties" iexplain="Edit"}</a>
+ <a title="{tr}Image Order{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}image_order.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage=fisheye iname="order" iexplain="Image Order"}</a>
+ {/if}
+ {if $gContent->hasUpdatePermission() || $gContent->getPreference('is_public')}
+ <a title="{tr}Add Image{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="go-up" iexplain="Add Image"}</a>
+ {/if}
+ {if $gContent->getPreference('is_public')}
+ {biticon ipackage="icons" iname="weather-clear" iexplain="Public"}
+ {/if}
+ {if $gContent->hasAdminPermission()}
+ <a title="{tr}User Permissions{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit.php?gallery_id={$gContent->mGalleryId}&amp;delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Gallery"}</a>
+ {* appears broken at the moment <a title="{tr}User Permissions{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_gallery_perms.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="emblem-shared" iexplain="User Permissions"}</a> *}
+ {/if}
+</div>
diff --git a/templates/view_image_details.tpl b/templates/view_image_details.tpl
new file mode 100644
index 0000000..441823d
--- /dev/null
+++ b/templates/view_image_details.tpl
@@ -0,0 +1,19 @@
+<div class="display fisheye">
+ <div class="gallerybar">
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$gContent->mInfo}
+ </div>
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
+ <div class="image">
+ {if $gBitSystem->isFeatureActive('fisheye_image_list_description') and $gContent->mInfo.data ne ''}
+ <p class="description">{$gContent->mInfo.parsed_data}</p>
+ {/if}
+ </div>
+</div> <!-- end .body -->
+
+{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo}
+
+{if $gGallery && $gGallery->getPreference('allow_comments') eq 'y'}
+ {include file="bitpackage:liberty/comments.tpl"}
+{/if}
+
+