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

/**

 *Template Name:Blog Grid 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-Blog -->

<section class="our_articles grid_view">

	<div class="container">

    	<div class="row">

        	<!-- article-1 -->

			<?php

			global $paged;

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

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

			$my_query1  = new WP_Query( $args );

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

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

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

                    </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(); ?>

            <!-- pagination -->

            <?php beevent_pagination(); ?>

            <!-- /pagination -->

        </div>

    </div>

</section>

<!-- /Our-Blog -->

<?php  endwhile; endif; 

 get_footer();

ZeroDay Forums Mini