Commit 0f8983ed authored by m26lebla's avatar m26lebla
Browse files

ISTWCMS-2139: Fixing date display

parent 74aa9e81
......@@ -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 ?>&nbsp;</div>
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>&nbsp;</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>
Markdown is supported
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