From 244bf45a5791403d59e0c81cc1fa59639592a607 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 26 Oct 2016 15:15:17 -0400 Subject: [PATCH] multicurrency - delete old D6 module --- .../modules/multicurrency/multicurrency.info | 7 - .../multicurrency/multicurrency.module | 240 ------------------ .../multicurrency.module.discount | 197 -------------- .../multicurrency.module.original | 90 ------- .../Event/Form/Registration/4/Register.tpl | 195 -------------- .../Event/Form/Registration/8/Register.tpl | 195 -------------- .../templates/CRM/Event/Page/4/EventInfo.tpl | 83 ------ .../templates/CRM/Event/Page/8/EventInfo.tpl | 83 ------ 8 files changed, 1090 deletions(-) delete mode 100755 tools/drupal/modules/multicurrency/multicurrency.info delete mode 100644 tools/drupal/modules/multicurrency/multicurrency.module delete mode 100644 tools/drupal/modules/multicurrency/multicurrency.module.discount delete mode 100644 tools/drupal/modules/multicurrency/multicurrency.module.original delete mode 100644 tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/4/Register.tpl delete mode 100644 tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/8/Register.tpl delete mode 100644 tools/drupal/modules/multicurrency/templates/CRM/Event/Page/4/EventInfo.tpl delete mode 100644 tools/drupal/modules/multicurrency/templates/CRM/Event/Page/8/EventInfo.tpl diff --git a/tools/drupal/modules/multicurrency/multicurrency.info b/tools/drupal/modules/multicurrency/multicurrency.info deleted file mode 100755 index 5d9dfefb85..0000000000 --- a/tools/drupal/modules/multicurrency/multicurrency.info +++ /dev/null @@ -1,7 +0,0 @@ -name = Multi Currency Support for CiviCRM -description = Multi Currency Support for a specific Event -version = 3.4 -dependencies[] = civicrm -package = CiviCRM -core = 6.x -php = 5.2 diff --git a/tools/drupal/modules/multicurrency/multicurrency.module b/tools/drupal/modules/multicurrency/multicurrency.module deleted file mode 100644 index 62d9f526db..0000000000 --- a/tools/drupal/modules/multicurrency/multicurrency.module +++ /dev/null @@ -1,240 +0,0 @@ -getVar('_eventId') == MULTICURRENCY_EVENT_ID_1) || - ($form->getVar('_eventId') == MULTICURRENCY_EVENT_ID_2) - ) - ) { - multicurrency_set_currency($form); - } - - //------- Coupon field --------// - if ($formName == 'CRM_Event_Form_Registration_Register' && - (($form->getVar('_eventId') == DISCOUNT_EVENT_ID_1) || - ($form->getVar('_eventId') == DISCOUNT_EVENT_ID_2) - ) - ) { - $form->addElement('text', 'discountCode', ts('Discount Code')); - - // also assign to template - $template = &CRM_Core_Smarty::singleton(); - $beginHookFormElements = $template->get_template_vars('beginHookFormElements'); - if (!$beginHookFormElements) { - $beginHookFormElements = array(); - } - $beginHookFormElements[] = 'discountCode'; - //$form->assign( 'beginHookFormElements', $beginHookFormElements ); - - $discountCode = CRM_Utils_Request::retrieve('discountCode', 'String', $form, FALSE, NULL, $_REQUEST); - if ($discountCode) { - $defaults = array('discountCode' => $discountCode); - $form->setDefaults($defaults); - } - } -} - -/** - * @param $form - * - * @return string - */ -function multicurrency_set_currency(&$form) { - static $processed = FALSE; - - if ($processed) { - return; - } - - $processed = TRUE; - $currency = CRM_Utils_Request::retrieve('currency', 'String', $form, FALSE, 'GBP'); - $config = &CRM_Core_Config::singleton(); - if (strtoupper($currency) == 'EUR') { - $config->defaultCurrency = 'EUR'; - } - else { - $config->defaultCurrency = 'GBP'; - } - - return $config->defaultCurrency; -} - -/** - * @param $pageType - * @param $form - * @param $amount - */ -function multicurrency_civicrm_buildAmount($pageType, - &$form, - &$amount -) { - - // only modify the event pages for the UK event - if (($form->getVar('_eventId') == MULTICURRENCY_EVENT_ID_1) || - ($form->getVar('_eventId') == MULTICURRENCY_EVENT_ID_2) - ) { - $currency = multicurrency_set_currency($form); - - // as of may 5th: 1 USD = 0.75 EUR, 1 USD = 0.667 GBP - $ratio = ($currency == 'EUR') ? 0.75 : (2.0 / 3.0); - - foreach ($amount as $amountID => & $amountInfo) { - $amountInfo['value'] = ceil($amountInfo['value'] * $ratio); - } - } - - //---- DISCOUNT Code ----// - $eventID = $form->getVar('_eventId'); - if ($pageType != 'event' || - ($eventID != DISCOUNT_EVENT_ID_1 && $eventID != DISCOUNT_EVENT_ID_2) - ) { - return; - } - - $discountCode = CRM_Utils_Request::retrieve('discountCode', 'String', $form, FALSE, NULL, $_REQUEST); - if (!$discountCode) { - return; - } - - list($discountID, $discountPercent, $discountNumber) = _multicurrency_discountHelper($eventID, $discountCode); - if ($discountNumber <= 0) { - // no more discount left - return; - } - - foreach ($amount as $amountId => $amountInfo) { - $amount[$amountId]['value'] = $amount[$amountId]['value'] - ceil($amount[$amountId]['value'] * $discountPercent / 100); - $amount[$amountId]['label'] = $amount[$amountId]['label'] . "\t - with {$discountPercent}% discount"; - } -} - -/** - * @param $page - */ -function multicurrency_civicrm_pageRun(&$page) { - - if ($page->getVar('_name') == 'CRM_Event_Page_EventInfo' && - (($page->getVar('_id') == MULTICURRENCY_EVENT_ID_1) || - ($page->getVar('_id') == MULTICURRENCY_EVENT_ID_2) - ) - ) { - multicurrency_set_currency($page); - } -} - -//---- Discount using codes ------// -/** - * @param $eventID - * @param $discountCode - * - * @return array - */ -function _multicurrency_discountHelper($eventID, $discountCode) { - $sql = " -SELECT v.id as id, v.value as value, v.weight as weight -FROM civicrm_option_value v, - civicrm_option_group g -WHERE v.option_group_id = g.id -AND v.name = %1 -AND g.name = %2 - -"; - $params = array(1 => array($discountCode, 'String'), - 2 => array("event_discount_{$eventID}", 'String'), - ); - $dao = CRM_Core_DAO::executeQuery($sql, $params); - if ($dao->fetch()) { - // ensure discountPercent is a valid numeric number <= 100 - if ($dao->value && - is_numeric($dao->value) && - $dao->value >= 0 && - $dao->value <= 100 && - is_numeric($dao->weight) - ) { - return array($dao->id, $dao->value, $dao->weight); - } - } - return array(NULL, NULL, NULL); -} - -/* - * The hook updates the random code used with event signup. - */ -/** - * @param $class - * @param $form - */ -function multicurrency_civicrm_postProcess($class, &$form) { - $eventID = $form->getVar('_eventId'); - if (!is_a($form, 'CRM_Event_Form_Registration_Confirm') || - ($eventID != DISCOUNT_EVENT_ID_1 && $eventID != DISCOUNT_EVENT_ID_2) - ) { - return; - } - - $discountCode = CRM_Utils_Request::retrieve('discountCode', 'String', $form, FALSE, NULL, $_REQUEST); - if (!$discountCode) { - return; - } - - list($discountID, $discountPercent, $discountNumber) = _multicurrency_discountHelper($eventID, $discountCode); - if (!$discountID || - $discountNumber <= 0 || - $discountNumber == 123456789 - ) { - return; - } - - $query = " -UPDATE civicrm_option_value v -SET v.weight = v.weight - 1 -WHERE v.id = %1 -AND v.weight > 0 -"; - $params = array(1 => array($discountID, 'Integer')); - - CRM_Core_DAO::executeQuery($query, $params); -} - diff --git a/tools/drupal/modules/multicurrency/multicurrency.module.discount b/tools/drupal/modules/multicurrency/multicurrency.module.discount deleted file mode 100644 index 5abdd7ad9d..0000000000 --- a/tools/drupal/modules/multicurrency/multicurrency.module.discount +++ /dev/null @@ -1,197 +0,0 @@ -getVar( '_eventId' ) == MULTICURRENCY_EVENT_ID ) ) { - multicurrency_set_currency( $form ); - } - - //------- Coupon field --------// - if ( $formName == 'CRM_Event_Form_Registration_Register' && - $form->getVar( '_eventId' ) == DISCOUNT_EVENT_ID ) { - $form->addElement( 'text', 'discountCode', ts( 'Discount Code' ) ); - - // also assign to template - $template =& CRM_Core_Smarty::singleton( ); - $beginHookFormElements = $template->get_template_vars( 'beginHookFormElements' ); - if ( ! $beginHookFormElements ) { - $beginHookFormElements = array( ); - } - $beginHookFormElements[] = 'discountCode'; - $form->assign( 'beginHookFormElements', $beginHookFormElements ); - - $discountCode = CRM_Utils_Request::retrieve( 'discountCode', 'String', $form, false, null, $_REQUEST ); - if ( $discountCode ) { - $defaults = array( 'discountCode' => $discountCode ); - $form->setDefaults( $defaults ); - } - } -} - -function multicurrency_set_currency( &$form ) { - static $processed = false; - - if ( $processed ) { - return; - } - - $processed = true; - $currency = CRM_Utils_Request::retrieve( 'currency', 'String', $form, false, 'GBP' ); - $config =& CRM_Core_Config::singleton( ); - if ( strtoupper( $currency ) == 'EUR' ) { - $config->defaultCurrency = 'EUR'; - } else { - $config->defaultCurrency = 'GBP'; - } - - return $config->defaultCurrency; -} - -function multicurrency_civicrm_buildAmount( $pageType, - &$form, - &$amount ) { - - // only modify the event pages for the UK event - if ( $form->getVar( '_eventId' ) == MULTICURRENCY_EVENT_ID ) { - $currency = multicurrency_set_currency( $form ); - - // as of may 5th: 1 USD = 0.75 EUR, 1 USD = 0.667 GBP - $ratio = ( $currency == 'EUR' ) ? 0.75 : ( 2.0 / 3.0 ); - - foreach ( $amount as $amountID =>& $amountInfo ) { - $amountInfo['value'] = ceil( $amountInfo['value'] * $ratio ); - } - } - - //---- DISCOUNT Code ----// - $eventID = $form->getVar( '_eventId' ); - if ( $pageType != 'event' || - $eventID != DISCOUNT_EVENT_ID ) { - return; - } - - $discountCode = CRM_Utils_Request::retrieve( 'discountCode', 'String', $form, false, null, $_REQUEST ); - if ( ! $discountCode ) { - return; - } - - list( $discountID, $discountPercent, $discountNumber ) = _multicurrency_discountHelper( $eventID, $discountCode ); - if ( $discountNumber <= 0 ) { - // no more discount left - return; - } - - foreach ( $amount as $amountId => $amountInfo ) { - $amount[$amountId]['value'] = $amount[$amountId]['value'] - - ceil($amount[$amountId]['value'] * $discountPercent / 100); - $amount[$amountId]['label'] = $amount[$amountId]['label'] . - "\t - with {$discountPercent}% discount"; - } -} - -function multicurrency_civicrm_pageRun( &$page ) { - - if ( $page->getVar( '_name' ) == 'CRM_Event_Page_EventInfo' && - $page->getVar( '_id' ) == MULTICURRENCY_EVENT_ID ) { - multicurrency_set_currency( $page ); - } - -} - -//---- Discount using codes ------// -function _multicurrency_discountHelper( $eventID, $discountCode ) { - $sql = " -SELECT v.id as id, v.value as value, v.weight as weight -FROM civicrm_option_value v, - civicrm_option_group g -WHERE v.option_group_id = g.id -AND v.name = %1 -AND g.name = %2 - -"; - $params = array( 1 => array( $discountCode , 'String' ), - 2 => array( "event_discount_{$eventID}", 'String' ) ); - $dao = CRM_Core_DAO::executeQuery( $sql, $params ); - if ( $dao->fetch( ) ) { - // ensure discountPercent is a valid numeric number <= 100 - if ( $dao->value && - is_numeric( $dao->value ) && - $dao->value >= 0 && - $dao->value <= 100 && - is_numeric( $dao->weight ) ) { - return array( $dao->id, $dao->value, $dao->weight ); - } - } - return array( null, null, null ); - -} - -/* - * The hook updates the random code used with event signup. - */ -function multicurrency_civicrm_postProcess( $class, &$form ) { - $eventID = $form->getVar( '_eventId' ); - if ( ! is_a($form, 'CRM_Event_Form_Registration_Confirm') || - $eventID != DISCOUNT_EVENT_ID ) { - return; - } - - $discountCode = CRM_Utils_Request::retrieve( 'discountCode', 'String', $form, false, null, $_REQUEST ); - if ( ! $discountCode ) { - return; - } - - list( $discountID, $discountPercent, $discountNumber ) = _multicurrency_discountHelper( $eventID, $discountCode ); - if ( ! $discountID || - $discountNumber <= 0 || - $discountNumber == 123456789 ) { - return; - } - - $query = " -UPDATE civicrm_option_value v -SET v.weight = v.weight - 1 -WHERE v.id = %1 -AND v.weight > 0 -"; - $params = array( 1 => array( $discountID, 'Integer' ) ); - - CRM_Core_DAO::executeQuery( $query, $params ); -} diff --git a/tools/drupal/modules/multicurrency/multicurrency.module.original b/tools/drupal/modules/multicurrency/multicurrency.module.original deleted file mode 100644 index 89b34ba74c..0000000000 --- a/tools/drupal/modules/multicurrency/multicurrency.module.original +++ /dev/null @@ -1,90 +0,0 @@ -getVar( '_eventId' ) == MULTICURRENCY_EVENT_ID ) ) { - multicurrency_set_currency( $form ); - } -} - -function multicurrency_set_currency( &$form ) { - static $processed = false; - - if ( $processed ) { - return; - } - - $processed = true; - $currency = CRM_Utils_Request::retrieve( 'currency', 'String', $form, false, 'GBP' ); - $config =& CRM_Core_Config::singleton( ); - if ( strtoupper( $currency ) == 'EUR' ) { - $config->defaultCurrency = 'EUR'; - } else { - $config->defaultCurrency = 'GBP'; - } - - return $config->defaultCurrency; -} - -function multicurrency_civicrm_buildAmount( $pageType, - &$form, - &$amount ) { - - // only modify the event pages for the UK event - if ( $form->getVar( '_eventId' ) == MULTICURRENCY_EVENT_ID ) { - $currency = multicurrency_set_currency( $form ); - - // as of may 5th: 1 USD = 0.75 EUR, 1 USD = 0.667 GBP - $ratio = ( $currency == 'EUR' ) ? 0.75 : ( 2.0 / 3.0 ); - - foreach ( $amount as $amountID =>& $amountInfo ) { - $amountInfo['value'] = ceil( $amountInfo['value'] * $ratio ); - } - } -} - -function multicurrency_civicrm_pageRun( &$page ) { - - if ( $page->getVar( '_name' ) == 'CRM_Event_Page_EventInfo' && - $page->getVar( '_id' ) == MULTICURRENCY_EVENT_ID ) { - multicurrency_set_currency( $page ); - } - -} - diff --git a/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/4/Register.tpl b/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/4/Register.tpl deleted file mode 100644 index 73fea2f39d..0000000000 --- a/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/4/Register.tpl +++ /dev/null @@ -1,195 +0,0 @@ -{if $action & 1024} - {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"} -{/if} - -
-{if $event.intro_text} -
-

