PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
themes
/
easyweb
/
inc
/
visualcomposer
/
shortcodes
<?php class WPBakeryShortCode_testimonial_item extends WPBakeryShortCode { /* * Thi methods returns HTML code for frontend representation of your shortcode. * You can use your own html markup. * * @param $atts - shortcode attributes * @param @content - shortcode content * * @access protected * * @return string */ protected function content($atts, $content = null) { extract(shortcode_atts(array( 'img'=>'', 'name'=>'', 'subtitle' => '', 'testimonial_content' => '', 'first_social'=>'twitter', 'first_url'=>'', 'second_social'=>'facebook', 'second_url'=>'', 'third_social'=>'google-plus', 'third_url'=>'', 'fourth_social'=>'linkedin', 'fourth_url'=>'' ), $atts)); if(is_numeric($img)){ $img = wp_get_attachment_url( $img ); } $out = "<li>"; $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\">"; if(!empty($img)) $out .= "<img src=\"".$img."\" alt=\"".$name."\">"; $out .= "<h5><strong>".$name."</strong><br>"; $out .= "<em>".$subtitle."</em></h5>"; if ( $first_url || $second_url || $third_url || $fourth_url ) : $out .= "<div class=\"social-testimonial\"><ul>"; if(!empty($first_url)) $out .= '<li class="first-social"><a href="'. esc_url($first_url) .'"><i class="fa-'. $first_social .'"></i></a></li>'; if(!empty($second_url)) $out .= '<li class="second-social"><a href="'. esc_url($second_url) .'"><i class="fa-'. $second_social .'"></i></a></li>'; if(!empty($third_url)) $out .= '<li class="third-social"><a href="'. esc_url($third_url) .'"><i class="fa-'. $third_social .'"></i></a></li>'; if(!empty($fourth_url)) $out .= '<li class="fourth-social"><a href="'. esc_url($fourth_url) .'"><i class="fa-'. $fourth_social .'"></i></a></li>'; $out .= "</ul></div>"; endif; $out .= "</div>"; $out .= "</div>"; $out .= "</li>"; return $out; } } vc_map( array( "name" =>"Testimonial Item", "base" => "testimonial_item", "description" => "Testimonials slider", "category" => esc_html__( 'Webnus Shortcodes', 'easyweb' ), "icon" => "webnus_testimonialitem", "content_element" => true, "as_child" => array('only' => 'testimonial_slider'), // Use only|except 'params'=>array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Name', 'easyweb' ), 'param_name' => 'name', 'value'=>'Name', 'description' => esc_html__( 'Enter the Testimonial Name', 'easyweb') ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'easyweb' ), 'param_name' => 'img', 'value'=>'http://', 'description' => esc_html__( 'Testimonial Image', 'easyweb') ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Subtitle', 'easyweb' ), 'param_name' => 'subtitle', 'value'=>'', 'description' => esc_html__( 'Testimonial Subtitle', 'easyweb') ), array( 'type' => 'textarea', 'heading' => esc_html__( 'Content', 'easyweb' ), 'param_name' => 'testimonial_content', 'value' => '', 'description' => esc_html__( 'Enter the Testimonial content text', 'easyweb') ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'First Social Name', 'easyweb' ), 'param_name' => 'first_social', 'value' => array( "Twitter"=>'twitter', "Facebook"=>'facebook', "Google Plus"=>'google-plus', "Vimeo"=>'vimeo', "Dribbble"=>'dribbble', "Youtube"=>'youtube', "Youtube"=>'youtube', "Pinterest"=>'pinterest', "LinkedIn"=>'linkedin', "Instagram"=>'instagram', ), 'std' => 'twitter', 'description' => esc_html__( 'Select Social Name', 'easyweb'), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'First Social URL', 'easyweb' ), 'param_name' => 'first_url', 'value'=>'', 'description' => esc_html__( 'First social URL', 'easyweb'), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Second Social Name', 'easyweb' ), 'param_name' => 'second_social', 'value' => array( "Twitter"=>'twitter', "Facebook"=>'facebook', "Google Plus"=>'google-plus', "Vimeo"=>'vimeo', "Dribbble"=>'dribbble', "Youtube"=>'youtube', "Youtube"=>'youtube', "Pinterest"=>'pinterest', "LinkedIn"=>'linkedin', "Instagram"=>'instagram', ), 'std' => 'facebook', 'description' => esc_html__( 'Select Social Name', 'easyweb'), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Second Social URL', 'easyweb' ), 'param_name' => 'second_url', 'value'=>'', 'description' => esc_html__( 'Second social URL', 'easyweb'), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Third Social Name', 'easyweb' ), 'param_name' => 'third_social', 'value' => array( "Twitter"=>'twitter', "Facebook"=>'facebook', "Google Plus"=>'google-plus', "Vimeo"=>'vimeo', "Dribbble"=>'dribbble', "Youtube"=>'youtube', "Youtube"=>'youtube', "Pinterest"=>'pinterest', "LinkedIn"=>'linkedin', "Instagram"=>'instagram', ), 'std' => 'google-plus', 'description' => esc_html__( 'Select Social Name', 'easyweb'), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Third Social URL', 'easyweb' ), 'param_name' => 'third_url', 'value'=>'', 'description' => esc_html__( 'Third social URL', 'easyweb'), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Fourth Social Name', 'easyweb' ), 'param_name' => 'fourth_social', 'value' => array( "Twitter"=>'twitter', "Facebook"=>'facebook', "Google Plus"=>'google-plus', "Vimeo"=>'vimeo', "Dribbble"=>'dribbble', "Youtube"=>'youtube', "Youtube"=>'youtube', "Pinterest"=>'pinterest', "LinkedIn"=>'linkedin', "Instagram"=>'instagram', ), 'std' => 'linkedin', 'description' => esc_html__( 'Select Social Name', 'easyweb'), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Fourth Social URL', 'easyweb' ), 'param_name' => 'fourth_url', 'value'=>'', 'description' => esc_html__( 'Fourth social URL', 'easyweb'), ), ), ) );
[+]
..
[-] 01-table.php
[edit]
[-] 04-latestblogs.php
[edit]
[-] 25-list.php
[edit]
[-] 01-pricing-tables.php
[edit]
[-] 19-postfromblog.php
[edit]
[-] 10-callout.php
[edit]
[-] 05-ministry.php
[edit]
[-] 38-boxlink.php
[edit]
[-] 24-taglineslider.php
[edit]
[-] 07-donate.php
[edit]
[-] 44-paragraph.php
[edit]
[-] 13-icon.php
[edit]
[-] 23-subtitle.php
[edit]
[-] 15-quote.php
[edit]
[-] 02-distance.php
[edit]
[-] 01-buy-process.php
[edit]
[-] 01-domain-whois.php
[edit]
[-] 50-tabs.php
[edit]
[-] 01-our-process.php
[edit]
[-] 01-latestnews.php
[edit]
[-] 41-googlemaps.php
[edit]
[-] 05-maxcounter.php
[edit]
[-] 06-ourteam.php
[edit]
[-] 16-teaserbox.php
[edit]
[-] 01-single-resource-books.php
[edit]
[-] 45-dropcap.php
[edit]
[-] 01-webnusdivider.php
[edit]
[-] 22-bigtitle.php
[edit]
[-] 08-testimonialitem.php
[edit]
[-] 29-icondivider.php
[edit]
[-] 04-ourclients.php
[edit]
[-] 48-line.php
[edit]
[-] 08-testimonial.php
[edit]
[-] 46-alert.php
[edit]
[-] 01-domain-checker.php
[edit]
[-] 01-slideup-note.php
[edit]
[-] 03-time-table.php
[edit]
[-] 33-flexslider.php
[edit]
[-] 01-portfolio-carousel.php
[edit]
[-] 03-iconbox.php
[edit]
[-] 34-link.php
[edit]
[-] 12-videoplay.php
[edit]
[-] 01-subscribe.php
[edit]
[-] 52-tooltip.php
[edit]
[-] 20-countdown.php
[edit]
[-] 41-doublepromo.php
[edit]
[-] 08-testimonialslider.php
[edit]
[-] 18-blog.php
[edit]
[-] 39-categorybox.php
[edit]
[-] 01-pricing-plan.php
[edit]
[-] 21-maxtitle.php
[edit]
[-] 07-button.php
[edit]
[-] 01-resource-books.php
[edit]
[-] 51-row.php
[edit]
[-] 08-testimonial-carousel.php
[edit]