PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
themify-builder
/
templates
<?php /** * Template Gallery Lightboxed * * This template can be overridden by copying it to your child_theme_folder/themify-builder/template-gallery-lightboxed.php. * * Access original fields: $fields_args * @author Themify */ defined( 'ABSPATH' ) || exit; $settings=$args['settings']; $alt = isset($settings['gallery_images'][0]->post_excerpt) ? $settings['gallery_images'][0]->post_excerpt : ''; if(!empty($settings['thumbnail_gallery'])){ $thumbnail = $settings['thumbnail_gallery']; $t_post = get_post(themify_get_attachment_id_from_url($settings['thumbnail_gallery'])); } else{ /* if no thumbnail is set for the gallery, use the first image */ $thumbnail = wp_get_attachment_url($settings['gallery_images'][0]->ID); $t_post=null; } $thumbnail = themify_get_image(array('src'=>$thumbnail,'w'=>$settings['thumb_w_gallery'],'h'=>$settings['thumb_h_gallery'],'alt'=>$alt)); foreach ($settings['gallery_images'] as $key => $image): $is_thumbnail = 0 === $key && !empty($settings['thumbnail_gallery']); ?> <dl class="gallery-item<?php if($key===0):?> tf_hidden<?php endif;?>"<?php if($key!==0):?> style="display:none"<?php endif;?>> <?php $link = wp_get_attachment_url($image->ID); $title = $is_thumbnail===true && $t_post!==null? $t_post->post_title : $image->post_title; $caption = $is_thumbnail===true && $t_post!==null? $t_post->post_excerpt : $image->post_excerpt; if ( ! empty( $link ) ) : ?> <dt class="gallery-icon"> <a data-title="<?php esc_attr_e($settings['lightbox_title']) ?>" href="<?php echo esc_url($link) ?>" title="<?php esc_attr_e($title) ?>" data-rel="<?php echo $args['module_ID']; ?>" class="themify_lightbox"<?php echo ($is_thumbnail===true && $t_post!==null)?' data-t="'.$image->post_title.'"':''; ?>> <?php endif; ?> <?php echo $key === 0 ? $thumbnail : wp_get_attachment_image_src($image->ID, 'full')[1]; ?> <?php if ( ! empty( $link ) ) : ?> </a> </dt> <?php endif; ?> <?php if (($settings['gallery_image_title'] === 'yes' && $title!=='' ) || ( $settings['gallery_exclude_caption'] !== 'yes' && $caption!=='' )) : ?> <dd lass="wp-caption-text gallery-caption"> <?php if ($settings['gallery_image_title'] === 'yes' && $title!==''): ?> <strong class="themify_image_title tf_block"><?php echo $title; ?></strong> <?php endif; ?> <?php if ($settings['gallery_exclude_caption'] !== 'yes' && $caption!==''): ?> <span class="themify_image_caption"><?php echo $caption; ?></span> <?php endif ?> </dd> <?php endif ?> </dl> <?php endforeach; // end loop $t_post = null;
[+]
..
[-] template-accordion.php
[edit]
[-] template-login.php
[edit]
[-] template-builder-editor.php
[edit]
[-] template-copyright.php
[edit]
[-] template-testimonial-grid.php
[edit]
[-] template-callout.php
[edit]
[-] template-gallery-lightboxed.php
[edit]
[-] template-plain-text.php
[edit]
[-] template-map.php
[edit]
[-] template-buttons.php
[edit]
[-] template-alert.php
[edit]
[-] template-service-menu.php
[edit]
[-] template-layout-part.php
[edit]
[-] template-gallery-grid.php
[edit]
[-] template-tab.php
[edit]
[-] template-social-share.php
[edit]
[-] post_in_lightbox.php
[edit]
[-] template-widget.php
[edit]
[-] template-testimonial-slider.php
[edit]
[-] template-slider-blog.php
[edit]
[-] template-icon.php
[edit]
[-] template-blog.php
[edit]
[-] template-box.php
[edit]
[-] builder-output.php
[edit]
[-] template-menu.php
[edit]
[-] template-divider.php
[edit]
[-] template-gallery-showcase.php
[edit]
[-] template-page-break.php
[edit]
[-] builder-layout-part-output.php
[edit]
[-] template-feature.php
[edit]
[-] template-signup-form.php
[edit]
[-] template-gallery.php
[edit]
[-] template-video.php
[edit]
[-] template-lottie.php
[edit]
[-] template-slider-image.php
[edit]
[-] template-text.php
[edit]
[-] template-slider-text.php
[edit]
[-] template-link-block.php
[edit]
[-] template-testimonial-slider-content.php
[edit]
[-] template-toc.php
[edit]
[-] template-image.php
[edit]
[-] template-fancy-heading.php
[edit]
[-] template-slider-video.php
[edit]
[-] template-overlay-content.php
[edit]
[-] template-optin.php
[edit]
[-] template-widgetized.php
[edit]
[-] template-code.php
[edit]
[-] template-gallery-slider.php
[edit]
[-] template-slider.php
[edit]
[-] template-star.php
[edit]