{$event.intro_text}

-
-{/if} - -{if $priceSet} -
{$event.fee_label} -
-{if $priceSet.help_pre} -
 
-
{$priceSet.help_pre}
-{/if} - {foreach from=$priceSet.fields item=element key=field_id} - {if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line} - {assign var="element_name" value=price_$field_id} -
{$form.$element_name.label}
-
- {assign var="count" value="1"} - - - {foreach name=outer key=key item=item from=$form.$element_name} - {if is_numeric($key) } - - {if $count == $element.options_per_line} - {assign var="count" value="1"} - - - {else} - {assign var="count" value=`$count+1`} - {/if} - {/if} - {/foreach} - -
{$form.$element_name.$key.html}
-
- {else} - {assign var="name" value=`$element.name`} - {assign var="element_name" value="price_"|cat:$field_id} -
{$form.$element_name.label}
-
 {$form.$element_name.html}
- {/if} - {if $element.help_post} -
 
-
{$element.help_post}
- {/if} - {/foreach} -
-
-
{include file="CRM/Event/Form/CalculatePriceset.tpl"}
-
-{if $priceSet.help_post} -
 
-
{$priceSet.help_post}
-{/if} -
-
-
- {if $form.is_pay_later} -
 
-
{$form.is_pay_later.html} {$form.is_pay_later.label}
- {/if} -
-{else} - {if $paidEvent} -
-{if $config->defaultCurrency eq 'EUR'} -{ts}If you want to pay in pounds, click {/ts}{ts}here{/ts} -{else} -{ts}If you want to pay in euros, click {/ts}{ts}here{/ts} -{/if} - -
- - - - - - {if $form.is_pay_later} - - - - - {/if} -
{$event.fee_label} * {$form.amount.html}
  {$form.is_pay_later.html} {$form.is_pay_later.label}
