Sindbad~EG File Manager
<?php
$options = get_option('imic_options');
global $column_class, $home_page, $ShowTitle, $framework_allowed_tags;
$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-gallery">';
$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
}
$image_data = get_post_meta(get_the_ID() , 'imic_gallery_images', false);
echo imic_gallery_flexslider(get_the_ID());
if (count($image_data) > 0)
{
echo '<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">';
}
echo wp_kses($Lightbox_init, $framework_allowed_tags);
echo wp_get_attachment_image($custom_gallery_images, $size);
echo '</a></li>';
}
echo '</ul>';
} ?>
</div>
<?php if ($ShowTitle == 1)
{ ?><h4 class="gallery-item-title"><?php the_title(); ?></h4><?php
} ?>
</li>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists