Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/themes/puca/projects/single-project/ |
Upload File : |
<?php /** * Single Project Image * * @author WooThemes * @package Projects/Templates * @version 1.0.0 */ if (! defined('ABSPATH')) exit; // Exit if accessed directly global $post,$project,$projects; ?> <div id="owl-slider-one-img" class="stick-project"> <?php $attachment_ids = projects_get_gallery_attachment_ids(); if ($attachment_ids) { ?> <?php $loop = 0; $columns = apply_filters('projects_project_gallery_columns', 3); foreach ($attachment_ids as $attachment_id) { $classes = array('zoom'); if ($loop == 0 || $loop % $columns == 0) $classes[] = 'first'; if (($loop + 1) % $columns == 0) $classes[] = 'last'; $image_link = wp_get_attachment_url($attachment_id); if (! $image_link) continue; $image = wp_get_attachment_image($attachment_id, apply_filters('single_project_single_thumbnail_size', 'project-single')); $image_class = esc_attr(implode(' ', $classes)); $image_title = esc_attr(get_the_title($attachment_id)); if (apply_filters('projects_gallery_link_images', true)) { echo '<div class="item"><a class="lightbox-gallery" href="' . esc_url($image_link) . '" title="' . esc_attr($image_title) . '">' . trim($image) . '</a></div>'; } else { echo trim($image); } $loop++; } // endforeach ?> <?php } // endif ?> </div>