Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_ct_event
Commits
0f8983ed
Commit
0f8983ed
authored
Jul 14, 2017
by
m26lebla
Browse files
ISTWCMS-2139: Fixing date display
parent
74aa9e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/field--uw-event.tpl.php
View file @
0f8983ed
...
...
@@ -53,23 +53,24 @@
<div
class=
"field
<?php
print
$element
[
'#field_name'
]
?>
field-label-
<?php
print
$element
[
'#label_display'
];
?>
clearfix"
<?php
print
$attributes
;
?>
>
<?php
if
(
!
$label_hidden
)
:
?>
<div
class=
"field-label"
<?php
print
$title_attributes
;
?>
>
<?php
print
$label
?>
</div>
<div
class=
"field-label"
<?php
print
$title_attributes
;
?>
>
<?php
print
$label
?>
</div>
<?php
endif
;
?>
<div
class=
"field-data
<?php
if
(
count
(
$items
)
>
1
)
:
print
'multiple'
;
endif
;
?>
"
<?php
print
$content_attributes
;
?>
>
<?php
if
(
count
(
$items
)
>
1
)
:
?>
<?php
if
(
$element
[
'#field_name'
]
===
'field_event_date'
)
:
?>
<input
tabindex=
"-1"
id=
"CheckboxSwitchE1"
type=
"checkbox"
>
<div
class=
"switchable"
>
<label
id=
"CheckboxSwitchE1L"
aria-checked=
"false"
tabindex=
"0"
for=
"CheckboxSwitchE1"
>
<span
class=
"hide"
>
HIDE
</span>
<span
class=
"show"
>
SHOW ALL
</span>
</label>
</div>
<div
class=
"field-item-switch"
>
<?php
endif
;
?>
<?php
if
(
$element
[
'#field_name'
]
===
'field_event_date'
)
:
?>
<input
tabindex=
"-1"
id=
"CheckboxSwitchE1"
type=
"checkbox"
>
<div
class=
"switchable"
>
<label
id=
"CheckboxSwitchE1L"
aria-checked=
"false"
tabindex=
"0"
for=
"CheckboxSwitchE1"
>
<span
class=
"hide"
>
HIDE
</span>
<span
class=
"show"
>
SHOW ALL
</span>
</label>
</div>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
foreach
(
$items
as
$delta
=>
$item
)
:
?>
<div
<?php
print
$item_attributes
[
$delta
];
?>
class=
"field-item"
>
<?php
print
render
(
$item
);
?>
</div>
<?php
endforeach
;
?>
<div
class=
"field-item-switch"
>
<?php
foreach
(
$items
as
$delta
=>
$item
)
:
?>
<div
<?php
print
$item_attributes
[
$delta
];
?>
class=
"field-item"
>
<?php
print
render
(
$item
);
?>
</div>
<?php
endforeach
;
?>
</div>
</div>
</div>
Write
Preview
Supports
Markdown
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