Sindbad~EG File Manager

Current Path : /home/copmadinaarea/www/wp-content__80fcb17/themes/AdoreChurch/
Upload File :
Current File : /home/copmadinaarea/www/wp-content__80fcb17/themes/AdoreChurch/content-gallery.php

<?php
$options = get_option('imic_options');
global $blog_masonry, $grid_column, $framework_allowed_tags;
$gallery = '';
$title = '<h3 class="post-title"><a href="' . esc_url(get_permalink(get_the_ID())) . '">' . get_the_title() . '</a></h3>';
$post_author_id = get_post_field('post_author', get_the_ID());
$meta_data = '<span class="meta-data"><span class="meta-post-date"><i class="fa fa-calendar"></i> ' . esc_html(get_the_date()) . '</span><span class="meta-post-author">' . esc_html__(' by ', 'framework') . '<a href="' . esc_url(get_author_posts_url($post_author_id)) . '">' . esc_attr(get_the_author_meta('display_name', $post_author_id)) . '</a></span></span>';
$posts_excerpt_length = (isset($options['posts_excerpt_length'])) ? $options['posts_excerpt_length'] : 30;
$content = imic_excerpt($posts_excerpt_length);
$image_data = get_post_meta(get_the_ID() , 'imic_gallery_images', false);
$gallery .= imic_gallery_flexslider(get_the_ID());
if (count($image_data) > 0)
{
    $gallery .= '<ul class="slides">';
    foreach ($image_data as $custom_gallery_images)
    {
        $large_src = wp_get_attachment_image_src($custom_gallery_images, 'full');
        if (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 0)
        {
            $Lightbox_init = '<li class="item"><a href="' . esc_url($large_src[0]) . '" data-rel="prettyPhoto[' . get_the_title() . ']">';
        }
        elseif (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 1)
        {
            $Lightbox_init = '<li class="item"><a href="' . esc_url($large_src[0]) . '" class="magnific-gallery-image">';
        }
        if (is_single())
        {
            $gallery .= $Lightbox_init;
            $gallery .= wp_get_attachment_image($custom_gallery_images, '1000x800');
            $gallery .= '</a></li>';
        }
        else
        {
            $gallery .= '<li class="item format-standard"><a href="' . esc_url(get_permalink(get_the_ID())) . '" class="media-box">';
            $gallery .= wp_get_attachment_image($custom_gallery_images, '600x400');
            $gallery .= '</a></li>';
        }
    }
    $gallery .= '</ul>';
}
$gallery .= '</div>';
if ($blog_masonry == 0)
{ ?>
	<article <?php post_class('post-list-item format-gallery'); ?>>
    	<div class="post-media">
        	<?php echo wp_kses($gallery, $framework_allowed_tags); ?>
      	</div>
       	<div class="post-excerpt">
       		<?php echo wp_kses($meta_data, $framework_allowed_tags); ?>
           	<?php echo wp_kses($title, $framework_allowed_tags); ?>
           	<?php echo wp_kses($content, $framework_allowed_tags); ?>
           	<span class="meta-data post-cats"><?php the_category('| ');
    if (comments_open())
    {
        echo comments_popup_link('<i class="fa fa-comment"></i>' . esc_html__('No comments yet', 'framework') , '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'pull-right meta-data', 'comments-link', esc_html__('Comments are off for this post', 'framework'));
    } ?></span>
           	<a href="<?php echo esc_url(get_permalink(get_the_ID())); ?>" class="basic-link"><?php _e('Continue reading', 'framework'); ?></a>
        </div>
 	</article>
<?php
}
elseif ($blog_masonry == 2)
{
    $title_single = '<h3 class="post-title">' . get_the_title() . '</h3>'; ?>
	<div class="title-row">
	<?php if (comments_open())
    {
        echo comments_popup_link('<i class="icon-dialogue-text"></i>' . esc_html__('', 'framework') , '<i class="icon-dialogue-text"></i>', '<i class="icon-dialogue-text"></i>', 'comments-go', 'comments-link', esc_html__('', 'framework'));
    } ?>
	<h2><?php echo wp_kses($title_single, $framework_allowed_tags); ?></h2></div>
    <div class="meta-data">
      	<?php echo wp_kses($meta_data, $framework_allowed_tags); ?>
      	<span><i class="fa fa-archive"></i> <?php the_category(', '); ?></span>
  	</div>
 	<div class="post-media">
    	<?php echo wp_kses($gallery, $framework_allowed_tags); ?>
  	</div>
    <div class="post-content">
     	<?php the_content(); ?>
	</div>
 	<?php if (has_tag())
    {
        echo '<div class="meta-data post-tags">';
        echo '<i class="fa fa-tags"></i> ';
        the_tags('', ', ');
        echo '</div>';
    }
}
else
{ ?>
	<li class="col-md-<?php echo esc_attr($grid_column); ?> col-sm-6 blog-item grid-item format-gallery">
    	<div class="grid-item-inner">
       		<div class="post-media">
            	<?php echo wp_kses($gallery, $framework_allowed_tags); ?>
         	</div>
           	<div class="grid-content">
         		<?php echo wp_kses($title, $framework_allowed_tags); ?>
               	<?php echo wp_kses($content, $framework_allowed_tags); ?>
             	<?php echo wp_kses($meta_data, $framework_allowed_tags); ?>
          	</div>
          	<div class="grid-footer clearfix">
         		<?php if (comments_open())
    {
        echo comments_popup_link('<i class="fa fa-comment"></i>' . esc_html__('No comments yet', 'framework') , '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'pull-right meta-data', 'comments-link', esc_html__('Comments are off for this post', 'framework'));
    } ?>
           		<a href="<?php echo esc_url(get_permalink(get_the_ID())); ?>" class="basic-link"><?php esc_html_e('Read post', 'framework'); ?></a>
       		</div>
    	</div>
	</li>
<?php
} ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists