Skip to content

Commit

Permalink
Update Iats Templates to work with Smarty 4 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Jul 8, 2024
1 parent 5dcc871 commit ac8c3d2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions templates/CRM/Iats/BillingBlockDirectDebitExtra_CAD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<div id="iats-direct-debit-extra">
<div class="crm-section cad-instructions-section">
<div class="label"><em>{ts domain='com.iatspayments.civicrm'}You can find your Transit number, Bank number and Account number by inspecting a cheque.{/ts}</em></div>
<div class="content"><img width=500 height=303 src="{crmResURL ext=com.iatspayments.civicrm file=templates/CRM/Iats/CDN_cheque_500x.jpg}"></div>
{capture assign="CheckImage"}{crmResURL ext="com.iatspayments.civicrm" file="templates/CRM/Iats/CDN_cheque_500x.jpg"}{/capture}
<div class="content"><img width=500 height=303 src="{$CheckImage}"></div>
<div class="description"><em>{ts domain='com.iatspayments.civicrm'}Please enter them below without any punctuation or spaces.{/ts}</em></div>
<div class="clear"></div>
</div>
Expand All @@ -19,9 +20,11 @@
<div class="clear"></div>
</div>
</div>
{capture assign="acheftjs"}{crmResURL ext="com.iatspayments.civicrm" file="js/dd_acheft.js"}{/capture}
{capture assign="d4dCadjs"}{crmResURL ext="com.iatspayments.civicrm" file="js/dd_cad.js"}{/capture}
<script type="text/javascript">
var ddAcheftJs = "{crmResURL ext=com.iatspayments.civicrm file=js/dd_acheft.js}";
var ddCadJs = "{crmResURL ext=com.iatspayments.civicrm file=js/dd_cad.js}";
var ddAcheftJs = "{$acheftjs}";
var ddCadJs = "{$d4dCadjs}";
{literal}
CRM.$(function ($) {
$.getScript(ddAcheftJs);
Expand Down
6 changes: 4 additions & 2 deletions templates/CRM/Iats/BillingBlockDirectDebitExtra_USD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
<div id="iats-direct-debit-extra">
<div class="crm-section usd-instructions-section">
<div class="label"><em>{ts domain='com.iatspayments.civicrm'}You can find your Bank Routing Number and Bank Account number by inspecting a check.{/ts}</em></div>
<div class="content"><img width="500" height="303" src="{crmResURL ext='com.iatspayments.civicrm' file='templates/CRM/Iats/USD_check_500x.jpg'}"></div>
{capture assign="CheckImage"}{crmResURL ext="com.iatspayments.civicrm" file="templates/CRM/Iats/USD_check_500x.jpg"}{/capture}
<div class="content"><img width="500" height="303" src="{$CheckImage}"></div>
<div class="clear"></div>
</div>
</div>
{capture assign="acheftjs"}{crmResURL ext="com.iatspayments.civicrm" file="js/dd_acheft.js"}{/capture}
<script type="text/javascript">
{literal}
CRM.$(function ($) {
var ddAcheftJs = {/literal}"{crmResURL ext='com.iatspayments.civicrm' file='js/dd_acheft.js'}"{literal};
var ddAcheftJs = {/literal}"{$acheftjs}"{literal};
$.getScript(ddAcheftJs);
});
{/literal}
Expand Down
3 changes: 2 additions & 1 deletion templates/CRM/Iats/BillingBlockFapsACH_CAD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<div id="iats-faps-ach-extra">
<div class="crm-section cad-instructions-section">
<div class="label"><em>{ts domain='com.iatspayments.civicrm'}You can find your Transit number, Bank number and Account number by inspecting a cheque.{/ts}</em></div>
<div class="content"><img width=500 height=303 src="{crmResURL ext=com.iatspayments.civicrm file=templates/CRM/Iats/CDN_cheque_500x.jpg}"></div>
{capture assign="CheckImage"}{crmResURL ext="com.iatspayments.civicrm" file="templates/CRM/Iats/CDN_cheque_500x.jpg"}{/capture}
<div class="content"><img width=500 height=303 src="{$CheckImage}"></div>
<div class="description"><em>{ts domain='com.iatspayments.civicrm'}Please enter them below without any punctuation or spaces.{/ts}</em></div>
<div class="clear"></div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion templates/CRM/Iats/BillingBlockFapsACH_USD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div id="iats-faps-ach-extra">
<div class="crm-section usd-instructions-section">
<div class="label"><em>{ts domain='com.iatspayments.civicrm'}You can find your Bank Routing Number and Bank Account number by inspecting a check.{/ts}</em></div>
<div class="content"><img width=500 height=303 src="{crmResURL ext=com.iatspayments.civicrm file=templates/CRM/Iats/USD_check_500x.jpg}"></div>
{capture assign="CheckImage}{crmResURL ext="com.iatspayments.civicrm" file="templates/CRM/Iats/USD_check_500x.jpg"}{/capture}
<div class="content"><img width=500 height=303 src="{$CheckImage}"></div>
<div class="clear"></div>
</div>
</div>
6 changes: 4 additions & 2 deletions templates/CRM/Iats/BillingBlockSwipe.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
<div id="iats-swipe">
<div class="crm-section cad-instructions-section">
<div class="label"><em>{ts domain='com.iatspayments.civicrm'}Get ready to SWIPE! Place your cursor in the Encrypted field below and swipe card.{/ts}</em></div>
<div class="content"><img width=220 height=220 src="{crmResURL ext=com.iatspayments.civicrm file=templates/CRM/Iats/usb_reader.jpg}"></div>
{capture assign="reader_image"}{crmResURL ext="com.iatspayments.civicrm" file="templates/CRM/Iats/usb_reader.jpg"}{/capture}
<div class="content"><img width=220 height=220 src="{$reader_image}"></div>
<div class="clear"></div>
</div>
</div>
{capture assign="swipeJsFile"}{crmResURL ext="com.iatspayments.civicrm" file="js/swipe.js"}{/capture}
<script type="text/javascript">
var swipeJs = "{crmResURL ext=com.iatspayments.civicrm file=js/swipe.js}";
var swipeJs = "{$swipeJsFile}";
{literal}
CRM.$(function ($) {
$.getScript(swipeJs);
Expand Down

0 comments on commit ac8c3d2

Please sign in to comment.