From 4f6cdd2764f2bbd366fa05fbe22dc3ec73785326 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Oct 2014 10:14:03 +1300 Subject: [PATCH] CRM-15509 move paypal express to its own file for clarity --- templates/CRM/Core/BillingBlock.tpl | 16 ++--------- templates/CRM/common/paypalexpress.tpl | 39 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 templates/CRM/common/paypalexpress.tpl diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index 8d6b04d4d5..534e6a5ddc 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -31,20 +31,8 @@ {$paymentTypeLabel} - {if $paymentProcessor.billing_mode & 2 and !$hidePayPalExpress } -
-
- {ts}If you have a PayPal account, you can click the PayPal button to continue. Otherwise, fill in the credit card and billing information on this form and click - Continue - at the bottom of the page.{/ts} -
-
-
-
- {$form.$expressButtonName.html} -
Save time. Checkout securely. Pay without sharing your financial information.
-
-
+ {if $form.$expressButtonName} + {include file= "CRM/Core/paypalexpress.tpl"} {/if}
{foreach from=$paymentFields item=paymentField} diff --git a/templates/CRM/common/paypalexpress.tpl b/templates/CRM/common/paypalexpress.tpl new file mode 100644 index 0000000000..56e99c40f4 --- /dev/null +++ b/templates/CRM/common/paypalexpress.tpl @@ -0,0 +1,39 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM version 4.5 | + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC (c) 2004-2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM. | + | | + | CiviCRM is free software; you can copy, modify, and distribute it | + | under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | + | | + | CiviCRM is distributed in the hope that it will be useful, but | + | WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License and the CiviCRM Licensing Exception along | + | with this program; if not, contact CiviCRM LLC | + | at info[AT]civicrm[DOT]org. If you have questions about the | + | GNU Affero General Public License or the licensing of CiviCRM, | + | see the CiviCRM license FAQ at http://civicrm.org/licensing | + +--------------------------------------------------------------------+ +*} + +
+
+ {ts}If you have a PayPal account, you can click the PayPal button to continue. Otherwise, fill in the credit card and billing information on this form and click + Continue + at the bottom of the page.{/ts} +
+
+
+
+ {$form.$expressButtonName.html} +
Save time. Checkout securely. Pay without sharing your financial information.
+
+
-- 2.25.1