summaryrefslogtreecommitdiff
path: root/gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl')
-rwxr-xr-xgallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl93
1 files changed, 49 insertions, 44 deletions
diff --git a/gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl b/gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl
index 8c4e032..5d908f2 100755
--- a/gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl
+++ b/gallery_views/fixed_grid/fisheye_fixed_grid_inc.tpl
@@ -1,59 +1,64 @@
{strip}
-{include file="bitpackage:fisheye/gallery_nav.tpl"}
-<div class="display fisheye container">
- <div class="header col-xs-12">
+<div class="display fisheye">
+ <header>
{include file="bitpackage:fisheye/gallery_icons_inc.tpl"}
<h1>{$gContent->getTitle()|escape}</h1>
- </div>
+ {include file="bitpackage:fisheye/gallery_breadcrumb_inc.tpl"}
+ </header>
{if $gContent->mInfo.data && $gContent->getPreference('show_description') ne 'n'}
- <div class="body">
+ <section class="body">
<p>{$gContent->mInfo.data|escape}</p>
- </div>
+ </section>
{/if}
<div class="body">
- {if $gContent->mGalleryId != 0}
- <table class="thumbnailblock">
- {counter assign="imageCount" start="0" print=false}
- {assign var="max" value=100}
- {assign var="tdWidth" value="4"}
- {foreach from=$gContent->mItems item=galItem key=itemContentId}
- {if $imageCount % 4 == 0}
- <tr > <!-- Begin Image Row -->
- {/if}
+ {formfeedback success=$fisheyeSuccess error=$fisheyeErrors warning=$fisheyeWarnings}
+
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
+
+ {assign var="cols" value=$gContent->mInfo.cols_per_page|default:4}
+ {assign var="tdWidth" value="`100/$cols`"}
+ <table class="thumbnailblock" style="width:100%">
+ {counter assign="imageCount" start="0" print=false}
+ {foreach from=$gContent->mItems item=galItem key=itemContentId}
+ {if $imageCount % $cols == 0}
+ <tr><!-- Begin Image Row -->
+ {/if}
- <td style="width:25%; vertical-align:top;"> <!-- Begin Image Cell -->
- {box class="box `$galItem->mInfo.content_type_guid`"}
- <a href="{$galItem->getDisplayUrl()|escape}">
- <img class="thumb" src="{$galItem->getThumbnailUri()}" alt="{$galItem->mInfo.title|escape|default:'image'}" />
- </a>
- {if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_titles' )}
- <h4>{$galItem->mInfo.title|escape}</h4>
- {/if}
+ <td style="width:{$tdWidth}%; vertical-align:top; text-align:center;"><!-- Begin Image Cell -->
+ {box class="box `$galItem->mInfo.content_type_guid`" style="margin-left:0;"}
+ <a href="{$galItem->getDisplayUrl()|escape}">
+ <img class="thumb img-responsive center-block" src="{$galItem->getThumbnailUri($gContent->getField('thumbnail_size'))}" alt="{$galItem->mInfo.title|escape|default:'image'}" />
+ </a>
+ {if $gBitSystem->isFeatureActive('fisheye_gallery_list_image_titles')}
+ <h4>{$galItem->mInfo.title|escape}</h4>
+ {/if}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$galItem->mInfo type=mini}
- {if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_descriptions' )}
- <p>{$galItem->mInfo.data|escape}</p>
- {/if}
- {/box}
- </td> <!-- End Image Cell -->
- {counter}
+ {if $gBitSystem->isFeatureActive('fisheye_gallery_list_image_descriptions')}
+ <p>{$galItem->mInfo.data|truncate:200:"..."|escape}</p>
+ {/if}
+ {/box}
+ </td><!-- End Image Cell -->
+ {counter}
- {if $imageCount % 4 == 0}
- </tr> <!-- End Image Row -->
- {/if}
+ {if $imageCount % $cols == 0}
+ </tr><!-- End Image Row -->
+ {/if}
- {foreachelse}
- <tr><td class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gGallery->mGalleryId}">Upload pictures!</a></td></tr>
- {/foreach}
+ {foreachelse}
+ <tr><td class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gGallery->mGalleryId ?? 0}">Upload pictures!</a></td></tr>
+ {/foreach}
- {if $imageCount % 4 != 0}</tr>{/if}
- </table>
- {else}
- {tr}No gallery for this contact{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}create.php?title={$gContent->mInfo.organisation}&contact={$gContent->mInfo.content_id}">Create Contact Gallery!</a>
- {/if}
+ {if $imageCount % $cols != 0}</tr>{/if}
+ </table>
+ {pagination gallery_id=$gContent->mGalleryId ?? 0}
+ </div><!-- end .body -->
- {pagination gallery_id=$galleryId}
- </div> <!-- end .body -->
-</div> <!-- end .fisheye -->
-{/strip}
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo}
+
+ {if $gContent->getPreference('allow_comments') eq 'y'}
+ {include file="bitpackage:liberty/comments.tpl"}
+ {/if}
+</div><!-- end .fisheye -->
+{/strip}