Exemple #1
0
echo get_site_url() . '/' . self::$url . '/';
?>
"><?php 
echo CarRental::t('My bookings');
?>
</a></li>
					<li><a href="<?php 
echo get_site_url() . '/' . self::$url . '/my-account';
?>
"><?php 
echo CarRental::t('My account');
?>
</a></li>
					<li><a href="<?php 
echo get_site_url() . '/' . self::$url . '/account-settings';
?>
"><?php 
echo CarRental::t('Account settings');
?>
</a></li>
					<li><a href="<?php 
echo get_site_url() . '/' . self::$url . '/logout';
?>
"><?php 
echo CarRental::t('Logout');
?>
</a></li>
				</ul>
			</div>

		</div>
							</div>
							<?php 
if (!isset($theme_options['show_breadcrumb']) || isset($theme_options['show_breadcrumb']) && $theme_options['show_breadcrumb'] == 1) {
    ?>
							<p class="breadcrumb">
								<a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo CarRental::t('Home');
    ?>
"><?php 
    echo CarRental::t('Home');
    ?>
</a> / <span class="active"><?php 
    echo CarRental::t('Manage booking');
    ?>
</span>
							</p>
							<?php 
}
?>
						</div>
						<!-- .slideshow-item-wrap -->				

					</div>


			</div>
			<!-- .container -->
Exemple #3
0
			</div>
			<!-- .container -->
		
		</div>
		<!-- .footer-info -->

		<hr>

		<div class="footer-copyright">

			<div class="container">
				<?php 
$ecalypse_footer_settings = unserialize(get_option('ecalypse_footer_settings'));
?>
				<p><?php 
echo isset($ecalypse_footer_settings['ecalypse-footer-text-left']) && $ecalypse_footer_settings['ecalypse-footer-text-left'] != '' ? stripslashes($ecalypse_footer_settings['ecalypse-footer-text-left']) : '&copy; ' . CarRental::t('HMO El Salvador, 2015. Todos los derechos reservados');
?>
</p>
				
				<p><?php 
echo isset($ecalypse_footer_settings['ecalypse-footer-text-right']) && $ecalypse_footer_settings['ecalypse-footer-text-right'] != '' ? stripslashes($ecalypse_footer_settings['ecalypse-footer-text-right']) : '';
?>
</p>
				
			</div>
			<!-- .container -->

		</div>
		<!-- #copyright -->				
		
	</footer>	
Exemple #4
0
	<div id="carrental-client-area-hidden-login">
		<p class="close-win">×</p>
		<h3><?php 
    echo CarRental::t('Login to your account');
    ?>
</h3>
		<p><?php 
    echo CarRental::t('E-mail');
    ?>
 <span id="carrental-client-area-span-email"></span> <?php 
    echo CarRental::t('is already used by another user. If it is your account then enter password to login.');
    ?>
</p>
		<label><?php 
    echo CarRental::t('Password');
    ?>
</label>
		<input type="password" name="password" class="control-input" id="carrental-client-area-password" />
		<button type="submit" class="btn btn-primary" name="confirm_reservation"><?php 
    echo CarRental::t('Login and Confirm Reservation');
    ?>
</button>
		<a href="#" class="btn btn-primary" id="carrental-client-area-close-login-button"><?php 
    echo CarRental::t('Change e-mail address');
    ?>
</a>
	</div>
	<div class="booking-client-area-form-overflow"></div>
<?php 
}
 /**
  * Insert login link, or my account link if already logged in
  */
 public static function fe_header_links()
 {
     echo '<div class="carrental-client-area-links">';
     if (isset($_SESSION['user_id'])) {
         // logged in user
         echo '<a href="' . get_site_url() . '/' . self::$url . '/' . '">' . CarRental::t('Client Area') . ' - ' . $_SESSION['user_email'] . '</a> (<a href="' . get_site_url() . '/' . self::$url . '/logout">' . CarRental::t('Logout') . '</a>)';
     } else {
         // not logged in
         echo '<a href="' . get_site_url() . '/' . self::$url . '/login' . '">' . CarRental::t('Log in') . '</a>';
     }
     echo '</div>';
 }
Exemple #6
0
					<div class="control-group">
						<div class="control-label">
							<label for="carrental_order_email"><?php 
