![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/ |
<?php /** * The template for displaying the Blog * * Contains footer content and the closing of the div elements. * * @package WordPress * @subpackage beevent * @since beevent 4.1 */ // *******Blog Styles ********// function beevent_BlogStyle(){ $blogstyle= beevent_get_option('blog-style'); if($blogstyle=='blgoRight'): ?> <!-- Blog --> <div class="col-md-8"> <?php while ( have_posts() ) : the_post(); ?> <!-- article-1 --> <?php if( get_post_format() == 'video' ):?> <div class="blog_wrap view_one video_post"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if ( ! empty( $vedio_url ) ): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>" ></iframe> <?php endif;?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php elseif( get_post_format() == 'quote' ): ?> <div class="blog_wrap view_one quote_post"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php else : ?> <div class="blog_wrap view_one"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('full', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </a> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php endif; ?> <?php endwhile; wp_reset_query(); ?> <!-- pagination --> <?php beevent_pagination(); ?> <!-- /pagination --> </div> <!-- End Blog --> <!-- Sidebar --> <aside class="col-md-4"> <div class="sidebar_wrap"> <?php get_sidebar(); ?> </div> </aside> <!-- End Sidebar --> <?php elseif($blogstyle=='blgoLeft'):?> <!-- Sidebar --> <aside class="col-md-4"> <div class="sidebar_wrap"> <?php get_sidebar(); ?> </div> </aside> <!-- End Sidebar --> <!-- Blog --> <div class="col-md-8 col-md-push-4"> <?php while ( have_posts() ) : the_post(); ?> <!-- article-1 --> <?php if( get_post_format() == 'video' ):?> <article id="post-<?php the_ID(); ?>" class="blog_wrap view_one video_post"> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if ( ! empty( $vedio_url ) ): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>" ></iframe> <?php endif;?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> <?php elseif( get_post_format() == 'quote' ): ?> <article id="post-<?php the_ID(); ?>" class="blog_wrap view_one quote_post"> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_html($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> <?php else : ?> <article id="post-<?php the_ID(); ?>" class="blog_wrap view_one"> <div class="blog_img margin-btm-20"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('full', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </a> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> <?php endif; ?> <?php endwhile; wp_reset_query(); ?> <!-- pagination --> <?php beevent_pagination(); ?> <!-- /pagination --> </div> <!-- End Blog --> <?php elseif($blogstyle=='blgoGrid'): ?> <div class="grid_view row"> <?php while ( have_posts() ) : the_post(); ?> <?php if( get_post_format() == 'video' ):?> <article class="col-md-4 col-sm-4 blog_wrap video_post"> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if ( ! empty( $vedio_url ) ): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>" ></iframe> <?php endif;?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5> <p><?php echo beevent_excerpt('20'); ?></p> </article> <?php elseif( get_post_format() == 'quote' ): ?> <article id="post-<?php the_ID(); ?>" class="col-md-4 col-sm-4 blog_wrap quote_post grid-style-quote"> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): if (strlen($quote_post) > 100) $quote_post = substr($quote_post, 0, 100) . '...'; ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5> <p><?php echo beevent_excerpt('20'); ?></p> </article> <?php else : ?> <article id="post-<?php the_ID(); ?>" class="col-md-4 col-sm-4 blog_wrap"> <div class="blog_img margin-btm-20"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('large', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </a> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5> <p><?php echo beevent_excerpt('20'); ?></p> </article> <?php endif; ?> <?php endwhile; wp_reset_query(); ?> </div> <!-- pagination --> <?php beevent_pagination(); ?> <!-- /pagination --> <?php else:?> <!-- Blog --> <div class="col-md-8"> <?php while ( have_posts() ) : the_post(); ?> <!-- article-1 --> <?php if( get_post_format() == 'video' ):?> <div class="blog_wrap view_one video_post"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if ( ! empty( $vedio_url ) ): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>" ></iframe> <?php endif;?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php elseif( get_post_format() == 'quote' ): ?> <div class="blog_wrap view_one quote_post"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php else : ?> <div class="blog_wrap view_one"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog_img margin-btm-20"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('full', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </a> </div> <div class="blog_meta"> <p><a href="<?php the_permalink(); ?>"><?php esc_html_e('Posted on', 'beevent'); ?> <?php echo get_the_date(); ?></a></p> <?php if ( is_sticky() && is_home() && ! is_paged() ): printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'beevent' ) ); endif; ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3> <?php the_excerpt();?> </article> </div> <?php endif; ?> <?php endwhile; wp_reset_query(); ?> <!-- pagination --> <?php beevent_pagination(); ?> <!-- /pagination --> </div> <!-- End Blog --> <!-- Sidebar --> <aside class="col-md-4"> <div class="sidebar_wrap"> <?php get_sidebar(); ?> </div> </aside> <!-- End Sidebar --> <?php endif; } //******** Blog Single Page*********// function beevent_Blog_Single_Page(){ $blogstyle= beevent_get_option('blog-style'); if($blogstyle=='blgoLeft'):?> <!-- Sidebar --> <aside class="col-md-4 col-md-pull-8"> <div class="sidebar_wrap"> <?php get_sidebar(); ?> </div> </aside> <div class="col-md-8 col-md-push-4"> <?php if( get_post_format() == 'video' ):?> <article class="blog_wrap view_one video_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if (!empty( $vedio_url)): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>"></iframe> <?php endif;?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post( $tagtext ); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php elseif( get_post_format() == 'quote' ): ?> <article class="blog_wrap view_one quote_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php else : ?> <article class="blog_wrap view_one"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <?php if ( has_post_thumbnail() ):?> <div class="blog_img margin-btm-20"> <?php the_post_thumbnail('full');?> </div> <?php endif; ?> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php endif; ?> <!--Comments-Form--> <?php $comments_template = beevent_get_option('comments_template'); if($comments_template=='1' || $comments_template==''):?> <?php comments_template(); ?> <?php endif; ?> <?php $show_navigation = beevent_get_option('show_navigation_post'); if($show_navigation=='1' || $show_navigation==''): ?> <?php beevent_post_nav(); ?> <?php endif; ?> </div> <?php elseif( $blogstyle=='blgoRight' ) :?> <div class="col-md-8"> <?php if( get_post_format() == 'video' ):?> <article class="blog_wrap view_one video_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if (!empty( $vedio_url)): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>"></iframe> <?php endif;?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php elseif( get_post_format() == 'quote' ): ?> <article class="blog_wrap view_one quote_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php else : ?> <article class="blog_wrap view_one"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <?php if ( has_post_thumbnail() ):?> <div class="blog_img margin-btm-20"> <?php the_post_thumbnail('full');?> </div> <?php endif; ?> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php endif; ?> <!--Comments-Form--> <?php $comments_template = beevent_get_option('comments_template'); if($comments_template=='1' || $comments_template==''):?> <?php comments_template(); ?> <?php endif; ?> <?php $show_navigation = beevent_get_option('show_navigation_post'); if($show_navigation=='1' || $show_navigation==''): ?> <?php beevent_post_nav(); ?> <?php endif; ?> </div> <!-- Sidebar --> <aside class="col-md-4"> <div class="sidebar_wrap"> <?php get_sidebar(); ?> </div> </aside> <?php else : ?> <div class="col-md-12"> <?php if( get_post_format() == 'video' ):?> <article class="blog_wrap view_one video_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $vedio_url = get_post_meta( get_the_ID(), 'Be_post_oembed', true ); if (!empty( $vedio_url)): $step1=explode('v=', $vedio_url); $step2 =explode('&',$step1[1]); $video_url = $step2[0]; ?> <iframe class="mfp-iframe" src="https://www.youtube.com/embed/<?php echo esc_html($video_url); ?>"></iframe> <?php endif;?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php elseif( get_post_format() == 'quote' ): ?> <article class="blog_wrap view_one quote_post"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <div class="blog_img margin-btm-20"> <?php $quote_post = get_post_meta(get_the_ID(), 'Be_post_quote', true); if(! empty($quote_post)): ?> <blockquote> <p><i class="fa fa-quote-left"></i> <?php echo esc_attr($quote_post); ?> <i class="fa fa-quote-right"></i></p> </blockquote> <?php endif; ?> </div> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php else : ?> <article class="blog_wrap view_one"> <div class="blog_meta"> <p><?php esc_html_e('Posted on','beevent') ?> <strong><?php echo get_the_date(); ?></strong></p> <div class="inline-div btn-group-xs categories_in new-cat-list"> <?php echo esc_html($category = the_category(''),'beevent'); ?> </div> </div> <h3><?php the_title(); ?></h3> <?php if ( has_post_thumbnail() ):?> <div class="blog_img margin-btm-20"> <?php the_post_thumbnail('full');?> </div> <?php endif; ?> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'beevent' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> <?php $show_social_post = beevent_get_option('show_social_post'); if($show_social_post=='1' || $show_social_post==''):?> <div class="article_tag gray-bg"> <div class="row"> <div class="col-md-6 col-sm-6"> <?php $tags = get_the_tags(); $tagtext= '<h6 class="tag-title">Tags:</h6>'; if(!empty($tags)): echo wp_kses_post($tagtext); $html = '<div class="tag_list btn-group-xs">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); $html .= "<a href='{$tag_link}' class='btn btn-xs'>"; $html .= "{$tag->name}</a>"; } $html .= '</div>'; echo wp_kses_post($html); endif; ?> </div> <div class="col-md-6 col-sm-6"> <?php beevent_share_link(); ?> </div> </div> </div> <?php endif; ?> </article> <?php endif; ?> <!--Comments-Form--> <?php $comments_template = beevent_get_option('comments_template'); if($comments_template=='1' || $comments_template==''):?> <?php comments_template(); ?> <?php endif; ?> <?php $show_navigation = beevent_get_option('show_navigation_post'); if($show_navigation=='1' || $show_navigation==''): ?> <?php beevent_post_nav(); ?> <?php endif; ?> </div> <?php endif; }