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/gallery-video.php

<?php $video_link = get_post_meta(get_the_ID() , 'imic_gallery_video_url', true);
$options = get_option('imic_options');
global $column_class, $home_page, $ShowTitle, $framework_allowed_tags;
if ($video_link != '')
{
    $post_format_temp = get_post_format(get_the_ID());
    $post_format = !empty($post_format_temp) ? $post_format_temp : 'image';
    $term_slug = get_the_terms(get_the_ID() , 'gallery-category');
    if ($home_page == "home")
    {
        echo '<li class="format-video">';
        $size = '400x400';
    }
    else
    {
        $size = '600x400';
        echo '<li class=" col-md-' . $column_class . ' col-sm-' . $column_class . ' grid-item format-' . $post_format . ' ';
        if (!empty($term_slug))
        {
            foreach ($term_slug as $term)
            {
                echo esc_attr($term->slug) . ' ';
            }
        } ?>"><?php
    }
    if (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 0)
    {
        $Lightbox_init = '<a href="' . esc_url($video_link) . '" data-rel="prettyPhoto" class="media-box">';
    }
    elseif (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 1)
    {
        $Lightbox_init = '<a href="' . esc_url($video_link) . '" class="media-box magnific-video">';
    } ?>
<?php echo wp_kses($Lightbox_init, $framework_allowed_tags); ?><?php the_post_thumbnail($size); ?></a>
 <?php if ($ShowTitle == 1)
    { ?><h4 class="gallery-item-title"><?php the_title(); ?></h4><?php
    } ?>
</li>
<?php
} ?>

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