Commit 6d533cf7 authored by l26yan's avatar l26yan
Browse files

ISTWCMS-2636 Remove displaying address via event node template file

parent 7b730e3c
......@@ -123,67 +123,9 @@
<?php
// Hide the comments and links now so that render them later.
hide($content['comments']);
hide($content['links']);
hide($content['field_event_location']);
hide($content['field_event_map_link']);
hide($content['field_uw_event_tag']);
hide($content['links']);;
print render($content);
?>
<?php
$loc_address = '<div class="field field_event_location">';
if (isset($content['field_event_location']['#title'])):
$loc_title = '<div class="field-label">' . $content['field_event_location']['#title'] . '</div>';
$loc_address .= $loc_title;
endif;
$location = $content['field_event_location']['#object'];
$loc_address .= '<div class="field-data"><div class="field-item-switch"><div class="field-item"><div class="location vcard"><div class="adr">';
if (isset($location->field_event_location[LANGUAGE_NONE][0]['name'])):
$loc_address .= '<span class="fn">' . $location->field_event_location[LANGUAGE_NONE][0]['name'] . '</span>';
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['city']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['province_name']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['postal_code']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['country_name'])):
$loc_address .= '<div class="address-content">';
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['street'])):
$loc_address .= '<div class="street-address">' . $location->field_event_location[LANGUAGE_NONE][0]['street'] . '</div>';
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['city'])):
$loc_address .= '<span class="locality">' . $location->field_event_location[LANGUAGE_NONE][0]['city'] . '</span>, ';
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['province'])):
$loc_address .= '<span class="region">' . $location->field_event_location[LANGUAGE_NONE][0]['province'] . '</span>';
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['postal_code'])):
$loc_address .= ' <span class="postal-code">' . $location->field_event_location[LANGUAGE_NONE][0]['postal_code'];
endif;
if (isset($location->field_event_location[LANGUAGE_NONE][0]['country_name'])):
$loc_address .= '<div class="country-name">' . $location->field_event_location[LANGUAGE_NONE][0]['country_name'] . '</div>';
endif;
$loc_address .= '</div></div></div></div></div></div>';
if (isset($location->field_event_location[LANGUAGE_NONE][0]['city']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['province_name']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['postal_code']) ||
isset($location->field_event_location[LANGUAGE_NONE][0]['country_name'])):
$loc_address .= '</div></div></div></div></div></div></div>';
endif;
print $loc_address;
print render($content['field_event_location']);
print render($content['field_event_map_link']);
print render($content['field_uw_event_tag']);
?>
</div>
<?php endif; ?>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment