HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/wp-content/plugins/trx_addons/cpt/sport/tpl.single.php
<?php
/**
 * The template to display the sport's single post
 *
 * @package WordPress
 * @subpackage ThemeREX Addons
 * @since v1.6.17
 */

get_header();

while ( have_posts() ) { the_post();
	
	$meta = get_post_meta(get_the_ID(), 'trx_addons_options', true);
	
	?>
    <article id="post-<?php the_ID(); ?>" <?php post_class( 'sport_single itemscope' ); ?>
    	itemscope itemtype="http://schema.org/Article">
		
		<section class="sport_page_header">	

			<?php
			// Image
			if ( !trx_addons_sc_layouts_showed('featured') && has_post_thumbnail() ) {
				?><div class="sport_page_featured">
					<?php
					the_post_thumbnail( trx_addons_get_thumb_size('masonry-big'), array(
								'alt' => get_the_title(),
								'itemprop' => 'image'
								)
							);
					?>
				</div>
				<?php
			}
			
			// Title
			if (!trx_addons_sc_layouts_showed('title')) {
				?><h2 class="sport_page_title"><?php
					the_title();
					if (get_post_type() == TRX_ADDONS_CPT_MATCHES_PT && !empty($meta['score'])) {
						?>
						<div class="sport_page_score"><?php
							echo esc_html($meta['score']);
						?></div><?php
					}
				?></h2><?php
			}
			
			// Meta
			if ( !trx_addons_sc_layouts_showed('postmeta') ) {
				?>
				<div class="sport_page_meta">
					<span class="sport_page_meta_item sport_page_meta_date"><?php
						if (get_post_type() == TRX_ADDONS_CPT_PLAYERS_PT) {
							if (!empty($meta['birthday'])) {
								printf(esc_html__('Birthday: %s', 'trx_addons'),
											'<span class="sport_page_meta_item_date">' 
											. date(get_option('date_format'), strtotime($meta['birthday'])) 
											. '</span>'
										);
							}
						} else {
							if (!empty($meta['date_start'])) {
								$dt = $meta['date_start'];
								$tm = !empty($meta['time_start']) ? $meta['time_start'] : '';
								echo sprintf($dt < date('Y-m-d'.($tm ? ' H:i' : '')) 
												? esc_html__('Started on %s', 'trx_addons') 
												: esc_html__('Starting %s', 'trx_addons'),
												'<span class="sport_page_meta_item_date">' . date(get_option('date_format').($tm ? ' '.get_option('time_format') : ''), strtotime($dt.($tm ? ' '.$tm : ''))) . '</span>');
							}
						}
					?></span>
				</div>
				<?php
			}
			?>
			
		</section>
		<?php

		// Post content
		?><div class="sport_page_content entry-content" itemprop="articleBody"><?php
			the_content( );
		?></div><!-- .entry-content --><?php
	?></article><?php

	// If comments are open or we have at least one comment, load up the comment template.
	if ( comments_open() || get_comments_number() ) {
		comments_template();
	}
}

get_footer();
?>