HEX
Server: nginx/1.17.4
System: Linux hosting 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64
User: www (1001)
PHP: 7.4.19
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/pulitocucito.it/wp-content/themes/laundry/single.php
<?php
/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Laundry
 */

get_header();
$laundry_opt = laundry_get_options();
$theme       = isset( $laundry_opt['laundry_demo_select'] ) ? $laundry_opt['laundry_demo_select'] : 1;

if ( $theme == '2' ) { ?>
<div class="section-inner subpage-bg-left subpage-bg__position06 lazyload" data-bg="<?php echo LAUNDRY_IMG_URL; ?>/wrapper-subpage-left06.png">
	<div class="subpage-bg-right subpage-bg__position06 lazyload" data-bg="<?php echo LAUNDRY_IMG_URL; ?>/wrapper-subpage-right06.png">
		<div class="container container-fluid-lg">
			<div class="row">
			<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
				<div class="col-12 col-sm-7 col-md-7 col-xl-8">
			<?php } else { ?>
				<div class="col-12 column-center">
			<?php } ?>
					<div class="tt-blog-list">
						<div class="tt-item">
							<div class="blog-obj">
								<div class="blog-obj__img">
									<?php the_post_thumbnail( 'full' ); ?>
								</div>
								<div class="blog-obj__data row">
									<div class="col-auto">
										<div class="data__time"><span><?php echo get_the_date( 'd' ); ?></span> <?php echo get_the_date( 'M' ); ?></div>
										<div class="data__posted">
											<i class="tt-icon icons-1621561"></i>
											<?php esc_html_e( 'Posted by:', 'laundry' ); ?> &nbsp;<a href="<?php the_permalink(); ?>"><?php printf( esc_html__( '%s', 'laundry' ), get_the_author() ); ?></a>
										</div>
										<div class="data__comments">
											<a href="<?php the_permalink(); ?>"><i class="tt-icon icons-983899"></i><?php comments_number( '0 Comments', '1 Comment', '%' ); ?></a>
										</div>
									</div>
									<div class="col-auto ml-left">
										<?php do_action( 'laundry_social_share' ); ?>
									</div>
								</div>
								<h3 class="blog-obj__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
								<?php the_content(); ?>
								<?php
								$posttags = get_the_tags();
								if ( $posttags ) {
									?>
								<div class="blog-single__meta">
									<div class="tt-list-tag__wrapper">
										<div class="tt-list-tag__title">
											<?php esc_html_e( 'Tags:', 'laundry' ); ?>
										</div>
										<ul class="tt-list-tag">
										<?php
										foreach ( $posttags as $tag ) {
											echo '<li><a href="' . get_tag_link( $tag->term_id ) . '">' . $tag->name . '</a></li>';
										}
										?>
										</ul>
									</div>
								</div>
								<?php } ?>
								<?php
								global $post;
								$display_name     = get_the_author_meta( 'display_name', $post->post_author );
								$url              = get_the_author_meta( 'url', $post->post_author );
								$user_text        = get_the_author_meta( 'user_description', $post->post_author );
								$user_avatar      = get_avatar( $post->post_author, 140 );
								$author_facebook  = $laundry_opt['laundry-author-facebook'];
								$author_twitter   = $laundry_opt['laundry-author-twitter'];
								$author_linkedin  = $laundry_opt['laundry-author-linkedin'];
								$author_instagram = $laundry_opt['laundry-author-instagram'];
								if ( isset( $user_text ) && ! empty( $user_text ) ) {
									?>
									<div class="personal personal__top">
										<div class="personal__col-img">
										<?php echo wp_kses_post( $user_avatar ); ?>
										</div>
										<div class="personal__col-description">
											<h6 class="personal__title"><?php echo esc_html( ucfirst( $display_name ) ); ?></h6>
											<p><?php echo esc_html( $user_text ); ?></p>
											<ul class="tt-social">
												<li><a href="<?php echo esc_url( $author_twitter ); ?>" target="_blank" class="icons-733635"></a></li>
												<li><a href="<?php echo esc_url( $author_facebook ); ?>" target="_blank" class="icons-59439"></a></li>
												<li><a href="<?php echo esc_url( $author_linkedin ); ?>" target="_blank" class="icons-2111532"></a></li>
												<li><a href="<?php echo esc_url( $author_instagram ); ?>" target="_blank" class="icons-733614"></a></li>
											</ul>
										</div>
									</div>
									<?php
								}
								?>
								<?php
								if ( comments_open() || get_comments_number() ) :
									comments_template();
								endif;
								?>
							</div>
						</div>
					</div>
				</div>
			<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
				<div class="divider d-block d-sm-none"></div>
				<div class="col-12 col-sm-5 col-md-5 col-xl-4 rightColumn tt-aside">
					<?php get_sidebar(); ?>
				</div>
			<?php } ?>
			</div>
		</div>
	</div>
</div>
<?php } else { ?>
		<div class="container commercial_laundry_service">
		<?php if ( ! is_single() ) { ?>
			<h1 class="text-center decor color">
				<?php esc_html_e( 'Blog Post', 'laundry' ); ?>
			</h1>
		<?php } ?>
			<div class="row">
			<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
					<div class="col-md-9 column-center primary with-sidebar-blog">
				<?php } else { ?>
					<div class="col-md-12 column-center primary">
				<?php } ?>
					<div class="blog-post single single_pg_cont">
					
						<?php
						while ( have_posts() ) :
							the_post();

							?>

								<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

									<div class="post-image">
									<?php get_template_part( 'template-parts/media/content', get_post_format() ); ?>
										<ul class="post-meta">
											<li><i><?php esc_html_e( 'by', 'laundry' ); ?></i> <b><?php printf( esc_html__( '%s', 'laundry' ), get_the_author() ); ?></b></li>
											<li><i class="icon icon-clock"></i><span><?php echo get_the_date( 'M d, Y' ); ?></span></li>
											<li><i class="icon icon-chat-bubble"></i><span><?php comments_number( '0', '1', '%' ); ?></span></li>
										</ul>
										
									<?php the_title( '<h3 class="post-title">', '</h3>' ); ?>
										<div class="post-teaser">
										<?php
												the_content(
													sprintf(
													/* translators: %s: Name of current post. */
														wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'laundry' ), array( 'span' => array( 'class' => array() ) ) ),
														the_title( '<span class="screen-reader-text">"', '"</span>', false )
													)
												);
												wp_link_pages(
													array(
														'before'      => '<div class="page-pagination"><div class="page-numbers"><span class="page-links-title">' . esc_html__( 'Pages:', 'laundry' ) . '</span>',
														'after'       => '</div></div>',
														'link_before' => '<span>',
														'link_after'  => '</span>',
														'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'laundry' ) . ' </span>%',
														'separator'   => ', ',
													)
												);

										?>
										</div>
										<?php echo get_the_tag_list( '<ul class="tags-links tags-list"><li>', '</li><li>', '</li></ul>' ); ?>
									</div>
								</div>
								<?php

								echo '<div class="divider-line"></div>';
								// If comments are open or we have at least one comment, load up the comment template.
								if ( comments_open() || get_comments_number() ) :
									comments_template();
								endif;

							endwhile; // End of the loop.
						?>
					
						<div id="postPreload"></div>
						<div class="divider divider-lg"></div>
					</div>
				</div>
				<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
					<div class="col-md-3 column-right">
						<?php get_sidebar(); ?>
					</div>
				<?php } ?>
			</div>
		</div>
	<?php
}
get_footer();