diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-22 14:21:13 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-22 14:21:13 +0100 |
| commit | 0de84de2e9d7a03077c8e8e1065abf13432c23c9 (patch) | |
| tree | a554def9463c7d34604752ce8db163bf401aeb93 /templates | |
| parent | f3233190e72af1a64f4a345c96611925872bfe26 (diff) | |
| download | contact-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.tpl | 35 | ||||
| -rwxr-xr-x | templates/show_contact.tpl | 2 |
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}&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 *} |
