Skip to content

Commit

Permalink
Wrap not you message in crmRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Aug 22, 2020
1 parent c367ea6 commit d7069b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/CRM/Contribute/Form/Contribution/Main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,19 @@

<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-main-form-block">

{crmRegion name='contribution-main-not-you-block'}
{if $contact_id && !$ccid}
<div class="messages status no-popup crm-not-you-message">
{ts 1=$display_name}Welcome %1{/ts}. (<a href="{crmURL p='civicrm/contribute/transact' q="cid=0&reset=1&id=`$contributionPageID`"}" title="{ts}Click here to do this for a different person.{/ts}">{ts 1=$display_name}Not %1, or want to do this for a different person{/ts}</a>?)
</div>
{/if}
{/crmRegion}

<div id="intro_text" class="crm-public-form-item crm-section intro_text-section">
{$intro_text}
</div>
{include file="CRM/common/cidzero.tpl"}

{if $islifetime or $ispricelifetime}
<div class="help">{ts}You have a current Lifetime Membership which does not need to be renewed.{/ts}</div>
{/if}
Expand Down
3 changes: 3 additions & 0 deletions templates/CRM/Event/Form/Registration/Register.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@
</div>
{/if}

{crmRegion name='event-register-not-you-block'}
{if $contact_id}
<div class="messages status no-popup crm-not-you-message" id="crm-event-register-different">
{ts 1=$display_name}Welcome %1{/ts}. (<a
href="{crmURL p='civicrm/event/register' q="cid=0&reset=1&id=`$event.id`"}"
title="{ts}Click here to register a different person for this event.{/ts}">{ts 1=$display_name}Not %1, or want to register a different person{/ts}</a>?)
</div>
{/if}
{/crmRegion}

{if $event.intro_text}
<div id="intro_text" class="crm-public-form-item crm-section intro_text-section">
<p>{$event.intro_text}</p>
Expand Down

0 comments on commit d7069b3

Please sign in to comment.