Файловый менеджер - Редактировать - /var/www/html/components/com_jdonation/view/donation/tmpl/simpleflow_layout_comma_separator.txt
Ðазад
<?php /** * @version 5.5.0 * @package Joomla * @subpackage Joom Donation * @author Tuan Pham Ngoc * @copyright Copyright (C) 2009 - 2023 Ossolution Team * @license GNU/GPL, see LICENSE.php */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\HTML\HTMLHelper; HtmlHelper::_('behavior.core'); if ($this->config->use_https) { $url = JRoute::_('index.php?option=com_jdonation&Itemid='.$this->Itemid, false, 1); } else { $url = JRoute::_('index.php?option=com_jdonation&Itemid='.$this->Itemid, false); } if (($this->config->accept_term ==1 && $this->config->article_id > 0) || ($this->config->show_privacy && $this->config->privacy_policy_article_id > 0)) { if (version_compare(JVERSION, '4.0.0-dev', 'lt')) { JHtml::_('behavior.modal', 'a.jd-modal'); } else { DonationHelperJquery::colorbox('jd-modal'); } } DonationHelperJquery::validateForm(); //Validation rule fo custom amount $amountValidationRules = ''; $minDonationAmount = (int) $this->config->minimum_donation_amount; $maxDonationAmount = (int) $this->config->maximum_donation_amount; if ($minDonationAmount) { $amountValidationRules .= ",min[$minDonationAmount]"; } if ($maxDonationAmount) { $amountValidationRules .= ",max[$maxDonationAmount]"; } $selectedState = ''; $bootstrapHelper = $this->bootstrapHelper; $rowFluidClass = $bootstrapHelper->getClassMapping('row-fluid'); $span12Class = $bootstrapHelper->getClassMapping('span12'); $span6Class = $bootstrapHelper->getClassMapping('span6'); $span4Class = $bootstrapHelper->getClassMapping('span4'); $span3Class = $bootstrapHelper->getClassMapping('span3'); $span2Class = $bootstrapHelper->getClassMapping('span2'); $controlGroupClass = $bootstrapHelper->getClassMapping('control-group'); $inputPrependClass = $bootstrapHelper->getClassMapping('input-group'); $addOnClass = $bootstrapHelper->getClassMapping('add-on'); $controlLabelClass = $bootstrapHelper->getClassMapping('control-label'); $controlsClass = $bootstrapHelper->getClassMapping('controls'); $btnClass = $bootstrapHelper->getClassMapping('btn'); $inputSmallClass = $bootstrapHelper->getClassMapping('input-small'); $inputxxLargeClass = $bootstrapHelper->getClassMapping('input-large'); $inputMediumClass = $bootstrapHelper->getClassMapping('input-medium'); $formGroupClass = $bootstrapHelper->getClassMapping('form-group'); $formControlClass = $bootstrapHelper->getClassMapping('form-control'); $inputLargeClass = $bootstrapHelper->getClassMapping('input-large'); $start_step = 1; $stripePaymentMethod = null; $hasSquareCard = false; if($this->campaignId > 0 && $this->campaign->currency_symbol != "") { $this->config->currency_symbol = $this->campaign->currency_symbol; } ?> <style> #donation-form .switch-amounts input:checked + label { background-color: <?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>; } #donation-form .switch-payment-gateway input:checked + label { border:1px solid <?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>; } .donated-amount { border:1px solid <?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>; } .donated-amount-label { background-color: <?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>; } </style> <script type='text/javascript' src="<?php echo DonationHelper::getSiteUrl().'media/com_jdonation/assets/js/imask/imask.min.js';?>"></script> <script type="text/javascript"> <?php echo $this->recurringString ;?> var siteUrl = "<?php echo DonationHelper::getSiteUrl(); ?>"; </script> <script type="text/javascript" src="<?php echo DonationHelper::getSiteUrl().'media/com_jdonation/assets/js/jdonation.js'?>"></script> <?php if (DonationHelper::isJoomla4()) { $formClass = ' ' . $bootstrapHelper->getClassMapping('row-fluid'); } ?> <div id="donation-form" class="<?php echo $rowFluidClass;?> jd-container donationsimple"> <form method="post" name="os_form" id="os_form" action="<?php echo $url ; ?>" autocomplete="off" class="form form-horizontal<?php echo $formClass; ?> jd_width_100_percentage" enctype="multipart/form-data"> <div class="<?php echo $span12Class;?>"> <div id="errors"></div> <?php if($this->campaign->id > 0 && $this->campaign->showCampaignInformation) { echo $this->loadTemplate('campaign'); } $allow_donation = true; $msg = ""; if($this->campaign->id > 0) { $total_donated = DonationHelper::getTotalDonatedAmount($this->campaign->id); $total_donors = DonationHelper::getTotalDonor($this->campaign->id); if (!$this->config->endable_donation_with_expired_campaigns && (($this->campaign->end_date != "" && $this->campaign->end_date != "0000-00-00 00:00:00") && (strtotime($this->campaign->end_date) < time()))) { //already expired $allow_donation = false; $msg = JText::_('JD_EXPIRED_CAMPAIGN'); } if($this->campaign->goal > 0 && $total_donated > $this->campaign->goal && ! $this->config->endable_donation_with_goal_achieved_campaigns && $allow_donation) { $allow_donation = false; $msg = JText::_('JD_GOAL_ACHIEVED'); } if((int)$this->campaign->limit_donors > 0 && $total_donors > (int)$this->campaign->limit_donors && $allow_donation) { $allow_donation = false; $msg = JText::_('JD_NUMBER_DONORS_ACHIEVED'); } } if($allow_donation) { if($this->campaign->id > 0 && $this->config->show_campaign == 1) { ?> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class;?> campaigndescription" id="donation_form"> <h3 class="jd-page-title"><?php echo JText::_('JD_DONATION'); ?></h3> <?php } else { if($this->contentPlugin == 0) { $h = "1"; } else { $h = "3"; } ?> <h<?php echo $h?> class="jd-page-title" id="donation_form"><?php echo JText::_('JD_DONATION'); ?></h<?php echo $h?>> <?php } //show campaign if($this->campaign->id > 0) { $campaign_link = JUri::getInstance()->toString(array('scheme', 'user', 'pass', 'host')).JRoute::_(DonationHelperRoute::getDonationFormRoute($this->campaign->id,JFactory::getApplication()->input->getInt('Itemid',0))); $config=JFactory::getConfig(); if(JVERSION>=3.0) $site_name=$config->get( 'sitename' ); else $site_name=$config->getvalue( 'config.sitename' ); require_once(JPATH_SITE . "/components/com_jdonation/helper/integrations.php"); $doc = JFactory::getDocument(); if ($this->option == "com_jdonation") { $doc->addCustomTag( '<meta property="og:title" content="'.$this->campaign->title.'" />' ); if(($this->campaign->campaign_photo != "") && (file_exists(JPATH_ROOT.'/images/jdonation/'.$this->campaign->campaign_photo))) { $doc->addCustomTag( '<meta property="og:image" content="'.JUri::root().'images/jdonation/'.$this->campaign->campaign_photo.'" />' ); } if($this->campaign->short_description != "") { $short_desc = strip_tags($this->campaign->short_description); $short_desc = str_replace("\n","",$short_desc); $short_desc = str_replace("\r","",$short_desc); $short_desc = str_replace("\"","",$short_desc); $short_desc = str_replace("'","",$short_desc); if(strlen($short_desc) > 155) { $short_desc = substr($short_desc,0,155).".."; } $doc->addCustomTag( '<meta property="og:description" content="'.$short_desc.'" />' ); } $doc->addCustomTag( '<meta property="og:url" content="'.$campaign_link.'" />' ); $doc->addCustomTag( '<meta property="og:site_name" content="'.$site_name.'" />' ); $doc->addCustomTag( '<meta property="og:type" content="article" />' ); } if($this->config->social_sharing == 1 && $this->config->show_campaign == 0) { ?> <div class="<?php echo $rowFluidClass;?>"> <div class="<?php echo $span12Class;?>"> <script type="text/javascript" src="<?php echo DonationHelper::getSiteUrl().'media/com_jdonation/assets/js/fblike.js'?>"></script> <?php if($this->config->social_sharing_type == 0) { $add_this_share=' <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a class="addthis_button_facebook_like" fb:like:layout="button_count" class="addthis_button" addthis:url="'.$campaign_link.'"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium" class="addthis_button" addthis:url="'.$campaign_link.'"></a> <a class="addthis_button_tweet" class="addthis_button" addthis:url="'.$campaign_link.'"></a> <a class="addthis_button_pinterest_pinit" class="addthis_button" addthis:url="'.$campaign_link.'"></a> <a class="addthis_counter addthis_pill_style" class="addthis_button" addthis:url="'.$campaign_link.'"></a> </div> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid='.$this->config->addthis_publisher.'"></script> <!-- AddThis Button END -->' ; $add_this_js='https://s7.addthis.com/js/300/addthis_widget.js'; $JdonationIntegrationsHelper=new JdontionIntegrationsHelper(); $JdonationIntegrationsHelper->loadScriptOnce($add_this_js); //output all social sharing buttons echo' <div id="rr" style=""> <div class="social_share_container"> <div class="social_share_container_inner">'. $add_this_share. '</div> </div> </div> '; } else { echo '<div class="jd_horizontal_social_buttons">'; echo '<div class="jd_float_left"> <div class="fb-like" data-href="'.$campaign_link.'" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"> </div> </div>'; echo ' <div class="jd_float_left"> <div class="g-plus" data-action="share" data-annotation="bubble" data-href="'.$campaign_link.'"> </div> </div>'; echo '<div class="jd_float_left"> <a href="https://twitter.com/share" class="twitter-share-button" data-url="'.$campaign_link.'" data-counturl="'.$campaign_link.'">Tweet</a> </div>'; echo '</div> <div class="clearfix"></div>'; } ?> </div> </div> <?php } } ?> <?php if($this->campaign->donation_form_msg) { $message = $this->campaign->donation_form_msg; } else { $message = $this->config->donation_form_msg; } if (strlen($message)) { ?> <div class="jd-message clearfix"><?php echo $message; ?></div> <?php } ?> <?php if($this->config->donation_amounts || $this->config->display_amount_textbox){ ?> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class; ?>" > <div class="jd_display_table jd_float_left subheading"> <div style="background-color:<?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>;" class="jd_display_none_responsive jd_height_30 jd_width_30 jd_text_align_center jd_border_radius_100_percentage jd_display_table_cell jd_vertical_align_middle"> <p class="jd_line_height_30 jd_color_white_important jd_margin_0_10_responsive jd_padding_0_responsive jd_margin_0"><strong><?php echo $start_step;?></strong></p> </div> <h4 class="jd_display_table_cell jd_vertical_align_middle nd_options_color_greydark jd_padding_0_responsive jd_padding_left_20 jd_margin_0 jd_padding_top_0"><?php echo strtoupper(JText::_('JD_CHOOSE_SELECT_AMOUNTS'));?></h4> </div> </div> </div> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class; ?>" id="amount_container"> <?php if ( !$this->config->display_amount_textbox) { $extraClass = "validate[required]"; } else { $extraClass = ""; } $amountSelected = false; if ($this->config->donation_amounts) { $explanations = explode("\r\n", $this->config->donation_amounts_explanation) ; $amounts = explode("\r\n", $this->config->donation_amounts); if ($this->config->amounts_format == 1) { if($this->amount == 0){ $extraValidateClass = "validate[required]"; }else{ $extraValidateClass = ""; } ?> <div class="switch-amounts <?php echo $rowFluidClass?>"> <?php for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = $amounts[$i] ; if(strpos($amount, "[c]") > 0) { $amount = substr($amount, 0, strpos($amount, "[c]")); if($this->rdAmount == "") { $this->rdAmount = $amount; } } $amount = (float)$amount ; if ($amount == $this->rdAmount) { $amountSelected = true; $checked = ' checked="checked" ' ; } else { $checked = '' ; } ?> <input type="radio" name="rd_amount" id="pre_amount_<?php echo $i; ?>" value="<?php echo $amount; ?>" <?php echo $checked ; ?> onclick="clearTextbox();" class="<?php echo $extraClass; ?>" data-errormessage="<?php echo JText::_('JD_AMOUNT_IS_REQUIRED'); ?>"/> <label for="pre_amount_<?php echo $i; ?>"> <?php echo ' '.DonationHelperHtml::formatAmount($this->config, $amount);?> <?php if (isset($explanations[$i]) && $explanations[$i]) { if($this->config->show_brackets) { echo ' <span class="amount_explaination">[ '.$explanations[$i].' ]</span> ' ; } else { echo ' <span class="amount_explaination">'.$explanations[$i].'</span> ' ; } } ?> </label> <?php } ?> </div> <?php } else { $options = array() ; $options[] = JHtml::_('select.option', 0, JText::_('JD_AMOUNT')) ; for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = $amounts[$i] ; if(strpos($amount, "[c]") > 0) { $amount = substr($amount, 0, strpos($amount, "[c]")); if($this->rdAmount == "") { $this->rdAmount = $amount; } } $amount = (float)$amount ; if ($amount == $this->rdAmount) { $amountSelected = true; } if (isset($explanations[$i]) && $explanations[$i]) { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)." [$explanations[$i]]") ; } else { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)) ; } } echo $this->config->currency_symbol.' '.JHtml::_('select.genericlist', $options, 'rd_amount', ' class="'.$extraValidateClass.' '.$inputLargeClass.' form-select uk-select" onchange="clearTextbox();" ', 'value', 'text', $this->rdAmount).'<br /><br />'; } } ?> <div class="<?php echo $rowFluidClass?> <?php echo $formGroupClass;?>" id="otherAmount"> <?php if ($this->config->display_amount_textbox) { if ($this->config->donation_amounts) { $placeHolder = JText::_('JD_OTHER_AMOUNT'); } else { $placeHolder = ''; } if ($amountSelected) { $amountCssClass = ' '.$inputMediumClass; } else { $amountCssClass = ' '.$inputMediumClass; } if ($this->config->currency_position == 0) { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass. ' '.$formControlClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span4Class?>"> <?php echo $bootstrapHelper->getPrependAddon($input,$addons); ?> </div> <?php } else { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass. ' '.$formControlClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span4Class?>"> <?php echo $bootstrapHelper->getAppendAddon($input,$addons); ?> </div> <?php } } if ($this->config->currency_selection) { $show_currency_selection = true; if((int) $this->campaignId == 0) { $show_currency_selection = true; } elseif ((int) $this->campaignId > 0) { if($this->config->activate_campaign_currency) { if($this->campaign->currency == "") { $show_currency_selection = false; } } } } else { $show_currency_selection = false; } if ($show_currency_selection) { ?> <div class="<?php echo $span3Class;?>" id="currency_selection"> <?php echo $this->lists['currency_code']; ?> </div> <?php } ?> </div> </div> </div> <?php $start_step++; } elseif($this->config->amount_by_campaign) { ?> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class; ?>" > <div class="jd_display_table jd_float_left subheading"> <div style="background-color:<?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>;" class="jd_display_none_responsive jd_height_30 jd_width_30 jd_text_align_center jd_border_radius_100_percentage jd_display_table_cell jd_vertical_align_middle"> <p class="jd_line_height_30 jd_color_white_important jd_margin_0_10_responsive jd_padding_0_responsive jd_margin_0"><strong><?php echo $start_step;?></strong></p> </div> <h4 class="jd_display_table_cell jd_vertical_align_middle nd_options_color_greydark jd_padding_0_responsive jd_padding_left_20 jd_margin_0 jd_padding_top_0"><?php echo strtoupper(JText::_('JD_CHOOSE_SELECT_AMOUNTS'));?></h4> </div> </div> </div> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class?>" id="amount_container"> </div> </div> <?php $start_step++; } ?> <?php $increase_step = true; if ($this->config->enable_recurring) { if ($this->campaignId) { if (($this->campaign->donation_type == 0 || $this->campaign->donation_type == 2) && $this->method->getEnableRecurring()) { $style = ''; } else { $increase_step = false; $style = ' style="display:none;"' ; } if ($this->campaign->donation_type == 0 && $this->method->getEnableRecurring()) { $style1 = ''; } else { $style1 = ' style="display:none;"' ; } } else { if ($this->method->getEnableRecurring()) { $style = ''; $style1 = ''; } else { $increase_step = false; $style = ' style="display:none;"' ; $style1 = ' style="display:none;"' ; } } ?> <div class="<?php echo $rowFluidClass?>" <?php echo $style; ?> id="donation_type_heading"> <div class="<?php echo $span12Class; ?>" > <div class="jd_display_table jd_float_left subheading"> <div style="background-color:<?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>;" class="jd_display_none_responsive jd_height_30 jd_width_30 jd_text_align_center jd_border_radius_100_percentage jd_display_table_cell jd_vertical_align_middle"> <p class="jd_line_height_30 jd_color_white_important jd_margin_0_10_responsive jd_padding_0_responsive jd_margin_0"><strong><?php echo $start_step; if($increase_step) { $start_step++; } ?></strong></p> </div> <h4 class="jd_display_table_cell jd_vertical_align_middle nd_options_color_greydark jd_padding_0_responsive jd_padding_left_20 jd_margin_0 jd_padding_top_0"><?php echo strtoupper(JText::_('JD_DONATION_TYPE'));?></h4> </div> </div> </div> <div class="<?php echo $controlGroupClass;?>" id="donation_type" <?php echo $style1; ?>> <label class="<?php echo $controlLabelClass;?>"> </label> <?php if($this->donationType == "" || $this->donationType == "onetime") { $checked1 = "checked"; $checked2 = ""; } else { $checked1 = ""; $checked2 = "checked"; } if (version_compare(JVERSION, '3.0', 'lt')) { ?> <div class="switch-amounts"> <input type="radio" name="donation_type" id="donation_typeonetime" value="onetime" <?php echo $checked1; ?> onclick="changeDonationType();" c/> <label for="donation_typeonetime" id="donation_typeonetime-lbl" class="radio"> <?php echo JText::_('JD_ONETIME');?> </label> <input type="radio" name="donation_type" id="donation_typerecurring" <?php echo $checked2; ?> value="recurring" onclick="changeDonationType();" class="inputbox"/> <label for="donation_typerecurring" id="donation_typerecurring-lbl" class="radio"> <?php echo JText::_('JD_RECURRING');?> </label> </div> <?php } else { ?> <div class="switch-amounts"> <input type="radio" name="donation_type" id="donation_typeonetime" value="onetime" <?php echo $checked1; ?> onclick="changeDonationType();" class="inputbox"/> <label for="donation_typeonetime" id="donation_typeonetime-lbl" class="radio"> <?php echo JText::_('JD_ONETIME');?> </label> <input type="radio" name="donation_type" id="donation_typerecurring" <?php echo $checked2; ?> value="recurring" onclick="changeDonationType();" class="inputbox"/> <label for="donation_typerecurring" id="donation_typerecurring-lbl" class="radio"> <?php echo JText::_('JD_RECURRING');?> </label> </div> <?php } ?> </div> <?php if ($this->donationType == 'onetime' || !$this->method->getEnableRecurring()) { $style = ' style="display:none" '; } else { $style = ''; } ?> <div class="<?php echo $controlGroupClass;?>" id="tr_frequency" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>" for="r_frequency"> <?php echo JText::_('JD_FREQUENCY') ; ?> </label> <div class="<?php echo $controlsClass;?>" id="recurringFrequency"> <?php if (count((array)$this->recurringFrequencies) > 1) { echo $this->lists['r_frequency']; } else { $frequency = $this->recurringFrequencies[0]; switch($frequency) { case 'd': echo JText::_('JD_DAILY'); break; case 'w': echo JText::_('JD_WEEKLY'); break; case 'b': echo JText::_('JD_BI_WEEKLY'); break; case 'm': echo JText::_('JD_MONTHLY'); break; case 'q': echo JText::_('JD_QUARTERLY'); break; case 's': echo JText::_('JD_SEMI_ANNUALLY'); break; case 'a': echo JText::_('JD_ANNUALLY'); break; } ?> <input type="hidden" name="r_frequency" value="<?php echo $frequency; ?>" /> <?php } ?> </div> </div> <?php if ($this->config->show_r_times) { ?> <div class="<?php echo $controlGroupClass;?>" id="tr_number_donations" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>" for="r_times"> <?php echo JText::_('JD_OCCURRENCES') ; ?> </label> <div class="<?php echo $controlsClass;?>"> <input type="text" name="r_times" value="<?php echo $this->input->getInt('r_times', null); ?>" class="<?php echo $inputSmallClass;?>"/> </div> </div> <?php } } ?> <?php if($this->userId) { $msg = strtoupper(JText::_('JD_DONOR_INFO')); } else { $msg = strtoupper(JText::_('JD_DONATION_AS_GUEST')); if (($this->config->registration_integration == 1 || $this->config->registration_integration == 2) && $this->config->show_login_box) { $msg .= ' '.strtolower(JText::_('JD_OR')); $campaign_variable = ""; if($this->campaignId > 0) { $campaign_variable = "&campaign_id=".$this->campaignId; } $itemid = JFactory::getApplication()->input->getInt('Itemid',0); $return = base64_encode(JRoute::_('index.php?option=com_jdonation&view=donation'.$campaign_variable.'&Itemid='.$itemid)); $link = JRoute::_('index.php?option=com_users&view=login&return='.$return); $msg .= " <a target='_blank' class='btn btn-primary uk-button uk-button-primary loginbutton' href='".$link."' title='".JText::_('JD_CLICK_HERE_TO_LOGIN')."'>".JText::_('JD_LOGIN')."</a>"; } } ?> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class; ?>" > <div class="jd_display_table jd_float_left subheading"> <div style="background-color:<?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>;" class="jd_display_none_responsive jd_height_30 jd_width_30 jd_text_align_center jd_border_radius_100_percentage jd_display_table_cell jd_vertical_align_middle"> <p id="donor_information_heading" class="jd_line_height_30 jd_color_white_important jd_margin_0_10_responsive jd_padding_0_responsive jd_margin_0"><strong><?php echo $start_step;?></strong></p> <?php $start_step++; ?> </div> <h4 class="jd_display_table_cell jd_vertical_align_middle nd_options_color_greydark jd_padding_0_responsive jd_padding_left_20 jd_margin_0 jd_padding_top_0"> <?php echo $msg;?> </h4> </div> </div> </div> <?php $validateLoginForm = 0 ?> <div class="<?php echo $rowFluidClass?>"> <?php $col = 0; if ($this->config->use_campaign) { if ($this->showCampaignSelection) { //Campaign has been selected from the module or from campaigns page, so just display campaign title ?> <div class="<?php echo $span6Class?> donationfields <?php echo $formGroupClass;?>"> <?php echo $this->lists['campaign_id'] ;?> </div> <?php $col++; } else { ?> <div class="<?php echo $span12Class?> campaignTitleDiv"> <?php echo JText::_('JD_CAMPAIGN');?> <?php echo $this->campaign->title; ?> </div> </div> <div class="<?php echo $rowFluidClass?>"> <?php } } $fields = $this->form->getFields(); if (isset($fields['state'])) { $selectedState = $fields['state']->value; } foreach ($fields as $field) { $visible = true; if($field->campaignId > 0 && $this->config->field_campaign && $this->campaignId > 0) { if($this->campaignId != $field->campaignId) { $visible = false; } } if($visible) { if ($field->name =='email') { if ($this->userId || !$this->config->registration_integration || !$this->allowUserRegistration) { //We don't need to perform ajax email validate in this case, so just remove the rule $cssClass = $field->getAttribute('class'); $cssClass = str_replace(',ajax[ajaxEmailCall]', '', $cssClass); $field->setAttribute('class', $cssClass); } } if($field->name == 'comment' || $field->type == 'Message'){ ?> </div> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class ?> donationfields"> <?php echo $field->getControlGroupSimple(false, $bootstrapHelper, $field); ?> </div> <?php $col = 1; }else { if($col == 0){ $extra_style = "jd_padding_right_20_desktop"; }else{ $extra_style = "jd_padding_left_20_desktop"; } if($field->name == "state") { $stateIDfield = "field_state"; } else { $stateIDfield = "field_".$field->name; } ?> <div class="<?php echo $span6Class ?> donationfields <?php echo $extra_style;?> <?php echo $formGroupClass;?>" id="<?php echo $stateIDfield;?>"> <?php echo $field->getControlGroupSimple(false, $bootstrapHelper, $field); ?> </div> <?php } $col++; if($col == 2){ $col = 0; ?> </div> <div class="<?php echo $rowFluidClass?>"> <?php } } } ?> </div> <?php if ($this->config->enable_hide_donor) { ?> <div class="<?php echo $controlGroupClass;?> <?php echo $formGroupClass;?>"> <label class="<?php echo $controlLabelClass;?> hasTooltip hasTip" for="hide_me" title="<?php echo JText::_('JD_HIDE_DONOR_EXPLAIN');?>"> <?php echo JText::_('JD_HIDE_DONOR'); ?> </label> <div class="<?php echo $controlsClass;?>"> <input type="checkbox" name="hide_me" value="1" size="40" <?php if ($this->hideMe) echo ' checked="checked"' ; ?> /> </div> </div> <?php } ?> <?php if($this->show_dedicate == 1) { ?> <div class="<?php echo $rowFluidClass?>" id="dedicate_heading"> <div class="<?php echo $span12Class?> <?php echo $formGroupClass;?>"> <input type="checkbox" name="show_dedicate" id="show_dedicate" class="<?php echo $formControlClass;?>" value="0" onclick="javascript:showDedicate();"/> <label for="show_dedicate" id="label_for_show_dedicate"><?php echo JText::_('JD_HONOR_OF'); ?></label> </div> </div> <div class="<?php echo $rowFluidClass?> nodisplay" id="honoreediv"> <div class="<?php echo $span12Class?>"> <div class="<?php echo $rowFluidClass?>"> <?php $dedicatetype = $this->config->dedicate_type; if($dedicatetype == "") { $dedicatetype = "1,2,3,4"; } $dedicatetypeArr = explode(",", $dedicatetype); for($i=1;$i<=4;$i++) { if(in_array($i, $dedicatetypeArr)) { ?> <div class="<?php echo $span3Class?>"> <input type="radio" name="dedicate_type" value="<?php echo $i;?>" /> <?php echo DonationHelper::getDedicateType($i);?> </div> <?php } } ?> </div> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span6Class?> <?php echo $formGroupClass;?>"> <input type="text" class="jd_width_100_percentage <?php echo $formControlClass;?>" name="dedicate_name" value="" placeholder="<?php echo JText::_('JD_HONOREE_NAME'); ?>" /> </div> <div class="<?php echo $span6Class?> <?php echo $formGroupClass;?>"> <input type="text" class="jd_width_100_percentage <?php echo $formControlClass;?>" name="dedicate_email" value="" placeholder="<?php echo JText::_('JD_HONOREE_EMAIL'); ?>" /> </div> </div> </div> </div> <?php } ?> <!-- <div class="<?php echo $controlGroupClass;?>"> <h3 class="jd-heading"><?php echo JText::_('JD_DONATION_INFORMATION'); ?></h3> </div> --> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class; ?>" > <div class="jd_display_table jd_float_left subheading"> <div style="background-color:<?php echo ($this->config->color != '') ? $this->config->color : '#b250d2' ?>;" class="jd_display_none_responsive jd_height_30 jd_width_30 jd_text_align_center jd_border_radius_100_percentage jd_display_table_cell jd_vertical_align_middle"> <p class="jd_line_height_30 jd_color_white_important jd_margin_0_10_responsive jd_padding_0_responsive jd_margin_0" id="checkout_heading"><strong><?php echo $start_step;?></strong></p> </div> <h4 class="jd_display_table_cell jd_vertical_align_middle nd_options_color_greydark jd_padding_0_responsive jd_padding_left_20 jd_margin_0 jd_padding_top_0"><?php echo strtoupper(JText::_('JD_CHECKOUT'));?></h4> </div> </div> </div> <?php //payment gateway fee if ($this->config->pay_payment_gateway_fee) { ?> <div class="<?php echo $controlGroupClass;?>" id="pay_payment_gateway_fee_div"> <label class="<?php echo $controlLabelClass;?>" for="pay_payment_gateway_fee"> <?php echo JText::_('JD_PAY_PAYMENT_GATEWAY_FEE'); ?> </label> <?php if (version_compare(JVERSION, '3.0', 'lt')) { ?> <div class="<?php echo $controlsClass;?>"> <?php //echo $this->lists['pay_payment_gateway_fee']; ?> <div class="switch-amounts"> <input type="radio" name="pay_payment_gateway_fee" id="pay_payment_gateway_fee0" value="0" class="inputbox" onClick="updateSummary();" /> <label for="pay_payment_gateway_fee0" id="pay_payment_gateway_fee0-lbl" class="radio"> <?php echo JText::_('JNO');?> </label> <input type="radio" name="pay_payment_gateway_fee" id="pay_payment_gateway_fee1" value="1" checked="checked" class="inputbox" onClick="updateSummary(); /> <label for="pay_payment_gateway_fee1" id="pay_payment_gateway_fee1-lbl" class="radio"> <?php echo JText::_('JYES');?> </label> </div> </div> <?php } else { //echo $this->lists['pay_payment_gateway_fee']; ?> <div class="switch-amounts"> <input type="radio" name="pay_payment_gateway_fee" id="pay_payment_gateway_fee0" value="0" class="inputbox" onClick="updateSummary();" /> <label for="pay_payment_gateway_fee0" id="pay_payment_gateway_fee0-lbl" class="radio"> <?php echo JText::_('JNO');?> </label> <input type="radio" name="pay_payment_gateway_fee" id="pay_payment_gateway_fee1" value="1" checked="checked" class="inputbox" onClick="updateSummary();" /> <label for="pay_payment_gateway_fee1" id="pay_payment_gateway_fee1-lbl" class="radio"> <?php echo JText::_('JYES');?> </label> </div> <?php } ?> </div> <?php } ?> <!-- show total donated amount !--> <div class="total_donated_amount" id="donatedAmount"> <?php if($this->rdAmount > 0) { ?> <div class="donated-amount"> <div class="donated-amount-label"> <?php echo JText::_('JD_INCOME'); ?> </div> <div class="donated-amount-value"> <?php echo DonationHelperHtml::formatAmount($config, $this->donated_amount, $this->config->currency_symbol); ?> </div> </div> <?php } ?> <input type="hidden" name="gross_amount" id="gross_amount" value="<?php echo floatVal($this->donated_amount); ?>" /> </div> <?php if (count($this->methods) > 1) { ?> <div class="<?php echo $rowFluidClass?> paymentmethodtitle"> <div class="<?php echo $span12Class; ?>" > <?php echo JText::_('JD_SELECT_PAYMENT_OPTION'); ?> <span class="required">*</span> </div> </div> <div class="<?php echo $rowFluidClass?> paymentmethodoptions"> <div class="switch-payment-gateway"> <?php $method = null ; $j = 0; for ($i = 0 , $n = count($this->methods); $i < $n; $i++) { $paymentMethod = $this->methods[$i]; if ($paymentMethod->getName() == $this->paymentMethod) { $checked = ' checked="checked" '; $method = $paymentMethod ; } else { $checked = ''; } if (strpos($paymentMethod->getName(), 'os_stripe') !== false) { $stripePaymentMethod = $paymentMethod; } elseif (strpos($paymentMethod->getName(), 'os_squarecard') !== false) { $hasSquareCard = true; } ?> <input id="payment_gateway_<?php echo $i;?>" onclick="changePaymentMethod();" type="radio" name="payment_method" value="<?php echo $paymentMethod->getName(); ?>" <?php echo $checked; ?> /> <label for="payment_gateway_<?php echo $i;?>" > <?php $payment_name = $paymentMethod->getName(); $payment_name = str_replace("os_","",$payment_name); if((int)$this->config->show_payment_method == 0) { if(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments_override/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments_override/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($paymentMethod->getTitle()); ?>"/> <?php } elseif(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($paymentMethod->getTitle()); ?>"/> <?php } else { echo JText::_($paymentMethod->getTitle()); } } elseif($this->config->show_payment_method == 1) { echo JText::_($paymentMethod->getTitle()); } elseif($this->config->show_payment_method == 2) { if(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments_override/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments_override/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($paymentMethod->getTitle()); ?>"/> <?php } elseif(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($paymentMethod->getTitle()); ?>"/> <?php } ?> <div class="clearfix"></div> <?php echo JText::_($paymentMethod->getTitle()); } ?> </label> <?php } ?> </div> </div> <?php } else { $method = $this->methods[0] ; if (strpos($method->getName(), 'os_stripe') !== false) { $stripePaymentMethod = $method; } elseif (strpos($method->getName(), 'os_squarecard') !== false) { $hasSquareCard = true; } ?> <div class="<?php echo $controlGroupClass;?>" id="jdpaymentmethods"> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_PAYMENT_OPTION'); ?> </label> <div class="<?php echo $controlsClass;?>"> <?php $payment_name = $method->getName(); $payment_name = str_replace("os_","",$payment_name); if((int)$this->config->show_payment_method == 0) { if(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($method->getTitle()); ?>"/> <?php } else { echo JText::_($method->getTitle()); } } elseif($this->config->show_payment_method == 1) { echo JText::_($method->getTitle()); } elseif($this->config->show_payment_method == 2) { if(file_exists(JPATH_ROOT.'/media/com_jdonation/assets/images/payments/'.$payment_name.'.png')) { ?> <img src="<?php echo JUri::base(true)?>/media/com_jdonation/assets/images/payments/<?php echo $payment_name?>.png" style="height:30px;" alt="<?php echo JText::_($method->getTitle()); ?>"/> <?php } ?> <div class="clearfix"></div> <?php echo JText::_($method->getTitle()); } ?> </div> </div> <?php } if ($method->getName() == 'os_squareup') { $style = ''; } else { $style = 'style = "display:none"'; } ?> <div class="<?php echo $controlGroupClass;?> payment_information" id="sq_field_zipcode" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>" for="sq_billing_zipcode"> <?php echo JText::_('JD_SQUAREUP_ZIPCODE'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <div id="field_zip_input"> <input type="text" id="sq_billing_zipcode" name="sq_billing_zipcode" class="<?php echo $inputLargeClass;?>" value="<?php echo $this->escape($this->input->getString('sq_billing_zipcode')); ?>" /> </div> </div> </div> <?php if ($method->getCreditCard()) { $style = '' ; } else { $style = 'style = "display:none"'; } ?> <div id="creditcarddivmain" class="<?php echo $rowFluidClass?> jd_padding_top_10" <?php echo $style; ?>> <div class="<?php echo $span12Class?>"> <div class="creditcarddiv"> <div class="<?php echo $controlGroupClass;?>" id="tr_card_number" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('AUTH_CARD_NUMBER'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"> <div id="sq-card-number"> <input type="text" name="x_card_num" id="x_card_num" class="<?php echo $inputLargeClass;?> validate[required,creditCard]" value="<?php echo $this->input->get('x_card_num', '', 'none'); ?>" size="20" data-input-mask="0000 0000 0000 0000"/> </div> </div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_exp_date" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('AUTH_CARD_EXPIRY_DATE'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <div id="sq-expiration-date"> <?php echo $this->lists['exp_month'] .' / '.$this->lists['exp_year'] ; ?> </div> </div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_cvv_code" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('AUTH_CVV_CODE'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <div id="sq-cvv"> <input type="text" name="x_card_code" id="x_card_code" class="<?php echo $inputLargeClass;?> validate[required,custom[number]]" value="<?php echo $this->input->get('x_card_code', '', 'none'); ?>" size="20" /> </div> </div> </div> <?php if ($method->getCardType()) { $style = '' ; } else { $style = ' style = "display:none;" ' ; } ?> <div class="<?php echo $controlGroupClass;?>" id="tr_card_type" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_CARD_TYPE'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <?php echo $this->lists['card_type'] ; ?> </div> </div> <?php if ($method->getCardHolderName()) { $style = '' ; } else { $style = ' style = "display:none;" ' ; } ?> <div class="<?php echo $controlGroupClass;?>" id="tr_card_holder_name" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_CARD_HOLDER_NAME'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <input type="text" name="card_holder_name" id="card_holder_name" class="<?php echo $inputLargeClass;?> validate[required]" value="<?php echo $this->input->get('card_holder_name', '', 'none'); ?>" size="40" /> </div> </div> <?php $sisowEnabled = os_payments::sisowEnabled(); if ($sisowEnabled) { os_payments::getBankLists(); } ?> <?php if (DonationHelper::isPaymentMethodEnabled('os_echeck')) { if ($method->getName() == 'os_echeck') { $style = ''; } else { $style = ' style = "display:none;" '; } ?> <div class="<?php echo $controlGroupClass;?>" id="tr_bank_rounting_number" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('JD_BANK_ROUTING_NUMBER'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"><input type="text" name="x_bank_aba_code" class="<?php echo $inputLargeClass;?> validate[required,custom[number]]" value="<?php echo $this->input->get('x_bank_aba_code', '', 'none'); ?>" size="40"/></div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_bank_account_number" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('JD_BANK_ACCOUNT_NUMBER'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"><input type="text" name="x_bank_acct_num" class="<?php echo $inputLargeClass;?> validate[required,custom[number]]" value="<?php echo $this->input->get('x_bank_acct_num', '', 'none');; ?>" size="40"/></div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_bank_account_type" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('JD_BANK_ACCOUNT_TYPE'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"><?php echo $this->lists['x_bank_acct_type']; ?></div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_bank_name" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('JD_BANK_NAME'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"><input type="text" name="x_bank_name" class="<?php echo $inputLargeClass;?> validate[required]" value="<?php echo $this->input->get('x_bank_name', '', 'none'); ?>" size="40"/></div> </div> <div class="<?php echo $controlGroupClass;?>" id="tr_bank_account_holder" <?php echo $style; ?>> <label class="<?php echo $controlLabelClass;?>"><?php echo JText::_('JD_ACCOUNT_HOLDER_NAME'); ?><span class="required">*</span></label> <div class="<?php echo $controlsClass;?>"><input type="text" name="x_bank_acct_name" class="<?php echo $inputLargeClass;?> validate[required]" value="<?php echo $this->input->get('x_bank_acct_name', '', 'none'); ?>" size="40"/></div> </div> <?php } ?> </div> </div> </div> <?php if ($stripePaymentMethod !== null && method_exists($stripePaymentMethod, 'getParams')) { /* @var os_stripe $stripePaymentMethod */ $params = $stripePaymentMethod->getParams(); $useStripeCardElement = true; if ($useStripeCardElement) { if ($method->getName() === 'os_stripe') { $style = ''; } else { $style = ' style = "display:none;" '; } ?> <div class="<?php echo $controlGroupClass;?> payment_information" <?php echo $style; ?> id="stripe-card-form"> <label class="<?php echo $controlLabelClass; ?>" for="stripe-card-element"> <?php echo JText::_('JD_CREDIT_OR_DEBIT_CARD'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass; ?>" id="stripe-card-element"> </div> </div> <?php } } if ($hasSquareCard) { if (strpos($method->getName(), 'os_squarecard') !== false) { $style = ''; } else { $style = ' style = "display:none;" '; } ?> <div class="<?php echo $controlGroupClass; ?> payment_information" <?php echo $style; ?> id="square-card-form"> <div class="<?php echo $controlLabelClass; ?>"> <?php echo Text::_('JD_CREDIT_OR_DEBIT_CARD'); ?><span class="required">*</span> </div> <div class="<?php echo $controlsClass; ?>" id="square-card-element"> </div> </div> <input type="hidden" name="square_card_token" value="" /> <input type="hidden" name="square_card_verification_token" value="" /> <?php } if ($this->config->show_newsletter_subscription == 1 && DonationHelper::isNewsletterPluginEnabled()) { ?> <div class="<?php echo $controlGroupClass;?>"> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_SUBSCRIBE_TO_NEWSLETTER'); ?> </label> <div class="<?php echo $controlsClass;?>"> <input type="checkbox" name="newsletter_subscription" value="1" id="newsletter_subscription" /> </div> </div> <?php } if ($this->config->accept_term ==1 && $this->config->article_id > 0) { $articleId = $this->config->article_id; if (Multilanguage::isEnabled()) { $associations = JLanguageAssociations::getAssociations('com_content', '#__content', 'com_content.item', $articleId); $langCode = Factory::getLanguage()->getTag(); if (isset($associations[$langCode])) { $article = $associations[$langCode]; } } if (!isset($article)) { $db = Factory::getDbo(); $query = $db->getQuery(true); $query->select('id, catid') ->from('#__content') ->where('id = ' . (int) $articleId); $db->setQuery($query); $article = $db->loadObject(); } JLoader::register('ContentHelperRoute', JPATH_ROOT . '/components/com_content/helpers/route.php'); $termLink = ContentHelperRoute::getArticleRoute($article->id, $article->catid) . '&tmpl=component&format=html'; $extra = ' class="jd-modal" ' ; ?> <div class="<?php echo $controlGroupClass;?>"> <label class="checkbox"> <input type="checkbox" name="accept_term" value="1" class="validate[required]" data-errormessage="<?php echo JText::_('JD_ACCEPT_TERMS');?>" /> <?php echo JText::_('JD_ACCEPT'); ?> <?php echo "<a $extra href=\"".JRoute::_($termLink)."\">"."<strong>".JText::_('JD_TERM_AND_CONDITION')."</strong>"."</a>\n"; ?> </label> </div> <?php } if ($this->config->show_privacy) { if ($this->config->privacy_policy_article_id > 0) { $privacyArticleId = $this->config->privacy_policy_article_id; if (JLanguageMultilang::isEnabled()) { $associations = JLanguageAssociations::getAssociations('com_content', '#__content', 'com_content.item', $privacyArticleId); $langCode = JFactory::getLanguage()->getTag(); if (isset($associations[$langCode])) { $privacyArticle = $associations[$langCode]; } } if (!isset($privacyArticle)) { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('id, catid') ->from('#__content') ->where('id = ' . (int) $privacyArticleId); $db->setQuery($query); $privacyArticle = $db->loadObject(); } JLoader::register('ContentHelperRoute', JPATH_ROOT . '/components/com_content/helpers/route.php'); $link = JRoute::_(ContentHelperRoute::getArticleRoute($privacyArticle->id, $privacyArticle->catid).'&tmpl=component&format=html'); } else { $link = ''; } ?> <div class="<?php echo $controlGroupClass ?>"> <div class="<?php echo $controlLabelClass; ?>"> <?php if ($link) { $extra = ' class="jd-modal" ' ; ?> <a href="<?php echo $link; ?>" <?php echo $extra;?> class="eb-colorbox-privacy-policy"><?php echo JText::_('JD_PRIVACY_POLICY');?></a> <?php } else { echo JText::_('JD_PRIVACY_POLICY'); } ?> </div> <div class="<?php echo $controlsClass; ?>"> <input type="checkbox" name="agree_privacy_policy" value="1" class="validate[required]" data-errormessage="<?php echo JText::_('JD_AGREE_PRIVACY_POLICY_ERROR');?>" /> <?php $agreePrivacyPolicyMessage = JText::_('JD_AGREE_PRIVACY_POLICY_MESSAGE'); if (strlen($agreePrivacyPolicyMessage)) { ?> <div class="eb-privacy-policy-message alert alert-info"><?php echo $agreePrivacyPolicyMessage;?></div> <?php } ?> </div> </div> <?php } if($this->showCaptcha) { if ($this->captchaPlugin == 'recaptcha_invisible') { if(!$this->userId && $this->config->enable_captcha_with_public_user == 1) { echo $this->captcha; } elseif($this->config->enable_captcha_with_public_user == 0) { echo $this->captcha; } } else { if(!$this->userId && $this->config->enable_captcha_with_public_user == 1){ ?> <div class="<?php echo $controlGroupClass;?> jd_padding_top_10"> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_CAPTCHA'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <?php echo $this->captcha; ?> </div> </div> <?php } elseif($this->config->enable_captcha_with_public_user == 0) { ?> <div class="<?php echo $controlGroupClass;?> jd_padding_top_10"> <label class="<?php echo $controlLabelClass;?>"> <?php echo JText::_('JD_CAPTCHA'); ?><span class="required">*</span> </label> <div class="<?php echo $controlsClass;?>"> <?php echo $this->captcha; ?> </div> </div> <?php } } } ?> <div class="<?php echo $rowFluidClass;?>"> <div class="<?php echo $span12Class; ?> donationButton"> <input type="submit" class="btn btn-primary uk-button uk-button-primary" name="btnSubmit" id="btn-submit" value="<?php echo JText::_('JD_PROCESS_DONATION') ;?>" /> </div> </div> <?php if (count($this->methods) == 1) { ?> <input type="hidden" name="payment_method" value="<?php echo $this->methods[0]->getName(); ?>" /> <?php } if (!$this->config->enable_recurring) { ?> <input type="hidden" name="donation_type" value="onetime" /> <?php } if (!$this->showCampaignSelection) { ?> <input type="hidden" id="campaign_id" name="campaign_id" value="<?php echo $this->campaignId; ?>" /> <?php } ?> <input type="hidden" name="validate_form_login" value="<?php echo $validateLoginForm; ?>" /> <input type="hidden" name="receive_user_id" value="<?php echo $this->input->getInt('receive_user_id'); ?>" /> <input type="hidden" name="amounts_format" value="<?php echo $this->config->amounts_format; ?>" /> <input type="hidden" name="field_campaign" value="<?php echo $this->config->field_campaign; ?>" /> <input type="hidden" name="amount_by_campaign" value="<?php echo $this->config->amount_by_campaign; ?>" /> <input type="hidden" name="enable_recurring" value="<?php echo $this->config->enable_recurring; ?>" /> <input type="hidden" name="count_method" value="<?php echo count($this->methods); ?>" /> <input type="hidden" name="current_campaign" value="<?php echo $this->campaignId; ?>" /> <input type="hidden" name="donation_page_url" value="<?php echo $this->donationPageUrl; ?>" /> <input type="hidden" id="card-nonce" name="nonce" /> <input type="hidden" name="task" value="donation.process" /> <input type="hidden" name="smallinput" id="smallinput" value="<?php echo $inputMediumClass; ?>" /> <input type="hidden" name="activate_dedicate" id="activate_dedicate" value="<?php echo $this->show_dedicate;?>" /> <input type="hidden" name="root_path" id="root_path" value="<?php echo JUri::root(); ?>" /> <input type="hidden" name="show_summary" id="show_summary" value="1" /> <input type="text" name="jd_my_own_website_name" value="" autocomplete="off" class="jd_invisible_to_visitors" /> <input type="hidden" name="<?php echo DonationHelper::getHashedFieldName(); ?>" value="<?php echo time(); ?>" /> <?php if (!$show_currency_selection) { ?> <input type="hidden" name="currency_code" id="currency_code" value="<?php echo $this->config->currency; ?>" /> <?php } ?> <!-- Version 5.6.13 --> <?php if(count($this->rowCampaigns)) { foreach($this->rowCampaigns as $campaign) { ?> <input type="hidden" name="curr_<?php echo $campaign->id; ?>" id="curr_<?php echo $campaign->id; ?>" value="<?php echo DonationHelper::getCurrencyName($campaign->currency); ?>" /> <?php } } ?> <?php echo JHtml::_( 'form.token' ); ?> <script type="text/javascript"> var amountInputCssClasses = '<?php echo " ".$inputSmallClass; ?>'; <?php echo os_payments::writeJavascriptObjects() ; ?> JD.jQuery(function($){ $(document).ready(function(){ $("#os_form").validationEngine('attach', { onValidationComplete: function(form, status){ if (status == true) { form.on('submit', function(e) { e.preventDefault(); }); $('[name^=amount]').val($('[name^=amount]').val().replace(',','.')); form.find('#btn-submit').prop('disabled', true); if($('input:radio[name^=payment_method]').length) { var paymentMethod = $('input:radio[name^=payment_method]:checked').val(); } else { var paymentMethod = $('input[name^=payment_method]').val(); } if (typeof stripePublicKey !== 'undefined' && paymentMethod.indexOf('os_stripe') == 0 && $('#tr_card_number').is(':visible')) { Stripe.card.createToken({ number: $('input[name^=x_card_num]').val(), cvc: $('input[name^=x_card_code]').val(), exp_month: $('select[name^=exp_month]').val(), exp_year: $('select[name^=exp_year]').val(), name: $('input[name^=card_holder_name]').val() }, stripeResponseHandler); return false; } // Stripe card element if (typeof stripe !== 'undefined' && paymentMethod.indexOf('os_stripe') == 0 && $('#stripe-card-form').is(":visible")) { stripe.createToken(card).then(function(result) { if (result.error) { // Inform the customer that there was an error. //var errorElement = document.getElementById('card-errors'); //errorElement.textContent = result.error.message; alert(result.error.message); form.find('#btn-submit').prop('disabled', false); } else { // Send the token to your server. stripeTokenHandler(result.token); } }); return false; } if (paymentMethod == 'os_squareup' && $('#tr_card_number').is(':visible')) { sqPaymentForm.requestCardNonce(); return false; } if (paymentMethod.indexOf('os_squarecard') === 0 && $('#square-card-form').is(':visible')) { squareCardCallBackHandle(); return false; } return true; } return false; } }); if (Joomla.getOptions('squareAppId')) { createSquareCardElement(); } if (typeof stripe !== 'undefined') { var style = { base: { // Add your base input styles here. For example: fontSize: '16px', color: "#32325d", } }; // Create an instance of the card Element. var card = elements.create('card', {style: style}); // Add an instance of the card Element into the `card-element` <div>. card.mount('#stripe-card-element'); } if($("[name*='validate_form_login']").val() == 1) { JDVALIDATEFORM("#jd-login-form"); } <?php if (isset($fields['state']) && \Joomla\String\StringHelper::strtolower($fields['state']->type) == 'state') { ?> buildStateFieldSimple('state', 'country', '<?php echo $selectedState; ?>'); <?php } ?> }) }); </script> <?php if($this->campaign->id > 0 && $this->config->show_campaign == 1) { ?> </div> </div> <?php } } else { ?> <div class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class;?> campaigndescription" id="donation_form"> <h3> <?php echo JText::_('JD_DISABLE_DONATION');?> </h3> <?php echo JText::_('JD_REASON').": ".$msg; ?> </div> </div> <?php } ?> </form> </div> </div> <?php $rowCampaigns = $this->rowCampaigns ; for ($j = 0 , $m = count($rowCampaigns) ; $j < $m ; $j++) { $campaign = $rowCampaigns[$j]; ?> <div id="campaign_recurring_frequency_<?php echo $campaign->id; ?>" style="display: none;"> <?php if($campaign->recurring_frequencies == "") { $campaign->recurring_frequencies = $this->config->recurring_frequencies; } if(($campaign->donation_type == 0 || $campaign->donation_type == 2) && $campaign->recurring_frequencies != "") { $options = array(); $options[] = JHtml::_('select.option', '',JText::_('JD_SELECT')) ; $recurringFrequencies = explode(',', $campaign->recurring_frequencies); if (in_array('d', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'd',JText::_('JD_DAILY')); } if (in_array('w', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'w',JText::_('JD_WEEKLY')); } if (in_array('b', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'b',JText::_('JD_BI_WEEKLY')); } if (in_array('m', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'm',JText::_('JD_MONTHLY')); } if (in_array('q', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'q',JText::_('JD_QUARTERLY')); } if (in_array('s', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 's',JText::_('JD_SEMI_ANNUALLY')); } if (in_array('a', $recurringFrequencies)) { $options[] = JHtml::_('select.option', 'a',JText::_('JD_ANNUALLY')); } echo JHtml::_('select.genericlist', $options, 'r_frequency', ' class="input-medium validate[required]" ', 'value', 'text', JFactory::getApplication()->input->get('r_frequency', '')) ; } ?> </div> <?php } for ($j = 0 , $m = count($rowCampaigns) ; $j < $m ; $j++) { $rowCampaign = $rowCampaigns[$j]; ?> <input type="hidden" name="activate_dedicate_<?php echo $rowCampaign->id;?>" id="activate_dedicate_<?php echo $rowCampaign->id;?>" value="<?php echo (int) $rowCampaign->activate_dedicate; ?>" /> <?php } if ($this->config->amount_by_campaign) { for ($j = 0 , $m = count($rowCampaigns) ; $j < $m ; $j++) { $rowCampaign = $rowCampaigns[$j] ; ?> <div id="campaign_<?php echo $rowCampaign->id; ?>" style="display: none;" class="<?php echo $rowFluidClass?>"> <div class="<?php echo $span12Class?>"> <?php $explanations = explode("\r\n", $rowCampaign->amounts_explanation) ; $amounts = explode("\r\n", $rowCampaign->amounts); $amountSelected = false; if ($this->config->amounts_format == 1) { ?> <div class="switch-amounts <?php echo $rowFluidClass?>"> <?php for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = (float)$amounts[$i] ; if ($amount == $this->rdAmount) { $amountSelected = true; $checked = ' checked="checked" ' ; } else { $checked = '' ; } ?> <input type="radio" name="rd_amount" id="pre_amount_<?php echo $i; ?>" value="<?php echo $amount; ?>" <?php echo $checked ; ?> onclick="clearTextbox();" /> <label for="pre_amount_<?php echo $i; ?>"> <?php echo ' '.DonationHelperHtml::formatAmount($this->config, $amount);?> <?php if (isset($explanations[$i]) && $explanations[$i]) { if($this->config->show_brackets) { echo ' <span class="amount_explaination">[ '.$explanations[$i].' ]</span> ' ; } else { echo ' <span class="amount_explaination">'.$explanations[$i].'</span> ' ; } } ?> </label> <?php } ?> </div> <?php } else { $options = array() ; $options[] = JHtml::_('select.option', 0, JText::_('JD_DONATION_AMOUNT')) ; for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = (float)$amounts[$i] ; if ($amount == $this->rdAmount) { $amountSelected = true; } if (isset($explanations[$i]) && $explanations[$i]) { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)." [$explanations[$i]]"); } else { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)); } } echo $this->config->currency_symbol.' '.JHtml::_('select.genericlist', $options, 'rd_amount', ' class="'.$inputLargeClass.' form-select uk-select" onchange="clearTextbox();" ', 'value', 'text', $this->rdAmount).'<br /><br />'; } ?> <div class="<?php echo $rowFluidClass?>"> <?php if($rowCampaign->display_amount_textbox == 1) { $display_amount_textbox = 0; } elseif($rowCampaign->display_amount_textbox == 2) { $display_amount_textbox = 1; } else { $display_amount_textbox = (int)$this->config->display_amount_textbox; } if ($display_amount_textbox == 1) { if ($rowCampaign->amounts) { $placeHolder = JText::_('JD_OTHER_AMOUNT'); } else { $placeHolder = ''; } if ($amountSelected) { $amountCssClass = ' '.$inputMediumClass; } else { $amountCssClass = ' '.$inputMediumClass; } if ($this->config->currency_position == 0) { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span3Class?>"> <?php echo $bootstrapHelper->getPrependAddon($input,$addons); ?> </div> <?php } else { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span3Class?>"> <?php echo $bootstrapHelper->getAppendAddon($input,$addons); ?> </div> <?php } } if ($this->config->currency_selection) { ?> <div class="<?php echo $span3Class?>"> <?php echo $this->lists['currency_code']; ?> </div> <?php } ?> </div> </div> </div> <?php } } ?> <div style="display:none;" id="amount_container_backup"> <?php $amountSelected = false; if ($this->config->donation_amounts) { $explanations = explode("\r\n", $this->config->donation_amounts_explanation) ; $amounts = explode("\r\n", $this->config->donation_amounts); if ($this->config->amounts_format == 1) { if($this->amount == 0){ $extraValidateClass = "validate[required]"; }else{ $extraValidateClass = ""; } ?> <div class="<?php echo $rowFluidClass?>"> <?php $namounts = count($amounts); switch ($namounts){ case "1": $span = $span12Class; break; case "2": $span = $span6Class; break; case "3": $span = $span4Class; break; case "4": $span = $span3Class; break; case "5": $span = $span3Class; break; case "6": $span = $span2Class; break; default: $span = $span2Class; break; } for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = (float)$amounts[$i] ; if ($amount == $this->rdAmount) { $amountSelected = true; $checked = ' checked="checked" ' ; } else { $checked = '' ; } if(count($amounts) == 5 && $i == 4){ $extra_style = "margin-left:0px !important;"; }else{ $extra_style = ""; } ?> <div class="<?php echo $span;?> jd_padding_bottom_20_desktop jd_padding_top_10" style="<?php echo $extra_style;?>"> <div class="jd_predefined_box jd_width_100_percentage jd_float_left jd_padding_0_responsive jd_padding_bottom_20_important_responsive jd_padding_right_15 jd_box_sizing_border_box jd_width_100_percentage_responsive"> <input type="radio" name="rd_amount" class="<?php echo $extraValidateClass; ?>" value="<?php echo $amount; ?>" <?php echo $checked ; ?> onclick="clearTextbox();" data-errormessage="<?php echo JText::_('JD_AMOUNT_IS_REQUIRED'); ?>" /><?php echo ' '.DonationHelperHtml::formatAmount($this->config, $amount);?> <?php if (isset($explanations[$i]) && trim($explanations[$i]) != "") { if($this->config->show_brackets) { echo ' <span class="amount_explaination">[ '.$explanations[$i].' ]</span> ' ; } else { echo ' <span class="amount_explaination">'.$explanations[$i].'</span> ' ; } } ?> </div> </div> <?php } ?> </div> <?php } else { $options = array() ; $options[] = JHtml::_('select.option', 0, JText::_('JD_AMOUNT')) ; for ($i = 0 , $n = count($amounts) ; $i < $n ; $i++) { $amount = (float)$amounts[$i] ; if ($amount == $this->rdAmount) { $amountSelected = true; } if (isset($explanations[$i]) && $explanations[$i]) { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)." [$explanations[$i]]") ; } else { $options[] = JHtml::_('select.option', $amount, DonationHelperHtml::formatAmount($this->config, $amount)) ; } } echo $this->config->currency_symbol.' '.JHtml::_('select.genericlist', $options, 'rd_amount', ' class="'.$extraValidateClass.' '. $inputLargeClass.' form-select" onchange="clearTextbox();" ', 'value', 'text', $this->rdAmount).'<br /><br />'; } } ?> <div class="<?php echo $rowFluidClass?>"> <?php if ($this->config->display_amount_textbox) { if ($this->config->donation_amounts) { $placeHolder = JText::_('JD_OTHER_AMOUNT'); } else { $placeHolder = ''; } if ($amountSelected) { $amountCssClass = ' '.$inputMediumClass; } else { $amountCssClass = ' '.$inputMediumClass; } if ($this->config->currency_position == 0) { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span4Class?>"> <?php echo $bootstrapHelper->getPrependAddon($input,$addons); ?> </div> <?php } else { $addons = $this->config->currency_symbol; $input = '<input type="text" placeholder="'.$placeHolder.'" class="'.$amountCssClass.'" name="amount" id="amount" value="'.$this->amount.'" onchange="deSelectRadio();" data-errormessage="'.JText::_('JD_AMOUNT_IS_REQUIRED').'" data-errormessage-range-underflow="'.JText::sprintf('JD_MIN_DONATION_AMOUNT_ALLOWED', $this->config->minimum_donation_amount).'" data-errormessage-range-overflow="'.JText::sprintf('JD_MAX_DONATION_AMOUNT_ALLOWED', $this->config->maximum_donation_amount).'" />'; ?> <div class="<?php echo $span4Class?>"> <?php echo $bootstrapHelper->getAppendAddon($input,$addons); ?> </div> <?php } } if ($this->config->currency_selection && (($this->config->activate_campaign_currency && $this->campaignId > 0 && $this->campaign->currency == "") || (int) $this->campaignId == 0)) { ?> <div class="<?php echo $span3Class;?>" id="currency_selection"> <?php echo $this->lists['currency_code']; ?> </div> <?php } ?> </div> </div> <div style="display:none;" id="recurringFrequencyBackup"> <?php if (count((array)$this->recurringFrequencies) > 1) { echo $this->lists['r_frequency']; } else { $frequency = $this->recurringFrequencies[0]; switch($frequency) { case 'd': echo JText::_('JD_DAILY'); break; case 'w': echo JText::_('JD_WEEKLY'); break; case 'b': echo JText::_('JD_BI_WEEKLY'); break; case 'm': echo JText::_('JD_MONTHLY'); break; case 'q': echo JText::_('JD_QUARTERLY'); break; case 's': echo JText::_('JD_SEMI_ANNUALLY'); break; case 'a': echo JText::_('JD_ANNUALLY'); break; } ?> <input type="hidden" name="r_frequency" value="<?php echo $frequency; ?>" /> <?php } ?> </div> <!-- <script type="text/javascript"> jQuery('body').on('keydown', 'input, select, textarea', function(e) { var self = jQuery(this) , form = self.parents('form:eq(0)') , focusable , next ; if (e.keyCode == 13) { focusable = form.find('input,a,select,button,textarea').filter(':visible'); next = focusable.eq(focusable.index(this)+1); if (next.length) { next.focus(); } else { form.submit(); } return false; } }); </script> --> <script type="text/javascript"> (function (document, $) { $(document).ready(function () { // This is here for backward compatible purpose JDMaskInputs(document.getElementById('os_form')); }); })(document, jQuery); </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.01 |
proxy
|
phpinfo
|
ÐаÑтройка