<div id="intelliwidget_<?php the_intelliwidget_ID(); ?> " class="intelliwidget-multi-date clearfix"> <div class="intelliwidget-date-container"> <div class="intelliwidget-date"><span class="intelliwidget-month-start"> <?php the_intelliwidget_date('M'); ?> </span> <span class="intelliwidget-day-start"> <?php the_intelliwidget_date('j'); ?> </span></div> <?php if ($expm = get_the_intelliwidget_exp_date('M')) { ?> <strong><sup> — </sup></strong> <div class="intelliwidget-date"><span class="intelliwidget-month-end"> <?php echo $expm; ?> </span> <span class="intelliwidget-day-end"> <?php the_intelliwidget_exp_date('j'); ?> </span></div> <?php } ?> </div> <div class="intelliwidget-item">
/** * Display the event date if it exists otherwise display post date. */ function the_intelliwidget_exp_date($format = 'j') { if ($exp = get_the_intelliwidget_exp_date($format)) { echo $exp; } }