Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap "not you" message in crmRegion #18236

Merged
merged 1 commit into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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