PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_testimonial ($atts, $content = null) { extract(shortcode_atts(array( 'type'=>'1', 'testimonial_content'=>'', 'img'=>'', 'name'=>'', 'social' => '', 'first_social' => 'twitter', 'first_url' => '', 'second_social' => 'facebook', 'second_url' => '', 'third_social' => 'google-plus', 'third_url' => '', 'fourth_social' => 'linkedin', 'fourth_url' => '', 'member_job' => '', ), $atts)); if(is_numeric($img)){ $img = wp_get_attachment_url( $img ); } // socials $socials = ''; if ( $social == 'enable' ) : $social1 = $social2 = $social3 = $social4 = ''; $social1 = ( $first_url ) ? '<a href="' . esc_url( $first_url ) . '" target="_blank"><i class="fa-' . $first_social . '"></i></a>' : ''; $social2 = ( $second_url ) ? '<a href="' . esc_url( $second_url ) . '" target="_blank"><i class="fa-' . $second_social . '"></i></a>' : ''; $social3 = ( $third_url ) ? '<a href="' . esc_url( $third_url ) . '" target="_blank"><i class="fa-' . $third_social . '"></i></a>' : ''; $social4 = ( $fourth_url ) ? '<a href="' . esc_url( $fourth_url ) . '" target="_blank"><i class="fa-' . $fourth_social . '"></i></a>' : ''; $socials = '<div class="tl-social-team">' . $social1 . $social2 . $social3 . $social4 . '</div>'; endif; $out = ''; $img = $img ? '<img src="'. $img .'" alt="'. $name .'">' : ''; if ( $type == 1 ) : $out .= '<div class="testimonial">'; $out .= '<div class="testimonial-content">'; $out .= '<h4><q>'. $testimonial_content .'</q></h4>'; $out .= '<div class="testimonial-arrow"></div>'; $out .= '</div>'; $out .= '<div class="testimonial-brand">'.$img; $out .= '<h5><strong>'.$name.'</strong><br><em>'.$member_job.'</em></h5></div>'; $out .= '</div>'; else : $name = $name ? '<h5><strong>'. $name .'</h5>' : ''; $member_job = $member_job ? '<h6>'. $member_job .'</h6>' : ''; $content = $testimonial_content ? '<p>'. $testimonial_content .'</p>' : ''; if ( $type == 3 ) { $out = '<div class="testimonial'. esc_html( $type ) .'"> '. $img .'<div class="testimonial-content">'. $content . $socials .'<div class="t-m-footer">'.$name.' / '.$member_job .'</div></div></div>'; } else { $out = ' <div class="testimonial'. esc_html( $type ) .'"> ' . $img . ' <div class="testimonial-content">' . $name . $content . '</div> </div>'; } endif; return $out; } add_shortcode( 'testimonial','easyweb_webnus_testimonial' );
[+]
..
[-] 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]