PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_ourclients($attributes, $content){ extract(shortcode_atts(array( 'type' => '1', 'client_images'=>'' ), $attributes)); $client_images_url = ''; if(!empty($client_images)) { $images_id_array = array(); $images_id_array =explode(',',$client_images); foreach($images_id_array as $id) { @$link = get_post($id)->post_excerpt; $alt_text = get_post_meta($id, '_wp_attachment_image_alt', true); if(empty($link)) $client_images_url .= '<li><img alt="'.$alt_text.'" src="' .wp_get_attachment_url( $id ) . '"/></li>'; else $client_images_url .= '<li><a target="_blank" href="'.esc_url($link).'"><img alt="'.$alt_text.'" src="' .wp_get_attachment_url( $id ) . '"/></a></li>'; } } $out = ''; $out .= '<div class="aligncenter">'; $out .= '<hr class="vertical-space1"><div class="col-md-12 our-clients-wrap '; if($type==2) { $out .='crsl'; } $out .= '"><ul id="our-clients" class="our-clients '; if($type==2) { $out .='crsl'; } $out .='">'; $out .= $client_images_url; $out .= do_shortcode($content); $out .='</ul>'; $out .= '</div><hr class="vertical-space2"></div>'; return $out; } add_shortcode("ourclients", "easyweb_webnus_ourclients"); function easyweb_webnus_client($attributes, $content){ extract(shortcode_atts(array( "img" => '', "img_alt" => '', ), $attributes)); return !empty($img)?'<li><img src="'.$img.'" alt="'.$img_alt.'"></li>':''; } add_shortcode("client", "easyweb_webnus_client"); ?>
[+]
..
[-] 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]