Buenas comunidad!
Estoy modificando un template y me encontre con que algunas que no se como hacer por mis casi ausentes conocimientos en programacion, la web que estoy armando es [noparse]
www.pewmafe.com/alquilo
Debo sacar del buscador las opciones: Que? y Cuando?
Pense que se podria cargar la variable con valores fijos asi no modifico la consultas a la base de datos y debere ocultar las columnas del aspecto visual de la web.
El codigo es:
[PHP]<div class="main-search">
<form id="main-search" method="get" action="<?php echo $custom_search_results_page; ?>">
<?php if ($whats_count > 1) { ?>
<!--column-->
<div class="column radios">
<h4><span>01</span> <?php _e('What?', 'bookyourtravel'); ?></h4>
<?php if ($enable_hotel_search) {?>
<script>window.visibleSearchFormNumber = 1;</script>
<div class="f-item checked" >
<input type="radio" name="what" id="hotel" value="1" checked="checked" />
<label for="hotel"> <?php _e('Hotel', 'bookyourtravel'); ?></label>
</div>
<?php } ?>
<?php if ($enable_self_catered_search) {
if (!$enable_hotel_search) {
?>
<script>window.visibleSearchFormNumber = 2;</script>
<?php } ?>
<div class="f-item <?php echo $enable_hotel_search ? '' : 'active'?>" >
<input type="radio" name="what" id="self_catered" value="2" <?php echo $enable_hotel_search ? '' : ' checked="checked"' ?> />
<label for="self_catered"> <?php _e('Self Catering', 'bookyourtravel'); ?></label>
</div>
<?php } ?>
<?php if ($enable_car_rental_search) {
if (!$enable_hotel_search && !$enable_self_catered_search) {
?>
<script>window.visibleSearchFormNumber = 3;</script>
<?php } ?>
<div class="f-item <?php echo ($enable_hotel_search || $enable_self_catered_search) ? '' : 'active'?>">
<input type="radio" name="what" id="car_rental" value="3" <?php echo ($enable_hotel_search || $enable_self_catered_search) ? '' : ' checked="checked"' ?> />
<label for="car_rental"> <?php _e('Rent a Car', 'bookyourtravel'); ?></label>
</div>
<?php } ?>
<?php if ($enable_tour_search) {
if (!$enable_hotel_search && !$enable_self_catered_search && !$enable_car_rental_search) {
?>
<script>window.visibleSearchFormNumber = 4;</script>
<?php } ?>
<div class="f-item <?php echo ($enable_hotel_search || $enable_self_catered_search || $enable_car_rental_search) ? '' : 'active'?>" >
<input type="radio" name="what" id="tour" value="4" <?php echo ($enable_hotel_search || $enable_self_catered_search || $enable_car_rental_search) ? '' : ' checked="checked"' ?> />
<label for="tour"> <?php _e('Tour', 'bookyourtravel'); ?></label>
</div>
<?php } ?>
</div>
<!--//column-->
<?php } else {
if ($enable_hotel_search) {
echo '<input type="hidden" id="what" name="what" value="1" />';
echo '<script>window.visibleSearchFormNumber = 1;</script>';
} elseif ($enable_self_catered_search) {
echo '<input type="hidden" id="what" name="what" value="2" />';
echo '<script>window.visibleSearchFormNumber = 2;</script>';
} elseif ($enable_car_rental_search) {
echo '<input type="hidden" id="what" name="what" value="3" />';
echo '<script>window.visibleSearchFormNumber = 3;</script>';
} elseif ($enable_tour_search) {
echo '<input type="hidden" id="what" name="what" value="4" />';
echo '<script>window.visibleSearchFormNumber = 4;</script>';
}
} ?>
<div class="forms <?php echo ($whats_count <= 1) ? 'first' : ''?>" >
<!--form accommodation-->
<div class="form" id="form1">
<!--column-->
<div class="column">
<h4><span>0<?php echo $form_box_counter; ?></span> <?php _e('Where?', 'bookyourtravel'); ?></h4>
<div class="f-item">
<label for="term"><?php _e('Your destination', 'bookyourtravel'); ?></label>
<input type="text" placeholder="<?php _e('City, region, district or specific accommodation', 'bookyourtravel'); ?>" id="term" name="term" />
</div>
</div>
<!--//column-->
<!--column-->
<div class="column twins">
<h4><span>0<?php echo $form_box_counter + 1; ?></span> <?php _e('When?', 'bookyourtravel'); ?></h4>
<div class="f-item datepicker">
<label for="from"><?php _e('Check-in date', 'bookyourtravel'); ?></label>
<div class="datepicker-wrap"><input type="text" placeholder="" id="from" name="from" /></div>
</div>
<div class="f-item datepicker">
<label for="to"><?php _e('Check-out date', 'bookyourtravel'); ?></label>
<div class="datepicker-wrap"><input type="text" placeholder="" id="to" name="to" /></div>
</div>
</div>
<!--//column-->
<!--column-->
<div class="column twins last">
<h4><span>0<?php echo $form_box_counter + 2; ?></span> <?php _e('Who?', 'bookyourtravel'); ?></h4>
<div class="f-item spinner">
<label for="rooms"><?php _e('Rooms', 'bookyourtravel'); ?></label>
<input type="text" placeholder="" id="rooms" name="rooms" />
</div>
</div>
<!--//column-->
</div>
<!--//form accommodation-->[/PHP]
Gracias por dejarme participar :)
Sergio