Esempio n. 1
0
    /**
     * Print the actual overlay if the visitor needs verification.
     *
     * @since 0.1.0
     *
     * @return void
     */
    public function verify_overlay()
    {
        if (!av_needs_verification()) {
            return;
        }
        // Disable page caching by W3 Total Cache.
        define('DONOTCACHEPAGE', true);
        ?>

		<div id="av-overlay-wrap">

			<?php 
        do_action('av_before_modal');
        ?>

			<div id="av-overlay">

				<h1><?php 
        esc_html_e(av_get_the_heading());
        ?>
</h1>

				<?php 
        if (av_get_the_desc()) {
            echo '<p>' . esc_html(av_get_the_desc()) . '</p>';
        }
        ?>

				<?php 
        do_action('av_before_form');
        ?>

				<?php 
        av_verify_form();
        ?>

				<?php 
        do_action('av_after_form');
        ?>

			</div>

			<?php 
        do_action('av_after_modal');
        ?>

		</div>
	<?php 
    }
Esempio n. 2
0
/**
 * Echoes the overlay heading
 *
 * @since 0.1
 * @echo string
 */
function av_the_heading()
{
    echo av_get_the_heading();
}