PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_services ( $atts, $content = null ) { extract(shortcode_atts(array( 'type' => '1', 'service_single_title' => '', 'bgcolor' => '', 'service_single_content' => '', 'icon_name' => '', 'carousel_item' => '', 'item_carousle' => '3', ), $atts )); $style = ''; static $uniqid = 0; $uniqid++; if ( $type == '1' ){ // Fetch Carousle Item Loop Variables $carousel_item = (array) vc_param_group_parse_atts( $carousel_item ); $carousel_item_data = array(); foreach ( $carousel_item as $data ) { $new_line = $data; $new_line['service_icon'] = isset( $new_line['service_icon'] ) ? $new_line['service_icon']: ''; $new_line['service_title'] = isset( $new_line['service_title'] ) ? $new_line['service_title']: ''; $new_line['service_content'] = isset( $new_line['service_content'] ) ? $new_line['service_content']: ''; $new_line['service_image'] = isset( $new_line['service_image'] ) ? $new_line['service_image']: ''; $carousel_item_data[] = $new_line; } // Render $out = ' <div class="clearfix"> <div class="container"> <div class="our-service-carousel-wrap owl-carousel owl-theme" data-items="' . $item_carousle . '" >'; foreach ( $carousel_item_data as $line ) : $line['service_image'] = is_numeric( $line['service_image'] ) ? wp_get_attachment_url( $line['service_image'] ) : $line['service_image']; $line['service_image'] = $line['service_image'] ? '<img src="' . $line['service_image'] . '" alt="' . $line['service_title'] . '">' : '' ; $line['service_icon'] = $line['service_icon'] ? '<i class="' . $line['service_icon'] . '"></i>' : '' ; $line['service_title'] = $line['service_title'] ? '<h2>' . $line['service_title'] . '</h2>' : '' ; $line['service_content'] = $line['service_content'] ? '<p>' . $line['service_content'] . '</p>' : '' ; $out .=' <div class="services-carousel"> ' . $line['service_image'] . ' <div class="tdetail"> ' . $line['service_icon'] . $line['service_title'] . $line['service_content'] . ' </div> </div>'; endforeach; $out .=' </div> </div> </div>'; } if ( $type == '2' ){ $service_single_title = ( $service_single_title ) ? '<h3>' . $service_single_title . '</h3>' : '' ; include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'js_composer/js_composer.php' ) ) { $service_single_content = wpb_js_remove_wpautop($service_single_content, true); } else { $service_single_content = $service_single_content; } $service_main_content = ( $service_single_content ) ? '<div class="extra-content">' . $service_single_content . ' <div class="close-toggle"><i class="ti-minus"></i></div> </div>' : ''; $out = ' <div class="suite-toggle suite-toggle' . $uniqid . '" > <div class="main-content"> '. $service_single_title . ' <div class="service-icon"> <i class="sl-trophy"></i> </div> </div> <div class="toggle-content"> ' . $service_main_content . ' <span><i class="ti-plus"></i></span> </div> </div> '; } $style .= $bgcolor ? '.suite-toggle' . $uniqid . '{ background-color:' . $bgcolor . ' ;}' : ''; $style .= $bgcolor ? '.suite-toggle' . $uniqid . ' .toggle-content i { color:' . $bgcolor . ' ;}' : ''; deep_save_dyn_styles( $style ); // live editor if ( ! in_array( 'admin-bar', get_body_class() ) ) { if ( ! empty( $style ) ) { $out .= '<style>'; $out .= $style; $out .= '</style>'; } } return $out; } add_shortcode( 'services','deep_services' );
[+]
..
[-] 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]