PageRenderTime 46ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/media/civicrm/templates_c/en_US/%%60/60C/60C48DE4%%Amount.tpl.php

https://github.com/finchiefin/olympian
PHP | 481 lines | 474 code | 7 blank | 0 comment | 18 complexity | b42275dae922cfa8e8cdc53638e00644 MD5 | raw file
Possible License(s): GPL-2.0, Apache-2.0, LGPL-2.1, BSD-3-Clause, JSON
  1. <?php /* Smarty version 2.6.27, created on 2014-06-17 16:40:31
  2. compiled from CRM/Contribute/Form/ContributionPage/Amount.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 1, false),array('block', 'ts', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 30, false),array('function', 'crmURL', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 26, false),array('function', 'docURL', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 34, false),array('modifier', 'crmAddClass', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 67, false),array('modifier', 'crmMoney', 'CRM/Contribute/Form/ContributionPage/Amount.tpl', 172, false),)), $this); ?>
  5. <?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php ob_start(); ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/price','q' => "reset=1"), $this);?>
  6. <?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('adminPriceSets', ob_get_contents());ob_end_clean(); ?>
  7. <div class="crm-block crm-form-block crm-contribution-contributionpage-amount-form-block">
  8. <?php if ($this->_tpl_vars['isQuick']): ?>
  9. <div id="popupContainer">
  10. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Once you switch to using a Price Set, you won't be able to switch back to your existing settings below except by re-entering them. Are you sure you want to switch to a Price Set?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  11. </div>
  12. <?php endif; ?>
  13. <div id="help">
  14. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Use this form to configure Contribution Amount options. You can give contributors the ability to enter their own contribution amounts - and/or provide a fixed list of amounts. For fixed amounts, you can enter a label for each 'level' of contribution (e.g. Friend, Sustainer, etc.). If you allow people to enter their own dollar amounts, you can also set minimum and maximum values. Depending on your choice of Payment Processor, you may be able to offer a recurring contribution option.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php echo smarty_function_docURL(array('page' => "user/contributions/payment-processors"), $this);?>
  15. </div>
  16. <div class="crm-submit-buttons"><?php $_smarty_tpl_vars = $this->_tpl_vars;
  17. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array('location' => 'top')));
  18. $this->_tpl_vars = $_smarty_tpl_vars;
  19. unset($_smarty_tpl_vars);
  20. ?></div>
  21. <?php if (! $this->_tpl_vars['paymentProcessor']): ?>
  22. <?php ob_start(); ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/paymentProcessor','q' => "reset=1"), $this);?>
  23. <?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('ppUrl', ob_get_contents());ob_end_clean(); ?>
  24. <div class="status message">
  25. <?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['ppUrl'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>No Payment Processor has been configured / enabled for your site. Unless you are only using CiviContribute to solicit non-monetary / in-kind contributions, you will need to <a href='%1'>configure a Payment Processor</a>. Then return to this screen and assign the processor to this Contribution Page.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php echo smarty_function_docURL(array('page' => "user/contributions/payment-processors"), $this);?>
  26. <p><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>NOTE: Alternatively, you can enable the <strong>Pay Later</strong> option below without setting up a payment processor. All users will then be asked to submit payment offline (e.g. mail in a check, call in a credit card, etc.).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></p>
  27. </div>
  28. <?php endif; ?>
  29. <table class="form-layout-compressed">
  30. <tr class="crm-contribution-contributionpage-amount-form-block-is_monetary"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['is_monetary']['label']; ?>
  31. </th>
  32. <td><?php echo $this->_tpl_vars['form']['is_monetary']['html']; ?>
  33. <br />
  34. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Uncheck this box if you are using this contribution page for free membership signup ONLY, or to solicit in-kind / non-monetary donations such as furniture, equipment.. etc.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  35. </tr>
  36. <tr class="crm-contribution-contributionpage-amount-form-block-currency"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['currency']['label']; ?>
  37. </th>
  38. <td><?php echo $this->_tpl_vars['form']['currency']['html']; ?>
  39. <br />
  40. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Select the currency to be used for contributions submitted from this contribution page.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  41. </tr>
  42. <?php if ($this->_tpl_vars['paymentProcessor']): ?>
  43. <tr class="crm-contribution-contributionpage-amount-form-block-payment_processor"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['payment_processor']['label']; ?>
  44. </th>
  45. <td><?php echo $this->_tpl_vars['form']['payment_processor']['html']; ?>
  46. <br />
  47. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Select the payment processor to be used for contributions submitted from this contribution page (unless you are soliciting non-monetary / in-kind contributions only).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php echo smarty_function_docURL(array('page' => "user/contributions/payment-processors"), $this);?>
  48. </span></td>
  49. </tr>
  50. <?php endif; ?>
  51. <tr class="crm-contribution-contributionpage-amount-form-block-is_pay_later"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['is_pay_later']['label']; ?>
  52. </th>
  53. <td><?php echo $this->_tpl_vars['form']['is_pay_later']['html']; ?>
  54. <br />
  55. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Check this box if you want to give users the option to submit payment offline (e.g. mail in a check, call in a credit card, etc.).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  56. </tr>
  57. <tr id="payLaterFields" class="crm-contribution-form-block-payLaterFields"><td>&nbsp;</td>
  58. <td>
  59. <table class="form-layout">
  60. <tr class="crm-contribution-contributionpage-amount-form-block-pay_later_text"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['pay_later_text']['label']; ?>
  61. <span class="marker" title="This field is required.">*</span> <?php if ($this->_tpl_vars['action'] == 2): ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
  62. $this->_smarty_include(array('smarty_include_tpl_file' => 'CRM/Core/I18n/Dialog.tpl', 'smarty_include_vars' => array('table' => 'civicrm_contribution_page','field' => 'pay_later_text','id' => $this->_tpl_vars['contributionPageID'])));
  63. $this->_tpl_vars = $_smarty_tpl_vars;
  64. unset($_smarty_tpl_vars);
  65. ?><?php endif; ?></th>
  66. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['pay_later_text']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'big') : smarty_modifier_crmAddClass($_tmp, 'big')); ?>
  67. <br />
  68. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Text displayed next to the checkbox for the 'pay later' option on the contribution form. You may include HTML formatting tags.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td></tr>
  69. <tr class="crm-contribution-contributionpage-amount-form-block-pay_later_receipt"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['pay_later_receipt']['label']; ?>
  70. <span class="marker" title="This field is required.">*</span> <?php if ($this->_tpl_vars['action'] == 2): ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
  71. $this->_smarty_include(array('smarty_include_tpl_file' => 'CRM/Core/I18n/Dialog.tpl', 'smarty_include_vars' => array('table' => 'civicrm_contribution_page','field' => 'pay_later_receipt','id' => $this->_tpl_vars['contributionPageID'])));
  72. $this->_tpl_vars = $_smarty_tpl_vars;
  73. unset($_smarty_tpl_vars);
  74. ?><?php endif; ?></th>
  75. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['pay_later_receipt']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'big') : smarty_modifier_crmAddClass($_tmp, 'big')); ?>
  76. <br />
  77. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Instructions added to Confirmation and Thank-you pages, as well as the confirmation email, when the user selects the 'pay later' option (e.g. 'Mail your check to ... within 3 business days.').<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td></tr>
  78. </table>
  79. </td>
  80. </tr>
  81. <tr class="crm-contribution-contributionpage-amount-form-block-amount_block_is_active">
  82. <th scope="row" class="label"><?php echo $this->_tpl_vars['form']['amount_block_is_active']['label']; ?>
  83. </th>
  84. <td><?php echo $this->_tpl_vars['form']['amount_block_is_active']['html']; ?>
  85. <br />
  86. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Uncheck this box if you are using this contribution page for membership signup and renewal only - and you do NOT want users to select or enter any additional contribution amounts.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  87. </tr>
  88. <tr id="priceSet" class="crm-contribution-contributionpage-amount-form-block-priceSet">
  89. <th scope="row" class="label"><?php echo $this->_tpl_vars['form']['price_set_id']['label']; ?>
  90. </th>
  91. <?php if ($this->_tpl_vars['price'] == true): ?>
  92. <td><?php echo $this->_tpl_vars['form']['price_set_id']['html']; ?>
  93. <br /><span class="description"><?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['adminPriceSets'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Select a pre-configured Price Set to offer multiple individually priced options for contributions. Otherwise, select &quot;-none-&quot; and enter one or more fixed contribution options in the table below. Create or edit Price Sets <a href='%1'>here</a>.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  94. <?php else: ?>
  95. <td><div class="status message"><?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['adminPriceSets'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>No Contribution Price Sets have been configured / enabled for your site. Price sets allow you to configure more complex contribution options (e.g. "Contribute $25 more to receive our monthly magazine."). Click <a href='%1'>here</a> if you want to configure price sets for your site.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></div></td>
  96. <?php endif; ?>
  97. </tr>
  98. </table>
  99. <div id="recurringFields">
  100. <table class="form-layout-compressed">
  101. <?php if ($this->_tpl_vars['recurringPaymentProcessor']): ?>
  102. <tr id="recurringContribution" class="crm-contribution-form-block-is_recur"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['is_recur']['label']; ?>
  103. </th>
  104. <td><?php echo $this->_tpl_vars['form']['is_recur']['html']; ?>
  105. <br />
  106. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Check this box if you want to give users the option to make recurring contributions. This feature requires that you use a payment processor which supports recurring billing / subscriptions functionality.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php echo smarty_function_docURL(array('page' => "user/contributions/payment-processors"), $this);?>
  107. </span>
  108. </td>
  109. </tr>
  110. <tr id="recurFields" class="crm-contribution-form-block-recurFields"><td>&nbsp;</td>
  111. <td>
  112. <table class="form-layout-compressed">
  113. <tr class="crm-contribution-form-block-recur_frequency_unit"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['recur_frequency_unit']['label']; ?>
  114. <span class="marker" title="This field is required.">*</span></th>
  115. <td><?php echo $this->_tpl_vars['form']['recur_frequency_unit']['html']; ?>
  116. <br />
  117. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Select recurring units supported for recurring payments.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  118. </tr>
  119. <tr class="crm-contribution-form-block-is_recur_interval"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['is_recur_interval']['label']; ?>
  120. </th>
  121. <td><?php echo $this->_tpl_vars['form']['is_recur_interval']['html']; ?>
  122. <br />
  123. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Can users also set an interval (e.g. every '3' months)?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  124. </tr>
  125. <tr class="crm-contribution-form-block-is_recur_installments"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['is_recur_installments']['label']; ?>
  126. </th>
  127. <td><?php echo $this->_tpl_vars['form']['is_recur_installments']['html']; ?>
  128. <br />
  129. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Give the user a choice of installments (e.g. donate every month for 6 months)? If not, recurring donations will continue indefinitely.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  130. </tr>
  131. </table>
  132. </td>
  133. </tr>
  134. <?php endif; ?>
  135. </table>
  136. </div>
  137. <div id="amountFields">
  138. <table class="form-layout-compressed">
  139. <?php if ($this->_tpl_vars['civiPledge']): ?>
  140. <tr class="crm-contribution-form-block-is_pledge_active"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['is_pledge_active']['label']; ?>
  141. </th>
  142. <td><?php echo $this->_tpl_vars['form']['is_pledge_active']['html']; ?>
  143. <br />
  144. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Check this box if you want to give users the option to make a Pledge (a commitment to contribute a fixed amount on a recurring basis).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  145. </td>
  146. </tr>
  147. <tr id="pledgeFields" class="crm-contribution-form-block-pledgeFields"><td></td><td>
  148. <table class="form-layout-compressed">
  149. <tr class="crm-contribution-form-block-pledge_frequency_unit"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['pledge_frequency_unit']['label']; ?>
  150. <span class="marker"> *</span></th>
  151. <td><?php echo $this->_tpl_vars['form']['pledge_frequency_unit']['html']; ?>
  152. <br />
  153. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Which frequencies can the user pick from (e.g. every 'week', every 'month', every 'year')?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  154. </tr>
  155. <tr class="crm-contribution-form-block-is_pledge_interval"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['is_pledge_interval']['label']; ?>
  156. </th>
  157. <td><?php echo $this->_tpl_vars['form']['is_pledge_interval']['html']; ?>
  158. <br />
  159. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Can they also set an interval (e.g. every '3' months)?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  160. </tr>
  161. <tr class="crm-contribution-form-block-initial_reminder_day"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['initial_reminder_day']['label']; ?>
  162. </th>
  163. <td><?php echo $this->_tpl_vars['form']['initial_reminder_day']['html']; ?>
  164. <span class="label"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>days prior to each scheduled payment due date.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  165. </tr>
  166. <tr class="crm-contribution-form-block-max_reminders"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['max_reminders']['label']; ?>
  167. </th>
  168. <td><?php echo $this->_tpl_vars['form']['max_reminders']['html']; ?>
  169. <span class="label"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>reminders for each scheduled payment.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  170. </tr>
  171. <tr class="crm-contribution-form-block-additional_reminder_day"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['additional_reminder_day']['label']; ?>
  172. </th>
  173. <td><?php echo $this->_tpl_vars['form']['additional_reminder_day']['html']; ?>
  174. <span class="label"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>days after the last one sent, up to the maximum number of reminders.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td>
  175. </tr>
  176. </table>
  177. </td>
  178. </tr>
  179. <?php endif; ?>
  180. <tr class="crm-contribution-form-block-amount_label">
  181. <th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['amount_label']['label']; ?>
  182. <span class="marker"> *</span></th>
  183. <td><?php echo $this->_tpl_vars['form']['amount_label']['html']; ?>
  184. </td>
  185. </tr>
  186. <tr class="crm-contribution-form-block-is_allow_other_amount"><th scope="row" class="label" width="20%"><?php echo $this->_tpl_vars['form']['is_allow_other_amount']['label']; ?>
  187. </th>
  188. <td><?php echo $this->_tpl_vars['form']['is_allow_other_amount']['html']; ?>
  189. <br />
  190. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Check this box if you want to give users the option to enter their own contribution amount. Your page will then include a text field labeled <strong>Other Amount</strong>.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td></tr>
  191. <tr id="minMaxFields" class="crm-contribution-form-block-minMaxFields"><td>&nbsp;</td><td>
  192. <table class="form-layout-compressed">
  193. <tr class="crm-contribution-form-block-min_amount"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['min_amount']['label']; ?>
  194. </th>
  195. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['min_amount']['html'])) ? $this->_run_mod_handler('crmMoney', true, $_tmp) : smarty_modifier_crmMoney($_tmp)); ?>
  196. </td></tr>
  197. <tr class="crm-contribution-form-block-max_amount"><th scope="row" class="label"><?php echo $this->_tpl_vars['form']['max_amount']['label']; ?>
  198. </th>
  199. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['max_amount']['html'])) ? $this->_run_mod_handler('crmMoney', true, $_tmp) : smarty_modifier_crmMoney($_tmp)); ?>
  200. <br />
  201. <span class="description"><?php $this->_tag_stack[] = array('ts', array('1' => ((is_array($_tmp=5)) ? $this->_run_mod_handler('crmMoney', true, $_tmp) : smarty_modifier_crmMoney($_tmp)))); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>If you have chosen to <strong>Allow Other Amounts</strong>, you can use the fields above to control minimum and/or maximum acceptable values (e.g. don't allow contribution amounts less than %1).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></td></tr>
  202. </table>
  203. </td></tr>
  204. <tr><td colspan="2">
  205. <fieldset><legend><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Fixed Contribution Options<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></legend>
  206. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Use the table below to enter up to ten fixed contribution amounts. These will be presented as a list of radio button options. Both the label and dollar amount will be displayed.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php if ($this->_tpl_vars['isQuick']): ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?> Click <a id='quickconfig' href='#'>here</a> if you want to configure the Fixed Contribution Options below as part of a Price Set, with the added flexibility and complexity that entails.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?><br />
  207. <table id="map-field-table">
  208. <tr class="columnheader" ><th scope="column"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Contribution Label<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></th><th scope="column"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Amount<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></th><th scope="column"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Default?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><br /><span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('default', 'Amount'); return false;" ><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>clear<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a>)</span></th></tr>
  209. <?php unset($this->_sections['loop']);
  210. $this->_sections['loop']['name'] = 'loop';
  211. $this->_sections['loop']['start'] = (int)1;
  212. $this->_sections['loop']['loop'] = is_array($_loop=11) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  213. $this->_sections['loop']['show'] = true;
  214. $this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
  215. $this->_sections['loop']['step'] = 1;
  216. if ($this->_sections['loop']['start'] < 0)
  217. $this->_sections['loop']['start'] = max($this->_sections['loop']['step'] > 0 ? 0 : -1, $this->_sections['loop']['loop'] + $this->_sections['loop']['start']);
  218. else
  219. $this->_sections['loop']['start'] = min($this->_sections['loop']['start'], $this->_sections['loop']['step'] > 0 ? $this->_sections['loop']['loop'] : $this->_sections['loop']['loop']-1);
  220. if ($this->_sections['loop']['show']) {
  221. $this->_sections['loop']['total'] = min(ceil(($this->_sections['loop']['step'] > 0 ? $this->_sections['loop']['loop'] - $this->_sections['loop']['start'] : $this->_sections['loop']['start']+1)/abs($this->_sections['loop']['step'])), $this->_sections['loop']['max']);
  222. if ($this->_sections['loop']['total'] == 0)
  223. $this->_sections['loop']['show'] = false;
  224. } else
  225. $this->_sections['loop']['total'] = 0;
  226. if ($this->_sections['loop']['show']):
  227. for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
  228. $this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
  229. $this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
  230. $this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
  231. $this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
  232. $this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
  233. $this->_sections['loop']['first'] = ($this->_sections['loop']['iteration'] == 1);
  234. $this->_sections['loop']['last'] = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
  235. ?>
  236. <?php $this->assign('idx', $this->_sections['loop']['index']); ?>
  237. <tr><td class="even-row"><?php echo $this->_tpl_vars['form']['label'][$this->_tpl_vars['idx']]['html']; ?>
  238. </td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['value'][$this->_tpl_vars['idx']]['html'])) ? $this->_run_mod_handler('crmMoney', true, $_tmp) : smarty_modifier_crmMoney($_tmp)); ?>
  239. </td><td class="even-row"><?php echo $this->_tpl_vars['form']['default'][$this->_tpl_vars['idx']]['html']; ?>
  240. </td></tr>
  241. <?php endfor; endif; ?>
  242. </table>
  243. </fieldset>
  244. </td></tr>
  245. </table>
  246. </div>
  247. <div class="crm-submit-buttons"><?php $_smarty_tpl_vars = $this->_tpl_vars;
  248. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array('location' => 'bottom')));
  249. $this->_tpl_vars = $_smarty_tpl_vars;
  250. unset($_smarty_tpl_vars);
  251. ?></div>
  252. </div>
  253. <?php echo '
  254. <script type="text/javascript">
  255. var paymentProcessorMapper = new Array( );
  256. '; ?>
  257. <?php if ($this->_tpl_vars['recurringPaymentProcessor']): ?>
  258. <?php $_from = $this->_tpl_vars['recurringPaymentProcessor']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  259. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['paymentProcessor']):
  260. ?><?php echo '
  261. paymentProcessorMapper['; ?>
  262. <?php echo $this->_tpl_vars['index']; ?>
  263. <?php echo '] = \''; ?>
  264. <?php echo $this->_tpl_vars['paymentProcessor']; ?>
  265. <?php echo '\';
  266. '; ?>
  267. <?php endforeach; endif; unset($_from); ?>
  268. <?php endif; ?>
  269. <?php echo '
  270. cj( document ).ready( function( ) {
  271. cj("#popupContainer").hide();
  272. function checked_payment_processors() {
  273. var ids = [];
  274. cj(\'.crm-contribution-contributionpage-amount-form-block-payment_processor input[type="checkbox"]\').each(function(){
  275. if(cj(this).attr(\'checked\')) {
  276. var id = cj(this).attr(\'id\').split(\'_\')[2];
  277. ids.push(id);
  278. }
  279. });
  280. return ids;
  281. }
  282. // show/hide recurring block
  283. cj(\'.crm-contribution-contributionpage-amount-form-block-payment_processor input[type="checkbox"]\').change(function(){
  284. showRecurring( checked_payment_processors() )
  285. });
  286. showRecurring( checked_payment_processors() )
  287. });
  288. var element_other_amount = document.getElementsByName(\'is_allow_other_amount\');
  289. if (! element_other_amount[0].checked) {
  290. cj(\'#minMaxFields\').hide();
  291. }
  292. var amount_block = document.getElementsByName(\'amount_block_is_active\');
  293. var priceSetID = '; ?>
  294. '<?php echo $this->_tpl_vars['priceSetID']; ?>
  295. '<?php echo ';
  296. if ( ! amount_block[0].checked || priceSetID ) {
  297. if ( !priceSetID ) {
  298. cj(\'#priceSet\').hide();
  299. }
  300. cj(\'#amountFields\').hide();
  301. }
  302. cj(function() {
  303. payLater(\'is_pay_later\');
  304. });
  305. cj(\'#is_pay_later\').click( function() {
  306. payLater(\'is_pay_later\');
  307. });
  308. function minMax(chkbox) {
  309. if (chkbox.checked) {
  310. cj(\'#minMaxFields\').show();
  311. } else {
  312. cj(\'#minMaxFields\').hide();
  313. document.getElementById("min_amount").value = \'\';
  314. document.getElementById("max_amount").value = \'\';
  315. }
  316. }
  317. function payLater(chkbox) {
  318. var elementId = \'payLaterFields\';
  319. if (cj(\'#\' + chkbox).attr(\'checked\')) {
  320. cj(\'#\' + elementId).show();
  321. } else {
  322. cj(\'#\' + elementId).hide();
  323. }
  324. }
  325. function showHideAmountBlock( element, elementName )
  326. {
  327. // show / hide when amount section is active check/uncheck.
  328. var priceSetID = '; ?>
  329. '<?php echo $this->_tpl_vars['priceSetID']; ?>
  330. '<?php echo ';
  331. switch ( elementName ) {
  332. case \'price_set_id\':
  333. if ( element ) {
  334. cj(\'#amountFields\').hide();
  335. } else {
  336. cj(\'#amountFields\').show();
  337. }
  338. cj("#amount_block_is_active").attr( \'checked\', true );
  339. break;
  340. case \'is_pledge_active\' :
  341. case \'is_allow_other_amount\' :
  342. if ( element.checked ) {
  343. if ( priceSetID ) cj( "#price_set_id" ).val( \'\' );
  344. cj(\'#amountFields\').show();
  345. }
  346. cj("#amount_block_is_active").attr( \'checked\', true );
  347. break;
  348. case \'amount_block_is_active\' :
  349. if ( element.checked ) {
  350. if ( priceSetID ) {
  351. cj(\'#amountFields\').hide();
  352. cj( "#price_set_id" ).val( priceSetID );
  353. } else {
  354. cj(\'#amountFields\').show();
  355. cj( "#price_set_id" ).val( \'\' );
  356. }
  357. cj(\'#priceSet, #recurringFields\').show();
  358. } else {
  359. cj( "#price_set_id" ).val( \'\' );
  360. cj(\'#amountFields, #priceSet, #recurringFields\').hide();
  361. }
  362. break;
  363. }
  364. }
  365. function showRecurring( paymentProcessorIds ) {
  366. var display = true;
  367. cj.each(paymentProcessorIds, function(k, id){
  368. if( cj.inArray(id, paymentProcessorMapper) == -1 ) {
  369. display = false;
  370. }
  371. });
  372. if(display) {
  373. cj( \'#recurringContribution\' ).show( );
  374. } else {
  375. if ( cj( \'#is_recur\' ).attr( \'checked\' ) ) {
  376. cj( \'#is_recur\' ).removeAttr("checked");
  377. cj( \'#recurFields\' ).hide( );
  378. }
  379. cj( \'#recurringContribution\' ).hide( );
  380. }
  381. }
  382. </script>
  383. '; ?>
  384. <?php if ($this->_tpl_vars['form']['is_recur']): ?>
  385. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  386. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/showHideByFieldValue.tpl", 'smarty_include_vars' => array('trigger_field_id' => 'is_recur','trigger_value' => 'true','target_element_id' => 'recurFields','target_element_type' => "table-row",'field_type' => 'radio','invert' => 'false')));
  387. $this->_tpl_vars = $_smarty_tpl_vars;
  388. unset($_smarty_tpl_vars);
  389. ?>
  390. <?php endif; ?>
  391. <?php if ($this->_tpl_vars['civiPledge']): ?>
  392. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  393. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/showHideByFieldValue.tpl", 'smarty_include_vars' => array('trigger_field_id' => 'is_pledge_active','trigger_value' => 'true','target_element_id' => 'pledgeFields','target_element_type' => "table-row",'field_type' => 'radio','invert' => 'false')));
  394. $this->_tpl_vars = $_smarty_tpl_vars;
  395. unset($_smarty_tpl_vars);
  396. ?>
  397. <?php endif; ?>
  398. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  399. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formNavigate.tpl", 'smarty_include_vars' => array()));
  400. $this->_tpl_vars = $_smarty_tpl_vars;
  401. unset($_smarty_tpl_vars);
  402. ?>
  403. <?php if ($this->_tpl_vars['isQuick']): ?>
  404. <?php echo '
  405. <script type="text/javascript">
  406. cj("#quickconfig").click(function(){
  407. cj("#popupContainer").dialog({
  408. title: "Selected Price Set",
  409. width:400,
  410. height:220,
  411. modal: true,
  412. overlay: {
  413. opacity: 0.5,
  414. background: "black"
  415. },
  416. buttons: {
  417. "Ok": function() {
  418. var dataUrl = '; ?>
  419. '<?php echo CRM_Utils_System::crmURL(array('p' => "civicrm/ajax/rest",'h' => 0,'q' => "className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_contribution_page&id=".($this->_tpl_vars['contributionPageID'])), $this);?>
  420. ';
  421. var redirectUrl = '<?php echo CRM_Utils_System::crmURL(array('p' => "civicrm/admin/price/field",'h' => 0,'q' => "reset=1&action=browse&sid="), $this);?>
  422. ';
  423. <?php echo '
  424. cj.ajax({
  425. url: dataUrl,
  426. async: false,
  427. global: false,
  428. success: function ( result ) {
  429. if (result) {
  430. window.location= redirectUrl+eval(result);
  431. }
  432. }
  433. });
  434. },
  435. "Close": function() {
  436. cj(this).dialog("close");
  437. }
  438. }
  439. });
  440. return false;
  441. });
  442. </script>
  443. '; ?>
  444. <?php endif; ?>
  445. <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>