PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_subscribe ($atts, $content = null) { extract(shortcode_atts(array( 'box_title'=>'', 'box_text'=>'', 'type'=>'boxed', 'service'=>'FeedBurner', 'feedburner_id'=>'', 'mailchimp_url'=>'', ), $atts)); ob_start(); ?> <?php $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>':''; $input='<div class="subscribe-box-input"><input placeholder="'.esc_html__('YOUR E-MAIL','easyweb_webnus_framework').'" class="subscribe-box-email" type="text" name="'.$email_name.'"/><button class="subscribe-box-submit button medium" type="submit">'.esc_html__('SUBSCRIBE','easyweb_webnus_framework').'</button></div>'; if($type=='boxed'){ echo '<div class="subscribe-box"><div class="subscribe-box-top"><i class="fa-bell"></i>'.$title.'</div>'; }else{ echo '<div class="subscribe-'.$type.'">'.$title; } ?> <?php if($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'){ ?> <form action="<?php echo esc_url($mailchimp_url); ?>" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" target="_blank"> <?php } ?> <?php if($type=='bar1'){ if($text){ echo '<div class="container"><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','easyweb_webnus_subscribe'); ?>
[+]
..
[-] 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]