PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
themes
/
deep
<?php /** * Deep Theme. * * The template for displaying author pages * * @since 1.0.0 * @author Webnus */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'WN_Author' ) ) { class WN_Author extends WN_Core_Templates { /** * Instance of this class. * * @since 1.0.0 * @access public * @var WN_Author */ public static $instance; /** * Post foramt. * * @since 1.0.0 * @access private */ private $post_format; /** * Provides access to a single instance of a module using the singleton pattern. * * @since 1.0.0 * @return object */ public static function get_instance() { if ( self::$instance === null ) { self::$instance = new self(); } return self::$instance; } /** * Define the core functionality of the author.php * * @since 1.0.0 */ public function __construct() { parent::__construct(); $this->get_header(); $this->post_format = get_post_format(get_the_ID()); $this->content(); $this->get_footer(); } /** * Render content. * * @since 1.0.0 */ private function content() { ?> <section id="main-content-pin"> <hr class="vertical-space1"> <div class="container"> <?php $this->about_author(); ?> <div id="pin-content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <article class="pin-box entry -item"> <?php $this->post_featured_image(); $this->post_content(); $this->post_footer(); ?> </article> <?php endwhile; endif; ?> </div><!-- end-pin-content --> <div class="vertical-space2"></div> </div> <!-- end container --> <?php $this->pagination(); ?> </section><!-- end-main-content-pin --> <?php } /** * About author box. * * @since 1.0.0 */ private function about_author() { ?> <div class="about-author-sec"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), 90 ); ?> <h5><?php the_author(); ?></h5> <p><?php echo get_the_author_meta( 'description' ); ?></p> </div> <?php } private function post_featured_image() { $content = get_the_content(); $enable_featured_image = deep_get_option( $this->theme_options, 'deep_blog_featuredimage_enable', '1' ); ?> <div class="img-item"> <?php if ( $enable_featured_image ) { $meta_video = rwmb_meta( 'deep_featured_video_meta' ); // video or audio post format if ( 'video' == $this->post_format || 'audio' == $this->post_format) { $pattern = '\\[' .'(\\[?)' ."(video|audio)" .'(?![\\w-])' .'(' .'[^\\]\\/]*' .'(?:' .'\\/(?!\\])' .'[^\\]\\/]*' .')*?' .')' .'(?:' .'(\\/)' .'\\]' .'|' .'\\]' .'(?:' .'(' .'[^\\[]*+' .'(?:' .'\\[(?!\\/\\2\\])' .'[^\\[]*+' .')*+' .')' .'\\[\\/\\2\\]' .')?' .')' .'(\\]?)'; preg_match( '/' . $pattern . '/s', $post->post_content, $matches ); if ( is_array($matches) && isset( $matches[3] ) && ( ($matches[2] == 'video') || ('audio' == $this->post_format) ) && isset( $matches[2] ) ) { $video = $matches[0]; echo do_shortcode( $video ); $content = preg_replace( '/' . $pattern . '/s', '', $content ); } elseif ( ! empty( $meta_video ) ) { echo do_shortcode( $meta_video ); } // gallery post format } else if( 'gallery' == $this->post_format) { $pattern = '\\[' .'(\\[?)' ."(gallery)" .'(?![\\w-])' .'(' .'[^\\]\\/]*' .'(?:' .'\\/(?!\\])' .'[^\\]\\/]*' .')*?' .')' .'(?:' .'(\\/)' .'\\]' .'|' .'\\]' .'(?:' .'(' .'[^\\[]*+' .'(?:' .'\\[(?!\\/\\2\\])' .'[^\\[]*+' .')*+' .')' .'\\[\\/\\2\\]' .')?' .')' .'(\\]?)'; preg_match( '/' . $pattern . '/s', $post->post_content, $matches ); if ( is_array( $matches ) && isset( $matches[3] ) && ($matches[2] == 'gallery') && isset( $matches[2] ) ) { $ids = shortcode_parse_atts( $matches[3] ); if ( is_array( $ids ) && isset( $ids['ids'] ) ) { $ids = $ids['ids']; } echo do_shortcode( '[vc_gallery onclick="link_no" img_size= "full" type="flexslider_fade" interval="3" images="' . $ids . '" custom_links_target="_self"]' ); $content = preg_replace( '/' . $pattern . '/s', '', $content ); } // other post formats } else { get_the_image( array( 'meta_key' => array( 'Full', 'Full' ), 'size' => 'Full' ) ); } } ?> </div> <?php } private function post_content() { ?> <div class="pin-ecxt"> <h6 class="blog-cat"><?php the_category(', ') ?> </h6> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <?php // Post Content if ( $this->post_format == 'quote' ) { echo '<blockquote>'; } echo '<p>' . deep_excerpt(31) . '</p>'; if ( $this->post_format == 'quote' ) { echo '</blockquote>'; } if ( $this->post_format == ('quote') || $this->post_format == 'aside' ) { echo '<a class="readmore" href="' . get_permalink( get_the_ID() ) . '">' . esc_html__('View Post', 'deep') . '</a>'; } ?> </div> <?php } private function post_footer() { ?> <div class="pin-ecxt2"> <div class="col1-3 col-w50"> <i class="wn-fa wn-fa-comment"></i> <span><?php echo get_comments_number() ?></span> </div> <div class="col1-3 col-w50"> <h6 class="blog-date"><i class="sl-clock"></i><?php echo get_the_date();?></h6> </div> </div> <?php } private function pagination() { ?> <section class="container aligncenter"> <?php if ( function_exists( 'wp_pagenavi' ) ) { wp_pagenavi(); } else { echo '<div class="wp-pagenavi">'; next_posts_link(esc_html__('← Previous page', 'deep')); previous_posts_link(esc_html__('Next page →', 'deep')); } ?> <hr class="vertical-space2"> </section> <?php } } // Run WN_Author::get_instance(); }
[+]
..
[-] 404.php
[edit]
[+]
kingcomposer
[-] attachment.php
[edit]
[-] single-gallery.php
[edit]
[-] wpml-config.xml
[edit]
[-] single-portfolio.php
[edit]
[+]
woocommerce
[-] taxonomy-cause_category.php
[edit]
[-] readme.txt
[edit]
[-] sidebar.php
[edit]
[-] footer.php
[edit]
[-] archive.php
[edit]
[-] single-faq.php
[edit]
[-] single-elementor_library.php
[edit]
[-] taxonomy-sermon_speaker.php
[edit]
[-] rtl.css
[edit]
[-] single-llms_membership.php
[edit]
[-] speakers-images.php
[edit]
[-] buddypress.php
[edit]
[-] single-recipe.php
[edit]
[-] archive-room.php
[edit]
[-] single-llms_quiz.php
[edit]
[-] functions.php
[edit]
[-] archive-gallery.php
[edit]
[-] taxonomy-sermon_series.php
[edit]
[-] author.php
[edit]
[-] taxonomy-portfolio_category.php
[edit]
[-] single-mega_menu.php
[edit]
[-] page.php
[edit]
[-] comments.php
[edit]
[-] single-goal.php
[edit]
[-] single-course.php
[edit]
[-] single-sermon.php
[edit]
[-] search.php
[edit]
[-] Change_log.php
[edit]
[-] taxonomy-sermon_category.php
[edit]
[-] searchform.php
[edit]
[-] single-llms_question.php
[edit]
[-] core-templates.php
[edit]
[-] style.css
[edit]
[-] index.php
[edit]
[+]
lifterlms
[-] single-wbf_footer.php
[edit]
[+]
assets
[+]
inc
[-] single-cause.php
[edit]
[-] archive-course.php
[edit]
[-] header.php
[edit]
[-] screenshot.png
[edit]
[+]
languages
[-] single-lesson.php
[edit]
[+]
vc_templates
[-] README.md
[edit]
[+]
buddypress
[-] single.php
[edit]