PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_maxslider_shortcode($attributes, $content) { extract( shortcode_atts( array( 'slide1_img_url'=>'', 'slide2_img_url'=>'', 'slide3_img_url'=>'', 'slide4_img_url'=>'', 'slide5_img_url'=>'', 'slide_img_pattern'=>'true', 'slide_img_parallax'=>'true', 'id'=>'' ) , $attributes)); if(is_numeric($slide1_img_url)) $slide1_img_url = wp_get_attachment_url( $slide1_img_url ); if(is_numeric($slide2_img_url)) $slide2_img_url = wp_get_attachment_url( $slide2_img_url ); if(is_numeric($slide3_img_url)) $slide3_img_url = wp_get_attachment_url( $slide3_img_url ); if(is_numeric($slide4_img_url)) $slide4_img_url = wp_get_attachment_url( $slide4_img_url ); if(is_numeric($slide5_img_url)) $slide5_img_url = wp_get_attachment_url( $slide5_img_url ); if(!empty($id)) $out = '</div></section><section id="'.$id.'" class="max-hero maxslider">'; else $out = '</div></section><section class="max-hero maxslider">'; $out .= '<div class="slides-control"><div class="slides-container'; if( 'true' == $slide_img_pattern ) $out .= ' spattern '; if( 'true' == $slide_img_parallax ) $out .= ' sparallax'; $out .= '">'; if(!empty($slide1_img_url)) $out .= '<div class="slide1 slide-image" style="background-image: url(\''.$slide1_img_url.'\')"></div>'; if(!empty($slide2_img_url)) $out .= '<div class="slide2 slide-image" style="background-image: url(\''.$slide2_img_url.'\')"></div>'; if(!empty($slide3_img_url)) $out .= '<div class="slide3 slide-image" style="background-image: url(\''.$slide3_img_url.'\')"></div>'; if(!empty($slide4_img_url)) $out .= '<div class="slide4 slide-image" style="background-image: url(\''.$slide4_img_url.'\')"></div>'; if(!empty($slide5_img_url)) $out .= '<div class="slide5 slide-image" style="background-image: url(\''.$slide5_img_url.'\')"></div>'; $out .= '</div></div>'; $out .= '<nav class="slides-navigation"><a href="#" class="next"></a><a href="#" class="prev"></a></nav>'; $out .= '<div class="slides-content"><div class="container">'; $out .= do_shortcode($content); $out .= '</div></div></section>'; $out .= '<section class="container"><div class="row-wrapper-x">'; return $out; } add_shortcode("maxslider", 'easyweb_webnus_maxslider_shortcode'); ?>
[+]
..
[-] ourclients.php
[edit]
[-] pricing-plan.php
[edit]
[-] callout.php
[edit]
[-] icon.php
[edit]
[-] blog.php
[edit]
[-] buy-process.php
[edit]
[-] tab.php
[edit]
[-] distance.php
[edit]
[-] heading.php
[edit]
[-] alerts.php
[edit]
[-] categorybox.php
[edit]
[-] columns.php
[edit]
[-] ministry.php
[edit]
[-] postfromblog.php
[edit]
[-] single-resource-books.php
[edit]
[-] ourteam.php
[edit]
[-] video-bg.php
[edit]
[-] accordion.php
[edit]
[-] title.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] webtags.php
[edit]
[-] slide-up-note.php
[edit]
[-] latest-from-blog.php
[edit]
[-] iconbox.php
[edit]
[-] quote.php
[edit]
[-] iconfonts-param.php
[edit]
[-] subscribe.php
[edit]
[-] list.php
[edit]
[-] buttons.php
[edit]
[-] checklist-param.php
[edit]
[-] maxslider.php
[edit]
[-] teaser-box.php
[edit]
[-] latest-news.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] our-porcess.php
[edit]
[-] lefttab.php
[edit]
[-] flexslider.php
[edit]
[-] icon-divider.php
[edit]
[-] googlemap.php
[edit]
[-] webnus-divider.php
[edit]
[-] tooltip.php
[edit]
[-] highlight.php
[edit]
[-] taglineslider.php
[edit]
[-] pie.php
[edit]
[-] countdown.php
[edit]
[-] maxcounter.php
[edit]
[-] testimonials.php
[edit]
[-] parallax.php
[edit]
[-] doublepromo.php
[edit]
[-] resource-books.php
[edit]
[-] progressbar.php
[edit]
[-] dropcap.php
[edit]
[-] video-play.php
[edit]
[-] blox.php
[edit]
[-] pricingtables.php
[edit]
[-] magicmore.php
[edit]