summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-22 14:21:13 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-22 14:21:13 +0100
commit0de84de2e9d7a03077c8e8e1065abf13432c23c9 (patch)
treea554def9463c7d34604752ce8db163bf401aeb93 /templates
parentf3233190e72af1a64f4a345c96611925872bfe26 (diff)
downloadcontact-0de84de2e9d7a03077c8e8e1065abf13432c23c9.tar.gz
contact-0de84de2e9d7a03077c8e8e1065abf13432c23c9.tar.bz2
contact-0de84de2e9d7a03077c8e8e1065abf13432c23c9.zip
Migrate contact xref to liberty_xref tables; add package-owned gallery view
ContactXref and ContactXrefType become thin subclasses of their liberty counterparts, scoped to content_type_guid='contact'. load_emails.php updated to query liberty_xref. Gallery view template moved into contact package as fisheye_fixed_grid_contact.tpl (keeps fisheye clean; same pattern for future assembly/component packages). contact/admin/upgrades/5.0.1.php migrates existing contact_xref_* data into liberty_xref_* tables. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/fisheye_fixed_grid_contact.tpl35
-rwxr-xr-xtemplates/show_contact.tpl2
2 files changed, 36 insertions, 1 deletions
diff --git a/templates/fisheye_fixed_grid_contact.tpl b/templates/fisheye_fixed_grid_contact.tpl
new file mode 100644
index 0000000..400364d
--- /dev/null
+++ b/templates/fisheye_fixed_grid_contact.tpl
@@ -0,0 +1,35 @@
+{strip}
+<div class="display fisheye contact-gallery container-fluid">
+ {if $gGallery->mGalleryId}
+ <div class="row">
+ {counter assign="imageCount" start="0" print=false}
+ {foreach from=$gGallery->mItems item=galItem key=itemContentId}
+ <div class="col-md-3 col-sm-6 col-xs-12"> <!-- Begin Image Cell -->
+ <div class="gallery-box">
+ <a href="{$galItem->getDisplayUrl()|escape}">
+ <div class="gallery-img">
+ <img class="img-responsive thumb" src="{$galItem->getThumbnailUri()}" alt="{$galItem->mInfo.title|escape|default:'image'}" />
+ </div>
+ {if $galItem->mInfo.title}
+ <div class="gallery-img-title center">
+ <small>{$galItem->mInfo.title|escape}</small>
+ </div>
+ {/if}
+ </a>
+ </div>
+ </div> <!-- End Image Cell -->
+ {counter}
+ {foreachelse}
+ <div class="col-xs-12 norecords">{tr}Gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gGallery->mGalleryId}">Upload pictures!</a></div>
+ {/foreach}
+ </div>
+ <div class="row">
+ <div class="col-xs-12 text-right">
+ <a href="{$smarty.const.FISHEYE_PKG_URL}gallery.php?gallery_id={$gGallery->mGalleryId}">{tr}View full gallery{/tr}</a>
+ </div>
+ </div>
+ {else}
+ <p class="norecords">{tr}No gallery for this contact{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}create.php?title={$gContent->mInfo.organisation|escape}&amp;contact={$gContent->mInfo.content_id}">Create Contact Gallery!</a></p>
+ {/if}
+</div>
+{/strip}
diff --git a/templates/show_contact.tpl b/templates/show_contact.tpl
index d0346f1..fe9b2a1 100755
--- a/templates/show_contact.tpl
+++ b/templates/show_contact.tpl
@@ -18,6 +18,6 @@
{/jstab}
{/if}
{/jstabs}
- {include file="`$smarty.const.FISHEYE_PKG_PATH`gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl" }
+ {include file="bitpackage:contact/fisheye_fixed_grid_contact.tpl"}
</div> {* end .body *}
</div> {* end .contact *}