echo CarRental::t('Your E-mail');
?>
:</label>
						</div>
						<div class="control-field">
							<input type="text" name="email" id="carrental_order_email" class="control-input">
						</div>
					</div>

					<div class="control-group">
						<div class="control-field align-right">
							<input type="hidden" name="page" value="carrental">
							<button type="submit" name="manage_booking" class="btn btn-primary"><?php 
echo CarRental::t('SHOW ORDER DETAILS');
?>
</button>	
						</div>
					</div>

				</fieldset>
			</form>
		</div>
		<!-- .tabs-content-tab -->

	</div>
	<!-- .tabs-content -->
</div>
<!-- .tabs -->
Exemple #7
0
echo CarRental::t('Please, enter valid e-mail address.');
?>
');
			}
		}
		
		if (jQuery('[name=terms]').is(':checked') == false) {
			errors.push('<?php 
echo CarRental::t('Please, confirm you agree with Terms and conditions.');
?>
');
		}
		
		if (jQuery('[name=payment_option]').length > 0 && jQuery('[name=payment_option]').val() == '') {
			errors.push('<?php 
echo CarRental::t('Please, select payment method.');
?>
');
		}
		
		if (errors.length == 0) {
			<?php 
do_action('carrental_service_book_js_submit_form');
?>
			return true;
		} else {
			jQuery('#carrental_confirm_errors').html('<li>' + errors.join('</li><li>') + '</li>');
			return false;
		}
		
	});
Exemple #8
0
							</div>
							<?php 
if (!isset($theme_options['show_breadcrumb']) || isset($theme_options['show_breadcrumb']) && $theme_options['show_breadcrumb'] == 1) {
    ?>
							<p class="breadcrumb">
								<a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo CarRental::t('Home');
    ?>
"><?php 
    echo CarRental::t('Home');
    ?>
</a> / <span class="active"><?php 
    echo CarRental::t('Our cars');
    ?>
</span>
							</p>
							<?php 
}
?>
						</div>
						<!-- .slideshow-item-wrap -->				

					</div>


			</div>
			<!-- .container -->
							</div>
							<?php 
if (!isset($theme_options['show_breadcrumb']) || isset($theme_options['show_breadcrumb']) && $theme_options['show_breadcrumb'] == 1) {
    ?>
							<p class="breadcrumb">
								<a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo CarRental::t('Home');
    ?>
"><?php 
    echo CarRental::t('Home');
    ?>
</a> / <span class="active"><?php 
    echo CarRental::t('Our locations');
    ?>
</span>
							</p>
							<?php 
}
?>
						</div>
						<!-- .slideshow-item-wrap -->				

					</div>


			</div>
			<!-- .container -->
Exemple #10
0
								<td><a href="<?php 
        echo home_url() . '?page=carrental&summary=' . CarRental::generate_hash($b['id_order'], $b['email']);
        ?>
" target="_blank"><?php 
        echo CarRental::t('show details');
        ?>
</a></td>
							</tr>
					<?php 
    }
    ?>
						</tbody>
					</table>
				<?php 
} else {
    ?>
					<?php 
    echo CarRental::t('You do not have any bookings yet.');
    ?>
				<?php 
}
?>
			</div>

		</div>
		<!-- .bordered-content -->

	</div>
	<!-- .column -->

</div>
Exemple #11
0
echo CarRental::t('Company');
?>
</label>
							<input class="control-input" type="text" name="company" value="<?php 
echo $user['company'];
?>
" id="carrental-client-area-company" />
							
							<label for="carrental-client-area-id_card"><?php 
echo CarRental::t('ID / Passport number');
?>
</label>
							<input class="control-input" type="text" name="id_card" value="<?php 
echo $user['id_card'];
?>
" id="carrental-client-area-id_card" />
						</div>
					</div>
					<button class="btn btn-primary" name="carrental-client-area-change-my-details"><?php 
echo CarRental::t('Save');
?>
</button>
				</form>
			</div>
		</div>
		<!-- .bordered-content -->

	</div>
	<!-- .column -->

