Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : posts-single.php
<?php
/**
 * Template for the profile single post
 *
 * This template can be overridden by copying it to your-theme/ultimate-member/profile/posts-single.php
 *
 * Page: "Profile"
 *
 * @version 2.8.2
 *
 * @var object $post
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
} ?>

<div class="um-item">
	<div class="um-item-link">
		<i class="um-icon-ios-paper"></i>
		<a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo wp_kses( get_the_title( $post ), UM()->get_allowed_html( 'templates' ) ); ?></a>
	</div>

	<?php
	if ( has_post_thumbnail( $post->ID ) ) {
		$image_id  = get_post_thumbnail_id( $post->ID );
		$image_url = wp_get_attachment_image_src( $image_id, 'full', true );
		?>
		<div class="um-item-img">
			<a href="<?php echo esc_url( get_permalink( $post ) ); ?>">
				<?php echo get_the_post_thumbnail( $post->ID, 'medium' ); ?>
			</a>
		</div>
		<?php
	}

	$unix_published_date = get_post_datetime( $post, 'date', 'gmt' );
	$categories_list     = get_the_category_list( ', ', '', $post->ID );
	?>

	<div class="um-item-meta">
		<?php if ( false !== $unix_published_date ) { ?>
			<span>
				<?php
				// translators: %s: human time diff.
				echo esc_html( sprintf( __( '%s ago', 'ultimate-member' ), human_time_diff( $unix_published_date->getTimestamp() ) ) );
				?>
			</span>
		<?php } ?>
		<?php if ( ! empty( $categories_list ) ) { ?>
			<span>
				<?php
				// translators: %s: categories list.
				echo wp_kses( sprintf( __( 'in: %s', 'ultimate-member' ), $categories_list ), UM()->get_allowed_html( 'templates' ) );
				?>
			</span>
		<?php } ?>
		<span>
			<?php
			$num_comments = absint( get_comments_number( $post ) );
			if ( 0 === $num_comments ) {
				$comments_html = __( 'no comments', 'ultimate-member' );
			} else {
				// translators: %s: comments number.
				$comments_html = sprintf( _n( '%s comment', '%s comments', $num_comments, 'ultimate-member' ), $num_comments );
			}
			?>
			<a href="<?php echo esc_url( get_comments_link( $post->ID ) ); ?>"><?php echo esc_html( $comments_html ); ?></a>
		</span>
	</div>
</div>
© 2025 XylotrechusZ