PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_parallax($attributes, $content) { extract(shortcode_atts(array( "img" => '', "height" => '', 'padding_top' => 0, 'padding_bottom' => 0, 'bg_attachment' => 'false', 'bgcover' => 'true', 'repeat' => 'no-repeat', 'dark' => 'false', 'speed'=>'6', 'class' => '', 'bgcolor'=>'', 'row_pattern'=>'', 'row_color'=>'', 'id'=>'' ), $attributes)); if(is_numeric($img)){ $img = wp_get_attachment_url( $img ); } $fixed = ($bg_attachment == 'true')? 'fixed center top':'center'; $background_style = !empty($img)?" background: url('{$img}') {$repeat} {$fixed}; ":''; $background_size = ($bgcover=='true')? 'background-size: cover;':''; $w_height = ltrim ($height); if(substr($w_height,-2,2)=="px") $height_style = " min-height:{$w_height}; "; else $height_style = " min-height:{$w_height}px; "; $padding_top = ltrim ($padding_top); $padding_top = (substr($padding_top,-2,2)=="px")? $padding_top : $padding_top.'px'; $padding_bottom = ltrim ($padding_bottom); $padding_bottom = (substr($padding_bottom,-2,2)=="px")? $padding_bottom : $padding_bottom.'px'; $padding_style= " padding-top:{$padding_top}; padding-bottom:{$padding_bottom}; "; if(!empty($bgcolor)) $bgcolor = ' background-color:' . $bgcolor . ';'; $is_dark = ('true' == $dark) ? ' dark ' : ''; $section_id = (!empty($id))? 'id="'.$id.'"' : ''; $color_overlay = 'background-color:' . $row_color; $speed = ($speed > 1)? $speed/10 : $speed; $out = '</div></section><section '.$section_id.' class="parallax-sec '.$is_dark.' blox ' . $class .' '.$row_pattern . '" style="' . $padding_style . $background_style . $bgcolor . $background_size . $height_style . '" data-stellar-background-ratio="'.$speed. '"><div class="max-overlay" style="'. $color_overlay .'"></div><div data-stellar-ratio="1" class="wpb_row vc_row-fluid "><div class="container">'; $out .= do_shortcode($content); $out .= '</div></div></section><section class="container"><div class="row-wrapper-x">'; return $out; } add_shortcode('parallax', 'easyweb_webnus_parallax'); ?>
[+]
..
[-] 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]