</div>
Exemple #12
0
									<!-- .column -->

								</div>
								<!-- .columns-2 -->

								<div class="control-group control-submit">
									<div class="control-field align-right">
									<br /><br />
										<a href="javascript:window.print();" class="btn btn-primary">
											<span class="sprite-print"></span><?php 
    echo CarRental::t('Print Order Details');
    ?>
										</a>
										<a href="?page=carrental&amp;terms=1" target="_blank" class="show_terms btn btn-primary">
											<?php 
    echo CarRental::t('Show Terms and Conditions');
    ?>
										</a>
										<?php 
    do_action('carrental_summary_print_buttons');
    ?>
									</div>
									<!-- .control-field -->
								</div>
								<!-- .control-group -->
								
								<script type="text/javascript">
									
									jQuery(document).ready(function() {
										
										jQuery('.show_terms').on('click', function() {
Exemple #13
0
				</form>
			</div>
			<div class="list-item list-item-car box box-white box-inner">
				<form method="POST" class="subform">
					<h3><?php 
echo CarRental::t('Change your login email');
?>
</h3>
					<label for="carrental-client-area-new-email"><?php 
echo CarRental::t('New email');
?>
</label>
					<input class="control-input" type="text" name="email" id="carrental-client-area-new-email" />
					<label for="carrental-client-area-your-password"><?php 
echo CarRental::t('Your password');
?>
</label>
					<input class="control-input" type="password" name="password" id="carrental-client-area-your-password" />
					<button class="btn btn-primary" name="carrental-client-area-change-email"><?php 
echo CarRental::t('Change email');
?>
</button>
				</form>
			</div>
		</div>
		<!-- .bordered-content -->

	</div>
	<!-- .column -->

</div>
Exemple #14
0
					</div>
				
				<?php 
    }
    ?>
			<?php 
}
?>
		</div>
		<!-- .bordered-content -->

	</div>
	<!-- .column -->

</div>
<!-- .columns-2 -->

<div id="carrental-hidden-booking-form">
	<p class="close-win">×</p>
	<h3><?php 
echo CarRental::t('Book your car now');
?>
</h3>
	<?php 
$carrental_booking_form_id = '_popup';
?>
	<?php 
include get_file_template_path('booking-form.php');
?>
</div>
<div class="booking-form-overflow"></div>
Exemple #15
0
				<div class="column">
				
					<?php 
    if (isset($theme_options['manage_booking_page']) && !empty($theme_options['manage_booking_page'])) {
        ?>
						<h2>
							<a href="<?php 
        echo get_permalink($theme_options['manage_booking_page']);
        ?>
" title="" class="item">
								<span class="item-thumb">
									<span class="sprite-manage-booking"></span>
								</span>
								<span class="item-content extra">
									<?php 
        echo CarRental::t('Manage reservation');
        ?>
								</span>
							</a>
						</h2>
					<?php 
    }
    ?>
				</div>
				<!-- .column -->

				<div class="column">
				
					<?php 
    if (isset($theme_options['manage_booking_page']) && !empty($theme_options['manage_booking_page'])) {
        ?>
Exemple #16
0
 * @package WordPress
 * @subpackage CarRental
 * @since CarRental 3.0.0 
 */
get_header();
?>
	
	<section class="content">	

		<div class="container">
		
			<h1 class="entry-title"><?php 
echo CarRental::t('This is somewhat embarrassing, isn&rsquo;t it?');
?>
</h1>

			<div class="entry-content">
				<p><?php 
echo CarRental::t('It seems we can&rsquo;t find what you&rsquo;re looking for.');
?>
</p>
			</div>
			
		</div>
		<!-- .container -->
		
	</section>
	<!-- .content -->			

<?php 
get_footer();
Exemple #17
0
if (has_nav_menu($menu, 'carrental')) {
    ?>
							
							<?php 
    wp_nav_menu(array('container' => false, 'theme_location' => $menu, 'menu_class' => 'navigation navigation-header'));
    ?>
							
						<?php 
} else {
    ?>
							<ul class="navigation navigation-header">
					 			<li><a href="<?php 
    echo get_option('home');
    ?>
"><?php 
    echo CarRental::t('Home');
    ?>
</a></li>
								<?php 
    wp_list_pages('title_li=&depth=4&sort_column=menu_order');
    ?>
							</ul>
						<?php 
}
?>
						<!-- .navigation -->
					</nav>	

				</div>
				<!-- .header-right -->
			
Exemple #18
0
	<form method="POST">
		<?php 
include dirname(__FILE__) . '/flash_msg.php';
?>
		
		<label for="carrental-client-area-login-email"><?php 
echo CarRental::t('E-mail');
?>
</label>
		<input class="control-input" type="text" name="email" id="carrental-client-area-login-email" />
		
		<p><?php 
echo CarRental::t('Enter your account email.');
?>
</p>
		
		<button class="btn btn-primary" name="carrental-client-area-lost-password"><?php 
echo CarRental::t('Reset password');
?>
</button>
		<div>
			<a href="<?php 
echo get_site_url();
?>
/client-area/login"><?php 
echo CarRental::t('Back to login page');
?>
</a>			
		</div>
	</form>
</div>
Exemple #19
0
									} else {
										//if (prev_val == hour + ':30') { var selected = true; } else { var selected = false; }
										newTime = carrental_time_format(hour + ':30', carrental_timeformat);
										jQuery("#carrental_to_hour" + element_id).append(new Option(newTime, hour + ':30'));
									}

								}
							}

							if (prev_val != '' && jQuery("#carrental_to_hour" + element_id + " option[value='" + prev_val + "']").val() !== undefined) {
								jQuery("#carrental_to_hour" + element_id).val(prev_val);
							}

						} else {
							jQuery('#carrental_to_hour' + element_id).find('option').remove().end().append('<option value=""><?php 
echo CarRental::t('Closed');
?>
</option>');
							jQuery("#carrental_to_hour" + element_id).attr('disabled', true);
						}

					}
				
			} catch (e) {
				alert(e);
			}
		}

	});

