HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: 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,
Upload Files
File: /var/www/sectest.concertium.com/public_bak/wp-content/themes/dt-the7/image.php
<?php
/**
 * Attachment template.
 *
 * @package The7
 * @since 1.0.0
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $post;

$config = presscore_config();
$config->set( 'template', 'image' );

get_header();
?>

			<!-- Content -->
			<div id="content" class="content" role="main">

				<?php if ( have_posts() ) : ?>

					<?php while ( have_posts() ) : the_post(); ?>

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

							<?php do_action( 'presscore_before_post_content' ) ?>

							<?php
							$img_meta = wp_get_attachment_image_src( $post->ID, 'full' );
							$img_args = array(
								'img_meta'      => $img_meta,
								'img_id'		=> $post->ID,
								'custom'		=> 'data-dt-img-description="' . esc_attr(get_the_excerpt()) . '"',
								'class'			=> 'alignnone rollover rollover-zoom dt-pswp-item',
								'title'			=> get_the_title(),
								'wrap'			=>'<a %HREF% %CLASS% %CUSTOM% %TITLE%><img %IMG_CLASS% %SRC% %ALT% %SIZE% /></a>'
							);

							if ( isset( $img_meta[1] ) && $img_meta[1] < 890 ) {
								$img_args['wrap'] = "\n" . '<img %IMG_CLASS% %SRC% %SIZE% %ALT%/>' . "\n";
								$img_args['class'] = '';
								$img_args['img_class'] = 'alignleft';
								$img_args['custom'] = '';
							}

							dt_get_thumb_img( $img_args );

							the_content();

							presscore_display_share_buttons_for_post( 'photo' );
							?>

						</article>

						<?php do_action( 'presscore_after_post_content' ) ?>

					<?php endwhile ?>

				<?php endif ?>

			</div><!-- #content -->

			<?php do_action( 'presscore_after_content' ) ?>

<?php get_footer() ?>