);
}
elseif ((is_numeric(CRM_Utils_Array::value('geo_code_1', $row))) ||
- ($config->mapGeoCoding && !empty($row['city']) &&
+ (!empty($row['city']) &&
CRM_Utils_Array::value('state_province', $row)
)
) {
);
}
elseif ((is_numeric(CRM_Utils_Array::value('geo_code_1', $row))) ||
- ($config->mapGeoCoding && !empty($row['city']) &&
+ (!empty($row['city']) &&
CRM_Utils_Array::value('state_province', $row)
)
) {
*/
public $geocodeMethod = '';
- /**
- *
- *
- * @var boolean
- */
- public $mapGeoCoding = 1;
-
-
/**
* Whether database-level logging should be performed
* @var boolean
$params = array('entity_id' => $dao->id, 'entity_table' => 'civicrm_event');
$values['location'] = CRM_Core_BAO_Location::getValues($params, TRUE);
if (is_numeric(CRM_Utils_Array::value('geo_code_1', $values['location']['address'][1])) ||
- ($config->mapGeoCoding &&
+ (
!empty($values['location']['address'][1]['city']) &&
!empty($values['location']['address'][1]['state_province_id'])
)
{if ( $event.is_map &&
$config->mapProvider &&
( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) ||
- ( $config->mapGeoCoding && !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) }
+ ( !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) }
<br/><a href="{crmURL p='civicrm/contact/map/event' q="reset=1&eid=`$event.id`"}" title="{ts}Map this Address{/ts}" target="_blank">{ts}Map this Location{/ts}</a>
{/if}
</td>
{if ( $event.is_map && $config->mapProvider &&
( is_numeric($location.address.1.geo_code_1) ||
- ( $config->mapGeoCoding && $location.address.1.city AND $location.address.1.state_province ) ) ) }
+ ( $location.address.1.city AND $location.address.1.state_province ) ) ) }
<div class="crm-section event_map-section">
<div class="content">
{assign var=showDirectly value="1"}
<span class="fn org">{$location.1.name}</span><br />
{/if}
{$location.1.address.display|nl2br}
- {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $config->mapGeoCoding && $location.1.address.city AND $location.1.address.state_province ) ) ) }
+ {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $location.1.address.city AND $location.1.address.state_province ) ) ) }
<br/><a href="{$mapURL}" title="{ts}Map this Address{/ts}">{ts}Map this Location{/ts}</a>
{/if}
</td>
<span class="fn org">{$location.1.name}</span><br />
{/if}
{$location.1.address.display|nl2br}
- {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $config->mapGeoCoding && $location.1.address.city AND $location.1.address.state_province ) ) ) }
+ {if ( $event.is_map && $config->mapAPIKey && ( is_numeric($location.1.address.geo_code_1) || ( $location.1.address.city AND $location.1.address.state_province ) ) ) }
<br/><a href="{$mapURL}" title="{ts}Map this Address{/ts}">{ts}Map this Location{/ts}</a>
{/if}
</td>