<!-- Video popup box section start --> <?php if (get_organizer_video()) { ?> <div class="text-center"> <a id="event-watch-video-button" class="link-button" data-toggle="modal" ><?php _e('Watch Video', 'gam-event-manager'); ?> </a> </div> <div class="modal fade" id="watch-video-modal" tabindex="-1" role="dialog" aria-labelledby="organizer-watch-video-modal-dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <span class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×</span> <h4 class="modal-title" id="organizer-watch-video-modal-dialog"><?php _e('Watch Video', 'gam-event-manager'); ?> </h4> </div> <div class="modal-body"> <?php echo wp_oembed_get(display_organizer_video(), array('autoplay' => 1, 'rel' => 0)); ?> </div> </div> </div> </div>
* display_event_banner function. * * @access public * @param string $size (default: 'full') * @param mixed $default (default: null) * @return void */ function display_event_banner($size = 'full', $default = null, $post = null) { $banner = get_event_banner($post); if (!empty($banner) && (strstr($banner, 'http') || file_exists($banner))) { if ($size !== 'full') { $banner = event_manager_get_resized_image($banner, $size); } echo '<img src="' . esc_attr($banner) . '" alt="' . esc_attr(get_organizer_name($post)) . '" />';