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-right-style.php
<?php

/**

 *Template Name:Blog Right 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() ) :while ( have_posts() ) : the_post();?>

<!-- Banners -->

<?php beevent_page_title(); ?>

<!-- /Banners -->

<!-- Our Articles -->

<section class="our_articles">

	<div class="container">

    	<div class="row">

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

				<?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' ):?>

                	<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); ?>" 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>

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

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

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

            <!-- Sidebar -->

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

           	 <div class="sidebar_wrap">

					<?php get_sidebar(); ?>

              </div>

            </aside>

        </div>

    </div>

</section>

<!-- /Our Articles -->

<?php  endwhile; endif; 

 get_footer();

ZeroDay Forums Mini