- {/if} -{/if} - -{assign var=n value=email-$bltID} - - -
{$form.$n.label}{$form.$n.html}
- {if $form.additional_participants.html} -
- {/if} - - -{* User account registration option. Displays if enabled for one of the profiles on this page. *} -{include file="CRM/common/CMSUser.tpl"} - -{include file="CRM/UF/Form/Block.tpl" fields=$customPre} - -{if $paidEvent} - {include file='CRM/Core/BillingBlock.tpl'} -{/if} - -{include file="CRM/UF/Form/Block.tpl" fields=$customPost} - -{if $isCaptcha} - {include file='CRM/common/ReCAPTCHA.tpl'} -{/if} - -
-{* Put PayPal Express button after customPost block since it's the submit button in this case. *} -{if $paymentProcessor.payment_processor_type EQ 'PayPal_Express'} - {assign var=expressButtonName value='_qf_Register_upload_express'} -
{ts}Checkout with PayPal{/ts} - - - -
{ts}Click the PayPal button to continue.{/ts}
{$form.$expressButtonName.html} {ts}Checkout securely. Pay without sharing your financial information.{/ts}
-
-{/if} -
- -
- {$form.buttons.html} -
- - {if $event.footer_text} - - {/if} -
- -{* Hide Credit Card Block and Billing information if registration is pay later. *} -{if $form.is_pay_later and $hidePaymentInformation} -{include file="CRM/common/showHideByFieldValue.tpl" - trigger_field_id ="is_pay_later" - trigger_value ="" - target_element_id ="payment_information" - target_element_type ="table-row" - field_type ="radio" - invert = 1 -} -{/if} -{literal} - -{/literal} diff --git a/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/8/Register.tpl b/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/8/Register.tpl deleted file mode 100644 index 73fea2f39d..0000000000 --- a/tools/drupal/modules/multicurrency/templates/CRM/Event/Form/Registration/8/Register.tpl +++ /dev/null @@ -1,195 +0,0 @@ -{if $action & 1024} - {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"} -{/if} - -
-{if $event.intro_text} -
-

{$event.intro_text}

-
-{/if} - -{if $priceSet} -
{$event.fee_label} -
-{if $priceSet.help_pre} -
 
-
{$priceSet.help_pre}
-{/if} - {foreach from=$priceSet.fields item=element key=field_id} - {if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line} - {assign var="element_name" value=price_$field_id} -
{$form.$element_name.label}
-
- {assign var="count" value="1"} - - - {foreach name=outer key=key item=item from=$form.$element_name} - {if is_numeric($key) } - - {if $count == $element.options_per_line} - {assign var="count" value="1"} - - - {else} - {assign var="count" value=`$count+1`} - {/if} - {/if} - {/foreach} - -
{$form.$element_name.$key.html}
-
- {else} - {assign var="name" value=`$element.name`} - {assign var="element_name" value="price_"|cat:$field_id} -
{$form.$element_name.label}
-
 {$form.$element_name.html}
- {/if} - {if $element.help_post} -
 
-
{$element.help_post}
- {/if} - {/foreach} -
-
-
{include file="CRM/Event/Form/CalculatePriceset.tpl"}
-
-{if $priceSet.help_post} -
 
-
{$priceSet.help_post}
-{/if} -
-
-
- {if $form.is_pay_later} -
 
-
{$form.is_pay_later.html} {$form.is_pay_later.label}
- {/if} -
-{else} - {if $paidEvent} -
-{if $config->defaultCurrency eq 'EUR'} -{ts}If you want to pay in pounds, click {/ts}{ts}here{/ts} -{else} -{ts}If you want to pay in euros, click {/ts}{ts}here{/ts} -{/if} - -
- - - - - - {if $form.is_pay_later} - - - - - {/if} -
{$event.fee_label} * {$form.amount.html}
  {$form.is_pay_later.html} {$form.is_pay_later.label}
- {/if} -{/if} - -{assign var=n value=email-$bltID} - - -
{$form.$n.label}{$form.$n.html}
- {if $form.additional_participants.html} -
- {/if} - - -{* User account registration option. Displays if enabled for one of the profiles on this page. *} -{include file="CRM/common/CMSUser.tpl"} - -{include file="CRM/UF/Form/Block.tpl" fields=$customPre} - -{if $paidEvent} - {include file='CRM/Core/BillingBlock.tpl'} -{/if} - -{include file="CRM/UF/Form/Block.tpl" fields=$customPost} - -{if $isCaptcha} - {include file='CRM/common/ReCAPTCHA.tpl'} -{/if} - -
-{* Put PayPal Express button after customPost block since it's the submit button in this case. *} -{if $paymentProcessor.payment_processor_type EQ 'PayPal_Express'} - {assign var=expressButtonName value='_qf_Register_upload_express'} -
{ts}Checkout with PayPal{/ts} - - - -
{ts}Click the PayPal button to continue.{/ts}
{$form.$expressButtonName.html} {ts}Checkout securely. Pay without sharing your financial information.{/ts}
-
-{/if} -
- -
- {$form.buttons.html} -
- - {if $event.footer_text} - - {/if} -
- -{* Hide Credit Card Block and Billing information if registration is pay later. *} -{if $form.is_pay_later and $hidePaymentInformation} -{include file="CRM/common/showHideByFieldValue.tpl" - trigger_field_id ="is_pay_later" - trigger_value ="" - target_element_id ="payment_information" - target_element_type ="table-row" - field_type ="radio" - invert = 1 -} -{/if} -{literal} - -{/literal} diff --git a/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/4/EventInfo.tpl b/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/4/EventInfo.tpl deleted file mode 100644 index d215b86277..0000000000 --- a/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/4/EventInfo.tpl +++ /dev/null @@ -1,83 +0,0 @@ -{* this template is used for displaying event information *} - -
-

{$event.title}

-
- - {if $event.summary} - - {/if} - {if $event.description} - - {/if} - - - - - {if $isShowLocation} - {if $location.1.name || $location.1.address} - - - - {/if} - {/if}{*End of isShowLocation condition*} - - {if $location.1.phone.1.phone || $location.1.email.1.email} - - - - {/if} -
{$event.summary}
- {$event.description}
- - {$event.event_start_date|crmDate} - - {if $event.event_end_date} -   {ts}through{/ts}   - {* Only show end time if end date = start date *} - {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} - - {$event.event_end_date|crmDate:0:1} - - {else} - - {$event.event_end_date|crmDate} - - {/if} - {/if} -
- {if $location.1.name} - {$location.1.name}
- {/if} - {$location.1.address.display|nl2br} - {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $location.1.address.city AND $location.1.address.state_province ) ) ) } -
{ts}Map this Location{/ts} - {/if} -
{* loop on any phones and emails for this event *} - {foreach from=$location.1.phone item=phone} - {if $phone.phone} - {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: - {$phone.phone}
- {/if} - {/foreach} - - {foreach from=$location.1.email item=email} - {if $email.email} - {ts}Email:{/ts} - {/if} - {/foreach} -
- - {include file="CRM/Custom/Page/CustomDataView.tpl"} - - {* Show link to Event Registration page if event if configured for online reg AND we are NOT coming from Contact Dashboard (CRM-2046) *} - {if $is_online_registration AND $context NEQ 'dashboard'} - - {/if} - { if $event.is_public } -
{include file="CRM/Event/Page/iCalLinks.tpl"} - {/if} -
-
diff --git a/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/8/EventInfo.tpl b/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/8/EventInfo.tpl deleted file mode 100644 index d215b86277..0000000000 --- a/tools/drupal/modules/multicurrency/templates/CRM/Event/Page/8/EventInfo.tpl +++ /dev/null @@ -1,83 +0,0 @@ -{* this template is used for displaying event information *} - -
-

{$event.title}

-
- - {if $event.summary} - - {/if} - {if $event.description} - - {/if} - - - - - {if $isShowLocation} - {if $location.1.name || $location.1.address} - - - - {/if} - {/if}{*End of isShowLocation condition*} - - {if $location.1.phone.1.phone || $location.1.email.1.email} - - - - {/if} -
{$event.summary}
- {$event.description}
- - {$event.event_start_date|crmDate} - - {if $event.event_end_date} -   {ts}through{/ts}   - {* Only show end time if end date = start date *} - {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} - - {$event.event_end_date|crmDate:0:1} - - {else} - - {$event.event_end_date|crmDate} - - {/if} - {/if} -
- {if $location.1.name} - {$location.1.name}
- {/if} - {$location.1.address.display|nl2br} - {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $location.1.address.city AND $location.1.address.state_province ) ) ) } -
{ts}Map this Location{/ts} - {/if} -
{* loop on any phones and emails for this event *} - {foreach from=$location.1.phone item=phone} - {if $phone.phone} - {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: - {$phone.phone}
- {/if} - {/foreach} - - {foreach from=$location.1.email item=email} - {if $email.email} - {ts}Email:{/ts} - {/if} - {/foreach} -
- - {include file="CRM/Custom/Page/CustomDataView.tpl"} - - {* Show link to Event Registration page if event if configured for online reg AND we are NOT coming from Contact Dashboard (CRM-2046) *} - {if $is_online_registration AND $context NEQ 'dashboard'} - - {/if} - { if $event.is_public } -
{include file="CRM/Event/Page/iCalLinks.tpl"} - {/if} -
-
-- 2.25.1