?AlkantarClanX12

Your IP : 216.73.216.177


Current Path : /home/rankinh/lynkandco/wp-content/plugins/nexteuv-pro/modules/blog/
Upload File :
Current File : /home/rankinh/lynkandco/wp-content/plugins/nexteuv-pro/modules/blog/index.php

<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if( !class_exists( 'NextEuvProSiteBlog' ) ) {
    class NextEuvProSiteBlog extends NextEuvPlusSiteBlog {

        private static $_instance = null;
        public $element_position = array();

        public static function instance() {
            if ( is_null( self::$_instance ) ) {
                self::$_instance = new self();
            }

            return self::$_instance;
        }

        function __construct() {
            $this->load_widgets();
            add_action( 'nexteuv_after_main_css', array( $this, 'enqueue_css_assets' ), 20 );
            add_filter('blog_post_grid_list_style_update', array( $this, 'blog_post_grid_list_style_update' ));
            add_filter('blog_post_cover_style_update', array( $this, 'blog_post_cover_style_update' ));
        }

        function enqueue_css_assets() {
            wp_enqueue_style( 'nexteuv-pro-blog', NEXTEUV_PRO_DIR_URL . 'modules/blog/assets/css/blog.css', false, NEXTEUV_PRO_VERSION, 'all');

            $post_style = nexteuv_get_archive_post_style();
            $file_path = NEXTEUV_PRO_DIR_PATH . 'modules/blog/templates/'.esc_attr($post_style).'/assets/css/blog-archive-'.esc_attr($post_style).'.css';
            if ( file_exists( $file_path ) ) {
                wp_enqueue_style( 'wdt-blog-archive-'.esc_attr($post_style), NEXTEUV_PRO_DIR_URL . 'modules/blog/templates/'.esc_attr($post_style).'/assets/css/blog-archive-'.esc_attr($post_style).'.css', false, NEXTEUV_PRO_VERSION, 'all');
            }

        }

        function load_widgets() {
            add_action( 'widgets_init', array( $this, 'register_widgets_init' ) );
        }

        function register_widgets_init() {
            include_once NEXTEUV_PRO_DIR_PATH.'modules/blog/widget/widget-recent-posts.php';
            register_widget('NextEuv_Widget_Recent_Posts');
        }

        function blog_post_grid_list_style_update($list) {

            $pro_list = array (
                'wdt-simple'        => esc_html__('Simple', 'nexteuv-pro'),
                'wdt-overlap'       => esc_html__('Overlap', 'nexteuv-pro'),
                'wdt-thumb-overlap' => esc_html__('Thumb Overlap', 'nexteuv-pro'),
                'wdt-minimal'       => esc_html__('Minimal', 'nexteuv-pro'),
                'wdt-fancy-box'     => esc_html__('Fancy Box', 'nexteuv-pro'),
                'wdt-bordered'      => esc_html__('Bordered', 'nexteuv-pro'),
                'wdt-magnificent'   => esc_html__('Magnificent', 'nexteuv-pro')
            );

            return array_merge( $list, $pro_list );

        }

        function blog_post_cover_style_update($list) {

            $pro_list = array ();
            return array_merge( $list, $pro_list );

        }

    }
}

NextEuvProSiteBlog::instance();

if( !class_exists( 'NextEuvProSiteRelatedBlog' ) ) {
    class NextEuvProSiteRelatedBlog extends NextEuvProSiteBlog {
        function __construct() {}
    }
}