Exemple #20
0
    ?>
" value="00:00">
							<?php 
}
?>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="control-group">
			<div class="control-field align-right">
				<input type="hidden" name="page" value="carrental">
				<button type="submit" name="book_now" class="btn btn-primary" id="carrental_book_now<?php 
echo $carrental_booking_form_id;
?>
"><?php 
echo CarRental::t('BOOK NOW');
?>
</button>
			</div>
		</div>
		
	</fieldset>
	
	<ul id="carrental_book_errors<?php 
echo $carrental_booking_form_id;
?>
" style="margin:1em 2em;list-style-type:circle;color:tomato;"></ul>
</form>
Exemple #21
0
:</div>
										<p><?php 
            echo $val->phone;
            ?>
</p>
									</div>
								<?php 
        }
        ?>
		
								<?php 
        if (!empty($val->phone)) {
            ?>
									<div class="column column-wide">
										<div class="h4"><?php 
            echo CarRental::t('E-Mail');
            ?>
:</div>
										<p><a href="mailto:<?php 
            echo $val->email;
            ?>
"><?php 
            echo $val->email;
            ?>
</a></p>
									</div>
								<?php 
        }
        ?>
							</div>
						</div>
Exemple #22
0
function translate_extras($string)
{
    global $extrasTranslations, $wpdb;
    $lang = isset($_SESSION['carrental_language']) && !empty($_SESSION['carrental_language']) ? $_SESSION['carrental_language'] : 'en_GB';
    $lang = strtolower(end(explode('_', $lang)));
    if ($lang == 'gb') {
        return $string;
    }
    if (!$extrasTranslations) {
        $extras = $wpdb->get_results('SELECT * FROM `' . CarRental::$db['extras'] . '`');
        $available_languages = unserialize(get_option('carrental_available_languages'));
        if ($extras) {
            foreach ($extras as $e) {
                $name_translations = unserialize($e->name_translations);
                if (empty($name_translations)) {
                    $name_translations = array();
                }
                if ($available_languages && !empty($available_languages)) {
                    foreach ($available_languages as $key => $val) {
                        if ($val['country-www'] == 'gb') {
                            continue;
                        }
                        if (!isset($extrasTranslations[$val['country-www']])) {
                            $extrasTranslations[$val['country-www']] = array();
                        }
                        if (trim($name_translations[$val['country-www']]) != '') {
                            $extrasTranslations[$val['country-www']][$e->name] = $name_translations[$val['country-www']];
                        }
                    }
                }
            }
        }
    }
    if (isset($extrasTranslations[$lang])) {
        $replaceFrom = array();
        $replaceTo = array();
        foreach ($extrasTranslations[$lang] as $from => $to) {
            $replaceFrom[] = $from;
            $replaceTo[] = $to;
        }
        $replaceFrom[] = 'Value Added Tax';
        $replaceTo[] = CarRental::t('Value Added Tax');
        return str_replace($replaceFrom, $replaceTo, $string);
    }
    return $string;
}
Exemple #23
0
							</div>
							<?php 
