Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tohaaa committed Oct 8, 2020
1 parent 8d57bbd commit c03bc03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
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: 5.0.0
Tested up to: 5.3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.4.6
Version: 1.4.7


== Description ==
Expand Down
2 changes: 1 addition & 1 deletion beedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin name: BeeDirect by Omnibees
Plugin uri: widgets.omnibees.com/manual
Description: Widgets to BeeDirect
Version: 1.4.6
Version: 1.4.7
Author: Omnibees
Author uri: www.omnibees.com
License: GPlv2 or Later
Expand Down
18 changes: 3 additions & 15 deletions widgets/price/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,7 @@ protected function render(){

<script>

<?php
/* $beeCurrency = $settings['currency'];
function getCurrencySymbol($beeCurrency){
switch ($beeCurrency) :
case 16: return "R$";
case 23: return "$";
case 34: return "€";
case 108: return "£";
case 109: return "$";
endswitch;
}*/
?>


function start_price(){
jQuery(document).ready(function($){
setTimeout(function(){
Expand Down Expand Up @@ -226,8 +214,8 @@ function start_price(){
$(".static-price").hide();

bestPrice = obj.HotelStaysType.HotelStays[0].Price.AmountBeforeTax;
bestPriceApi += "<span class='best-price-since'><?php echo $settings['title'] ?> </span>"
bestPriceApi += "<span class='best-price-value'> R$<?php /*echo getCurrencySymbol($beeCurrency)*/ ?> " + parseFloat(Math.round(bestPrice * 100) / 100).toFixed(2) + "</span>";
bestPriceApi += "<span class='best-price-since'><?php echo $settings['title'] ?> </span>";
bestPriceApi += "<span class='best-price-value'> R$ " + parseFloat(Math.round(bestPrice * 100) / 100).toFixed(2) + "</span>";
$('.omnibees-best-price').html(bestPriceApi);
}else {
console.log("O hotel não possui tarifa para hoje");
Expand Down

0 comments on commit c03bc03

Please sign in to comment.