Skip to content

Commit

Permalink
Merge pull request #2 from tohaaa/master
Browse files Browse the repository at this point in the history
Show or hide info option
  • Loading branch information
thallysondias authored Jun 24, 2024
2 parents a2a2513 + df50886 commit 0aeb62f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
22 changes: 22 additions & 0 deletions admin/customize-be.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function be_opt()
$versao = $_POST['versao'];
$affiliate = $_POST['omnibees_affiliate'];
$custom_url = $_POST['omnibees_url'];
$balao = $_POST['omnibees_balao'];

global $chk;

Expand Down Expand Up @@ -50,6 +51,9 @@ function be_opt()
if (get_option('omnibees_url') != trim($custom_url)) {
$chk = update_option('omnibees_url', trim($custom_url));
}
if (get_option('omnibees_balao') != trim($balao)) {
$chk = update_option('omnibees_balao', trim($balao));
}
}
?>
<style>
Expand Down Expand Up @@ -448,6 +452,24 @@ function be_opt()

</div>

<div class="passo-plugin">
<table>
<tr>
<td style="width: 30px;"><span class="numero-plugin">8</span></td>
<td>
<b>Defina o comportamento do balão informativo</b><br>
<i class="traducao-passo">Define the behavior of the information balloon</i>
</td>
</tr>
</table>
<div class="input-plugin">
<select name="balao">
<option value="block" <?php if(get_option('omnibees_balao') === "block") :?> selected="selected" <?php endif;?>>Mostrar balão</option>
<option value="none" <?php if(get_option('omnibees_balao') === "none") :?> selected="selected" <?php endif;?>>Ocultar Balão</option>
</select>
</div>
</div>

<div style="border-bottom:1px solid #eee;">
</div>
<br><br>
Expand Down
2 changes: 1 addition & 1 deletion booking-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin name: Booking Engine
Plugin uri: widgets.omnibees.com/manual
Description: Easy Booking Engine Omnibees for Wordpress
Version: 5.0
Version: 5.1
Author: Omnibees
Author uri: www.omnibees.com
License: GPlv2 or Later
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires at least: 6.0
Tested up to: 6.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 5.0
Version: 5.1


== Description ==
Expand Down
5 changes: 5 additions & 0 deletions views/fixed/booking-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
!important;
}

.motor-reserva .ativa {
display: <?php echo get_option('omnibees_balao');?> !important;
}


.booknow button {
background:
<?php echo get_option('omnibees_botao');
Expand Down
2 changes: 1 addition & 1 deletion views/fixed/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ body {
.motor-reserva .ativa {
opacity: 1 !important;
background: blue;
display: block !important;
/* display: block !important; */
bottom: 80px !important;
transition: all ease-in 3s !important;
}
Expand Down

0 comments on commit 0aeb62f

Please sign in to comment.