예제 #1
0
        $event_date_end = get_post_meta($event_id, 'event_datetime_end', true);
        $date_formatted = get_single_event_widget_formatted_date($event_date_start, $event_date_end);
        echo '<div class="col-md-3 col-sm-6 passed ' . esc_attr($event_type) . '">';
        echo '<div class="square-box">';
        echo '<div class="square-content-wrap">';
        echo '<a href="' . esc_url($permalink) . '">';
        echo '<span class="event-wrap">';
        echo '<div class="event-date">' . $date_formatted . '</div>';
        echo '<div class="event-img"></div>';
        echo '<div class="event-title">' . wp_trim_words(get_the_title($event_id), 4, '') . '</div>';
        echo '</span>';
        echo '</a>';
        echo '</div>';
        echo '</div>';
        echo '</div>';
    }
}
?>

				<!--CALENDAR -->
				<div class="col-md-3 col-sm-6 calendar">
					<div class="square-box">
						<div class="square-content-wrap">
								<?php 
oplb_events_get_calendar();
?>
							</a>
						</div>
					</div>
				</div>
	</div>
예제 #2
0
    function widget($args, $instance)
    {
        extract($args);
        ?>
			<?php 
        echo '<div class="col-lg-3 col-sm-3 focus-box events-calendar" data-scrollreveal="enter left after 0.15s over 1s" data-sr-init="true" data-sr-complete="true">';
        ?>
				<?php 
        echo $before_widget;
        ?>
						<div class="widget-events-calendar">
							<div id="calendar_wrap">
								<?php 
        oplb_events_get_calendar();
        ?>
							</div>
						</div>
				<?php 
        echo $after_widget;
        ?>
			<?php 
        echo '</div>';
        ?>
        <?php 
    }