PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
themes
/
deep
<?php /** * Deep Theme. * * The template for displaying attachment pages * * @since 1.0.0 * @author Webnus */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'WN_Attachment' ) ) { class WN_Attachment extends WN_Core_Templates { /** * Instance of this class. * * @since 1.0.0 * @access public * @var WN_Attachment */ public static $instance; /** * 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 attachment.php * * @since 1.0.0 */ public function __construct() { parent::__construct(); $this->get_header(); $this->content(); $this->get_footer(); } /** * Render content. * * @since 1.0.0 */ private function content() { $sidebar = deep_get_option( $this->theme_options, 'deep_blog_singlepost_sidebar', 'right' ); ?> <section class="container page-content" > <hr class="vertical-space"> <!-- left sidebar --> <?php if ( $sidebar == 'left' ) { ?> <aside class="col-md-3 sidebar leftside"> <?php if ( is_active_sidebar( 'Left Sidebar' ) ) { dynamic_sidebar( 'Left Sidebar' ); } ?> </aside> <?php } ?> <!-- blog content --> <section class="col-md-8 omega"> <article class="blog-single-post"> <?php $post_format = get_post_format(get_the_ID()); $content = get_the_content(); if ( have_posts() ) : while( have_posts() ) : the_post(); ?> <div <?php post_class( 'post' ); ?>> <h1><?php the_title(); ?></h1> <?php if ( wp_attachment_is_image( get_the_ID() ) ) { $att_image = wp_get_attachment_image_src( get_the_ID(), "full" ); if ( is_array( $att_image ) ) { echo '<img src="' . esc_url( $att_image[0] ) . '" />'; } } ?> </div> <?php endwhile; endif; ?> </article> <?php comments_template(); ?> </section> <!-- right sidebar --> <?php if ( $sidebar == 'right' ) { ?> <aside class="col-md-3 sidebar"> <?php if( is_active_sidebar( 'Right Sidebar' ) ) dynamic_sidebar( 'Right Sidebar' ); ?> </aside> <?php } ?> <div class="vertical-space3"></div> </section> <?php } } // Run WN_Attachment::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]