PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_gallery_view( $atts, $content = null ) { extract( shortcode_atts( array( 'images' => '', 'img_in_row' => 'three', 'imgh' => '300', 'imgw' => '300', 'shortcodeclass' => '', 'shortcodeid' => '', ), $atts )); wp_enqueue_style( 'wn-deep-gallery', DEEP_ASSETS_URL . 'css/frontend/deep-gallery/deep-gallery.css' ); wp_enqueue_style( 'wn-deep-lc-lightbox', DEEP_ASSETS_URL . 'css/frontend/lc-lightbox/lc_lightbox.min.css' ); wp_enqueue_script('deep-gallery-js', DEEP_ASSETS_URL . 'js/libraries/lc.lightbox.min.js' ,array( 'jquery'),false,true); wp_enqueue_script('deep-gallery-vc', DEEP_ASSETS_URL . 'js/frontend/deep-gallery-vc.js' ,array( 'jquery'),false,true); include_once ABSPATH . 'wp-admin/includes/plugin.php'; $images = explode ( ',', $images ); $out = ''; $out .= '<div class="deep-gallery-wrap ' . esc_attr( $shortcodeclass ) . '" id="'. esc_attr( $shortcodeid ) .'">'; $out .= '<div class="deep-gallery">'; if ( $images ) { foreach ( $images as $image ) { $img_src = wp_get_attachment_url( $image ); if ( !class_exists( 'Wn_Img_Maniuplate' ) ) { require_once DEEP_CORE_DIR . 'helper-classes/class_webnus_manuplate.php'; } $rimage = new \Wn_Img_Maniuplate; $new_image = $rimage->m_image( $image, $img_src , $imgw , $imgh ); $out .= '<div class="deep-gallery-item deep-gallery-item-' . esc_attr( $img_in_row ) . '"> <a class="gallery-item" href="'.$new_image.'" data-lcl-thumb="'.$new_image.'"> <span style="background-image: url('.$new_image.')"></span> <i class="wn-icon ti-plus hover-icon"></i> </a>'; $out .= '</div>'; } $out .= '</div>'; $out .= '</div>'; } return $out; } add_shortcode( 'deep_gallery', 'deep_gallery_view' );
[+]
..
[-] video-teaser.php
[edit]
[-] vcw.php
[edit]
[-] sermon-category.php
[edit]
[-] iconbox.php
[edit]
[-] speakers.php
[edit]
[-] iconfonts-param.php
[edit]
[-] checklist-param.php
[edit]
[-] infobox.php
[edit]
[-] webtags.php
[edit]
[-] teaser-box.php
[edit]
[-] latest-from-blog.php
[edit]
[-] reservation.php
[edit]
[-] subscribe.php
[edit]
[-] progressbar.php
[edit]
[-] review-items.php
[edit]
[-] icon-divider.php
[edit]
[-] toggle-box.php
[edit]
[+]
assets
[-] pie.php
[edit]
[-] asermon.php
[edit]
[-] buttons.php
[edit]
[-] accordion.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] deep-gallery.php
[edit]
[-] custom-menu.php
[edit]
[-] postslider.php
[edit]
[-] magazine.php
[edit]
[-] callout.php
[edit]
[-] maxcounter.php
[edit]
[-] testimonialslider.php
[edit]
[-] testimonials.php
[edit]
[-] wp-hotel-booking.php
[edit]
[-] services.php
[edit]
[-] image-carousel.php
[edit]
[-] category-tab.php
[edit]
[-] slide-up-note.php
[edit]
[-] ourteam.php
[edit]
[-] prayerwall-items.php
[edit]
[-] heading.php
[edit]
[-] tablepress.php
[edit]
[-] instagram.php
[edit]
[-] video-play.php
[edit]
[-] columns.php
[edit]
[-] special-offer.php
[edit]
[-] like-view-share.php
[edit]
[-] image-hotspot.php
[edit]
[-] postfromblog.php
[edit]
[-] roadmap.php
[edit]
[-] search.php
[edit]
[-] recipes.php
[edit]
[-] ourclients.php
[edit]
[-] tab.php
[edit]
[-] blog.php
[edit]
[-] icon.php
[edit]
[-] latest-tweets.php
[edit]
[-] before-after-image.php
[edit]
[-] food-menu.php
[edit]
[-] alerts.php
[edit]
[-] login.php
[edit]
[-] pricing-plan.php
[edit]
[-] dropcap.php
[edit]
[-] rooms.php
[edit]
[-] prayerwall-form.php
[edit]
[-] countdown.php
[edit]
[-] lefttab.php
[edit]
[-] schedule.php
[edit]
[-] block-quote.php
[edit]
[-] highlight.php
[edit]
[-] our-process.php
[edit]
[-] w-title.php
[edit]
[-] shop-products.php
[edit]
[-] buy-process.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] causes.php
[edit]
[-] review-form.php
[edit]
[-] pricingtables.php
[edit]
[-] sermons.php
[edit]
[-] distance.php
[edit]
[-] collection.php
[edit]
[-] donate.php
[edit]
[-] googlemap.php
[edit]
[-] list.php
[edit]
[-] acause.php
[edit]
[-] service-carousel.php
[edit]
[-] quote.php
[edit]
[-] w-svg.php
[edit]
[-] tooltip.php
[edit]
[-] socials.php
[edit]
[-] process-carousel.php
[edit]