PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_roadmap_shortcode( $attributes, $content ) { extract( shortcode_atts( array( 'roadmap_item' => '', 'shortcodeclass' => '', 'shortcodeid' => '', ), $attributes ) ); wp_enqueue_style( 'wn-deep-road-map', DEEP_ASSETS_URL . 'css/frontend/road-map/road-map.css' ); // Class & ID $shortcodeclass = $shortcodeclass ? $shortcodeclass : ''; $shortcodeid = $shortcodeid ? ' id="' . $shortcodeid . '"' : ''; static $uniqid = 0; $uniqid++; // roadmap_item loop include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $roadmap_item_data = array(); // Fetch Item Loop Variables if ( is_plugin_active( 'js_composer/js_composer.php' ) ) { $roadmap_item = (array) vc_param_group_parse_atts( $roadmap_item ); foreach ( $roadmap_item as $data ) : $new_line = $data; $new_line['item_title'] = isset( $data['item_title'] ) ? $data['item_title'] : ''; $new_line['item_desc'] = isset( $data['item_desc'] ) ? $data['item_desc'] : ''; $new_line['item_past'] = isset( $data['item_past'] ) ? $data['item_past'] : ''; $new_line['item_select'] = isset( $data['item_select'] ) ? $data['item_select'] : ''; $roadmap_item_data[] = $new_line; endforeach; } elseif ( is_plugin_active( 'kingcomposer/kingcomposer.php' ) && (is_array($roadmap_item) || is_object($roadmap_item)) ) { foreach( $attributes['roadmap_item'] as $key => $data ){ $new_line = $data; $new_line->item_title = isset( $data->item_title ) ? $data->item_title : ''; $new_line->item_desc = isset( $data->item_desc ) ? $data->item_desc : ''; $new_line->item_past = isset( $data->item_past ) ? $data->item_past : ''; $new_line->item_select = isset( $data->item_select ) ? $data->item_select : ''; $roadmap_item_data[] = $new_line; } } // render $out = ' <div class="roadmap-wrap roadmap-wrap-' . $uniqid . ' ' . $shortcodeclass . '" ' . $shortcodeid . '> <div class="roadmap-items">'; if ( is_plugin_active( 'js_composer/js_composer.php' ) ) { foreach ( $roadmap_item_data as $line ) : $item_past_class = ''; $item_select_class = ''; if ($line['item_past']) { $item_past_class = ' roadmap-past'; } if ($line['item_select']) { $item_select_class = ' roadmap-select'; } $out .= ' <div class="roadmap-item' . $item_past_class . $item_select_class . '"> <div class="roadmap-line"> <div class="text-wrap"> <h4>' . $line['item_title'] . '</h4> <p>' . $line['item_desc'] . '</p> </div> </div> </div>'; endforeach; } elseif ( is_plugin_active( 'kingcomposer/kingcomposer.php' ) ) { foreach ( $roadmap_item_data as $line ) : $item_past_class = ''; $item_select_class = ''; if ($line->item_past) { $item_past_class = ' roadmap-past'; } if ($line->item_select) { $item_select_class = ' roadmap-select'; } $out .= ' <div class="roadmap-item' . $item_past_class . $item_select_class . '"> <div class="roadmap-line"> <div class="text-wrap"> <h4>' . $line->item_title . '</h4> <p>' . $line->item_desc . '</p> </div> </div> </div>'; endforeach; } $out .= ' </div> </div>'; return $out; } add_shortcode( 'roadmap', 'deep_roadmap_shortcode' );
[+]
..
[-] 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]