Skip to content

Commit

Permalink
remove PHP short tags
Browse files Browse the repository at this point in the history
  • Loading branch information
drishtitrivedi committed Jul 30, 2019
1 parent da06d47 commit fa9b515
Show file tree
Hide file tree
Showing 22 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion booking_complete.php
Expand Up @@ -29,7 +29,7 @@

<?php echo $site->getTemplate('booking_order')?>

<?
<?php
$ga_add_transacton = "
ga('ecommerce:addTransaction', {
'id': '$trans_num',
Expand Down
2 changes: 1 addition & 1 deletion booking_summary.php
Expand Up @@ -87,7 +87,7 @@
</tr>

<?php foreach( $site->getBookingLineItems() as $line ) { ?>
<?
<?php
unset($label_add);
if($site->exists($line->percent) || $site->exists($line->multi)) {
$label_add = ' (';
Expand Down
2 changes: 1 addition & 1 deletion rezgo/include/countries_list.php
@@ -1,4 +1,4 @@
<?
<?php
// countries array
$countries_list = array(
'af' => 'afghanistan',
Expand Down
2 changes: 1 addition & 1 deletion rezgo/paypal/cancel.php
@@ -1,4 +1,4 @@
<?
<?php
// the paypal process was cancelled. Show this to the user in the modal window.
?>

Expand Down
22 changes: 11 additions & 11 deletions rezgo/templates/default/book.php
@@ -1,4 +1,4 @@
<?
<?php
// handle old-style booking requests
if($_REQUEST[uid] && $_REQUEST[date]) {
$for_array = array('adult', 'child', 'senior', 'price4', 'price5', 'price6', 'price7', 'price8', 'price9');
Expand Down Expand Up @@ -170,7 +170,7 @@
</ol>
</div>

<?
<?php
$c = 0;
$cart = $site->getCart(1); // get the cart, remove any dead entries

Expand All @@ -181,7 +181,7 @@
?>
<?php // start cart loop for each tour in the order ?>
<?php foreach($cart as $item) { ?>
<?
<?php
$required_fields = 0;
$site->readItem($item);
?>
Expand Down Expand Up @@ -317,7 +317,7 @@

<p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>

<?
<?php
if ($form->options_instructions) {
$optex_count = 1;
foreach($form->options_instructions as $opt_extra) {
Expand All @@ -342,7 +342,7 @@

<p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>

<?
<?php
if ($form->options_instructions) {
$optex_count = 1;
foreach($form->options_instructions as $opt_extra) {
Expand Down Expand Up @@ -434,7 +434,7 @@
</select>
<p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>

<?
<?php
if ($form->options_instructions) {
$optex_count = 1;
foreach($form->options_instructions as $opt_extra) {
Expand All @@ -457,7 +457,7 @@
</select>
<p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>

<?
<?php
if ($form->options_instructions) {
$optex_count = 1;
foreach($form->options_instructions as $opt_extra) {
Expand Down Expand Up @@ -533,7 +533,7 @@
<label>Choose your pickup location</label>
<select class="chosen-select form-control rezgo-pickup-select" name="booking[<?php echo $c?>][pickup]" data-target="rezgo-pickup-detail-<?php echo $c?>" data-id="<?php echo $c?>" data-counter="<?php echo $form_counter?>" data-option="<?php echo $item->uid?>" data-pax="<?php echo $item->pax?>">
<option value=""></option>
<?
<?php

foreach($pickup_locations->pickup as $pickup) {

Expand Down Expand Up @@ -689,7 +689,7 @@
</td>
<td class="rezgo-td-data">
<span>
<?
<?php
unset($discount_string);
foreach($item->discount_rules->rule as $discount) {
$discount_string .= ($discount_string) ? ', '.$discount : $discount;
Expand Down Expand Up @@ -963,7 +963,7 @@

<!-- WAIVER -->
<?php if(!$site->isVendor()) { ?>
<?
<?php
$waiver = 0;
$waiver_ids = '';
foreach($cart as $item) {
Expand Down Expand Up @@ -1031,7 +1031,7 @@

<div class="rezgo-payment-frame" id="payment_info" style="<?php echo (($complete_booking_total > 0) ? '' : 'display:none;')?>">
<div class="form-group" id="payment_methods">
<?
<?php
$card_fa_logos = array(
'visa' => 'fa-cc-visa',
'mastercard' => 'fa-cc-mastercard',
Expand Down
14 changes: 7 additions & 7 deletions rezgo/templates/default/booking_complete.php
@@ -1,4 +1,4 @@
<?
<?php
$trans_num = $site->decode($_REQUEST['trans_num']);

// send the user home if they shoulden't be here
Expand Down Expand Up @@ -132,7 +132,7 @@
<button class="btn btn-lg rezgo-btn-print-voucher" onclick="window.open('https://<?php echo $site->getDomain();?>.<?php echo $role?>rezgo.com/tickets/<?php echo $site->encode($trans_num)?>', '_blank'); return false;"><i class="fa fa-ticket fa-lg"></i>&nbsp;Print <?php echo ((string) $booking->ticket_type == 'ticket') ? 'Tickets' : 'Voucher' ?></button>
<?php } ?>

<?
<?php
if($site->isVendor()) {
$supplier = $site->getCompanyDetails($booking->cid);
$show_reviews = $supplier->reviews;
Expand Down Expand Up @@ -395,7 +395,7 @@
<a href="https://www.google.com/maps/place/<?php echo urlencode($pickup_detail->lat.','.$pickup_detail->lon)?>" target="_blank"><i class="fa fa-map-marker"></i> <?php echo $pickup_detail->location_address;?></a><br />
<?php } ?>

<?
<?php

if($site->exists($pickup_detail->lat) && !REZGO_CUSTOM_DOMAIN) {

Expand Down Expand Up @@ -627,7 +627,7 @@

<?php if ($form->options_instructions) { ?>

<?
<?php
$options = explode(',', (string) $form->options);
$options_instructions = explode(',', (string) $form->options_instructions);
$option_extras = array_combine($options, $options_instructions);
Expand All @@ -637,7 +637,7 @@

<?php if ( $form->type == 'multiselect' ) { ?>

<?
<?php
$multi_answers = explode(',', (string) $form->answer);
$multi_answer_list = '';
foreach ($multi_answers as $answer) {
Expand Down Expand Up @@ -731,7 +731,7 @@

<?php if ($form->options_instructions) { ?>

<?
<?php
$pax_options = explode(',', (string) $form->options);
$pax_options_instructions = explode(',', (string) $form->options_instructions);
$pax_option_extras = array_combine($pax_options, $pax_options_instructions);
Expand All @@ -741,7 +741,7 @@

<?php if ( $form->type == 'multiselect' ) { ?>

<?
<?php
$pax_multi_answers = explode(',', (string) $form->answer);
$pax_multi_answer_list = '';
foreach ($pax_multi_answers as $pax_answer) {
Expand Down
14 changes: 7 additions & 7 deletions rezgo/templates/default/booking_complete_print.php
@@ -1,4 +1,4 @@
<?
<?php
// grab and decode the trans_num if it was set
$trans_num = $site->decode($_REQUEST['trans_num']);

Expand Down Expand Up @@ -125,7 +125,7 @@
<i class="fa fa-map-marker"></i> <?php echo $pickup_detail->location_address;?><br />
<?php } ?>

<?
<?php

if($site->exists($pickup_detail->lat) && !REZGO_CUSTOM_DOMAIN) {

Expand Down Expand Up @@ -346,7 +346,7 @@
</tr>

<?php foreach( $site->getBookingLineItems() as $line ) { ?>
<?
<?php
unset($label_add);
if($site->exists($line->percent) || $site->exists($line->multi)) {
$label_add = ' (';
Expand Down Expand Up @@ -435,7 +435,7 @@

<?php if ($form->options_instructions) { ?>

<?
<?php
$options = explode(',', (string) $form->options);
$options_instructions = explode(',', (string) $form->options_instructions);
$option_extras = array_combine($options, $options_instructions);
Expand All @@ -445,7 +445,7 @@

<?php if ( $form->type == 'multiselect' ) { ?>

<?
<?php
$multi_answers = explode(',', (string) $form->answer);
$multi_answer_list = '';
foreach ($multi_answers as $answer) {
Expand Down Expand Up @@ -508,7 +508,7 @@

<?php if ($form->options_instructions) { ?>

<?
<?php
$pax_options = explode(',', (string) $form->options);
$pax_options_instructions = explode(',', (string) $form->options_instructions);
$pax_option_extras = array_combine($pax_options, $pax_options_instructions);
Expand All @@ -518,7 +518,7 @@

<?php if ( $form->type == 'multiselect' ) { ?>

<?
<?php
$pax_multi_answers = explode(',', (string) $form->answer);
$pax_multi_answer_list = '';
foreach ($pax_multi_answers as $pax_answer) {
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/booking_order.php
Expand Up @@ -234,7 +234,7 @@
</tr>

<?php foreach($site->getBookingLineItems() as $line) { ?>
<?
<?php
unset($label_add);
if($site->exists($line->percent) || $site->exists($line->multi)) {
$label_add = ' (';
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/booking_order_print.php
@@ -1,4 +1,4 @@
<?
<?php

// send the user home if they shouldn't be here
if(!$trans_num) $site->sendTo($site->base."/order-not-found:empty");
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/booking_payment.php
@@ -1,4 +1,4 @@
<?
<?php
if($_REQUEST['rezgoAction'] == 'return') {
echo '<script type="text/javascript">parent.creditConfirm("'.$_REQUEST['token'].'");</script>';
}
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/booking_tickets.php
@@ -1,7 +1,7 @@
<?php $split = explode(",", $_REQUEST['trans_num']); ?>

<?php foreach((array) $split as $v) { ?>
<?
<?php
$trans_num = $site->decode($v);
if(!$trans_num) $site->sendTo("/");
$booking = $site->getBookings($trans_num, 0);
Expand Down
4 changes: 2 additions & 2 deletions rezgo/templates/default/booking_voucher.php
@@ -1,4 +1,4 @@
<?
<?php
$split = explode(",", $_REQUEST[trans_num]);

foreach((array) $split as $v) {
Expand Down Expand Up @@ -203,7 +203,7 @@
</div><!-- end .container -->
</div><!-- end #rezgo-voucher-body -->

<?
<?php

echo $site->getVoucherFooter();

Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/calendar_day.php
@@ -1,4 +1,4 @@
<?
<?php
$company = $site->getCompanyDetails();
$availability_title = '';

Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/contact.php
@@ -1,4 +1,4 @@
<?
<?php
if($_POST['rezgoAction'] == 'contact') {
if ($_POST['hp_rezgo'] != '') {
$bot_request = TRUE;
Expand Down
8 changes: 4 additions & 4 deletions rezgo/templates/default/index_ajax.php
Expand Up @@ -31,7 +31,7 @@
<p class="lead">Sorry, there were no results for your search.</p>
<?php } ?>

<?
<?php
$tourList = $site->getTours();

if($tourList[REZGO_RESULTS_PER_PAGE]) {
Expand Down Expand Up @@ -95,7 +95,7 @@
</span>
<?php } ?>
<p>
<?
<?php
$text = strip_tags($item->details->overview);
$text = $text." ";
$text = substr($text, 0, 200);
Expand All @@ -109,7 +109,7 @@
</p>
</div>
<div class="col-sm-12 col-md-4 rezgo-info-left pull-left">
<?
<?php
unset($location);
if($site->exists($item->location_name)) $location['name'] = $item->location_name;
if($site->exists($item->location_address)) $location['address'] = $item->location_address;
Expand All @@ -121,7 +121,7 @@
<?php if(count($location) > 0) { ?>
<p class="rezgo-list-location">
<strong class="text-info" class="rezgo-location-label">Location</strong>
<?
<?php
if($location['address'] != '') {
echo '
'.($location['name'] != '' ? '<span class="rezgo-location-name">'.$location['name'].' - </span>' : '').'
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/order.php
Expand Up @@ -311,7 +311,7 @@
</div>
<?php } // end if(!$cart) ?>

<?
<?php
// build 'share this order' link
$pax_nums = array ('adult_num', 'child_num', 'senior_num', 'price4_num', 'price5_num', 'price6_num', 'price7_num', 'price8_num', 'price9_num');

Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/review_add.php
@@ -1,4 +1,4 @@
<?
<?php
require('recaptchalib.php');

if($_POST['rezgoAction'] == 'contact') {
Expand Down
2 changes: 1 addition & 1 deletion rezgo/templates/default/signup-header.php
@@ -1,5 +1,5 @@
<? if(!$site->config('REZGO_HIDE_HEADERS')) { ?>
<?
<?php
header('Cache-Control: no-cache');
header('Pragma: no-cache');

Expand Down
8 changes: 4 additions & 4 deletions rezgo/templates/default/tour_details.php
Expand Up @@ -13,7 +13,7 @@

<div class="tour-details-wrp container-fluid rezgo-container">

<?
<?php
$items = $site->getTours('t=com&q='.$_REQUEST['com'].'&f[uid]='.$_REQUEST['option'].'&d='.$_REQUEST['date']);

if(!$items) { ?>
Expand Down Expand Up @@ -390,7 +390,7 @@ function recursive_array_search($needle,$haystack) {
<span>&nbsp;</span>
</div>

<?
<?php
$ref_parts = explode('/?', $_SERVER['HTTP_REFERER']);
$promo_form_url = $ref_parts[0];
?>
Expand Down Expand Up @@ -449,7 +449,7 @@ function recursive_array_search($needle,$haystack) {
<div class="lead" id="rezgo-tour-overview"><?php echo $item->details->overview?></div>
<?php } ?>

<?
<?php
unset($location);
if($site->exists($item->location_name)) $location['name'] = $item->location_name;
if($site->exists($item->location_address)) $location['address'] = $item->location_address;
Expand All @@ -464,7 +464,7 @@ function recursive_array_search($needle,$haystack) {
<span>Location:&nbsp;</span>
</label>

<?
<?php
if ($location['address'] != '') {
echo '
'.($location['name'] != '' ? '<span class="rezgo-location-name">'.$location['name'].' - </span>' : '').'
Expand Down

0 comments on commit fa9b515

Please sign in to comment.