</p> <div class="form-group"> <input type="text" name="user_login" class="input-text input-large full-width" placeholder="<?php _e('User Name', 'trav'); ?> " value="" size="20"></label> </div> <div class="form-group"> <input type="text" name="user_email" class="input-text input-large full-width" placeholder="<?php _e('Email', 'trav'); ?> " value="" size="25"></label> </div> <br class="clear"> <input type="hidden" name="redirect_to" value="<?php echo esc_url(add_query_arg('checkemail', 'registered', trav_get_current_page_url())); ?> "> <input type="hidden" name="user_role" value="business_owner"> <button type="submit" class="btn-large full-width sky-blue1"><?php _e('Register as Business Owner', 'trav'); ?> </button> <p><br /> <?php _e('Already a member?', 'trav'); ?> <a href="<?php echo esc_url(get_permalink($trav_options['login_page'])); ?> " class="underline"><?php
<form name="lostpasswordform" class="login-form" action="<?php echo esc_url(wp_lostpassword_url()); ?> " method="post"> <div class="form-group"> <input type="text" name="user_login" class="input-text input-large full-width" placeholder="<?php _e('Username or E-mail:', 'trav'); ?> " value="" size="20"></label> </div> <button type="submit" class="btn-large full-width sky-blue1"><?php _e('Get New Password', 'trav'); ?> </button> <input type="hidden" name="redirect_to" value="<?php echo esc_url(add_query_arg('checkemail', 'confirm', trav_get_current_page_url())); ?> "> <p><br /> <a href="<?php echo esc_url($login_url); ?> " class="underline"><?php _e('Login', 'trav'); ?> </a> | <a href="<?php echo esc_url($signup_url); ?> " class="underline"><?php _e("Sign Up", 'trav');
} $langs .= '</ul>'; echo $langs; ?> </li> <?php } ?> </ul> <ul class="quick-menu pull-right"> <?php if (is_user_logged_in()) { ?> <li><a href="<?php echo esc_url(wp_logout_url(trav_get_current_page_url())); ?> "><?php _e('LOGOUT', 'trav'); ?> </a></li> <?php } else { ?> <li><a href="<?php echo $login_url; ?> "<?php echo $login_url == '#travelo-login' ? ' class="soap-popupbox"' : ''; ?> ><?php
$ItemName = sprintf(__('Deposit(%d%%) for ', 'trav'), $deposit_rate); } else { $ItemName = __('Deposit for ', 'trav'); } $ItemName .= get_the_title($tour_id) . ' ' . trav_tour_get_schedule_type_title($tour_id, $st_id); $payment_data = array(); $payment_data['item_name'] = $ItemName; $payment_data['item_number'] = $tour_id . '-' . $st_id; $payment_data['item_desc'] = __('Tour Date', 'trav') . ' ' . $tour_date . ' ' . get_the_title($tour_id) . ' ' . trav_tour_get_schedule_type_title($tour_id, $st_id); $payment_data['item_qty'] = 1; $payment_data['item_price'] = $booking_data['deposit_price']; $payment_data['item_total_price'] = $payment_data['item_qty'] * $payment_data['item_price']; $payment_data['grand_total'] = $payment_data['item_total_price']; $payment_data['currency'] = strtoupper($booking_data['currency_code']); $payment_data['return_url'] = trav_get_current_page_url() . '?booking_no=' . $booking_data['booking_no'] . '&pin_code=' . $booking_data['pin_code'] . '&payment=success'; $payment_data['cancel_url'] = trav_get_current_page_url() . '?booking_no=' . $booking_data['booking_no'] . '&pin_code=' . $booking_data['pin_code'] . '&payment=failed'; $payment_data['status'] = ''; $payment_data['deposit_rate'] = $deposit_rate; if (!empty($_REQUEST['transaction_id']) && !empty($_SESSION['booking_data'][$_REQUEST['transaction_id']])) { $payment_data['status'] = 'before'; } $payment_result = trav_process_payment($payment_data); if ($payment_result) { if (!empty($payment_result['success']) && $payment_result['method'] == 'paypal') { $other_booking_data = array(); if (!empty($booking_data['other'])) { $other_booking_data = unserialize($booking_data['other']); } $other_booking_data['pp_transaction_id'] = $payment_result['transaction_id']; $booking_data['deposit_paid'] = 1; $result = $wpdb->update(TRAV_TOUR_BOOKINGS_TABLE, array('deposit_paid' => $booking_data['deposit_paid'], 'status' => 1, 'other' => serialize($other_booking_data)), array('booking_no' => $booking_data['booking_no'], 'pin_code' => $booking_data['pin_code']));
<div id="page-wrapper"> <?php $header_style = empty($trav_options['header_style']) ? 'header' : $trav_options['header_style']; $header_file = $header_style . '.php'; trav_get_template($header_file, '/templates/headers/'); ?> <!-- mobile menu --> <?php $mobile_mini_menu = '<ul class="mobile-topnav container">'; if (!empty($my_account_page)) { $mobile_mini_menu .= '<li><a href="' . esc_url($my_account_page) . '"' . ($my_account_page == '#travelo-login' ? ' class="soap-popupbox"' : '') . '>' . esc_html__('MY ACCOUNT', 'trav') . '</a></li>'; } if (is_user_logged_in()) { $mobile_mini_menu .= '<li><a href="' . esc_url(wp_logout_url(trav_get_current_page_url())) . '">' . __('LOGOUT', 'trav') . '</a></li>'; } else { $mobile_mini_menu .= '<li><a href="' . $login_url . '"' . ($login_url == '#travelo-login' ? ' class="soap-popupbox"' : '') . '>' . __('LOGIN', 'trav') . '</a></li>'; if (get_option('users_can_register')) { $mobile_mini_menu .= '<li><a href="' . $signup_url . '"' . ($signup_url == '#travelo-signup' ? ' class="soap-popupbox"' : '') . '>' . __('SIGNUP', 'trav') . '</a></li>'; } } if (trav_is_multi_currency()) { $mobile_mini_menu .= '<li class="ribbon currency menu-color-skin">'; $mobile_mini_menu .= '<a href="#" title="' . esc_attr(trav_get_user_currency()) . '">' . esc_attr(trav_get_user_currency()) . '</a>'; $mobile_mini_menu .= '<ul class="menu mini">'; $all_currencies = trav_get_all_available_currencies(); if (!empty($all_currencies)) { foreach (array_filter($trav_options['site_currencies']) as $key => $content) { $class = ""; if (trav_get_user_currency() == $key) {
function trav_init() { ob_start(); // register header nav menu location register_nav_menu('header-menu', 'Header Menu'); global $trav_options, $def_currency, $search_max_rooms, $search_max_adults, $search_max_kids, $logo_url, $language_count, $login_url, $signup_url, $redirect_url_on_login, $my_account_page; //global variables $def_currency = apply_filters('trav_def_currency', isset($trav_options['def_currency']) ? $trav_options['def_currency'] : 'usd'); $search_max_rooms = 30; $search_max_adults = 30; $search_max_kids = 10; $logo_url = ''; if (!empty($trav_options['logo']) && !empty($trav_options['logo']['url'])) { $logo_url = $trav_options['logo']['url']; } else { $logo_url = TRAV_IMAGE_URL . '/logo.png'; } $language_count = 1; // wpml variables if (defined('ICL_LANGUAGE_CODE')) { $languages = icl_get_languages('skip_missing=1'); $language_count = count($languages); } $login_url = ''; $signup_url = ''; $redirect_url_on_login = ''; if (!empty($trav_options['redirect_page'])) { $redirect_url_on_login = trav_get_permalink_clang($trav_options['redirect_page']); } else { $redirect_url_on_login = trav_get_current_page_url(); } if (!empty($trav_options['modal_login'])) { $login_url = '#travelo-login'; $signup_url = '#travelo-signup'; } else { if (!empty($trav_options['login_page'])) { $login_url = trav_get_permalink_clang($trav_options['login_page']); $signup_url = add_query_arg('action', 'register', trav_get_permalink_clang($trav_options['login_page'])); } else { $login_url = wp_login_url($redirect_url_on_login); $signup_url = wp_registration_url(); } } $my_account_page = ''; if (!empty($trav_options['dashboard_page'])) { if (is_user_logged_in()) { $my_account_page = trav_get_permalink_clang($trav_options['dashboard_page']); } else { $my_account_page = $login_url; } } if (!empty($trav_options['vld_credit_card'])) { add_action('trav_booking_form_after', 'trav_credit_cart_form'); } if (!empty($trav_options['vld_captcha'])) { add_action('trav_booking_form_after', 'trav_captcha_form'); } if (!empty($trav_options['terms_page'])) { add_action('trav_booking_form_after', 'trav_terms_form'); } add_filter('trav_booking_button_text', 'trav_booking_button_text'); add_action('redux/travelo/panel/before', 'trav_one_click_install_main_pages'); }