PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_pricing_plan( $atts, $content = null ) { extract(shortcode_atts( array( 'type' => '1', 'flag' => 'none', 'title' => '', 'text_content' => '', 'features' => '', 'price' => '', 'link_text' => '', 'link_url' => '', ), $atts )); $title = $title ? '<h4>'. esc_html($title) .'</h4>' : '' ; $text_content = $text_content ? '<p>'. $text_content .'</p>' : '' ; $price = $price ? '<h4>'. esc_html($price) .'</h4>' : '' ; $link_text = $link_text ? '<a href="'. esc_url($link_url) .'" class="readmore">'. esc_html($link_text) .'</a>' : '' ; if ($type == 1) { $out = ' <div class="pricing-plan'. esc_html( $type ) .'"> <div class="ppheader"> ' . $title . $text_content . ' </div> <div class="ppfooter"> ' . $price . $link_text . ' </div> </div>'; } elseif ($type == 2) { // features loop $features = (array) vc_param_group_parse_atts( $features ); $features_data = array(); foreach ( $features as $data ) : $new_line = $data; $new_line['feature_icon'] = isset( $data['feature_icon'] ) ? $data['feature_icon'] : ''; $new_line['feature_item'] = isset( $data['feature_item'] ) ? $data['feature_item'] : ''; $features_data[] = $new_line; endforeach; $features_out = '<ul class="ppfeatures">'; foreach ( $features_data as $line ) : $features_out .= '<li class="feature-item"><span class="feature-icon ' . esc_html( $line['feature_icon'] ) . '"></span>' . esc_html( $line['feature_item'] ) . '</li>'; endforeach; $features_out .= '</ul>'; $flag = ( $flag != 'none' ) ? '<div class="ppflag">' . $flag . '</div>' : ''; $out = ' <div class="pricing-plan'. esc_html( $type ) .'"> ' . $flag . ' <div class="ppheader"> ' . $title . $features_out . ' </div> <div class="ppfooter"> ' . $price . $link_text . ' </div> </div>'; } return $out; } add_shortcode( 'pricing-plan','easyweb_webnus_pricing_plan' );
[+]
..
[-] 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]