if (!isset($theme_options['show_breadcrumb']) || isset($theme_options['show_breadcrumb']) && $theme_options['show_breadcrumb'] == 1) {
    ?>
							<p class="breadcrumb">
								<a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo CarRental::t('Home');
    ?>
"><?php 
    echo CarRental::t('Home');
    ?>
</a> / <span class="active"><?php 
    echo CarRental::t('Servicios Exclusivos');
    ?>
</span>
							</p>
							<?php 
}
?>
						</div>
						<!-- .slideshow-item-wrap -->				

					</div>


			</div>
			<!-- .container -->
						<div class="row">
							<div class="h2">
								<span><?php 
echo CarRental::t('Feel the Joy.');
?>
</span> <?php 
echo CarRental::t('Fully inclusive Rates');
?>
							</div>
						</div>
						<div class="row">
							<p><?php 
echo CarRental::t('Save up to 35%');
?>
 <span><?php 
echo CarRental::t('Pay Now Rates');
?>
</span></p>
						</div>
					</div>
					
				</div>
			</div>
		</div>
	</section>
		
	<section class="content">	

		<div class="container">
			
			<div class="break-md">
Exemple #25
0
?>
						<span class="sprite-arrow-right"></span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="steps-number">3</span> <?php 
echo CarRental::t('Services &amp; book');
?>
						<span class="sprite-arrow-right"></span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="steps-number">4</span> <?php 
echo CarRental::t('Summary');
?>
						<span class="sprite-arrow-right"></span>
					</a>
				</li>
			</ul>
		
		<?php 
include get_file_template_path('choose-car-content.php');
?>
		
	</div>
	<!-- .container -->
	
</section>
<!-- .content -->	
Exemple #26
0
CarRental::t('Change email');
CarRental::t('The minimum password length is 5 characters.');
CarRental::t('Please enter valid current password.');
CarRental::t('New password authentication disagree.');
CarRental::t('Your login email was successfully changed.');
CarRental::t('Account settings');
CarRental::t('My details');
CarRental::t('First name');
CarRental::t('Save');
CarRental::t('Phone');
CarRental::t('City');
CarRental::t('Country');
CarRental::t('VAT');
CarRental::t('Last name');
CarRental::t('Street');
CarRental::t('ZIP');
CarRental::t('Company');
CarRental::t('Your details was successfully changed.');
CarRental::t('Sorry, but this email address is already used. Please login if it is your account.');
CarRental::t('is already used by another user. If it is your account then enter password to login.');
CarRental::t('Login and Confirm Reservation');
CarRental::t('You do not have any bookings yet.');
CarRental::t('Booking time');
CarRental::t('Vehicle');
CarRental::t('Enter date');
CarRental::t('Return date');
CarRental::t('Action');
CarRental::t('show details');
CarRental::t('Our cars');
CarRental::t('Download as PDF');
Exemple #27
0
echo CarRental::t('E-mail');
?>
</label>
		<input class="control-input" type="text" name="email" id="carrental-client-area-login-email" />
		<label for="carrental-client-area-login-password"><?php 
echo CarRental::t('Password');
?>
</label>
		<input class="control-input" type="password" name="password" id="carrental-client-area-login-password" />
		<button class="btn btn-primary" name="carrental-client-area-login"><?php 
echo CarRental::t('Log in');
?>
</button>
		<div>
			<a href="<?php 
echo get_site_url();
?>
/client-area/lost-password"><?php 
echo CarRental::t('Lost password');
?>
</a>
			<a href="<?php 
echo get_site_url();
?>
/client-area/sign-in"><?php 
echo CarRental::t('Sign up');
?>
</a>
		</div>
	</form>
</div>