Sh3ll
OdayForums


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/themes/beevent/blog-left-style.php
<?php

/**

 *Template Name:Blog Left Style

 *

 * Learn more: http://codex.wordpress.org/Template_Hierarchy

 *

 * @package WordPress

 * @subpackage beevent

 * @since beevent 4.1

 */

/**

Call header using wordpress function  

*/

get_header();

if ( have_posts() ) :

?>

<!-- Banners -->

<?php beevent_page_title(); ?>

<!-- /Banners --> 

 <!-- Our Articles --> 

<section class="our_articles">

	<div class="container">

    	<div class="row">

            <aside class="col-md-4 col-md-pull-8">

              <div class="sidebar_wrap leftsidebar">

                    <?php get_sidebar(); ?>

               </div>

            </aside>

        	<div class="col-md-8 col-md-push-4">

				<?php

				global $paged;

				$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

				$args = array( 'post_type' => 'post','paged' =>$paged);

				$my_query1  = new WP_Query( $args );

				while ( $my_query1 ->have_posts() ) : $my_query1 ->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); ?>" allowfullscreen></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>

                        </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>

                        </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>

                        </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>

        </div>

    </div>

</section>

 <!-- Our Articles -->

<?php  endif; 

 get_footer();

ZeroDay Forums Mini