function popmake_alm_ajax_recovery_modal_shortcode($atts) { global $popmake_login_modal, $popmake_registration_modal, $popmake_recovery_modal, $user_email, $user_login; get_currentuserinfo(); $atts = shortcode_atts(array(), $atts); ob_start(); $ajax_recovery = popmake_get_popup_ajax_recovery($popmake_recovery_modal); include popmake_get_template_part('ajax-recovery-form', null, false); return ob_get_clean(); }
function popmake_render_popups() { global $popmake_loaded_popups; if ($popmake_loaded_popups->have_posts()) { while ($popmake_loaded_popups->have_posts()) { $popmake_loaded_popups->the_post(); popmake_get_template_part('popup'); } wp_reset_postdata(); } }
function popmake_render_popups() { global $popmake_loaded_popups, $popup; if ($popmake_loaded_popups->have_posts()) { while ($popmake_loaded_popups->have_posts()) { $popmake_loaded_popups->next_post(); $popup = $popmake_loaded_popups->post; popmake_get_template_part('popup'); } $popup = null; } }
<?php get_head(); ?> <?php popmake_get_template_part('popup'); ?> <script> jQuery('#popmake-<?php the_popup_ID(); ?> ').popmake('open'); </script> <?php get_footer();