HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/retoti4c1e1s/www/thecommitment.earth/wp-content/themes/save-life/content-chess.php
<?php
/**
 * The Classic template to display the content
 *
 * Used for index/archive/search.
 *
 * @package WordPress
 * @subpackage SAVE_LIFE
 * @since SAVE_LIFE 1.0
 */

$save_life_blog_style = explode('_', save_life_get_theme_option('blog_style'));
$save_life_columns = empty($save_life_blog_style[1]) ? 1 : max(1, $save_life_blog_style[1]);
$save_life_expanded = !save_life_sidebar_present() && save_life_is_on(save_life_get_theme_option('expand_content'));
$save_life_post_format = get_post_format();
$save_life_post_format = empty($save_life_post_format) ? 'standard' : str_replace('post-format-', '', $save_life_post_format);
$save_life_animation = save_life_get_theme_option('blog_animation');

?><article id="post-<?php the_ID(); ?>" 
	<?php post_class( 'post_item post_layout_chess post_layout_chess_'.esc_attr($save_life_columns).' post_format_'.esc_attr($save_life_post_format) ); ?>
	<?php echo (!save_life_is_off($save_life_animation) ? ' data-animation="'.esc_attr(save_life_get_animation_classes($save_life_animation)).'"' : ''); ?>
	>

	<?php
	// Add anchor
	if ($save_life_columns == 1 && shortcode_exists('trx_sc_anchor')) {
		echo do_shortcode('[trx_sc_anchor id="post_'.esc_attr(get_the_ID()).'" title="'.the_title_attribute( array( 'echo' => false ) ).'"]');
	}

	// Featured image
	save_life_show_post_featured( array(
											'class' => $save_life_columns == 1 ? 'trx-stretch-height' : '',
											'show_no_image' => true,
											'thumb_bg' => true,
											'thumb_size' => save_life_get_thumb_size(
																	strpos(save_life_get_theme_option('body_style'), 'full')!==false
																		? ( $save_life_columns > 1 ? 'huge' : 'original' )
																		: (	$save_life_columns > 2 ? 'big' : 'huge')
																	)
											) 
										);

	?><div class="post_inner"><div class="post_inner_content"><?php 

		?><div class="post_header entry-header"><?php 
			do_action('save_life_action_before_post_title'); 

			// Post title
			the_title( sprintf( '<h3 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
			
			do_action('save_life_action_before_post_meta'); 

			// Post meta
			$save_life_post_meta = save_life_show_post_meta(array(
									'categories' => false,
									'date' => true,
									'author' => true,
									'edit' => $save_life_columns == 1,
									'seo' => false,
									'share' => false,
									'counters' => $save_life_columns < 3 ? 'comments' : '',
									'echo' => false
									)
								);
			save_life_show_layout($save_life_post_meta);
		?></div><!-- .entry-header -->
	
		<div class="post_content entry-content">
			<div class="post_content_inner">
				<?php
				$save_life_show_learn_more = !in_array($save_life_post_format, array('link', 'aside', 'status', 'quote'));
				if (has_excerpt()) {
					the_excerpt();
				} else if (strpos(get_the_content('!--more'), '!--more')!==false) {
					the_content( '' );
				} else if (in_array($save_life_post_format, array('link', 'aside', 'status', 'quote'))) {
					the_content();
				} else if (substr(get_the_content(), 0, 1)!='[') {
					the_excerpt();
				}
				?>
			</div>
			<?php
			// Post meta
			if (in_array($save_life_post_format, array('link', 'aside', 'status', 'quote'))) {
				save_life_show_layout($save_life_post_meta);
			}
			// More button
			if ( $save_life_show_learn_more ) {
				?><p><a class="more-link" href="<?php the_permalink(); ?>"><?php esc_html_e('Read more', 'save-life'); ?></a></p><?php
			}
			?>
		</div><!-- .entry-content -->

	</div></div><!-- .post_inner -->

</article>