Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_ct_event
Commits
6d533cf7
Commit
6d533cf7
authored
Aug 30, 2018
by
l26yan
Browse files
ISTWCMS-2636 Remove displaying address via event node template file
parent
7b730e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
59 deletions
+1
-59
templates/node--uw-event.tpl.php
templates/node--uw-event.tpl.php
+1
-59
No files found.
templates/node--uw-event.tpl.php
View file @
6d533cf7
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment