PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_lvs ( $atts, $content = null ) { extract(shortcode_atts(array( 'display_like' => 'yes', 'display_view' => 'yes', 'display_share' => 'yes', 'shortcodeclass' => '', 'shortcodeid' => '', ), $atts )); ob_start(); $shortcodeclass = $shortcodeclass ? $shortcodeclass : ''; $shortcodeid = $shortcodeid ? ' id="' . $shortcodeid . '"' : ''; if ( $display_like == 'yes' || $display_view == 'yes' || $display_share == 'yes' ) { echo '<div class="wn-lvs-shortcode-wrap ' . $shortcodeclass . '" ' . $shortcodeid . '>'; } if ( $display_like == 'yes' ) { echo '<div class="wn-like-shortcode">'; echo get_simple_likes_button( get_the_ID() ); echo '</div>'; } if ( $display_view == 'yes' ) { echo '<div class="wn-view-shortcode">'; echo '<div class="wn-view-shortcode-count">' . do_shortcode( '[views]' ) . '</div>'; echo '<div class="wn-view-shortcode-icon"><i class="icon-basic-eye"></i></div>'; echo '</div>'; } if ( $display_share == 'yes' ) { $dashed_title = sanitize_title_with_dashes ( get_the_title(get_the_ID()) ); echo '<div class="wn-share-shortcode">'; echo '<div class="wn-share-shortcode-icon hcolorb hcolorr"><i class="sl-share share"></i></div>'; echo '<div class="wn-share-shortcode-dropdown">'; echo '<div class="socialfollow"> <a target="_blank" class="facebook hcolorf" href="https://www.facebook.com/sharer.php?m2w&s=100&p[url]='. get_the_permalink($post_id).'&p[images][0]='. get_the_post_thumbnail_url( $post_id, 'full' ) .'">' . esc_html__( 'FACEBOOK', 'deep' ) . '</a> <a target="_blank" class="google hcolorf" href="https://plusone.google.com/_/+1/confirm?hl=en-US&url='. get_the_permalink($post_id) .'">' . esc_html__( 'GOOGLE+', 'deep' ) . '</a> <a target="_blank" class="twitter hcolorf" href="https://twitter.com/intent/tweet?original_referer='. get_the_permalink($post_id) .'&text='. esc_html( $dashed_title ) .'&tw_p=tweetbutton&url='. get_the_permalink($post_id) .'">' . esc_html__( 'TWITTER', 'deep' ) . '</a> <a target="_blank" class="linkedin hcolorf" href="https://www.linkedin.com/shareArticle?mini=true&url='. get_the_permalink($post_id) .'&title='. get_the_title($post_id) .'&source=LinkedIn">' . esc_html__( 'LINKEDIN', 'deep' ) . '</a> <a target="_blank" class="email hcolorf" href="mailto:?subject='. esc_html( $dashed_title ) .'&body='. get_the_permalink($post_id) .'">' . esc_html__( 'MAIL', 'deep' ) . '</a> </div>'; echo '</div>'; echo '</div>'; } if ( $display_like == 'yes' || $display_view == 'yes' || $display_share == 'yes' ) { echo '</div>'; } $out = ob_get_contents(); ob_end_clean(); return $out; } add_shortcode( 'lvs','deep_lvs' );
[+]
..
[-] 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]