" class="basic-link"><?php echo $read_more_text; ?> </a><?php } ?> </div> </div> </li> <?php } elseif ($post_format == "video") { $video_code = ''; $video_option = get_post_meta(get_the_ID(), 'imic_post_video_option', true); if ($video_option == 1) { $video_url = get_post_meta(get_the_ID(), 'imic_gallery_video_url', true); $video_code = imic_video_embed($video_url, "500", "281"); } else { $mp4_video = get_post_meta(get_the_ID(), 'imic_post_mp4_video', false); $webm_video = get_post_meta(get_the_ID(), 'imic_post_webm_video', false); $ogg_video = get_post_meta(get_the_ID(), 'imic_post_ogg_video', false); if (!empty($mp4_video) || !empty($webm_video) || !empty($ogg_video)) { $self_video = array($mp4_video, $webm_video, $ogg_video); if (has_post_thumbnail(get_the_ID())) { $post_thumbnail_id = get_post_thumbnail_id(get_the_ID()); $url = wp_get_attachment_image_src($post_thumbnail_id); } if (has_post_thumbnail(get_the_ID())) { $video_code .= '<video width="640" height="360" id="player2" poster="' . $url[0] . '" class="video-player" controls preload="none">'; } $video_type = array('mp4', 'webm', 'ogg'); $i = 0;
function imic_fullscreen_video($atts, $content = null) { extract(shortcode_atts(array("videourl" => '', "fullwidth" => '', "autoplay" => 0), $atts)); $fw_video_output = ""; if (!empty($videourl)) { if ($fullwidth == "yes") { $fw_video_output .= '<div class="fw-video">' . imic_video_embed($videourl, 300, 200, $autoplay) . '</div>'; } else { $fw_video_output .= imic_video_embed($videourl, 300, 200, $autoplay); } } return $fw_video_output; }
$imic_sermons_pdf = get_post_meta(get_the_ID(), 'imic_sermons_Pdf', true); if (!empty($imic_sermons_pdf)) { $attach_pdf = wp_get_attachment_url($imic_sermons_pdf); echo '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_pdf . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download PDF', 'framework') . '" rel="tooltip"><i class="fa fa-book"></i></a>'; } ?> </div> <h2 class="post-title"><?php the_title(); ?> </h2> </header> <article class="post-content"> <?php if (!empty($custom['imic_sermons_url'][0])) { echo '<div class="video-container">' . imic_video_embed($custom['imic_sermons_url'][0], '200', '150') . '</div>'; } if (!empty($attach_full_audio)) { ?> <div class="audio-container"> <audio class="audio-player" src="<?php echo $attach_full_audio; ?> " type="audio/mp3" controls></audio> </div> <?php } while (have_posts()) { the_post(); the_content(); /** Sermon Tags * */
the_post(); $cat = get_the_category(); echo '<article class="post"> <div class="row"> <div class="col-md-3 col-sm-3"> <span class="post-meta meta-data"> <span><i class="fa fa-calendar"></i>' . get_the_time(get_option('date_format')) . '</span><span><i class="fa fa-archive"></i><a href ="' . get_category_link($cat[0]->term_id) . '">' . $cat[0]->name . '</a></span><span>'; comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework')); echo '</span></span> </div> <div class="col-md-9 col-sm-9"> <h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>'; switch (get_post_format()) { case 'video': $imic_gallery_video_url = get_post_meta(get_the_ID(), 'imic_gallery_video_url', true); if (!empty($imic_gallery_video_url)) { echo imic_video_embed($imic_gallery_video_url); } break; case 'audio': $imic_gallery_audio_display = get_post_meta(get_the_ID(), 'imic_gallery_audio_display', true); if ($imic_gallery_audio_display == 1) { $imic_gallery_audio = get_post_meta(get_the_ID(), 'imic_gallery_audio', true); if (!empty($imic_gallery_audio)) { echo $imic_gallery_audio; } } else { $imic_gallery_uploaded_audio = get_post_meta(get_the_ID(), 'imic_gallery_uploaded_audio', true); if (!empty($imic_gallery_uploaded_audio)) { $attach_full_audio = wp_get_attachment_url($imic_gallery_uploaded_audio); if (!empty($attach_full_audio)) { ?>
the_post(); $cat = get_the_category(); echo '<article class="post"> <div class="row"> <div class="col-md-3 col-sm-3"> <span class="post-meta meta-data"> <span><i class="fa fa-calendar"></i>' . get_the_time(get_option('date_format')) . '</span><span><i class="fa fa-archive"></i><a href ="' . get_category_link($cat[0]->term_id) . '">' . $cat[0]->name . '</a></span><span>'; comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework')); echo '</span></span> </div> <div class="col-md-9 col-sm-9"> <h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>'; switch (get_post_format()) { case 'video': $imic_gallery_video_url = get_post_meta(get_the_ID(), 'imic_gallery_video_url', true); if (!empty($imic_gallery_video_url)) { echo '<div class="fw-video">' . imic_video_embed($imic_gallery_video_url) . '</div>'; } break; case 'audio': $imic_gallery_audio_display = get_post_meta(get_the_ID(), 'imic_gallery_audio_display', true); if ($imic_gallery_audio_display == 1) { $imic_gallery_audio = get_post_meta(get_the_ID(), 'imic_gallery_audio', true); if (!empty($imic_gallery_audio)) { echo $imic_gallery_audio; } } else { $imic_gallery_uploaded_audio = get_post_meta(get_the_ID(), 'imic_gallery_uploaded_audio', true); if (!empty($imic_gallery_uploaded_audio)) { $attach_full_audio = wp_get_attachment_url($imic_gallery_uploaded_audio); if (!empty($attach_full_audio)) { ?>
function imic_video($atts, $content = null) { extract(shortcode_atts(array("url" => "", "width" => "", "height" => "", "full" => ""), $atts)); $video_code = imic_video_embed($url, $width, $height); if ($full == 0) { return $video_code; } else { return '<div class="fw-video">' . $video_code . '</div>'; } }
if (!empty($add_vimeo_video_url)) { ?> <div id="addvimeo" class="tab-pane"> <?php echo imic_video_embed($custom['imic_sermons_add_vimeo_url'][0], '200', '150'); ?> </div><?php } ?> <?php if (!empty($add_youtube_video_url)) { ?> <div id="addyoutube" class="tab-pane"> <?php echo imic_video_embed($custom['imic_sermons_add_youtube_url'][0], '200', '150'); ?> </div><?php } ?> <?php if (!empty($add_soundcloud_audio_url)) { ?> <div id="addsoundcloud" class="tab-pane"> <?php $soundcloud_audio_code = imic_audio_soundcloud($add_soundcloud_audio_url, "100%", 250); echo $soundcloud_audio_code; ?> </div><?php }
function widget($args, $instance) { $cache = array(); if (!$this->is_preview()) { $cache = wp_cache_get('sermon_list', 'widget'); } if (!is_array($cache)) { $cache = array(); } if (!isset($args['widget_id'])) { $args['widget_id'] = $this->id; } if (isset($cache[$args['widget_id']])) { echo $cache[$args['widget_id']]; return; } ob_start(); extract($args); // these are the widget options $post_title = apply_filters('widget_title', $instance['title']); $number = apply_filters('widget_number', $instance['number']); $numberEvent = !empty($number) ? $number : 4; $category = apply_filters('widget-category', empty($instance['category']) ? '' : $instance['category'], $instance, $this->id_base); $type = apply_filters('widget-type', empty($instance['type']) ? '' : $instance['type'], $instance, $this->id_base); $EventHeading = !empty($post_title) ? $post_title : __('Recent Sermons', 'imic-framework-admin'); echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title']; //echo apply_filters('widget_title',$EventHeading, $instance, $this->id_base); echo $args['after_title']; } query_posts(array('post_type' => 'sermon', 'posts_per_page' => $numberEvent, 'sermon-category' => $category)); $first = 1; if (have_posts()) { echo '<ul>'; while (have_posts()) { the_post(); $mp4_video = get_post_meta(get_the_ID(), 'imic_mp4_video', false); $webm_video = get_post_meta(get_the_ID(), 'imic_webm_video', false); $ogg_video = get_post_meta(get_the_ID(), 'imic_ogg_video', false); $vimeo_video = get_post_meta(get_the_ID(), 'imic_vimeo_video', true); $youtube_video = get_post_meta(get_the_ID(), 'imic_youtube_video', true); $post_author_id = get_post_meta(get_the_ID(), 'imic_sermon_speaker', false); $self_audio = get_post_meta(get_the_ID(), 'imic_self_audio', true); $download_pdf = get_post_meta(get_the_ID(), 'imic_pdf_url', true); $soundcloud_audio = get_post_meta(get_the_ID(), 'imic_soundcloud_audio', true); if ($first == 1) { echo '<li class="most-recent-sermon clearfix"> <h3>' . apply_filters('widget_title', $EventHeading, $instance, $this->id_base) . '</h3> <hr class="sm">'; echo '<div class="latest-sermon-video fw-video">'; if ($vimeo_video != '' || $youtube_video != '') { if ($vimeo_video != '') { $video_code = imic_video_embed($vimeo_video, "500", "281"); } else { $video_code = imic_video_embed($youtube_video, "500", "281"); } echo '' . $video_code . ''; } echo '</div>'; echo '<div class="latest-sermon-content"> <h4><a href="' . get_permalink() . '">' . get_the_title() . '</a></h4> <div class="meta-data">' . __('by ', 'framework'); $count = 1; foreach ($post_author_id as $speaker) { $sep = $count < count($post_author_id) ? ', ' : ''; echo get_the_title($speaker) . $sep; $count++; } echo '</div> ' . imic_excerpt(8) . ' </div> <div class="sermon-links"> <ul class="action-buttons">'; if (!empty($mp4_video) || !empty($webm_video) || !empty($ogg_video) || !empty($vimeo_video) || !empty($youtube_video)) { echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Watch Video', 'framework') . '"><i class="icon-video-cam"></i></a></li>'; } if ($self_audio != '' || $soundcloud_audio != '') { echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Listen Audio', 'framework') . '"><i class="icon-headphones"></i></a></li>'; } if ($self_audio != '') { echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Download Audio', 'framework') . '"><i class="icon-cloud-download"></i></a></li>'; } if ($download_pdf != '') { echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Download PDF', 'framework') . '"><i class="icon-download-folder"></i></a></li>'; } echo '</ul> </div> </li>'; } else { echo '<li> <a href="' . get_permalink() . '"><strong class="post-title">' . get_the_title() . '</strong></a> <div class="meta-data">' . __('by ', 'framework'); $count = 1; foreach ($post_author_id as $speaker) { $sep = $count < count($post_author_id) ? ', ' : ''; echo get_the_title($speaker) . $sep; $count++; } echo '</div> </li>'; } $first++; } echo '</ul>'; wp_reset_query(); } else { _e('No Sermons Found', 'imic-framework-admin'); } echo $args['after_widget']; if (!$this->is_preview()) { $cache[$args['widget_id']] = ob_get_flush(); wp_cache_set('sermon_list', $cache, 'widget'); } else { ob_end_flush(); } }
function widget($args, $instance) { global $wp_query; $temp_wp_query = clone $wp_query; extract($args); // these are the widget options $post_title = apply_filters('widget_title', $instance['title']); $number = apply_filters('widget_number', $instance['number']); $category = apply_filters('widget-category', empty($instance['category']) ? '' : $instance['category'], $instance, $this->id_base); $autoplay = isset($instance['autoplay']) ? $instance['autoplay'] : 0; $numberPost = !empty($number) ? $number : 3; echo $args['before_widget']; echo '<div class="listing sermons-listing">'; if (!empty($instance['title'])) { echo '<header class="listing-header">'; echo $args['before_title']; echo apply_filters('widget_title', $instance['title'], $instance, $this->id_base); echo $args['after_title']; echo '</header>'; } $posts = query_posts(array('order' => 'DESC', 'post_type' => 'sermons', 'sermons-category' => $category, 'posts_per_page' => $numberPost, 'post_status' => 'publish')); if (!empty($posts)) { echo '<section class="listing-cont"> <ul>'; $liFirst = $liOthers = ''; $flag = 0; foreach ($posts as $post) { /* check if content has sortcode video */ if (has_shortcode($post->post_content, 'fullscreenvideo')) { apply_filters('the_content', $post->post_content); $post->post_content = do_shortcode($post->post_content); } else { $post->post_content = wp_trim_words($post->post_content, 30); } /* end check if content has sortcode video */ $custom = get_post_custom($post->ID); if (!empty($custom['imic_sermons_url'][0]) && $flag == 0) { $liFirst .= '<li class="item sermon featured-sermon"> <span class="date">' . get_the_time(get_option('date_format'), $post->ID) . '</span> <h4><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h4> <div class="featured-sermon-video">' . imic_video_embed($custom['imic_sermons_url'][0], '200', '150', $autoplay) . '</div><p>' . $post->post_content . '</p><div class="sermon-actions">'; if (!empty($custom['imic_sermons_url'][0])) { $liFirst .= '<a href="' . get_permalink($post->ID) . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Video', 'imic-framework-admin') . '"><i class="fa fa-video-camera"></i></a>'; } $attach_full_audio = imic_sermon_attach_full_audio($post->ID); if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_permalink($post->ID) . '#play-audio" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Audio', 'imic-framework-admin') . '"><i class="fa fa-headphones"></i></a>'; } if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_full_audio . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download Audio', 'imic-framework-admin') . '"><i class="fa fa-download"></i></a>'; } $attach_pdf = imic_sermon_attach_full_pdf($post->ID); if (!empty($attach_pdf)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_pdf . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download PDF', 'imic-framework-admin') . '"><i class="fa fa-book"></i></a>'; } $liFirst .= '</div> </li>'; } else { if (!empty($custom['imic_sermons_video_mp4'][0]) && $flag == 0) { $liFirst .= '<li class="item sermon featured-sermon"> <span class="date">' . get_the_time(get_option('date_format'), $post->ID) . '</span> <h4><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h4><div class="featured-sermon-video">'; $poster = ''; if (isset($custom['imic_sermons_video_poster'][0]) && !empty($custom['imic_sermons_video_poster'][0])) { $poster = $custom['imic_sermons_video_poster'][0]; } $liFirst .= '<div class="video-container">'; $liFirst .= '<video width="320" height="240" poster="' . $poster . '" controls preload="none" class="custom-video">'; if (isset($custom['imic_sermons_video_mp4'][0]) && !empty($custom['imic_sermons_video_mp4'][0])) { $liFirst .= '<source type="video/mp4" src="' . $custom['imic_sermons_video_mp4'][0] . '" />'; } if (isset($custom['imic_sermons_video_webm'][0]) && !empty($custom['imic_sermons_video_webm'][0])) { $liFirst .= '<source type="video/webm" src="' . $custom['imic_sermons_video_webm'][0] . '" />'; } if (isset($custom['imic_sermons_video_ogv'][0]) && !empty($custom['imic_sermons_video_ogv'][0])) { $liFirst .= '<source type="video/ogg" src="' . $custom['imic_sermons_video_ogv'][0] . '" />'; } $liFirst .= '<object width="320" height="240" type="application/x-shockwave-flash" data="flashmediaelement.swf">'; $liFirst .= '<param name="movie" value="' . get_template_directory_uri() . '/plugins/mediaelementflashmediaelement.swf" />'; if (isset($custom['imic_sermons_video_poster'][0]) && !empty($custom['imic_sermons_video_mp4'][0])) { $liFirst .= '<param name="flashvars" value="controls=true&file=' . $custom['imic_sermons_video_mp4'][0] . '" />'; } $liFirst .= '</object>'; $liFirst .= '</video>'; $liFirst .= '</div>' . '</div><p>' . $post->post_content . '</p><div class="sermon-actions">'; if (isset($custom['imic_sermons_url'][0]) && !empty($custom['imic_sermons_url'][0])) { $liFirst .= '<a href="' . get_permalink($post->ID) . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Video', 'imic-framework-admin') . '"><i class="fa fa-video-camera"></i></a>'; } $attach_full_audio = imic_sermon_attach_full_audio($post->ID); if (!$attach_full_audio) { $liFirst .= '<a href="' . get_permalink($post->ID) . '#play-audio" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Audio', 'imic-framework-admin') . '"><i class="fa fa-headphones"></i></a>'; } if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_full_audio . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download Audio', 'imic-framework-admin') . '"><i class="fa fa-download"></i></a>'; } $attach_pdf = imic_sermon_attach_full_pdf($post->ID); if (!empty($attach_pdf)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_pdf . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download PDF', 'imic-framework-admin') . '"><i class="fa fa-book"></i></a>'; } $liFirst .= '</div> </li>'; } else { if (has_post_thumbnail($post->ID) && $flag == 0) { //get the featured image $featured_image_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); //end $liFirst .= '<li class="item sermon featured-sermon"> <span class="date">' . get_the_time(get_option('date_format'), $post->ID) . '</span> <h4><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h4> <div class="featured-sermon-video format-standard">' . '<a href="' . get_permalink($post->ID) . '" class="media-box"><img src="' . $featured_image_url . '" />' . '</a></div><p>' . $post->post_content . '</p><div class="sermon-actions">'; if (!empty($custom['imic_sermons_url'][0])) { $liFirst .= '<a href="' . get_permalink($post->ID) . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Video', 'imic-framework-admin') . '"><i class="fa fa-video-camera"></i></a>'; } $attach_full_audio = imic_sermon_attach_full_audio($post->ID); if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_permalink($post->ID) . '#play-audio" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Audio', 'imic-framework-admin') . '"><i class="fa fa-headphones"></i></a>'; } if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_full_audio . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download Audio', 'imic-framework-admin') . '"><i class="fa fa-download"></i></a>'; } $attach_pdf = imic_sermon_attach_full_pdf($post->ID); if (!empty($attach_pdf)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_pdf . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download PDF', 'imic-framework-admin') . '"><i class="fa fa-book"></i></a>'; } $liFirst .= '</div> </li>'; } else { $liOthers .= '<li class="item sermon"> <h2 class="sermon-title"><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h2> <span class="meta-data"><i class="fa fa-calendar"></i>' . __(' on ', 'imic-framework-admin') . get_the_time(get_option('date_format'), $post->ID) . '</span> </li>'; } } } $flag++; } echo $liFirst . $liOthers; echo '</ul></section>'; } else { _e('No Sermon Found', 'imic-framework-admin'); } echo '</div>'; echo $args['after_widget']; $wp_query = clone $temp_wp_query; }
if (has_post_thumbnail(get_the_ID())) { $post_thumbnail_id = get_post_thumbnail_id(get_the_ID()); $url = wp_get_attachment_image_src($post_thumbnail_id, '600x400'); } ?> <li <?php post_class('post-list-item sermon-item'); ?> > <div class="row"> <?php if ($vimeo_video != '' || $youtube_video != '' || $url != '') { if ($vimeo_video != '') { $video_code = imic_video_embed($vimeo_video, "500", "281"); } elseif ($youtube_video != '') { $video_code = imic_video_embed($youtube_video, "500", "281"); } else { $video_code = '<img src="' . $url[0] . '" alt="">'; } ?> <div class="col-md-4 col-sm-4"> <div class="latest-sermon-video fw-video post-media"> <?php echo '' . $video_code . ''; ?> </div> </div> <?php } ?> <?php
function widget($args, $instance) { global $wp_query; $temp_wp_query = clone $wp_query; extract($args); // these are the widget options $post_title = apply_filters('widget_title', $instance['title']); $number = apply_filters('widget_number', $instance['number']); $numberPost = !empty($number) ? $number : 3; echo $args['before_widget']; echo '<div class="listing sermons-listing">'; if (!empty($instance['title'])) { echo '<header class="listing-header">'; echo $args['before_title']; echo apply_filters('widget_title', $instance['title'], $instance, $this->id_base); echo $args['after_title']; echo '</header>'; } $posts = query_posts(array('order' => 'DESC', 'post_type' => 'sermons', 'posts_per_page' => $numberPost, 'post_status' => 'publish')); if (!empty($posts)) { echo '<section class="listing-cont"> <ul>'; $liFirst = $liOthers = ''; $flag = 0; foreach ($posts as $post) { $custom = get_post_custom($post->ID); if (!empty($custom['imic_sermons_url'][0]) && $flag == 0) { $liFirst .= '<li class="item sermon featured-sermon"> <span class="date">' . get_the_time('d M, Y') . '</span> <h4><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h4> <div class="featured-sermon-video">' . imic_video_embed($custom['imic_sermons_url'][0], '200', '150') . '</div><p>' . wp_trim_words($post->post_content, 30) . '</p><div class="sermon-actions">'; if (!empty($custom['imic_sermons_url'][0])) { $liFirst .= '<a href="' . get_permalink($post->ID) . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Video', 'framework') . '"><i class="fa fa-video-camera"></i></a>'; } $imic_sermons_audio = get_post_meta($post->ID, 'imic_sermons_audio', true); if (!empty($imic_sermons_audio)) { $attach_full_audio = wp_get_attachment_url($imic_sermons_audio); $liFirst .= '<a href="' . get_permalink($post->ID) . '#play-audio" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Audio', 'framework') . '"><i class="fa fa-headphones"></i></a>'; } if (!empty($attach_full_audio)) { $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_full_audio . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download Audio', 'framework') . '"><i class="fa fa-download"></i></a>'; } $imic_sermons_pdf = get_post_meta($post->ID, 'imic_sermons_Pdf', true); if (!empty($imic_sermons_pdf)) { $attach_pdf = wp_get_attachment_url($imic_sermons_pdf); $liFirst .= '<a href="' . get_template_directory_uri() . '/download/download.php?file=' . $attach_pdf . '" data-placement="top" data-toggle="tooltip" data-original-title="' . __('Download PDF', 'framework') . '"><i class="fa fa-book"></i></a>'; } $liFirst .= '</div> </li>'; } else { $liOthers .= '<li class="item sermon"> <h2 class="sermon-title"><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h2> <span class="meta-data"><i class="fa fa-calendar"></i> on ' . get_the_time(get_option('date_format')) . '</span> </li>'; } $flag++; } echo $liFirst . $liOthers; echo '</ul></section>'; } else { echo 'No ' . $type . ' Found'; } echo '</div>'; echo $args['after_widget']; $wp_query = clone $temp_wp_query; }
function imic_fullscreen_video($atts, $content = null) { extract(shortcode_atts(array("videourl" => ''), $atts)); $fw_video_output = ""; if (!empty($videourl)) { $fw_video_output .= imic_video_embed($videourl, 100, 100); } return $fw_video_output; }
</div> <?php } //End Self Hosted Video if ($vimeo_video != '') { $vimeo_video_code = imic_video_embed($vimeo_video, "500", "281"); ?> <div class="video-container fw-video sermon-tabs" id="vimeo_video"> <?php echo $vimeo_video_code; ?> </div> <?php } if ($youtube_video != '') { $youtube_video_code = imic_video_embed($youtube_video, "560", "315"); ?> <div class="video-container fw-video sermon-tabs" id="youtube_video"> <?php echo $youtube_video_code; ?> </div> <?php } if ($self_audio != '') { ?> <div class="audio-container sermon-tabs" id="self_audio"> <audio class="self-audio-player" src="<?php echo $self_audio; ?> " type="audio/mp3" controls></audio>