PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_vcw ($atts, $content = null) { extract(shortcode_atts( array( 'type' => '1', 'symbol_1' => 'BTC', 'symbol_2' => 'USD', 'columns' => '1', 'img_f1' => '', 'symbol_f1' => 'BTC', 'currency_f1' => 'USD', 'img_f2' => '', 'symbol_f2' => 'BTC', 'currency_f2' => 'USD', 'img_f3' => '', 'symbol_f3' => 'BTC', 'currency_f3' => 'USD', 'img_f4' => '', 'symbol_f4' => 'BTC', 'currency_f4' => 'USD', 'img_f5' => '', 'symbol_f5' => 'BTC', 'currency_f5' => 'USD', 'shortcodeclass' => '', 'shortcodeid' => '', ), $atts)); wp_enqueue_style( 'wn-deep-full-card', DEEP_ASSETS_URL . 'css/frontend/full-card/full-card.css' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); // Class & ID $shortcodeclass = $shortcodeclass ? $shortcodeclass : ''; $shortcodeid = $shortcodeid ? ' id="' . $shortcodeid . '"' : ''; // if image is numeric, return image url if( is_numeric( $img_f1 ) ) { $img_f1 = wp_get_attachment_url( $img_f1 ); } if( is_numeric( $img_f2 ) ) { $img_f2 = wp_get_attachment_url( $img_f2 ); } if( is_numeric( $img_f3 ) ) { $img_f3 = wp_get_attachment_url( $img_f3 ); } if( is_numeric( $img_f4 ) ) { $img_f4 = wp_get_attachment_url( $img_f4 ); } if( is_numeric( $img_f5 ) ) { $img_f5 = wp_get_attachment_url( $img_f5 ); } if ($type == '1') { $out = do_shortcode( '[vcw-converter symbol1="' . $symbol_1 . '" symbol2="' . $symbol_2 . '" show_logo="no"]' ); } elseif ($type == '2') { $out = '<div class="row vcw-wrapper ' . $shortcodeclass . '" ' . $shortcodeid . '>' ; $image_f1 = '<figure class="symbol-icon"><img src="' . esc_url( $img_f1 ) . '" alt="' . $symbol_f1 . '"></figure>'; $image_f2 = '<figure class="symbol-icon"><img src="' . esc_url( $img_f2 ) . '" alt="' . $symbol_f2 . '"></figure>'; $image_f3 = '<figure class="symbol-icon"><img src="' . esc_url( $img_f3 ) . '" alt="' . $symbol_f3 . '"></figure>'; $image_f4 = '<figure class="symbol-icon"><img src="' . esc_url( $img_f4 ) . '" alt="' . $symbol_f4 . '"></figure>'; $image_f5 = '<figure class="symbol-icon"><img src="' . esc_url( $img_f5 ) . '" alt="' . $symbol_f5 . '"></figure>'; switch ($columns) { case '1': $out .= '<div class="col-md-12 last-column">' . $image_f1; $out .= do_shortcode( '[vcw-full-card symbol="' . $symbol_f1 . '" currency1="' . $currency_f1 . '" show_logo="no"]' ); $out .= '</div>'; break; case '2': $out .= '<div class="col-md-6">' . $image_f1 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f1 . '" currency1="' . $currency_f1 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-6 last-column ">' . $image_f2 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f2 . '" currency1="' . $currency_f2 . '" show_logo="no"]' ) . '</div>'; break; case '3': $out .= '<div class="col-md-4">' . $image_f1 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f1 . '" currency1="' . $currency_f1 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-4">' . $image_f2 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f2 . '" currency1="' . $currency_f2 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-4 last-column">' . $image_f3 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f3 . '" currency1="' . $currency_f3 . '" show_logo="no"]' ) . '</div>'; break; case '4': $out .= '<div class="col-md-3">' . $image_f1 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f1 . '" currency1="' . $currency_f1 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-3">' . $image_f2 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f2 . '" currency1="' . $currency_f2 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-3">' . $image_f3 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f3 . '" currency1="' . $currency_f3 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-3 last-column">' . $image_f4 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f4 . '" currency1="' . $currency_f4 . '" show_logo="no"]' ) . '</div>'; break; case '5': $out .= '<div class="col-md-5th">' . $image_f1 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f1 . '" currency1="' . $currency_f1 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-5th">' . $image_f2 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f2 . '" currency1="' . $currency_f2 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-5th">' . $image_f3 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f3 . '" currency1="' . $currency_f3 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-5th">' . $image_f4 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f4 . '" currency1="' . $currency_f4 . '" show_logo="no"]' ) . '</div>'; $out .= '<div class="col-md-5th last-column">' . $image_f5 . do_shortcode( '[vcw-full-card symbol="' . $symbol_f5 . '" currency1="' . $currency_f5 . '" show_logo="no"]' ) . '</div>'; break; } $out .= '</div>'; } return $out; } add_shortcode( 'vcw', 'deep_vcw' );
[+]
..
[-] video-teaser.php
[edit]
[-] vcw.php
[edit]
[-] sermon-category.php
[edit]
[-] iconbox.php
[edit]
[-] speakers.php
[edit]
[-] iconfonts-param.php
[edit]
[-] checklist-param.php
[edit]
[-] infobox.php
[edit]
[-] webtags.php
[edit]
[-] teaser-box.php
[edit]
[-] latest-from-blog.php
[edit]
[-] reservation.php
[edit]
[-] subscribe.php
[edit]
[-] progressbar.php
[edit]
[-] review-items.php
[edit]
[-] icon-divider.php
[edit]
[-] toggle-box.php
[edit]
[+]
assets
[-] pie.php
[edit]
[-] asermon.php
[edit]
[-] buttons.php
[edit]
[-] accordion.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] deep-gallery.php
[edit]
[-] custom-menu.php
[edit]
[-] postslider.php
[edit]
[-] magazine.php
[edit]
[-] callout.php
[edit]
[-] maxcounter.php
[edit]
[-] testimonialslider.php
[edit]
[-] testimonials.php
[edit]
[-] wp-hotel-booking.php
[edit]
[-] services.php
[edit]
[-] image-carousel.php
[edit]
[-] category-tab.php
[edit]
[-] slide-up-note.php
[edit]
[-] ourteam.php
[edit]
[-] prayerwall-items.php
[edit]
[-] heading.php
[edit]
[-] tablepress.php
[edit]
[-] instagram.php
[edit]
[-] video-play.php
[edit]
[-] columns.php
[edit]
[-] special-offer.php
[edit]
[-] like-view-share.php
[edit]
[-] image-hotspot.php
[edit]
[-] postfromblog.php
[edit]
[-] roadmap.php
[edit]
[-] search.php
[edit]
[-] recipes.php
[edit]
[-] ourclients.php
[edit]
[-] tab.php
[edit]
[-] blog.php
[edit]
[-] icon.php
[edit]
[-] latest-tweets.php
[edit]
[-] before-after-image.php
[edit]
[-] food-menu.php
[edit]
[-] alerts.php
[edit]
[-] login.php
[edit]
[-] pricing-plan.php
[edit]
[-] dropcap.php
[edit]
[-] rooms.php
[edit]
[-] prayerwall-form.php
[edit]
[-] countdown.php
[edit]
[-] lefttab.php
[edit]
[-] schedule.php
[edit]
[-] block-quote.php
[edit]
[-] highlight.php
[edit]
[-] our-process.php
[edit]
[-] w-title.php
[edit]
[-] shop-products.php
[edit]
[-] buy-process.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] causes.php
[edit]
[-] review-form.php
[edit]
[-] pricingtables.php
[edit]
[-] sermons.php
[edit]
[-] distance.php
[edit]
[-] collection.php
[edit]
[-] donate.php
[edit]
[-] googlemap.php
[edit]
[-] list.php
[edit]
[-] acause.php
[edit]
[-] service-carousel.php
[edit]
[-] quote.php
[edit]
[-] w-svg.php
[edit]
[-] tooltip.php
[edit]
[-] socials.php
[edit]
[-] process-carousel.php
[edit]