PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
webnus-core
/
shortcodes
<?php function deep_subscribe ($atts, $content = null) { extract(shortcode_atts(array( 'box_title' => '', 'box_text' => '', 'type' => 'boxed', 'service' => 'FeedBurner', 'feedburner_id' => '', 'mailchimp_url' => '', 'input_text' => '', 'subbutton' => '', 'shortcodeclass' => '', 'shortcodeid' => '', ), $atts)); wp_enqueue_style( 'wn-deep-subscribe', DEEP_ASSETS_URL . 'css/frontend/subscribe/subscribe.css' ); ob_start(); ?> <?php $shortcodeclass = $shortcodeclass ? $shortcodeclass : ''; $shortcodeid = $shortcodeid ? ' id="' . $shortcodeid . '"' : ''; $title = ( $box_title ) ?'<h3>'.$box_title.'</h3>':'' ; $email_name = ( $service == 'FeedBurner' ) ?'email':'MERGE0' ; $text = ( $box_text ) ?'<div class="subscribe-box-text"><p>'.$box_text.'</p></div>':'' ; $inputtext = ( $input_text ) ? $input_text:'YOUR E-MAIL' ; $input = ' <div class="subscribe-box-input ' . $shortcodeclass . '" ' . $shortcodeid . '> <input placeholder=" '. $inputtext .'" class="subscribe-box-email" type="email" name="'.$email_name.'" required> <button class="subscribe-box-submit button medium" type="submit"> <span>'.esc_html__('SUBSCRIBE','deep').'</span> </button> </div>'; if ($type=='boxed'){ echo ' <div class="subscribe-box ' . $shortcodeclass . '" ' . $shortcodeid . '> <div class="subscribe-box-top"> <i class="ti-rss"></i>'.$title.' </div>'; } else { echo '<div class="subscribe-'.$type.' ' . $shortcodeclass . '" ' . $shortcodeid . '>'.$title; } ?> <?php if ($service =='FeedBurner' || $service =='feedburner') { ?> <form class="subscribe-box-form" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onSubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo esc_url( $feedburner_id ); ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"> <input type="hidden" value="<?php echo esc_attr($feedburner_id); ?>" name="uri"/> <input type="hidden" name="loc" value="en_US"/> <?php } elseif( $service =='mailchimp' || $service =='MailChimp' ){ ?> <form action="<?php echo esc_url($mailchimp_url); ?>" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form"> <?php } ?> <?php if($type=='bar1'){ if($text){ echo '<div class="container ' . $shortcodeclass . '" ' . $shortcodeid . '><div class="col-md-6">'.$text.'</div><div class="col-md-6">'.$input.'</div></div>'; }else{ echo '' . $input; } }else{ echo '' . $text.$input; }?> </form> </div> <?php $out = ob_get_contents(); ob_end_clean(); return $out; } add_shortcode('subscribe','deep_subscribe');
[+]
..
[-] 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]