/** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance_settings Saved values from database. */ public function widget($args, $instance_settings) { $instance_settings = array_merge($this->default_instance_settings, $instance_settings); $title = apply_filters('widget_title', $instance_settings['title']); echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } mc4wp_show_form($instance_settings['form_id']); echo $args['after_widget']; }
/** * Output this form * * @return string */ public function __toString() { return mc4wp_show_form($this->ID, array(), false); }
/** * Echoes a MailChimp for WordPress form * * @ignore * @since 1.0 * @deprecated 3.0 * @use mc4wp_show_form() * * @param int $id The form ID * * @return MC4WP_Form * */ function mc4wp_form($id = 0, $attributes = array()) { _deprecated_function(__FUNCTION__, 'MailChimp for WordPress v3.0', 'mc4wp_show_form'); return mc4wp_show_form($id, $attributes); }
#form-preview { display: block !important; width: 100%; height: 100%; padding: 20px; } </style> <!-- Container for custom CSS created by the Styles Builder interface --> <style type="text/css" id="custom-css"></style> <!--[if IE]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body <?php body_class(); ?> > <div id="form-preview"> <?php mc4wp_show_form(absint($_GET['form_id'])); ?> </div> <?php wp_footer(); ?> </body> </html>
<a href="http://www.sparnord.dk/"> <img src="<?php bloginfo('template_directory'); ?> /inc/img/sparnord_com.png" alt="Sparnord logo" /> </a> </div> <div class="nyhedsBrev"> <div class="mailsub"> <h2>Tilmeld dig SIKO's nyhedsbrev og få de seneste nyheder direkte fra SIKO's kontor!</h2> </div> <div class="mailsub"> <?php if (function_exists('mc4wp_show_form')) { mc4wp_show_form(); } ?> </div> </div> <div class="hideRek reklame last-item"> <?php display_random_img($ads_array); ?> </div> </main><!-- #main --> </div><!-- #primary --> <?php
get_template_part('template-parts/content', 'single'); ?> <div class="related-posts"> <?php gently_related_posts(); ?> </div> <?php /** * Display newsletter when 'Mailchimp for WordPress' plugin is installed * and it's set to display in customizer. */ if (function_exists('mc4wp_show_form') && kirki_get_option('newsletter_use')) { mc4wp_show_form(0); } ?> <?php // If comments are open or we have at least one comment, load up the comment template if (comments_open() || get_comments_number()) { comments_template(); } ?> <?php } // end of the loop. ?>