MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/themes/ri-colias/content.php
<?php
/**
 * The default template for displaying content
 *
 * RIT Core
 * @package     RIT Core
 * @version     0.1
 * @author      CleverSoft
 * @link        http://cleversoft.co
 * @copyright   Copyright (c) 2015 CleverSoft
 * @license     GPL v2
 */
?>

<article id="post-<?php the_ID(); ?>" <?php (is_single()) ? post_class() : post_class('post-item'); ?>>

    <?php if(has_post_format('gallery')) : ?>

        <?php $images = get_post_meta( $post->ID, '_format_gallery_images', true ); ?>

        <?php if($images) : ?>
            <div class="post-image<?php echo (is_single()) ? ' single-image' : ''; ?>">
                <ul class="owl-single">
                    <?php foreach($images as $image) : ?>

                        <?php $the_image = wp_get_attachment_image_src( $image, 'full-thumb' ); ?>
                        <?php $the_caption = get_post_field('post_excerpt', $image); ?>
                        <li><img src="<?php echo esc_url($the_image[0]); ?>" <?php if($the_caption) : ?>title="<?php echo esc_attr($the_caption); ?>"<?php endif; ?> /></li>

                    <?php endforeach; ?>
                </ul>
            </div>
        <?php endif; ?>

    <?php elseif(has_post_format('video')) : ?>

        <div class="post-image single-video embed-responsive embed-responsive-16by9<?php echo (is_single()) ? ' single-video embed-responsive embed-responsive-16by9' : ''; ?>">
            <?php $sp_video = get_post_meta( $post->ID, '_format_video_embed', true ); ?>
            <?php if(wp_oembed_get( $sp_video )) : ?>
                <?php echo str_replace($search, $replace, wp_oembed_get($sp_video)); ?>
            <?php else : ?>
                <?php echo str_replace('', '', $sp_video); ?>
            <?php endif; ?>
        </div>

    <?php elseif(has_post_format('audio')) : ?>

        <div class="post-image audio<?php echo (is_single()) ? ' single-audio' : ''; ?>">
            <?php $sp_audio = get_post_meta( $post->ID, '_format_audio_embed', true ); ?>
            <?php if(wp_oembed_get( $sp_audio )) : ?>
                <?php echo str_replace($search, $replace, wp_oembed_get($sp_audio)); ?>
            <?php else : ?>
                <?php echo str_replace('','', $sp_audio); ?>
            <?php endif; ?>
        </div>

    <?php else : ?>

        <?php if(has_post_thumbnail()) : ?>
            <?php if(!get_theme_mod('sp_post_thumb')) : ?>
                <div class="post-image<?php echo (is_single()) ? ' single-image' : ''; ?>">
                    <a href="<?php echo get_permalink() ?>"><?php the_post_thumbnail('full-thumb'); ?></a>
                </div>
            <?php endif; ?>
        <?php endif; ?>

    <?php endif; ?>

    <?php if(get_theme_mod('rit_enable_page_heading', '1')) { ?>
    <div class="entry-header clearfix">
        <header class="entry-header">
            <?php
                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;
            ?>
        </header><!-- .entry-header -->

        <?php
        if (is_single()){?>
            <div class="entry_pagination pull-right">
                <?php get_template_part('included/templates/post_pagination'); ?>
            </div>
        <?php
        }
        ?>

    </div>

    <?php } ?>
    <div class="article-meta">
        <span class="post-date"><i class="fa fa-clock-o"></i><?php echo get_the_date('F jS, Y'); ?></span> |
        <span class="post-cat"><i class="fa fa-eye"></i><?php echo sp_category(', '); ?></span>
    </div>

	<div class="entry-content">
		<?php
            if(is_single()){
                the_content();
            } else {
                echo rit_content(50);
            }
        ?>
	</div><!-- .entry-content -->

    <?php if(!is_single()) { ?>
        <div class="entry-action clearfix">
            <a href="<?php echo the_permalink(); ?>" class="btn btn-primary pull-right"><?php echo esc_html__('Read More', 'ri-colias'); ?>  <i class="fa fa-long-arrow-right"></i></a>
        </div>
    <?php } ?>

	<?php
		// Author bio.
		if (is_single()) :
            get_template_part('included/templates/tag');
            get_template_part('included/templates/share');
            get_template_part('included/templates/about_author');
            get_template_part('included/templates/related_posts');
		endif;
	?>

</article><!-- #post-## -->