Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/entry/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/entry/columns-content.php
<?php
/**
 * Displays post entry content
 *
 * @package Apper WordPress theme
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $post;

//get options framework settings
$settings = acmthemes_settings();
$get_post_format = get_post_format();
?>

<?php do_action( 'before_blog_entry_content' ); ?>

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

		<div class="post-wrapper match-content">

			<?php
			//Featured media
			//show featured div only if condition true
			if( $get_post_format == 'video' || $get_post_format == 'audio' || $get_post_format == 'quote' || has_post_thumbnail() ) {
			?>
			<div class="featured-media">
					<?php
					if( $get_post_format == 'video' ){
							$get_video_url = get_post_meta($post->ID, '_post_video_url', true);
							if( !empty($get_video_url) ){
									if ( shortcode_exists( 'video' ) ) {
											echo do_shortcode("[video align='right' aspect_ratio='16:9' width='100' autoplay='0']" . esc_url($get_video_url) . "[/video]");
									}
									else {
											echo esc_url( $get_video_url );
									}
							}
					}
					if( $get_post_format == 'audio' ){
							$get_audio_url = get_post_meta($post->ID, '_post_audio_url', true);
							if( !empty($get_audio_url) && function_exists('acm_get_domain_name') ){
									$get_domain_name = acm_get_domain_name($get_audio_url);
									$get_extension = acm_get_file_url_ext($get_audio_url);

									if($get_domain_name[0] == "soundcloud") {
											if ( shortcode_exists( 'soundcloud' ) ) {
													echo do_shortcode("[soundcloud]" . esc_url($get_audio_url) . "[/soundcloud]");
											}
											else {
													echo esc_url($get_audio_url);
											}
									}
									elseif( in_array($get_extension, array('mp3', 'ogg', 'wav')) ){
											if ( shortcode_exists( 'audio' ) ) {
													echo do_shortcode('[audio ' . esc_url($get_extension) . '="' . $get_audio_url . '"]');
											}
											else {
													echo esc_url($get_extension);
											}
									}
							}
					}
					if( $get_post_format == 'quote' ){
					?>
					<blockquote class="blockquote">
							<?php if ( has_excerpt( $post->ID ) && isset( $settings['blog_excerpt_length'] ) && $settings['blog_excerpt_length'] < 100 ) {
									the_excerpt();
							}
							else {
									the_content();
							}
							?>
					</blockquote>
					<?php
							}
							elseif( $get_post_format != 'video' && $get_post_format != 'audio') {
								if( has_post_thumbnail() ){
									?>
									<div class="featured-image">
										<?php
										the_post_thumbnail( 'apper_blog_thumb', array( 'class' => 'img-responsive blog-thumbnail' ) );
										?>
										<div class="timestamp">
											<span class="post-month"><?php echo get_the_date('M'); ?></span>
											<span class="post-date"><?php echo get_the_date('d'); ?></span>
										</div>
									</div>
									<?php
								}
							}
							?>
				</div>

			<?php } ?>

		<div class="post-text">

			<header class="entry-header">
				<?php
				if( is_sticky($post->ID) ) { ?>
					<div class="featured-post"><?php echo esc_html__('Featured', 'apper'); ?></div>
				<?php
			} ?>

			<span class="post-categories">
				<?php
				$categories = get_the_category();
				if ( ! empty( $categories ) ) {
					 echo '<a href="' . esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>';
				}
				?>
			</span>

			<?php
				if( $get_post_format != 'quote' ) :
						if ( is_single() ) :
							the_title( '<h1 class="entry-title">', '</h1>' );
						else :
							the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
						endif;
				endif;
						?>

		 </header><!-- .entry-header -->

		<?php if( $get_post_format != 'quote' ) : ?>

			<div class="entry-content">
					<div class="post-excerpt">
							<?php if( isset( $settings['multi_col_blog_excerpt_length'] ) ) {
									echo acmthemes_excerpt( $settings['multi_col_blog_excerpt_length'] );
									 }
									 else {
										 echo acmthemes_excerpt( 15 );
									 }
							?>
					</div>
			</div><!-- .entry-content -->

			<div class="read-more-tag clearfix">
				<a href="<?php esc_url( the_permalink() ); ?>"><?php echo esc_html__('Read More', 'apper'); ?></a>
			</div>

		<?php endif; ?>

		</div>

	</div> <!-- post-wrapper -->

</article>

<?php do_action( 'after_blog_entry_content' ); ?>

Spamworldpro Mini