function f_login_with_ajax() { ob_start(); ?> <div class="login" > <?php login_with_ajax(); ?> </div> <?php $html = ob_get_contents(); if ($html) { ob_end_clean(); } echo apply_filters('f_login_with_ajax', $html); }
echo home_url('/forgot-password/'); ?> ">Lost Password?</a></li> </ul> </form> <?php echo do_shortcode('[divider]'); ?> <h2>First Time?</h2> <a id="createaccountlink" href="<?php echo home_url('/create-an-account/'); ?> " class="btn save">Create Your Account</a> </div> <?php } ?> <div class="frame"> <?php login_with_ajax(); ?> </div> </li> </ul> </div> <script> jQuery( ".close" ).click(function(event) { event.preventDefault(); jQuery(this).parent().parent().fadeOut("fast"); }); </script>
function cb_add_modals_main_menu() { $cb_menu_icons = ot_get_option('cb_main_nav_icons', 'both'); $cb_nav_style = ot_get_option('cb_menu_style', 'cb_dark'); if ($cb_nav_style == 'cb_light') { $cb_menu_color = 'cb-light-menu'; } else { $cb_menu_color = 'cb-dark-menu'; } if (function_exists('login_with_ajax') && ($cb_menu_icons == 'both' || $cb_menu_icons == 'login')) { login_with_ajax(); } if ($cb_menu_icons == 'both' || $cb_menu_icons == 'search') { echo '<div id="cb-search-modal" class="' . $cb_menu_color . '"> <div class="cb-search-box"> <div class="cb-header"> <div class="cb-title">' . __("Search", "cubell") . '</div> <div class="cb-close"> <span class="cb-close-modal"><i class="icon-remove"></i></span> </div> </div>'; get_search_form(); echo '</div></div>'; } }
function user_schedule_old() { global $wpdb, $event_details, $epl_fields; if (!is_user_logged_in()) { return login_with_ajax(); } $event_type = epl_get_element('_epl_event_type', $event_details); $registrations = $this->get_current_registrations($this->user_id); $r = array(); $data['absentees'] = $this->get_user_absentee_data(); //echo "<pre class='prettyprint'>" . __LINE__ . "> " . print_r($registrations, true). "</pre>"; foreach ($registrations as $registration) { $r_id = str_replace('_epl_regis_post_id_', '', $registration->meta_key); $regis_data = $this->ecm->setup_regis_details($r_id); if (epl_is_empty_array($regis_data) || !($d = epl_get_element('__epl', $regis_data, false))) { continue; } if ($regis_data['_epl_regis_status'] < 1) { continue; } $data['regis_id'] = esc_attr($regis_data['post_title']); $data['regis_date'] = epl_formatted_date($regis_data['post_date']); //echo "<pre class='prettyprint'>" . __LINE__ . "> " . print_r( $regis_data, true ) . "</pre>"; $_regis_id = $d['_regis_id']; $_events = $d[$_regis_id]['_events']; $_dates = $d[$_regis_id]['_dates']['_epl_start_date']; $event_id = key($_events); $this->ecm->setup_event_details($event_id); $data['event_id'] = $event_id; $data['event_title'] = esc_attr($event_details['post_title']); $data['event_start_date'] = $event_details['_epl_start_date']; $data['event_end_date'] = $event_details['_epl_end_date']; $data['class_dates'] = $event_details['_epl_class_session_date']; $data['class_start_times'] = $event_details['_epl_class_session_start_time']; $class_end_times = $event_details['_epl_class_session_end_time']; $class_session_name = $event_details['_epl_class_session_name']; $class_session_note = $event_details['_epl_class_session_note']; $data['fc_event_dates'] = $this->epl->epl_util->get_sess_days_for_fc(); $data['class_end_times'] = $class_end_times; $data['regis_status'] = get_the_regis_status(); $data['regis_dates_cal'] = $this->eutil->construct_calendar($this->ercm->make_cal_dates_array($data['class_dates'])); $data['list'][$_regis_id] = $this->epl->load_view('front/user-regis-manager/user-regis-dates', $data, true); } return $this->epl->load_view('front/user-regis-manager/user-regis-list-page', $data, true); }
function cb_modals() { if (function_exists('login_with_ajax')) { echo '<div id="cb-lwa" class="cb-lwa-modal cb-modal">'; login_with_ajax(); echo '</div>'; } if (is_single()) { global $post; $cb_post_id = $post->ID; $cb_post_format = get_post_format($cb_post_id); $cb_video_post_select = get_post_meta($cb_post_id, 'cb_video_post_select', true); $cb_audio_post_style = get_post_meta($cb_post_id, 'cb_audio_post_style', true); if ($cb_post_format == 'video' && $cb_video_post_select == '2' || $cb_post_format == 'audio' && $cb_audio_post_style == '2') { echo '<div id="cb-media-overlay" class="cb-modal cb-m-modal"><div class="cb-m-modal-inner"><div class="cb-close-m cb-ta-right"><i class="fa cb-times"></i></div>' . cb_get_post_format_data($cb_post_id, $cb_post_format) . '</div></div>'; } } echo '<div id="cb-menu-search" class="cb-s-modal cb-modal"><div class="cb-close-m cb-ta-right"><i class="fa cb-times"></i></div><div class="cb-s-modal-inner cb-pre-load cb-light-loader cb-modal-inner cb-font-header cb-mega-three cb-mega-posts clearfix">' . get_search_form(false) . '<div id="cb-s-results"></div></div></div>'; }
echo $_GET['q']; ?> "> <input type="submit" id="submit-btn" value="SUBMIT" class="rt-button"> <a class="rt-button" onClick="history.go(-1)">CANCEL</a> <p>your media will be posted in the public community gallery</p> </div> </form> </section> <!-- The forms for logging in and for lost password --> <div class="modal" id="login-form"> <div class="overlay"></div> <div class="modal-content"> <?php login_with_ajax(array('template' => 'root-tongue')); ?> </div> </div> <!-- The loading screen | shows on form submission --> <div class="overlay-fullscreen" id="loading"> <div id="progress" role="main"> <div class="loading-container"> <h2>LOADING</h2> <div class="loader"></div> </div> </div> </div> <!-- The done screen | shows after successful form submission --> <div class="overlay-fullscreen" id="done">
function load_ajax_login_form() { return $this->epl_util->epl_response(array('html' => preg_replace('/[\\r\\n\\t]+/', "", login_with_ajax()))); }