Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto Y8cr6; Hsc10: function hh_add_taxi_product_data_panel() { global $post; wp_en..

Decoded Output download

<?php 
 goto Y8cr6; Hsc10: function hh_add_taxi_product_data_panel() { global $post; wp_enqueue_media(); $taxi_cars = get_post_meta($post->ID, "_taxi_cars", true); if (!$taxi_cars) { $taxi_cars = array(); } else { foreach ($taxi_cars as $key => $value) { $price = get_post_meta($value["ID"], "price_per_mile", true); $taxi_cars[$key]["price"] = $price; } } $from_locations = array(); $to_locations = array(); $car_products = new WP_Query(array("post_type" => "car", "posts_per_page" => -1)); $from_locations_string = get_post_meta($post->ID, "restrict_from_locations", true); if ($from_locations_string) { $from_locations_array = explode(";", $from_locations_string); foreach ($from_locations_array as $value) { $data = explode("|", $value); $geometry = new stdClass(); $geometry->location = new stdClass(); $geometry->location->lat = floatval($data[1]); $geometry->location->lng = floatval($data[2]); $from_locations[] = array("formatted_address" => $data[0], "geometry" => $geometry); } } $to_locations_string = get_post_meta($post->ID, "restrict_to_locations", true); if ($to_locations_string) { $to_locations_array = explode(";", $to_locations_string); foreach ($to_locations_array as $value) { $data = explode("|", $value); $geometry = new stdClass(); $geometry->location = new stdClass(); $geometry->location->lat = floatval($data[1]); $geometry->location->lng = floatval($data[2]); $to_locations[] = array("formatted_address" => $data[0], "geometry" => $geometry); } } wp_enqueue_script("hh-taxi-panel"); wp_localize_script("hh-taxi-panel", "hh_wc_ajax", array("ajaxUrl" => admin_url("admin-ajax.php"), "taxiCars" => json_encode($taxi_cars), "from_locations" => json_encode($from_locations), "to_locations" => json_encode($to_locations))); wp_enqueue_style("hh-taxi-panel"); include get_theme_file_path("woocommerce-bookings/taxi/templates/html-taxi-panel.php"); } goto SP8Ze; tn6W4: add_filter("woocommerce_add_to_cart_validation", "hh_add_booking_validation", 20, 3); goto yKgeQ; ukUX8: add_action("woocommerce_product_addons_end", "hh_add_addons_block", 10, 1); goto FYort; MRFO0: function hh_add_taxi_to_cart_item($cart_item_data, $product_id, $variation_id) { if (!empty($_REQUEST["is_add_chauffeur"])) { $cart_item_data["is_add_chauffeur"] = $_REQUEST["is_add_chauffeur"]; } if (!empty($_REQUEST["car_name"])) { $cart_item_data["car_name"] = $_REQUEST["car_name"]; } if (!empty($_REQUEST["car_price"])) { $cart_item_data["car_price"] = $_REQUEST["car_price"]; } if (!empty($_REQUEST["car_supplement"])) { $cart_item_data["car_supplement"] = $_REQUEST["car_supplement"]; } if (!empty($_REQUEST["car_id"])) { $cart_item_data["car_id"] = $_REQUEST["car_id"]; } if (!empty($_REQUEST["distance"])) { $cart_item_data["distance"] = $_REQUEST["distance"]; } if (!empty($_REQUEST["inside_distance"])) { $cart_item_data["inside_distance"] = $_REQUEST["inside_distance"]; } if (!empty($_REQUEST["london_price"])) { $cart_item_data["london_price"] = $_REQUEST["london_price"]; } if (!empty($_REQUEST["from_address"])) { $cart_item_data["from_address"] = $_REQUEST["from_address"]; } if (!empty($_REQUEST["to_address"])) { $cart_item_data["to_address"] = $_REQUEST["to_address"]; } return $cart_item_data; } goto xnfnw; hhQtY: function hh_add_to_cart_button_for_taxi_product() { global $post; $product = wc_get_product($post->ID); if ($product->get_meta("_taxi") && $product->get_meta("_taxi") == "yes") { wp_enqueue_script("hh-add-to-cart"); wp_enqueue_style("hh-add-to-cart"); wp_localize_script("hh-add-to-cart", "hh_wc_ajax", array("ajaxUrl" => admin_url("admin-ajax.php"), "price_display_suffix" => esc_attr(get_option("woocommerce_price_display_suffix")), "ajax_url" => WC()->ajax_url(), "i18n_addon_total" => __("Options total:", "woocommerce-product-addons"), "i18n_sub_total" => __("Sub total:", "woocommerce-product-addons"), "i18n_remaining" => __("characters remaining", "woocommerce-product-addons"), "currency_format_num_decimals" => absint(get_option("woocommerce_price_num_decimals")), "currency_format_symbol" => get_woocommerce_currency_symbol(), "currency_format_decimal_sep" => esc_attr(stripslashes(get_option("woocommerce_price_decimal_sep"))), "currency_format_thousand_sep" => esc_attr(stripslashes(get_option("woocommerce_price_thousand_sep"))), "trim_trailing_zeros" => apply_filters("woocommerce_price_trim_zeros", false))); include get_theme_file_path("woocommerce-bookings/taxi/single-product/add-to-cart/taxi.php"); } } goto xbTqY; XQEKa: function hh_create_order_line_item($item, $cart_item_key, $values, $order) { if (!empty($values["is_add_chauffeur"])) { if (isset($values["car_name"]) && !empty($values["car_name"])) { $item->add_meta_data(__("Car Name", "woocommerce"), $values["car_name"], true); } if (isset($values["car_price"]) && !empty($values["car_price"])) { $item->add_meta_data(__("Car Price", "woocommerce"), wc_price($values["car_price"]), true); if (!empty($values["distance"])) { if (floatval($values["distance"]) <= 15) { $item->add_meta_data(__("Chauffeur Price", "woocommerce"), __("Free for first 15 miles"), true); } else { $freePrice = floatval($values["car_price"]) * 15; $price = floatval($values["car_price"]) * floatval($values["distance"]); if (isset($value["inside_distance"]) && $value["inside_distance"] && isset($value["london_price"]) && $value["london_price"] && floatval($value["distance"]) > floatval($value["inside_distance"])) { $price = floatval($value["london_price"]) * floatval($value["inside_distance"]) + floatval($value["car_price"]) * (floatval($value["distance"]) - floatval($value["inside_distance"])); } $item->add_meta_data(__("Chauffeur Price", "woocommerce"), wc_clean(wc_price($price - $freePrice)) . " included free 15 miles", true); } } } if (isset($values["distance"]) && !empty($values["distance"])) { $item->add_meta_data(__("Distance", "woocommerce"), number_format($values["distance"]) . " miles", true); } if (isset($values["inside_distance"]) && !empty($values["inside_distance"])) { $item->add_meta_data(__("Inside London Distance", "woocommerce"), number_format($values["inside_distance"]) . " miles", true); } if (isset($values["london_price"]) && $values["london_price"]) { $item->add_meta_data(__("London Price", "woocommerce"), wc_clean(wc_price($values["london_price"])), true); } if (isset($values["car_supplement"]) && $values["car_supplement"]) { $item->add_meta_data(__("Supplement Fee", "woocommerce"), wc_clean(wc_price($values["car_supplement"])), true); } if (isset($values["from_address"]) && !empty($values["from_address"])) { $item->add_meta_data(__("From Address", "woocommerce"), $values["from_address"], true); } if (isset($values["to_address"]) && !empty($values["to_address"])) { $item->add_meta_data(__("To Address", "woocommerce"), $values["to_address"], true); } } } goto VgKUU; xzgpj: add_action("woocommerce_before_calculate_totals", "update_custom_price", 1, 1); goto d_YYm; NeVEw: function hh_display_taxi_cart($item_data, $cart_item) { if (!empty($cart_item["is_add_chauffeur"])) { if (!empty($cart_item["car_name"])) { $item_data[] = array("key" => __("Car Name", "woocommerce"), "value" => wc_clean($cart_item["car_name"]), "display" => ''); } if (!empty($cart_item["car_price"])) { $item_data[] = array("key" => __("Car Price", "woocommerce"), "value" => wc_clean(wc_price($cart_item["car_price"])), "display" => ''); if (!empty($cart_item["distance"])) { if (floatval($cart_item["distance"]) <= 15) { $item_data[] = array("key" => __("Chauffeur Price", "woocommerce"), "value" => "Free for first 15 miles", "display" => ''); } else { $freePrice = floatval($cart_item["car_price"]) * 15; $price = floatval($cart_item["car_price"]) * floatval($cart_item["distance"]); if (isset($cart_item["inside_distance"]) && $cart_item["inside_distance"] && isset($cart_item["london_price"]) && $cart_item["london_price"] && floatval($cart_item["distance"]) > floatval($cart_item["inside_distance"])) { $price = floatval($cart_item["london_price"]) * floatval($cart_item["inside_distance"]) + floatval($cart_item["car_price"]) * (floatval($cart_item["distance"]) - floatval($cart_item["inside_distance"])); } $item_data[] = array("key" => __("Chauffeur Price", "woocommerce"), "value" => wc_clean(wc_price($price - $freePrice)) . " included free for 15 miles", "display" => ''); } } } if (!empty($cart_item["distance"])) { $item_data[] = array("key" => __("Distance", "woocommerce"), "value" => wc_clean(number_format($cart_item["distance"])) . " miles", "display" => ''); } if (!empty($cart_item["inside_distance"])) { $item_data[] = array("key" => __("Inside London Distance", "woocommerce"), "value" => wc_clean(number_format($cart_item["inside_distance"])) . " miles", "display" => ''); } if (!empty($cart_item["london_price"])) { $item_data[] = array("key" => __("London Price", "woocommerce"), "value" => wc_clean(wc_price($cart_item["london_price"])), "display" => ''); } if (!empty($cart_item["car_supplement"])) { $item_data[] = array("key" => __("Supplement Fee", "woocommerce"), "value" => wc_clean(wc_price($cart_item["car_supplement"])), "display" => ''); } if (!empty($cart_item["from_address"])) { $item_data[] = array("key" => __("From Address", "woocommerce"), "value" => wc_clean($cart_item["from_address"]), "display" => ''); } if (!empty($cart_item["to_address"])) { $item_data[] = array("key" => __("To Address", "woocommerce"), "value" => wc_clean($cart_item["to_address"]), "display" => ''); } } return $item_data; } goto z2Xu1; zzoOF: function hh_add_product_data_tab($tabs) { $tabs["_taxi"] = array("id" => "taxi-tab", "label" => __("Taxi", "woocommerce"), "target" => "taxi-panel", "class" => array("show_if_taxi"), "priority" => 50); return $tabs; } goto rQ6NO; UbEwI: function hh_add_product_type_options($options) { return array_merge($options, array("taxi" => array("id" => "_taxi", "wrapper_class" => "show_if_booking", "label" => __("Has Taxi", "woocommerce"), "description" => __("Has Taxi products give access to select from and to address to setup product price base on distance.", "woocommerce")))); } goto ltxkL; ciU1f: add_action("admin_enqueue_scripts", "hh_enqueue_admin_scripts"); goto rkY1k; ltxkL: add_filter("product_type_options", "hh_add_product_type_options", 10, 2); goto zzoOF; z2Xu1: add_filter("woocommerce_get_item_data", "hh_display_taxi_cart", 10, 2); goto XQEKa; d_YYm: function change_resource_template_file($template) { global $product; $checkExists = strpos($template, "woocommerce-bookings/templates/booking-form/select.php"); if ($checkExists !== false && $product->get_meta("_taxi") && $product->get_meta("_taxi") === "yes") { $template = locate_template(array("woocommerce-bookings/taxi/templates/resources.php")); } return $template; } goto X8lk2; dK3Bj: add_action("init", "hh_create_car_post_type"); goto XLVqJ; xbTqY: add_action("woocommerce_after_add_to_cart_quantity", "hh_add_to_cart_button_for_taxi_product", 35); goto mZTVD; rkY1k: function hh_enqueue_front_end_scripts() { $google_maps_key = get_field("google_maps_key", "options"); if (!$google_maps_key) { $google_maps_key = "xxxxxx"; } wp_register_script("google-maps-api", "https://maps.googleapis.com/maps/api/js?key=" . $google_maps_key . "&libraries=geometry,places", array("jquery"), "1.0", true); wp_register_script("hh-add-to-cart", get_theme_file_uri("woocommerce-bookings/taxi/assets/js/taxi-add-to-cart.js"), array("jquery", "google-maps-api"), "1.0", true); wp_register_style("hh-add-to-cart", get_theme_file_uri("woocommerce-bookings/taxi/assets/css/taxi-add-to-cart.css"), false, "1.0.0"); } goto O3v5i; VgKUU: add_action("woocommerce_checkout_create_order_line_item", "hh_create_order_line_item", 10, 4); goto fvtNg; FYort: function hh_calculate_price_with_taxi($booking_cost, $product, $data) { if ($product->get_meta("_taxi") && $product->get_meta("_taxi") === "yes" && isset($_REQUEST["form"])) { parse_str($_REQUEST["form"], $result); if (!empty($result["car_price"]) && !empty($result["is_add_chauffeur"])) { if (empty($result["from_address"])) { return new WP_Error("Error", sprintf(__("Please enter from address.", "woocommerce-bookings"))); } if (empty($result["to_address"])) { return new WP_Error("Error", sprintf(__("Please enter to address.", "woocommerce-bookings"))); } if (empty($result["distance"])) { return new WP_Error("Error", sprintf(__("Please select from and to address from autocomplete list to calculate distance.", "woocommerce-bookings"))); } $distance = floatval($result["distance"]); $car_price = floatval($result["car_price"]); $free_miles = $car_price * 15; $distance_price = $distance * $car_price; if ($distance_price > $free_miles) { $booking_cost += $distance_price - $free_miles; } } } return $booking_cost; } goto UbEwI; O3v5i: add_action("wp_enqueue_scripts", "hh_enqueue_front_end_scripts"); goto MRFO0; mZTVD: add_action("woocommerce_before_add_to_cart_button", "hh_add_to_cart_button_for_taxi_product", 35); goto uIKa0; X8lk2: function hh_add_booking_validation($passed, $product_id, $qty) { $product = wc_get_product($product_id); if (!is_wc_booking_product($product)) { return $passed; } if (!empty($_POST["is_add_chauffeur"])) { if (empty($_POST["from_address"])) { wc_add_notice(__("Please enter from address.", "woocommerce-bookings"), "error"); $passed = false; } if (empty($_POST["to_address"])) { wc_add_notice(__("Please enter to address.", "woocommerce-bookings"), "error"); $passed = false; } } return $passed; } goto tn6W4; fvtNg: function update_custom_price($cart_object) { foreach ($cart_object->cart_contents as $cart_item_key => $value) { if (empty($value["is_add_chauffeur"])) { continue; } if (isset($value["car_price"]) && $value["car_price"] && isset($value["distance"]) && $value["distance"] && isset($value["booking"])) { $price = floatval($value["car_price"]) * $value["distance"]; $freePrice = floatval($value["car_price"]) * 15; if (isset($value["inside_distance"]) && $value["inside_distance"] && isset($value["london_price"]) && $value["london_price"] && floatval($value["distance"]) > floatval($value["inside_distance"])) { $price = floatval($value["london_price"]) * floatval($value["inside_distance"]) + floatval($value["car_price"]) * (floatval($value["distance"]) - floatval($value["inside_distance"])); } if ($price - $freePrice > 0) { $price = $price - $freePrice; } if (isset($value["booking"]["_cost"])) { $price += floatval($value["booking"]["_cost"]); } if (isset($value["car_supplement"]) && $value["car_supplement"]) { $price += floatval($value["car_supplement"]); } $value["data"]->set_price($price); } } } goto xzgpj; q3TUd: add_action("woocommerce_process_product_meta", "hh_add_taxi_product_process_meta", 1); goto hhQtY; xnfnw: add_filter("woocommerce_add_cart_item_data", "hh_add_taxi_to_cart_item", 10, 3); goto NeVEw; Y8cr6: function hh_add_addons_block() { echo "<div id='tax-addon-fields'></div>"; } goto ukUX8; uIKa0: function hh_create_car_post_type() { $labels = array("name" => _x("Cars", "Post type general name", "textdomain"), "singular_name" => _x("Car", "Post type singular name", "textdomain"), "menu_name" => _x("Cars", "Admin Menu text", "textdomain"), "name_admin_bar" => _x("Car", "Add New on Toolbar", "textdomain"), "add_new" => __("Add New", "textdomain"), "add_new_item" => __("Add New Car", "textdomain"), "new_item" => __("New Car", "textdomain"), "edit_item" => __("Edit Car", "textdomain"), "view_item" => __("View Car", "textdomain"), "all_items" => __("All Cars", "textdomain"), "search_items" => __("Search Cars", "textdomain"), "parent_item_colon" => __("Parent Cars:", "textdomain"), "not_found" => __("No cars found.", "textdomain"), "not_found_in_trash" => __("No cars found in Trash.", "textdomain"), "featured_image" => _x("Car Image", "Overrides the Featured Image phrase for this post type. Added in 4.3", "textdomain"), "set_featured_image" => _x("Set image", "Overrides the Set featured image phrase for this post type. Added in 4.3", "textdomain"), "remove_featured_image" => _x("Remove image", "Overrides the Remove featured image phrase for this post type. Added in 4.3", "textdomain"), "use_featured_image" => _x("Use as image", "Overrides the Use as featured image phrase for this post type. Added in 4.3", "textdomain"), "archives" => _x("Car archives", "The post type archive label used in nav menus. Default Post Archives. Added in 4.4", "textdomain"), "insert_into_item" => _x("Insert into car", "Overrides the Insert into post/Insert into page phrase (used when inserting media into a post). Added in 4.4", "textdomain"), "uploaded_to_this_item" => _x("Uploaded to this car", "Overrides the Uploaded to this post/Uploaded to this page phrase (used when viewing media attached to a post). Added in 4.4", "textdomain"), "filter_items_list" => _x("Filter cars list", "Screen reader text for the filter links heading on the post type listing screen. Default Filter posts list/Filter pages list. Added in 4.4", "textdomain"), "items_list_navigation" => _x("Cars list navigation", "Screen reader text for the pagination heading on the post type listing screen. Default Posts list navigation/Pages list navigation. Added in 4.4", "textdomain"), "items_list" => _x("Cars list", "Screen reader text for the items list heading on the post type listing screen. Default Posts list/Pages list. Added in 4.4", "textdomain")); $args = array("labels" => $labels, "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_menu" => true, "query_var" => true, "rewrite" => array("slug" => "car"), "capability_type" => "post", "has_archive" => true, "hierarchical" => false, "menu_position" => null, "supports" => array("title", "editor", "author", "thumbnail", "excerpt", "comments")); register_post_type("car", $args); } goto dK3Bj; SP8Ze: add_action("woocommerce_product_data_panels", "hh_add_taxi_product_data_panel"); goto GNKhA; GNKhA: function hh_add_taxi_product_process_meta($post_id) { $taxi_options = $_POST["_taxi_cars"] ? array_values($_POST["_taxi_cars"]) : array(); $product = wc_get_product($post_id); $product->update_meta_data("_taxi_cars", $taxi_options); $product->update_meta_data("_taxi", isset($_POST["_taxi"]) ? "yes" : "no"); if (isset($_POST["restrict_location"]) && $_POST["restrict_location"] == "yes") { $product->update_meta_data("restrict_location", "yes"); } else { $product->update_meta_data("restrict_location", "no"); } if (isset($_POST["restrict_from"]) && $_POST["restrict_from"] == "yes") { $product->update_meta_data("restrict_from", "yes"); } else { $product->update_meta_data("restrict_from", "no"); } if (isset($_POST["restrict_to"]) && $_POST["restrict_to"] == "yes") { $product->update_meta_data("restrict_to", "yes"); } else { $product->update_meta_data("restrict_to", "no"); } if (isset($_POST["restrict_from_locations"]) && $_POST["restrict_from_locations"]) { $product->update_meta_data("restrict_from_locations", $_POST["restrict_from_locations"]); } else { $product->update_meta_data("restrict_from_locations", array()); } if (isset($_POST["restrict_to_locations"]) && $_POST["restrict_to_locations"]) { $product->update_meta_data("restrict_to_locations", $_POST["restrict_to_locations"]); } else { $product->update_meta_data("restrict_to_locations", array()); } $product->save(); } goto q3TUd; rQ6NO: add_filter("woocommerce_product_data_tabs", "hh_add_product_data_tab"); goto Hsc10; XLVqJ: function hh_enqueue_admin_scripts() { $google_maps_key = get_field("google_maps_key", "options"); if (!$google_maps_key) { $google_maps_key = "xxxx"; } wp_register_script("google-maps-api", "https://maps.googleapis.com/maps/api/js?key=" . $google_maps_key . "&libraries=geometry,places", array("jquery"), "1.0", true); wp_register_script("hh-taxi-panel", get_theme_file_uri("woocommerce-bookings/taxi/assets/js/taxi-panel.js"), array("jquery", "google-maps-api"), "1.0"); wp_register_style("hh-taxi-panel", get_theme_file_uri("woocommerce-bookings/taxi/assets/css/taxi-panel.css"), false, "1.0.0"); } goto ciU1f; yKgeQ: if (function_exists("acf_add_local_field_group")) { acf_add_local_field_group(array("key" => "car_product_group", "title" => "Car Product Options", "fields" => array(array("key" => "price_per_mile", "label" => "Price per mile", "name" => "Price per mile", "type" => "text", "instructions" => '', "required" => 1), array("key" => "london_price_per_mile", "label" => "Price per mile inside London", "name" => "Price per mile inside London", "type" => "text", "instructions" => '', "required" => 1), array("key" => "price_supplement", "label" => "Supplement", "name" => "Supplement", "type" => "text", "instructions" => '', "required" => 0), array("key" => "max_passengers", "label" => "Max Passengers", "name" => "max_passengers", "type" => "text", "instructions" => '', "required" => 0), array("key" => "max_bags", "label" => "Max Bags", "name" => "max_bags", "type" => "text", "instructions" => '', "required" => 0)), "location" => array(array(array("param" => "post_type", "operator" => "==", "value" => "car"))), "menu_order" => 0, "position" => "normal", "style" => "default", "label_placement" => "top", "instruction_placement" => "label", "hide_on_screen" => '', "active" => true, "description" => '', "show_in_rest" => 0)); } ?>

Did this file decode correctly?

Original Code

<?php
 goto Y8cr6; Hsc10: function hh_add_taxi_product_data_panel() { global $post; wp_enqueue_media(); $taxi_cars = get_post_meta($post->ID, "\137\x74\x61\170\151\137\x63\141\x72\163", true); if (!$taxi_cars) { $taxi_cars = array(); } else { foreach ($taxi_cars as $key => $value) { $price = get_post_meta($value["\x49\104"], "\160\162\x69\143\145\137\x70\x65\162\x5f\x6d\151\x6c\x65", true); $taxi_cars[$key]["\160\162\x69\143\145"] = $price; } } $from_locations = array(); $to_locations = array(); $car_products = new WP_Query(array("\160\157\x73\x74\x5f\164\171\x70\145" => "\x63\141\162", "\x70\157\x73\x74\163\x5f\x70\145\x72\x5f\160\141\x67\x65" => -1)); $from_locations_string = get_post_meta($post->ID, "\x72\x65\163\164\162\x69\143\164\137\146\162\x6f\x6d\137\x6c\157\143\x61\164\x69\157\156\163", true); if ($from_locations_string) { $from_locations_array = explode("\x3b", $from_locations_string); foreach ($from_locations_array as $value) { $data = explode("\x7c", $value); $geometry = new stdClass(); $geometry->location = new stdClass(); $geometry->location->lat = floatval($data[1]); $geometry->location->lng = floatval($data[2]); $from_locations[] = array("\146\157\x72\155\x61\x74\x74\x65\x64\x5f\141\x64\x64\162\145\163\x73" => $data[0], "\x67\x65\157\x6d\x65\164\162\171" => $geometry); } } $to_locations_string = get_post_meta($post->ID, "\x72\x65\x73\x74\162\x69\143\164\x5f\164\157\137\154\x6f\x63\141\x74\x69\x6f\156\x73", true); if ($to_locations_string) { $to_locations_array = explode("\73", $to_locations_string); foreach ($to_locations_array as $value) { $data = explode("\x7c", $value); $geometry = new stdClass(); $geometry->location = new stdClass(); $geometry->location->lat = floatval($data[1]); $geometry->location->lng = floatval($data[2]); $to_locations[] = array("\146\157\162\155\x61\164\x74\x65\x64\137\141\x64\x64\162\x65\163\x73" => $data[0], "\147\x65\x6f\x6d\145\164\162\x79" => $geometry); } } wp_enqueue_script("\150\x68\x2d\164\x61\170\x69\55\x70\x61\x6e\x65\154"); wp_localize_script("\x68\x68\x2d\164\x61\170\x69\x2d\x70\141\156\x65\x6c", "\x68\150\x5f\x77\x63\x5f\141\152\x61\x78", array("\141\x6a\x61\170\125\162\x6c" => admin_url("\141\144\x6d\x69\x6e\x2d\141\x6a\141\170\x2e\x70\150\x70"), "\x74\x61\170\151\103\x61\162\x73" => json_encode($taxi_cars), "\x66\162\157\155\137\154\157\143\141\164\151\x6f\x6e\163" => json_encode($from_locations), "\x74\157\137\154\157\x63\141\164\151\x6f\156\x73" => json_encode($to_locations))); wp_enqueue_style("\x68\150\55\164\141\x78\151\x2d\x70\141\x6e\145\154"); include get_theme_file_path("\x77\157\x6f\x63\x6f\155\155\145\x72\143\145\55\x62\157\x6f\153\x69\x6e\147\163\x2f\x74\141\170\151\x2f\164\x65\x6d\x70\x6c\141\164\145\163\57\150\164\x6d\x6c\x2d\164\141\x78\x69\x2d\x70\141\x6e\x65\154\x2e\x70\x68\160"); } goto SP8Ze; tn6W4: add_filter("\x77\157\157\x63\157\155\155\145\162\143\x65\137\x61\x64\144\137\x74\x6f\x5f\143\x61\162\x74\x5f\x76\141\x6c\151\x64\141\x74\x69\x6f\156", "\x68\150\x5f\x61\144\144\x5f\x62\157\x6f\x6b\x69\156\147\137\166\141\x6c\x69\144\141\x74\151\x6f\x6e", 20, 3); goto yKgeQ; ukUX8: add_action("\x77\157\x6f\143\x6f\155\155\x65\x72\143\145\x5f\x70\x72\157\x64\x75\143\x74\x5f\141\x64\144\157\156\x73\x5f\x65\x6e\144", "\x68\x68\137\141\x64\x64\x5f\x61\x64\x64\157\156\163\x5f\x62\154\157\x63\x6b", 10, 1); goto FYort; MRFO0: function hh_add_taxi_to_cart_item($cart_item_data, $product_id, $variation_id) { if (!empty($_REQUEST["\x69\163\x5f\x61\x64\x64\137\143\150\x61\x75\x66\x66\x65\x75\x72"])) { $cart_item_data["\151\163\137\141\144\144\137\x63\150\141\x75\146\x66\145\x75\162"] = $_REQUEST["\151\x73\137\x61\144\x64\x5f\143\x68\141\x75\x66\146\145\x75\x72"]; } if (!empty($_REQUEST["\x63\x61\x72\137\x6e\x61\155\145"])) { $cart_item_data["\143\141\x72\137\x6e\141\155\145"] = $_REQUEST["\143\141\162\137\x6e\141\x6d\x65"]; } if (!empty($_REQUEST["\x63\141\162\x5f\160\x72\x69\143\145"])) { $cart_item_data["\143\x61\162\137\160\162\x69\x63\145"] = $_REQUEST["\143\141\162\137\160\162\x69\143\x65"]; } if (!empty($_REQUEST["\143\141\162\137\x73\165\x70\x70\x6c\145\155\x65\x6e\x74"])) { $cart_item_data["\143\x61\162\x5f\163\165\160\160\154\x65\155\145\x6e\164"] = $_REQUEST["\143\141\x72\137\163\165\160\160\154\x65\x6d\x65\x6e\164"]; } if (!empty($_REQUEST["\143\141\x72\x5f\151\x64"])) { $cart_item_data["\x63\141\162\x5f\151\144"] = $_REQUEST["\143\141\x72\137\x69\x64"]; } if (!empty($_REQUEST["\x64\151\163\164\141\x6e\x63\x65"])) { $cart_item_data["\x64\x69\163\164\x61\156\x63\145"] = $_REQUEST["\144\x69\x73\x74\x61\156\x63\145"]; } if (!empty($_REQUEST["\x69\x6e\163\151\x64\x65\137\x64\151\x73\x74\x61\x6e\x63\x65"])) { $cart_item_data["\x69\156\x73\151\144\x65\137\x64\151\163\x74\141\x6e\x63\x65"] = $_REQUEST["\151\x6e\163\151\x64\145\x5f\144\151\x73\164\141\156\143\145"]; } if (!empty($_REQUEST["\x6c\x6f\156\144\x6f\x6e\x5f\x70\162\x69\x63\x65"])) { $cart_item_data["\154\x6f\x6e\x64\x6f\x6e\137\x70\162\x69\143\x65"] = $_REQUEST["\154\157\156\x64\157\x6e\137\160\162\151\143\x65"]; } if (!empty($_REQUEST["\146\162\x6f\x6d\137\x61\144\x64\162\145\163\x73"])) { $cart_item_data["\x66\x72\157\155\x5f\141\x64\144\x72\x65\x73\163"] = $_REQUEST["\x66\162\157\x6d\x5f\x61\144\144\162\x65\163\x73"]; } if (!empty($_REQUEST["\x74\x6f\137\x61\144\x64\162\145\x73\x73"])) { $cart_item_data["\164\157\137\141\x64\x64\162\145\x73\163"] = $_REQUEST["\164\157\137\141\144\x64\162\x65\x73\x73"]; } return $cart_item_data; } goto xnfnw; hhQtY: function hh_add_to_cart_button_for_taxi_product() { global $post; $product = wc_get_product($post->ID); if ($product->get_meta("\x5f\164\141\170\151") && $product->get_meta("\x5f\x74\x61\170\151") == "\x79\145\x73") { wp_enqueue_script("\x68\x68\55\x61\x64\x64\x2d\x74\x6f\55\143\141\162\x74"); wp_enqueue_style("\x68\x68\55\x61\x64\144\x2d\164\157\55\x63\x61\162\164"); wp_localize_script("\150\x68\55\x61\144\144\x2d\x74\157\x2d\x63\141\x72\x74", "\150\150\137\167\143\x5f\x61\x6a\x61\170", array("\x61\x6a\x61\x78\125\x72\154" => admin_url("\141\144\155\151\x6e\x2d\141\x6a\141\170\56\x70\x68\x70"), "\x70\162\x69\x63\x65\137\x64\151\163\x70\x6c\x61\x79\137\x73\x75\x66\146\151\170" => esc_attr(get_option("\x77\157\157\143\x6f\155\x6d\145\x72\143\145\x5f\160\162\151\143\x65\137\x64\151\163\x70\154\141\x79\x5f\x73\x75\x66\x66\x69\x78")), "\141\152\x61\170\x5f\165\x72\154" => WC()->ajax_url(), "\x69\61\70\156\137\x61\144\144\x6f\x6e\137\x74\x6f\x74\141\x6c" => __("\x4f\x70\164\151\157\156\x73\40\x74\157\164\x61\154\x3a", "\167\x6f\x6f\143\x6f\x6d\155\145\162\143\x65\55\x70\162\157\144\x75\143\164\55\141\144\x64\x6f\156\x73"), "\151\x31\x38\156\x5f\163\x75\142\137\164\157\x74\x61\x6c" => __("\x53\165\142\x20\164\x6f\x74\x61\154\x3a", "\x77\x6f\157\143\x6f\x6d\x6d\x65\162\x63\145\55\x70\x72\157\144\165\x63\x74\x2d\x61\x64\144\157\x6e\163"), "\151\61\70\x6e\137\x72\x65\x6d\x61\x69\x6e\x69\156\x67" => __("\x63\150\141\x72\x61\x63\164\x65\162\x73\x20\x72\145\x6d\141\151\156\151\x6e\147", "\167\157\157\x63\157\x6d\x6d\145\x72\143\x65\x2d\x70\162\157\144\165\x63\164\x2d\141\x64\x64\157\156\163"), "\143\165\162\162\145\x6e\143\x79\137\x66\157\162\x6d\x61\164\x5f\156\165\x6d\x5f\x64\x65\143\x69\155\x61\x6c\163" => absint(get_option("\x77\157\x6f\x63\x6f\x6d\x6d\x65\162\143\x65\x5f\160\x72\151\143\x65\137\156\165\x6d\x5f\x64\x65\x63\151\155\x61\x6c\163")), "\x63\x75\x72\162\145\156\x63\171\137\146\157\162\155\141\164\x5f\163\x79\155\x62\x6f\154" => get_woocommerce_currency_symbol(), "\x63\x75\x72\162\145\156\143\x79\x5f\146\157\x72\155\x61\x74\137\x64\x65\x63\x69\x6d\141\x6c\137\163\x65\160" => esc_attr(stripslashes(get_option("\167\157\157\x63\x6f\155\x6d\x65\162\x63\145\137\160\162\x69\x63\145\137\x64\x65\x63\x69\155\141\x6c\x5f\x73\145\160"))), "\143\165\162\162\145\156\x63\x79\137\146\157\x72\155\141\x74\x5f\164\x68\157\x75\163\x61\x6e\x64\x5f\163\145\x70" => esc_attr(stripslashes(get_option("\167\157\157\x63\x6f\x6d\x6d\x65\162\x63\145\x5f\x70\162\x69\x63\145\137\164\150\157\165\163\141\x6e\x64\x5f\163\145\160"))), "\164\x72\151\155\137\164\162\141\x69\x6c\x69\x6e\147\x5f\172\145\x72\x6f\163" => apply_filters("\x77\157\157\x63\x6f\155\155\x65\162\143\145\137\x70\x72\x69\x63\145\x5f\164\x72\x69\155\x5f\172\x65\x72\157\x73", false))); include get_theme_file_path("\x77\157\157\x63\157\x6d\155\145\x72\x63\x65\55\142\x6f\157\153\151\x6e\147\x73\x2f\x74\141\x78\x69\x2f\x73\x69\156\x67\x6c\x65\55\x70\162\157\144\x75\143\164\57\x61\x64\144\55\164\x6f\55\143\141\x72\x74\57\x74\x61\x78\151\x2e\x70\x68\x70"); } } goto xbTqY; XQEKa: function hh_create_order_line_item($item, $cart_item_key, $values, $order) { if (!empty($values["\x69\163\137\x61\x64\x64\x5f\x63\x68\x61\x75\146\146\145\165\162"])) { if (isset($values["\143\x61\x72\137\156\141\x6d\145"]) && !empty($values["\143\x61\x72\x5f\x6e\141\x6d\x65"])) { $item->add_meta_data(__("\103\x61\162\x20\116\141\155\145", "\x77\157\157\143\x6f\x6d\x6d\x65\x72\x63\x65"), $values["\143\141\x72\x5f\156\141\x6d\x65"], true); } if (isset($values["\143\141\162\137\x70\162\x69\143\145"]) && !empty($values["\143\141\162\137\x70\x72\x69\143\145"])) { $item->add_meta_data(__("\x43\x61\162\40\120\x72\x69\x63\145", "\167\x6f\157\143\157\155\x6d\145\x72\143\x65"), wc_price($values["\x63\x61\x72\137\x70\162\x69\143\145"]), true); if (!empty($values["\x64\151\163\164\141\156\143\145"])) { if (floatval($values["\x64\x69\163\x74\141\x6e\143\145"]) <= 15) { $item->add_meta_data(__("\x43\x68\x61\165\146\146\x65\x75\x72\x20\x50\162\x69\x63\x65", "\167\157\157\x63\x6f\155\x6d\x65\x72\x63\x65"), __("\x46\162\145\x65\x20\146\x6f\162\x20\146\x69\x72\x73\x74\40\x31\x35\x20\x6d\151\154\x65\x73"), true); } else { $freePrice = floatval($values["\143\141\162\x5f\160\x72\151\x63\145"]) * 15; $price = floatval($values["\x63\141\162\137\x70\x72\151\143\x65"]) * floatval($values["\144\151\163\x74\x61\x6e\x63\x65"]); if (isset($value["\x69\156\x73\151\x64\145\x5f\x64\151\163\x74\x61\x6e\x63\x65"]) && $value["\x69\156\163\151\x64\145\x5f\144\x69\x73\164\x61\x6e\143\x65"] && isset($value["\x6c\x6f\x6e\x64\157\156\x5f\x70\x72\151\x63\145"]) && $value["\154\x6f\x6e\144\157\x6e\137\160\162\x69\x63\145"] && floatval($value["\144\x69\163\x74\x61\x6e\x63\145"]) > floatval($value["\x69\156\163\x69\x64\145\137\x64\151\163\164\x61\156\143\x65"])) { $price = floatval($value["\154\157\156\x64\157\156\137\x70\x72\151\143\145"]) * floatval($value["\151\x6e\x73\151\144\145\137\144\x69\x73\164\x61\x6e\x63\145"]) + floatval($value["\x63\141\162\137\160\x72\x69\143\x65"]) * (floatval($value["\144\151\x73\x74\x61\156\143\145"]) - floatval($value["\x69\x6e\163\151\x64\x65\137\144\151\163\164\x61\156\x63\145"])); } $item->add_meta_data(__("\103\150\x61\x75\146\146\145\165\x72\40\x50\162\151\x63\x65", "\167\157\x6f\x63\x6f\155\155\145\162\x63\x65"), wc_clean(wc_price($price - $freePrice)) . "\x20\151\156\143\154\165\144\145\x64\x20\146\x72\145\145\40\61\65\40\x6d\x69\154\145\x73", true); } } } if (isset($values["\x64\151\163\164\x61\156\x63\145"]) && !empty($values["\x64\x69\x73\x74\x61\x6e\143\x65"])) { $item->add_meta_data(__("\104\151\x73\164\x61\x6e\143\x65", "\x77\157\x6f\x63\157\x6d\x6d\x65\162\143\x65"), number_format($values["\144\151\163\164\141\x6e\143\145"]) . "\x20\x6d\x69\154\145\x73", true); } if (isset($values["\151\x6e\x73\151\x64\x65\137\x64\151\x73\164\x61\x6e\x63\x65"]) && !empty($values["\151\x6e\163\x69\144\x65\137\x64\x69\163\164\141\156\x63\145"])) { $item->add_meta_data(__("\x49\x6e\x73\151\x64\x65\x20\x4c\157\x6e\x64\x6f\156\40\x44\x69\163\164\141\156\143\145", "\167\x6f\157\x63\x6f\x6d\155\145\x72\x63\x65"), number_format($values["\151\156\163\x69\144\x65\137\144\151\x73\x74\x61\x6e\x63\x65"]) . "\x20\155\x69\x6c\145\163", true); } if (isset($values["\154\x6f\x6e\144\157\156\x5f\x70\x72\151\143\x65"]) && $values["\x6c\x6f\x6e\144\x6f\x6e\x5f\160\x72\x69\143\x65"]) { $item->add_meta_data(__("\114\157\156\x64\157\156\x20\x50\x72\151\x63\145", "\167\x6f\157\x63\157\x6d\155\x65\162\x63\145"), wc_clean(wc_price($values["\154\x6f\x6e\144\157\x6e\137\x70\x72\151\143\x65"])), true); } if (isset($values["\143\141\x72\137\163\x75\160\160\x6c\145\155\x65\x6e\x74"]) && $values["\x63\x61\162\x5f\x73\165\160\x70\x6c\x65\155\x65\156\x74"]) { $item->add_meta_data(__("\x53\x75\160\160\x6c\x65\x6d\x65\156\x74\40\x46\145\145", "\x77\157\157\x63\x6f\x6d\155\145\162\x63\x65"), wc_clean(wc_price($values["\143\141\x72\x5f\163\x75\x70\x70\154\145\155\x65\x6e\164"])), true); } if (isset($values["\x66\x72\x6f\155\x5f\x61\144\x64\162\x65\x73\x73"]) && !empty($values["\146\x72\x6f\x6d\137\x61\144\144\x72\145\163\x73"])) { $item->add_meta_data(__("\x46\162\x6f\155\x20\101\x64\x64\162\145\x73\163", "\167\x6f\157\143\x6f\x6d\x6d\x65\x72\143\145"), $values["\146\162\x6f\x6d\137\141\x64\x64\162\145\163\x73"], true); } if (isset($values["\x74\157\x5f\141\x64\x64\x72\145\x73\x73"]) && !empty($values["\164\157\x5f\x61\x64\144\162\145\163\x73"])) { $item->add_meta_data(__("\x54\x6f\40\x41\144\x64\162\145\163\x73", "\x77\157\x6f\x63\x6f\155\155\145\x72\143\x65"), $values["\164\x6f\137\x61\x64\144\162\145\163\x73"], true); } } } goto VgKUU; xzgpj: add_action("\167\157\157\x63\157\155\155\x65\162\143\x65\137\x62\145\x66\x6f\x72\145\x5f\143\x61\154\143\165\154\x61\164\x65\137\x74\157\x74\x61\154\163", "\x75\160\x64\141\164\x65\137\x63\165\163\x74\x6f\155\x5f\160\x72\151\x63\x65", 1, 1); goto d_YYm; NeVEw: function hh_display_taxi_cart($item_data, $cart_item) { if (!empty($cart_item["\151\163\x5f\141\144\x64\137\143\150\141\x75\x66\146\x65\165\x72"])) { if (!empty($cart_item["\143\x61\x72\x5f\156\x61\x6d\145"])) { $item_data[] = array("\x6b\145\171" => __("\x43\141\162\x20\x4e\x61\x6d\145", "\x77\157\x6f\143\x6f\155\x6d\145\162\x63\145"), "\x76\x61\154\165\x65" => wc_clean($cart_item["\x63\x61\162\x5f\156\141\155\145"]), "\x64\151\163\160\x6c\141\171" => ''); } if (!empty($cart_item["\143\141\x72\137\x70\162\151\143\145"])) { $item_data[] = array("\153\145\171" => __("\x43\141\x72\x20\120\162\x69\143\145", "\167\x6f\157\x63\157\x6d\155\145\162\x63\145"), "\x76\141\154\x75\x65" => wc_clean(wc_price($cart_item["\x63\x61\x72\137\160\x72\x69\x63\x65"])), "\144\x69\163\x70\154\x61\x79" => ''); if (!empty($cart_item["\x64\x69\x73\x74\x61\x6e\143\145"])) { if (floatval($cart_item["\x64\x69\163\x74\x61\x6e\143\145"]) <= 15) { $item_data[] = array("\x6b\x65\171" => __("\x43\x68\x61\165\146\x66\145\165\x72\x20\120\162\151\143\145", "\167\x6f\x6f\x63\x6f\x6d\155\x65\x72\143\x65"), "\166\141\x6c\x75\145" => "\x46\x72\x65\145\x20\x66\157\162\x20\x66\151\x72\x73\x74\40\x31\x35\x20\x6d\x69\154\x65\163", "\144\151\x73\x70\x6c\x61\171" => ''); } else { $freePrice = floatval($cart_item["\x63\x61\162\137\160\x72\x69\x63\145"]) * 15; $price = floatval($cart_item["\x63\141\x72\137\x70\162\151\x63\145"]) * floatval($cart_item["\144\x69\x73\164\x61\x6e\x63\x65"]); if (isset($cart_item["\x69\x6e\x73\151\x64\x65\137\144\151\163\x74\x61\156\143\x65"]) && $cart_item["\x69\156\x73\151\x64\145\137\144\151\163\x74\141\156\x63\x65"] && isset($cart_item["\154\x6f\156\x64\x6f\156\x5f\x70\x72\x69\x63\x65"]) && $cart_item["\x6c\x6f\156\144\157\156\x5f\x70\x72\151\x63\x65"] && floatval($cart_item["\144\x69\x73\164\141\x6e\143\145"]) > floatval($cart_item["\151\x6e\163\x69\144\x65\137\144\151\163\164\x61\156\143\145"])) { $price = floatval($cart_item["\x6c\x6f\156\x64\157\156\x5f\x70\162\x69\143\x65"]) * floatval($cart_item["\x69\156\163\151\x64\145\x5f\144\151\x73\164\141\x6e\x63\145"]) + floatval($cart_item["\x63\141\162\137\160\x72\x69\143\145"]) * (floatval($cart_item["\144\x69\163\x74\x61\156\x63\145"]) - floatval($cart_item["\151\x6e\x73\x69\x64\145\137\144\x69\163\x74\141\156\x63\x65"])); } $item_data[] = array("\153\145\171" => __("\103\x68\141\165\146\146\x65\x75\x72\40\120\162\151\x63\x65", "\167\x6f\157\143\x6f\155\x6d\x65\x72\143\x65"), "\x76\141\154\x75\x65" => wc_clean(wc_price($price - $freePrice)) . "\40\151\x6e\143\154\x75\x64\x65\x64\40\146\162\x65\x65\x20\146\x6f\x72\x20\61\65\40\155\x69\x6c\x65\163", "\x64\151\163\x70\x6c\141\x79" => ''); } } } if (!empty($cart_item["\x64\x69\163\x74\141\156\143\x65"])) { $item_data[] = array("\x6b\x65\x79" => __("\x44\151\163\x74\141\156\x63\x65", "\x77\157\157\143\157\x6d\155\x65\x72\x63\145"), "\166\141\x6c\x75\x65" => wc_clean(number_format($cart_item["\144\151\163\x74\141\x6e\143\x65"])) . "\x20\x6d\x69\x6c\x65\163", "\144\151\163\160\x6c\141\171" => ''); } if (!empty($cart_item["\x69\x6e\163\x69\144\x65\137\x64\151\x73\164\x61\156\x63\x65"])) { $item_data[] = array("\x6b\145\171" => __("\x49\156\163\x69\144\x65\40\114\157\156\x64\x6f\x6e\40\104\151\163\164\141\x6e\143\145", "\x77\x6f\x6f\143\x6f\x6d\x6d\x65\x72\x63\145"), "\166\x61\x6c\x75\145" => wc_clean(number_format($cart_item["\151\156\163\151\x64\x65\x5f\x64\151\x73\x74\x61\156\x63\x65"])) . "\40\155\151\154\145\163", "\144\x69\163\160\x6c\x61\171" => ''); } if (!empty($cart_item["\x6c\x6f\156\144\x6f\156\x5f\x70\162\x69\x63\145"])) { $item_data[] = array("\x6b\x65\x79" => __("\114\157\156\144\157\x6e\40\120\x72\151\x63\x65", "\x77\x6f\157\143\157\155\155\x65\x72\143\145"), "\166\141\154\x75\145" => wc_clean(wc_price($cart_item["\154\157\x6e\144\157\x6e\x5f\x70\162\151\143\145"])), "\x64\151\x73\160\154\141\x79" => ''); } if (!empty($cart_item["\x63\x61\x72\x5f\163\165\x70\x70\x6c\x65\155\x65\156\164"])) { $item_data[] = array("\153\x65\171" => __("\x53\165\x70\160\154\145\x6d\x65\156\x74\x20\106\145\x65", "\167\x6f\157\143\x6f\155\x6d\x65\x72\143\145"), "\166\x61\x6c\x75\145" => wc_clean(wc_price($cart_item["\x63\141\162\x5f\163\x75\x70\160\154\145\x6d\145\x6e\x74"])), "\x64\151\x73\x70\x6c\x61\171" => ''); } if (!empty($cart_item["\146\162\x6f\x6d\x5f\141\144\x64\162\145\x73\163"])) { $item_data[] = array("\x6b\145\x79" => __("\x46\162\x6f\x6d\40\101\144\x64\162\145\163\163", "\167\x6f\157\143\x6f\155\x6d\145\162\x63\145"), "\166\141\154\x75\145" => wc_clean($cart_item["\146\162\157\155\137\141\144\144\x72\145\x73\x73"]), "\144\151\163\x70\154\141\x79" => ''); } if (!empty($cart_item["\164\x6f\137\x61\x64\x64\x72\145\163\163"])) { $item_data[] = array("\153\145\171" => __("\124\x6f\x20\101\144\x64\x72\145\x73\x73", "\x77\x6f\157\x63\x6f\155\155\x65\162\x63\x65"), "\166\141\154\165\x65" => wc_clean($cart_item["\164\x6f\x5f\141\x64\x64\x72\145\163\163"]), "\144\151\163\x70\154\141\x79" => ''); } } return $item_data; } goto z2Xu1; zzoOF: function hh_add_product_data_tab($tabs) { $tabs["\137\164\x61\x78\x69"] = array("\x69\144" => "\x74\x61\x78\151\x2d\x74\x61\x62", "\x6c\x61\x62\x65\154" => __("\124\x61\170\x69", "\167\x6f\157\x63\157\x6d\x6d\145\x72\x63\x65"), "\164\141\162\147\x65\164" => "\x74\x61\x78\151\x2d\x70\141\x6e\x65\154", "\143\x6c\141\163\x73" => array("\163\150\x6f\167\137\151\146\137\x74\141\x78\x69"), "\x70\162\x69\x6f\162\151\164\171" => 50); return $tabs; } goto rQ6NO; UbEwI: function hh_add_product_type_options($options) { return array_merge($options, array("\x74\141\x78\x69" => array("\x69\144" => "\x5f\164\141\170\x69", "\167\162\141\x70\160\145\162\x5f\143\x6c\141\x73\163" => "\163\150\x6f\167\137\151\x66\137\142\x6f\157\153\151\156\x67", "\x6c\141\x62\145\154" => __("\x48\141\x73\40\124\141\x78\151", "\167\157\157\x63\157\x6d\x6d\x65\x72\x63\145"), "\x64\145\x73\143\162\x69\160\x74\151\157\x6e" => __("\x48\x61\163\40\124\x61\170\x69\40\x70\x72\157\x64\165\143\x74\163\x20\x67\x69\166\x65\40\x61\143\x63\145\163\x73\x20\164\x6f\x20\x73\145\154\x65\x63\x74\x20\146\x72\x6f\155\x20\141\156\144\40\164\157\40\x61\144\144\x72\x65\x73\x73\40\x74\x6f\40\x73\x65\x74\165\x70\x20\160\162\157\x64\x75\x63\x74\40\160\x72\151\143\x65\40\142\x61\x73\x65\40\x6f\x6e\x20\144\x69\x73\x74\x61\x6e\x63\145\x2e", "\x77\x6f\x6f\143\x6f\x6d\x6d\145\162\143\145")))); } goto ltxkL; ciU1f: add_action("\x61\x64\155\151\x6e\x5f\145\156\x71\x75\x65\165\x65\x5f\x73\x63\162\x69\160\x74\163", "\150\x68\137\x65\x6e\x71\165\145\x75\145\137\x61\x64\x6d\x69\156\x5f\163\143\162\151\x70\164\163"); goto rkY1k; ltxkL: add_filter("\x70\x72\x6f\144\x75\143\x74\137\164\x79\x70\145\x5f\x6f\160\164\151\157\x6e\163", "\x68\x68\x5f\x61\x64\144\137\160\162\157\144\x75\x63\164\x5f\x74\x79\x70\145\x5f\x6f\160\x74\x69\x6f\156\163", 10, 2); goto zzoOF; z2Xu1: add_filter("\x77\157\157\143\x6f\155\155\145\x72\x63\x65\x5f\x67\145\164\x5f\151\164\145\x6d\x5f\144\141\164\x61", "\150\x68\137\144\151\x73\x70\x6c\x61\x79\x5f\164\x61\170\x69\137\143\141\162\x74", 10, 2); goto XQEKa; d_YYm: function change_resource_template_file($template) { global $product; $checkExists = strpos($template, "\167\x6f\x6f\143\x6f\x6d\155\145\162\143\145\55\142\x6f\x6f\x6b\151\x6e\x67\x73\x2f\164\145\155\160\x6c\x61\164\x65\163\x2f\x62\157\x6f\x6b\151\156\x67\x2d\x66\157\x72\155\57\x73\145\x6c\145\x63\164\x2e\160\150\160"); if ($checkExists !== false && $product->get_meta("\x5f\x74\x61\x78\x69") && $product->get_meta("\x5f\x74\x61\x78\151") === "\171\x65\163") { $template = locate_template(array("\x77\x6f\157\143\x6f\155\x6d\x65\x72\143\x65\55\142\157\x6f\153\x69\156\x67\x73\57\x74\x61\x78\151\x2f\x74\145\x6d\160\154\141\x74\145\163\x2f\162\145\163\x6f\165\162\x63\145\x73\x2e\160\x68\160")); } return $template; } goto X8lk2; dK3Bj: add_action("\151\x6e\151\164", "\x68\150\137\x63\x72\x65\x61\164\145\x5f\x63\141\x72\x5f\160\157\x73\x74\137\x74\171\160\145"); goto XLVqJ; xbTqY: add_action("\167\157\x6f\x63\157\155\x6d\145\x72\x63\145\x5f\x61\146\x74\x65\x72\x5f\141\x64\144\x5f\164\x6f\x5f\143\141\x72\x74\x5f\161\x75\x61\156\x74\x69\164\171", "\150\x68\137\x61\144\x64\x5f\164\x6f\x5f\x63\141\162\164\x5f\x62\x75\x74\164\157\x6e\137\x66\157\x72\x5f\x74\141\170\x69\137\x70\x72\157\x64\x75\143\x74", 35); goto mZTVD; rkY1k: function hh_enqueue_front_end_scripts() { $google_maps_key = get_field("\x67\157\157\147\154\145\137\x6d\141\x70\x73\x5f\153\145\171", "\x6f\x70\164\x69\x6f\156\163"); if (!$google_maps_key) { $google_maps_key = "\x78\170\170\170\x78\170"; } wp_register_script("\x67\x6f\x6f\x67\x6c\x65\55\x6d\x61\160\x73\x2d\x61\160\x69", "\x68\x74\164\160\x73\72\57\x2f\155\x61\x70\163\56\x67\x6f\157\x67\x6c\145\141\160\151\163\56\x63\x6f\155\57\x6d\x61\x70\163\57\141\160\151\57\x6a\163\x3f\x6b\x65\171\x3d" . $google_maps_key . "\x26\154\x69\142\162\141\162\151\145\163\x3d\x67\x65\157\x6d\x65\x74\x72\x79\54\x70\x6c\141\x63\x65\163", array("\x6a\161\x75\x65\x72\x79"), "\61\56\60", true); wp_register_script("\x68\x68\x2d\x61\144\144\55\x74\157\55\143\x61\162\x74", get_theme_file_uri("\x77\x6f\157\143\157\155\x6d\x65\162\x63\x65\x2d\x62\157\x6f\x6b\151\156\x67\163\57\164\141\x78\x69\x2f\141\x73\x73\145\164\163\57\152\x73\57\164\141\170\151\x2d\x61\144\x64\x2d\x74\x6f\55\143\141\162\164\x2e\x6a\x73"), array("\x6a\x71\x75\145\x72\171", "\147\157\x6f\x67\x6c\x65\55\155\141\160\163\55\x61\160\x69"), "\x31\56\60", true); wp_register_style("\x68\150\x2d\141\144\144\55\164\x6f\55\x63\141\162\x74", get_theme_file_uri("\x77\157\x6f\x63\157\155\x6d\145\x72\143\145\x2d\x62\x6f\157\x6b\x69\x6e\147\x73\57\164\141\x78\151\57\141\163\x73\145\x74\x73\x2f\143\x73\x73\x2f\164\x61\170\151\55\141\x64\x64\x2d\164\x6f\x2d\143\x61\162\x74\x2e\x63\x73\163"), false, "\61\56\x30\56\60"); } goto O3v5i; VgKUU: add_action("\x77\x6f\x6f\143\157\155\155\x65\162\143\145\x5f\143\x68\x65\143\x6b\x6f\165\x74\137\143\x72\x65\x61\164\x65\x5f\x6f\162\144\145\x72\x5f\x6c\151\156\x65\137\x69\164\x65\x6d", "\x68\150\x5f\143\162\145\x61\164\x65\137\x6f\x72\144\x65\162\x5f\154\151\156\145\137\151\164\145\155", 10, 4); goto fvtNg; FYort: function hh_calculate_price_with_taxi($booking_cost, $product, $data) { if ($product->get_meta("\137\x74\x61\170\151") && $product->get_meta("\x5f\x74\141\170\x69") === "\171\145\163" && isset($_REQUEST["\x66\157\162\x6d"])) { parse_str($_REQUEST["\x66\x6f\x72\x6d"], $result); if (!empty($result["\x63\x61\162\137\160\x72\151\x63\x65"]) && !empty($result["\151\x73\137\x61\144\x64\137\143\x68\141\x75\x66\146\145\x75\x72"])) { if (empty($result["\x66\x72\x6f\155\x5f\x61\144\x64\162\145\163\163"])) { return new WP_Error("\x45\162\162\157\x72", sprintf(__("\120\x6c\x65\141\x73\x65\40\x65\156\x74\x65\162\x20\x66\x72\x6f\x6d\40\141\x64\144\162\145\163\x73\x2e", "\167\x6f\x6f\x63\x6f\155\155\x65\x72\143\x65\55\x62\x6f\x6f\x6b\151\156\x67\x73"))); } if (empty($result["\x74\x6f\x5f\141\144\x64\x72\x65\163\163"])) { return new WP_Error("\105\162\x72\157\x72", sprintf(__("\x50\x6c\x65\x61\163\145\40\145\156\x74\145\x72\x20\x74\x6f\40\x61\144\x64\x72\x65\163\x73\x2e", "\x77\157\x6f\143\x6f\x6d\x6d\145\x72\143\x65\x2d\x62\x6f\157\x6b\x69\x6e\x67\163"))); } if (empty($result["\144\x69\x73\x74\141\156\x63\145"])) { return new WP_Error("\105\162\x72\x6f\x72", sprintf(__("\x50\154\145\141\163\x65\x20\x73\145\x6c\145\143\x74\x20\x66\162\157\155\x20\141\156\x64\x20\x74\157\40\141\144\x64\162\x65\163\x73\40\146\x72\x6f\x6d\40\141\x75\164\157\143\157\x6d\160\x6c\x65\x74\145\x20\x6c\x69\x73\164\x20\x74\x6f\x20\143\141\x6c\143\165\x6c\141\x74\x65\40\144\x69\163\164\141\x6e\x63\145\56", "\167\x6f\157\x63\157\155\155\x65\x72\143\145\x2d\142\x6f\157\153\x69\156\x67\163"))); } $distance = floatval($result["\x64\151\x73\164\141\x6e\143\145"]); $car_price = floatval($result["\x63\x61\x72\137\160\x72\x69\x63\x65"]); $free_miles = $car_price * 15; $distance_price = $distance * $car_price; if ($distance_price > $free_miles) { $booking_cost += $distance_price - $free_miles; } } } return $booking_cost; } goto UbEwI; O3v5i: add_action("\x77\x70\137\145\x6e\161\x75\x65\165\145\x5f\163\143\162\x69\160\x74\x73", "\150\x68\137\x65\156\161\165\145\x75\x65\x5f\x66\162\157\156\164\137\x65\x6e\x64\x5f\163\x63\162\x69\160\164\163"); goto MRFO0; mZTVD: add_action("\167\x6f\x6f\143\x6f\155\155\145\162\x63\x65\x5f\142\x65\x66\157\x72\x65\x5f\141\144\144\137\164\x6f\x5f\143\141\x72\x74\137\x62\x75\164\164\x6f\x6e", "\150\x68\x5f\x61\x64\144\137\164\157\137\x63\x61\x72\x74\x5f\x62\x75\x74\164\x6f\156\137\146\157\162\x5f\x74\x61\x78\151\137\160\162\x6f\144\165\143\x74", 35); goto uIKa0; X8lk2: function hh_add_booking_validation($passed, $product_id, $qty) { $product = wc_get_product($product_id); if (!is_wc_booking_product($product)) { return $passed; } if (!empty($_POST["\151\163\137\x61\x64\144\137\x63\x68\141\165\146\146\x65\165\162"])) { if (empty($_POST["\146\x72\x6f\x6d\x5f\141\144\x64\162\x65\x73\x73"])) { wc_add_notice(__("\x50\154\x65\x61\x73\145\x20\145\x6e\164\145\x72\x20\146\162\x6f\155\x20\x61\144\144\162\x65\163\163\56", "\167\157\157\x63\x6f\155\x6d\x65\x72\x63\145\x2d\142\x6f\157\153\x69\156\x67\x73"), "\145\x72\162\x6f\162"); $passed = false; } if (empty($_POST["\x74\157\137\141\144\144\162\x65\x73\x73"])) { wc_add_notice(__("\x50\x6c\x65\x61\163\145\x20\145\x6e\164\x65\162\x20\x74\157\x20\141\144\x64\x72\x65\x73\163\x2e", "\x77\x6f\157\x63\157\155\155\x65\162\143\145\55\142\157\x6f\153\151\156\147\163"), "\x65\162\x72\x6f\x72"); $passed = false; } } return $passed; } goto tn6W4; fvtNg: function update_custom_price($cart_object) { foreach ($cart_object->cart_contents as $cart_item_key => $value) { if (empty($value["\x69\163\137\x61\144\x64\x5f\x63\150\x61\165\146\x66\145\165\162"])) { continue; } if (isset($value["\143\x61\162\137\160\162\x69\x63\x65"]) && $value["\143\x61\x72\137\160\162\151\143\145"] && isset($value["\144\x69\x73\x74\x61\156\143\x65"]) && $value["\x64\151\163\164\x61\156\143\145"] && isset($value["\x62\157\x6f\x6b\x69\156\x67"])) { $price = floatval($value["\x63\x61\x72\137\160\162\x69\x63\x65"]) * $value["\144\151\x73\x74\141\156\143\145"]; $freePrice = floatval($value["\143\141\x72\x5f\160\x72\151\143\x65"]) * 15; if (isset($value["\151\x6e\163\x69\144\145\137\144\x69\x73\x74\x61\156\143\x65"]) && $value["\151\156\163\x69\144\x65\137\x64\151\163\x74\x61\x6e\143\145"] && isset($value["\x6c\157\156\x64\157\x6e\x5f\160\x72\x69\143\145"]) && $value["\154\x6f\x6e\x64\157\156\x5f\160\162\x69\x63\x65"] && floatval($value["\144\151\x73\164\x61\156\x63\145"]) > floatval($value["\x69\156\x73\151\x64\x65\x5f\144\x69\163\x74\x61\156\143\x65"])) { $price = floatval($value["\x6c\x6f\156\x64\157\156\x5f\160\162\x69\143\x65"]) * floatval($value["\x69\156\163\151\144\x65\x5f\x64\x69\163\164\141\x6e\x63\x65"]) + floatval($value["\x63\x61\x72\x5f\x70\162\151\143\145"]) * (floatval($value["\144\151\163\x74\141\x6e\x63\x65"]) - floatval($value["\x69\156\x73\151\x64\x65\x5f\x64\151\x73\x74\x61\156\143\145"])); } if ($price - $freePrice > 0) { $price = $price - $freePrice; } if (isset($value["\142\157\x6f\153\151\156\x67"]["\137\x63\x6f\163\164"])) { $price += floatval($value["\142\157\x6f\x6b\151\x6e\x67"]["\137\x63\157\x73\164"]); } if (isset($value["\143\141\x72\x5f\163\165\160\160\x6c\x65\x6d\145\x6e\x74"]) && $value["\143\141\x72\x5f\163\165\x70\160\154\x65\155\145\x6e\x74"]) { $price += floatval($value["\x63\141\162\137\163\x75\160\160\154\145\155\145\x6e\164"]); } $value["\144\141\x74\141"]->set_price($price); } } } goto xzgpj; q3TUd: add_action("\167\157\x6f\x63\157\155\155\x65\x72\143\145\x5f\160\x72\157\x63\x65\163\x73\x5f\160\x72\x6f\x64\165\143\164\x5f\155\145\164\141", "\150\150\x5f\x61\x64\x64\137\164\141\170\x69\137\x70\162\157\x64\x75\143\164\137\x70\x72\157\x63\x65\163\163\x5f\x6d\145\164\x61", 1); goto hhQtY; xnfnw: add_filter("\x77\157\x6f\x63\157\x6d\x6d\145\162\x63\145\137\x61\x64\x64\137\143\141\x72\x74\137\x69\x74\x65\x6d\137\x64\x61\164\x61", "\150\x68\x5f\141\x64\x64\x5f\x74\x61\x78\151\137\164\x6f\x5f\x63\141\x72\x74\137\x69\x74\x65\155", 10, 3); goto NeVEw; Y8cr6: function hh_add_addons_block() { echo "\74\x64\x69\166\x20\151\x64\75\47\164\x61\170\x2d\141\x64\144\157\156\x2d\x66\151\x65\x6c\144\x73\47\76\x3c\57\x64\151\166\76"; } goto ukUX8; uIKa0: function hh_create_car_post_type() { $labels = array("\156\141\x6d\145" => _x("\103\x61\162\x73", "\120\157\163\164\40\164\171\160\x65\x20\x67\145\156\x65\162\x61\154\x20\156\x61\x6d\145", "\164\x65\170\164\x64\x6f\x6d\141\x69\156"), "\x73\151\x6e\x67\165\154\141\x72\x5f\x6e\141\155\x65" => _x("\103\x61\162", "\x50\x6f\163\164\x20\164\x79\x70\145\x20\x73\151\156\x67\x75\x6c\x61\x72\x20\156\x61\x6d\x65", "\x74\x65\x78\164\x64\157\155\141\x69\x6e"), "\155\x65\x6e\165\137\x6e\x61\x6d\x65" => _x("\103\141\162\163", "\x41\144\155\x69\156\40\115\x65\x6e\x75\x20\x74\x65\x78\164", "\164\x65\170\164\x64\157\155\x61\x69\x6e"), "\x6e\141\x6d\145\137\x61\x64\155\x69\156\x5f\142\x61\x72" => _x("\x43\141\162", "\101\x64\x64\40\116\x65\x77\x20\157\156\40\124\x6f\157\154\x62\141\x72", "\x74\145\170\164\144\x6f\155\141\151\156"), "\141\x64\x64\137\156\x65\167" => __("\101\144\x64\40\116\x65\167", "\164\145\x78\x74\x64\x6f\155\x61\x69\156"), "\x61\x64\144\137\156\145\167\137\151\164\145\155" => __("\101\x64\x64\x20\116\145\x77\x20\103\141\x72", "\x74\x65\x78\164\144\x6f\155\x61\151\x6e"), "\156\145\167\x5f\x69\x74\x65\x6d" => __("\x4e\x65\x77\40\x43\141\x72", "\x74\x65\170\x74\144\x6f\x6d\141\151\156"), "\x65\144\x69\164\137\151\x74\x65\155" => __("\x45\x64\x69\x74\x20\103\x61\x72", "\164\145\x78\164\x64\x6f\155\x61\151\156"), "\166\151\145\167\137\x69\x74\145\155" => __("\x56\151\145\x77\40\103\141\x72", "\x74\x65\x78\164\x64\157\155\x61\x69\x6e"), "\x61\x6c\x6c\x5f\151\x74\145\155\163" => __("\101\154\154\40\103\x61\x72\163", "\x74\x65\170\x74\144\157\155\141\151\156"), "\x73\145\x61\162\143\150\x5f\151\x74\145\155\x73" => __("\x53\x65\x61\x72\143\150\x20\x43\141\162\x73", "\164\145\170\x74\x64\157\x6d\141\x69\x6e"), "\160\141\x72\x65\156\164\x5f\151\x74\145\x6d\137\143\x6f\154\157\x6e" => __("\120\x61\x72\145\156\x74\x20\103\141\162\163\x3a", "\x74\x65\x78\164\x64\157\155\141\151\x6e"), "\156\157\164\x5f\x66\157\x75\x6e\x64" => __("\116\x6f\40\143\141\162\163\40\146\x6f\x75\156\144\56", "\x74\x65\170\x74\144\x6f\x6d\x61\151\x6e"), "\x6e\x6f\164\137\146\x6f\165\156\144\x5f\x69\x6e\137\164\162\141\163\150" => __("\116\157\40\x63\x61\162\163\40\x66\x6f\165\156\144\40\x69\156\x20\x54\162\141\163\x68\56", "\x74\x65\170\164\x64\157\x6d\x61\x69\x6e"), "\x66\x65\141\164\165\162\x65\144\137\151\155\141\x67\x65" => _x("\x43\x61\x72\40\111\x6d\x61\147\145", "\117\x76\145\x72\162\151\144\145\x73\x20\x74\150\x65\40\342\x80\234\x46\145\141\x74\x75\x72\x65\x64\x20\x49\x6d\x61\147\145\xe2\x80\x9d\40\x70\150\162\x61\x73\145\x20\x66\x6f\162\40\x74\150\x69\163\x20\x70\x6f\x73\x74\40\164\171\x70\x65\56\x20\x41\x64\144\x65\144\x20\151\156\x20\64\56\63", "\164\145\170\x74\x64\157\x6d\141\151\156"), "\163\x65\164\x5f\x66\145\x61\x74\165\162\145\x64\x5f\x69\155\x61\147\x65" => _x("\x53\x65\164\x20\151\155\141\147\145", "\x4f\166\145\162\x72\151\x64\145\163\x20\x74\x68\x65\x20\xe2\x80\x9c\x53\145\164\x20\x66\x65\x61\x74\x75\162\x65\144\x20\151\x6d\x61\x67\x65\xe2\x80\235\x20\160\x68\x72\141\x73\145\x20\x66\157\x72\x20\x74\150\151\163\x20\x70\157\x73\x74\40\164\x79\160\x65\56\40\x41\144\144\145\144\40\x69\156\x20\x34\x2e\x33", "\x74\145\170\x74\x64\x6f\x6d\141\151\x6e"), "\162\x65\155\157\166\145\137\x66\x65\141\164\165\162\x65\x64\x5f\151\x6d\x61\x67\145" => _x("\x52\145\x6d\x6f\x76\145\x20\x69\x6d\x61\x67\145", "\117\166\x65\162\x72\x69\144\145\x73\40\164\150\x65\x20\xe2\x80\234\122\145\x6d\157\166\x65\40\x66\145\141\164\x75\x72\x65\x64\40\x69\155\x61\147\145\xe2\200\x9d\x20\160\x68\x72\141\x73\145\40\146\x6f\162\x20\x74\150\151\x73\40\x70\157\x73\x74\40\x74\x79\160\145\56\40\101\x64\x64\x65\144\x20\151\156\x20\64\x2e\63", "\x74\x65\x78\x74\144\x6f\x6d\141\x69\156"), "\x75\163\x65\x5f\x66\x65\141\164\x75\x72\x65\x64\137\x69\155\x61\x67\145" => _x("\125\x73\145\40\141\163\x20\x69\x6d\x61\x67\145", "\x4f\166\145\x72\x72\151\x64\145\x73\40\164\x68\x65\x20\xe2\200\x9c\125\x73\145\40\x61\x73\x20\146\x65\x61\x74\x75\x72\145\x64\40\151\x6d\141\147\x65\342\x80\235\x20\x70\150\x72\x61\163\x65\40\x66\157\162\40\x74\x68\151\163\x20\160\x6f\163\x74\x20\x74\x79\x70\x65\x2e\40\x41\x64\x64\x65\x64\40\151\x6e\40\64\56\63", "\164\145\x78\x74\x64\157\155\x61\151\156"), "\141\162\x63\150\151\166\145\163" => _x("\x43\141\x72\x20\141\162\143\150\151\x76\x65\x73", "\124\150\x65\x20\x70\157\x73\164\x20\x74\171\x70\x65\x20\x61\162\143\x68\x69\x76\x65\x20\154\x61\x62\x65\154\x20\165\163\145\x64\x20\151\x6e\40\156\x61\166\40\x6d\145\x6e\165\x73\x2e\40\104\x65\146\x61\165\154\164\40\xe2\x80\x9c\120\x6f\163\x74\x20\x41\x72\x63\150\151\x76\x65\163\xe2\200\x9d\56\x20\x41\x64\144\x65\x64\x20\x69\x6e\40\64\x2e\x34", "\164\145\x78\164\x64\x6f\x6d\x61\x69\156"), "\151\156\x73\x65\162\164\137\x69\x6e\x74\157\x5f\x69\164\145\155" => _x("\x49\156\163\x65\162\164\x20\x69\156\x74\157\40\x63\x61\162", "\x4f\166\145\162\x72\151\x64\x65\x73\40\x74\x68\x65\x20\xe2\x80\x9c\x49\x6e\163\x65\162\x74\x20\151\156\x74\x6f\40\160\157\x73\x74\xe2\200\x9d\x2f\342\x80\235\x49\156\163\145\162\164\x20\151\x6e\164\157\x20\160\141\147\145\xe2\200\x9d\x20\160\x68\162\x61\x73\x65\x20\x28\165\x73\x65\x64\40\x77\150\x65\156\x20\151\x6e\x73\x65\x72\164\x69\156\x67\40\155\x65\x64\151\141\40\x69\x6e\x74\x6f\40\x61\40\160\157\163\x74\x29\56\40\101\x64\x64\x65\144\x20\x69\x6e\x20\x34\56\64", "\164\x65\x78\x74\x64\x6f\155\x61\151\156"), "\165\x70\x6c\157\141\x64\145\144\x5f\x74\x6f\137\164\x68\x69\163\137\x69\164\x65\x6d" => _x("\x55\160\x6c\x6f\141\x64\x65\144\40\x74\157\x20\164\150\151\x73\x20\x63\x61\x72", "\x4f\x76\145\162\162\x69\144\145\x73\40\164\150\145\40\xe2\x80\234\125\160\x6c\157\x61\x64\x65\x64\x20\x74\x6f\40\164\150\151\163\40\x70\157\x73\164\xe2\x80\235\57\xe2\x80\235\x55\160\154\x6f\x61\144\145\x64\x20\164\x6f\x20\x74\150\151\x73\x20\160\x61\x67\145\342\x80\x9d\40\x70\x68\x72\x61\x73\x65\40\x28\165\x73\145\144\40\167\x68\145\156\40\x76\151\145\167\151\156\x67\40\155\x65\x64\151\x61\40\141\164\164\x61\x63\x68\145\x64\40\164\x6f\x20\141\40\x70\157\163\x74\51\56\x20\101\144\x64\145\x64\x20\x69\x6e\x20\x34\x2e\x34", "\164\x65\x78\x74\144\157\155\141\151\x6e"), "\146\151\154\164\x65\162\x5f\x69\x74\145\155\163\137\154\x69\x73\164" => _x("\x46\151\154\164\145\x72\x20\143\141\162\x73\x20\154\151\163\164", "\x53\143\x72\145\x65\x6e\40\162\x65\x61\144\145\x72\40\164\145\170\x74\x20\x66\x6f\x72\x20\x74\x68\145\x20\146\x69\x6c\164\145\x72\x20\154\x69\x6e\x6b\x73\40\150\145\141\x64\x69\x6e\147\x20\x6f\x6e\x20\x74\150\x65\x20\160\x6f\163\x74\x20\164\x79\x70\145\40\x6c\151\x73\x74\x69\156\x67\40\x73\x63\x72\145\x65\x6e\x2e\40\x44\145\146\141\165\x6c\x74\40\xe2\200\234\x46\x69\x6c\x74\145\162\40\x70\157\x73\164\x73\40\x6c\x69\163\164\xe2\200\235\x2f\xe2\x80\235\x46\151\x6c\x74\x65\162\x20\160\141\x67\x65\x73\40\x6c\151\x73\164\342\x80\x9d\56\40\x41\144\x64\x65\144\x20\x69\156\40\64\x2e\x34", "\164\145\x78\x74\x64\x6f\155\x61\151\156"), "\x69\164\x65\155\x73\137\154\151\163\164\x5f\156\141\x76\151\x67\x61\x74\151\157\156" => _x("\x43\x61\x72\163\40\x6c\x69\163\x74\40\x6e\141\166\151\x67\141\x74\151\157\x6e", "\x53\143\162\145\x65\x6e\40\162\x65\141\x64\145\162\x20\164\145\x78\x74\40\x66\157\x72\x20\164\x68\145\40\x70\x61\147\151\x6e\x61\x74\151\157\156\40\x68\x65\141\144\x69\x6e\147\x20\157\x6e\x20\164\x68\145\40\x70\x6f\163\164\x20\x74\171\x70\x65\x20\154\151\x73\164\151\156\x67\40\x73\x63\162\x65\x65\156\56\40\104\x65\146\x61\165\154\x74\x20\342\200\x9c\x50\x6f\163\164\x73\x20\x6c\151\x73\x74\40\156\x61\166\151\147\x61\164\151\157\156\342\200\x9d\57\342\200\235\120\x61\147\145\x73\40\x6c\x69\163\164\40\156\141\166\x69\x67\141\164\151\157\156\342\200\x9d\x2e\x20\x41\x64\x64\145\144\x20\151\x6e\40\64\x2e\x34", "\x74\x65\170\x74\144\157\x6d\141\x69\x6e"), "\151\x74\x65\155\x73\137\x6c\x69\x73\x74" => _x("\103\141\x72\163\40\x6c\x69\163\x74", "\123\143\162\145\145\x6e\x20\x72\x65\141\144\145\162\x20\x74\x65\x78\x74\x20\146\x6f\x72\40\164\150\x65\40\x69\164\x65\155\163\x20\154\x69\x73\x74\x20\150\x65\141\144\151\156\147\x20\157\x6e\40\164\x68\x65\x20\x70\x6f\x73\x74\40\x74\171\x70\145\40\154\151\163\x74\x69\156\x67\40\x73\x63\x72\145\x65\156\56\x20\x44\145\x66\141\165\x6c\164\x20\342\200\234\120\157\163\164\163\40\154\151\163\164\xe2\x80\x9d\x2f\xe2\x80\235\x50\141\x67\x65\x73\x20\154\151\163\164\xe2\200\x9d\x2e\40\x41\x64\144\145\x64\40\x69\156\40\x34\56\x34", "\x74\x65\170\x74\x64\x6f\155\141\151\x6e")); $args = array("\154\x61\x62\145\x6c\x73" => $labels, "\x70\165\142\154\151\x63" => true, "\x70\x75\142\x6c\x69\x63\x6c\x79\137\x71\165\145\x72\x79\141\142\x6c\145" => true, "\163\x68\x6f\167\x5f\165\x69" => true, "\x73\150\157\167\137\x69\x6e\137\x6d\x65\156\x75" => true, "\x71\x75\x65\x72\x79\x5f\x76\141\x72" => true, "\162\145\167\162\151\x74\x65" => array("\x73\x6c\165\x67" => "\143\141\x72"), "\x63\141\160\x61\x62\151\x6c\x69\164\x79\137\164\171\x70\145" => "\160\x6f\x73\x74", "\x68\x61\163\137\x61\x72\143\150\151\166\x65" => true, "\x68\151\x65\162\x61\162\x63\x68\151\143\141\154" => false, "\155\145\156\165\x5f\x70\157\x73\151\164\151\157\x6e" => null, "\x73\x75\x70\160\x6f\x72\164\x73" => array("\x74\151\164\x6c\145", "\x65\144\151\x74\x6f\x72", "\x61\165\164\x68\x6f\x72", "\x74\x68\165\x6d\142\x6e\x61\x69\x6c", "\145\170\x63\145\162\160\164", "\143\157\x6d\x6d\x65\156\x74\x73")); register_post_type("\x63\x61\x72", $args); } goto dK3Bj; SP8Ze: add_action("\x77\157\x6f\x63\x6f\x6d\155\x65\x72\x63\x65\137\160\x72\x6f\x64\x75\x63\164\x5f\x64\x61\x74\141\x5f\x70\x61\156\x65\x6c\163", "\x68\x68\x5f\x61\x64\144\x5f\164\141\170\x69\x5f\x70\x72\157\144\165\143\164\x5f\144\141\164\141\x5f\160\141\156\145\154"); goto GNKhA; GNKhA: function hh_add_taxi_product_process_meta($post_id) { $taxi_options = $_POST["\137\x74\x61\170\151\x5f\143\141\162\x73"] ? array_values($_POST["\x5f\164\x61\170\x69\137\143\141\162\163"]) : array(); $product = wc_get_product($post_id); $product->update_meta_data("\x5f\164\141\x78\151\x5f\x63\x61\162\163", $taxi_options); $product->update_meta_data("\x5f\x74\141\170\x69", isset($_POST["\x5f\164\141\x78\151"]) ? "\x79\x65\x73" : "\x6e\157"); if (isset($_POST["\162\x65\x73\x74\x72\x69\x63\x74\137\x6c\157\143\x61\x74\x69\157\156"]) && $_POST["\x72\145\x73\x74\x72\151\x63\x74\137\x6c\x6f\143\x61\164\x69\157\x6e"] == "\x79\x65\x73") { $product->update_meta_data("\162\x65\x73\164\x72\x69\x63\164\x5f\154\x6f\x63\141\164\x69\x6f\x6e", "\171\145\x73"); } else { $product->update_meta_data("\162\x65\163\164\162\151\x63\164\137\154\x6f\143\x61\164\x69\157\156", "\156\157"); } if (isset($_POST["\x72\x65\x73\164\x72\x69\143\x74\x5f\146\162\157\x6d"]) && $_POST["\x72\145\x73\164\162\151\143\164\137\146\162\157\155"] == "\x79\145\x73") { $product->update_meta_data("\x72\x65\163\164\x72\x69\143\x74\137\146\x72\x6f\x6d", "\x79\x65\x73"); } else { $product->update_meta_data("\x72\x65\x73\x74\162\x69\x63\164\x5f\x66\x72\x6f\155", "\156\x6f"); } if (isset($_POST["\x72\145\x73\164\x72\x69\x63\164\137\x74\157"]) && $_POST["\162\145\163\x74\162\151\x63\164\137\164\157"] == "\171\x65\x73") { $product->update_meta_data("\x72\145\163\164\x72\151\x63\x74\x5f\x74\157", "\171\145\163"); } else { $product->update_meta_data("\162\x65\x73\164\162\x69\x63\x74\137\x74\x6f", "\156\157"); } if (isset($_POST["\x72\x65\x73\x74\162\x69\x63\x74\137\146\162\157\155\x5f\x6c\157\143\141\164\x69\157\x6e\x73"]) && $_POST["\162\145\163\164\x72\151\143\164\x5f\x66\162\x6f\x6d\137\x6c\157\143\141\164\151\157\156\163"]) { $product->update_meta_data("\x72\x65\163\x74\162\151\x63\x74\x5f\x66\162\x6f\155\x5f\x6c\157\143\141\x74\x69\x6f\x6e\x73", $_POST["\x72\145\163\164\162\x69\143\164\x5f\x66\x72\x6f\x6d\x5f\x6c\157\x63\x61\x74\151\157\x6e\x73"]); } else { $product->update_meta_data("\162\x65\x73\164\x72\x69\x63\164\137\146\x72\157\155\x5f\154\157\143\x61\164\151\x6f\156\x73", array()); } if (isset($_POST["\x72\x65\x73\164\x72\x69\143\x74\137\x74\157\x5f\154\x6f\143\x61\164\x69\157\156\163"]) && $_POST["\x72\145\163\x74\162\151\143\x74\x5f\164\157\x5f\154\x6f\143\x61\164\151\157\x6e\163"]) { $product->update_meta_data("\162\x65\x73\x74\x72\x69\143\x74\x5f\x74\157\x5f\154\x6f\143\x61\x74\151\x6f\x6e\163", $_POST["\162\x65\x73\164\162\151\x63\164\x5f\164\x6f\137\x6c\x6f\143\141\164\x69\157\156\x73"]); } else { $product->update_meta_data("\162\145\x73\x74\x72\151\x63\164\x5f\x74\x6f\x5f\x6c\x6f\x63\141\164\151\157\x6e\163", array()); } $product->save(); } goto q3TUd; rQ6NO: add_filter("\167\157\157\143\x6f\155\x6d\x65\x72\x63\x65\137\160\162\x6f\144\x75\143\x74\137\x64\x61\x74\141\137\x74\x61\142\x73", "\x68\150\x5f\141\144\x64\x5f\x70\x72\157\x64\165\x63\x74\137\144\x61\164\x61\137\x74\141\142"); goto Hsc10; XLVqJ: function hh_enqueue_admin_scripts() { $google_maps_key = get_field("\147\x6f\x6f\147\x6c\x65\137\x6d\141\x70\x73\137\153\145\x79", "\x6f\x70\x74\x69\x6f\156\x73"); if (!$google_maps_key) { $google_maps_key = "\x78\170\x78\170"; } wp_register_script("\x67\157\x6f\147\x6c\145\x2d\x6d\x61\160\x73\x2d\x61\160\151", "\x68\x74\164\x70\163\72\57\57\155\141\x70\x73\x2e\x67\x6f\x6f\147\154\145\141\x70\x69\163\56\143\157\155\57\x6d\141\160\x73\57\141\x70\x69\x2f\x6a\163\x3f\x6b\145\171\x3d" . $google_maps_key . "\46\x6c\x69\142\x72\x61\162\x69\x65\163\75\147\x65\x6f\x6d\x65\164\x72\x79\54\x70\154\141\x63\145\x73", array("\x6a\161\x75\145\162\x79"), "\61\x2e\60", true); wp_register_script("\x68\150\x2d\x74\x61\x78\x69\55\160\141\x6e\x65\154", get_theme_file_uri("\167\x6f\157\143\157\155\155\145\x72\143\x65\x2d\142\x6f\157\153\151\x6e\x67\x73\57\164\141\170\x69\x2f\141\163\x73\x65\x74\163\57\x6a\x73\57\x74\x61\x78\151\55\160\141\x6e\145\154\56\152\x73"), array("\152\x71\165\145\162\171", "\147\157\157\147\154\x65\x2d\155\x61\x70\x73\x2d\x61\160\151"), "\61\x2e\x30"); wp_register_style("\x68\150\x2d\164\x61\x78\x69\55\160\141\156\145\154", get_theme_file_uri("\167\x6f\x6f\x63\157\155\x6d\145\162\x63\145\55\142\157\157\x6b\x69\156\x67\163\57\x74\x61\170\151\57\141\x73\163\145\164\163\57\143\163\163\x2f\164\x61\170\x69\55\x70\x61\x6e\145\154\56\x63\163\x73"), false, "\61\56\60\x2e\60"); } goto ciU1f; yKgeQ: if (function_exists("\x61\x63\146\x5f\x61\x64\x64\137\x6c\157\x63\x61\154\137\x66\151\145\x6c\144\137\147\x72\157\165\160")) { acf_add_local_field_group(array("\x6b\x65\x79" => "\x63\141\x72\x5f\x70\162\x6f\x64\x75\143\164\137\147\x72\x6f\165\x70", "\164\x69\x74\154\x65" => "\103\141\x72\x20\x50\162\x6f\x64\x75\143\164\40\x4f\x70\164\151\157\156\x73", "\146\151\x65\x6c\144\x73" => array(array("\x6b\x65\171" => "\160\162\151\x63\145\137\x70\145\x72\137\155\x69\154\x65", "\154\141\142\145\154" => "\120\x72\151\x63\x65\40\160\x65\162\x20\x6d\x69\154\x65", "\x6e\x61\155\145" => "\x50\162\x69\x63\145\40\160\x65\x72\40\155\x69\154\145", "\164\171\x70\145" => "\164\145\170\164", "\151\156\x73\x74\162\x75\143\x74\151\157\x6e\163" => '', "\x72\x65\x71\165\x69\x72\x65\x64" => 1), array("\153\x65\x79" => "\x6c\157\x6e\144\157\156\137\160\x72\x69\x63\145\x5f\x70\x65\162\137\155\x69\154\x65", "\x6c\x61\x62\145\154" => "\x50\x72\x69\x63\145\x20\160\x65\162\x20\x6d\151\154\x65\40\x69\x6e\x73\x69\144\145\x20\114\x6f\156\x64\x6f\x6e", "\x6e\x61\x6d\145" => "\x50\x72\151\143\145\40\160\145\x72\x20\155\151\x6c\145\x20\151\x6e\163\151\x64\145\40\x4c\x6f\156\144\157\x6e", "\164\171\x70\145" => "\164\x65\170\x74", "\151\156\x73\164\162\x75\x63\x74\x69\157\x6e\x73" => '', "\162\145\x71\165\x69\162\x65\x64" => 1), array("\153\x65\171" => "\x70\x72\151\143\145\x5f\x73\x75\160\160\x6c\x65\155\x65\x6e\164", "\x6c\x61\142\145\154" => "\x53\165\x70\160\154\x65\x6d\x65\x6e\x74", "\156\x61\x6d\x65" => "\123\165\160\x70\x6c\x65\x6d\x65\x6e\x74", "\x74\x79\x70\x65" => "\x74\x65\170\x74", "\x69\x6e\x73\x74\x72\x75\143\x74\x69\x6f\x6e\x73" => '', "\x72\145\161\165\151\x72\x65\x64" => 0), array("\153\x65\171" => "\155\141\170\x5f\160\x61\x73\x73\x65\156\147\145\162\163", "\x6c\x61\x62\x65\x6c" => "\x4d\141\170\x20\120\x61\x73\163\145\x6e\147\x65\x72\163", "\156\141\155\145" => "\x6d\141\x78\x5f\160\x61\163\x73\145\x6e\147\145\x72\163", "\x74\171\x70\145" => "\x74\145\170\x74", "\x69\x6e\x73\x74\x72\165\x63\164\151\x6f\156\163" => '', "\x72\145\161\x75\151\162\145\144" => 0), array("\x6b\145\171" => "\x6d\x61\170\137\x62\141\147\163", "\154\x61\142\145\x6c" => "\115\x61\170\40\102\x61\x67\163", "\x6e\x61\x6d\x65" => "\155\141\x78\x5f\142\141\147\163", "\164\x79\x70\x65" => "\164\x65\x78\164", "\151\156\x73\164\162\165\x63\164\x69\x6f\156\x73" => '', "\162\x65\x71\165\x69\x72\145\144" => 0)), "\154\157\143\141\x74\151\x6f\x6e" => array(array(array("\x70\x61\x72\141\155" => "\x70\157\163\164\137\164\171\x70\145", "\x6f\160\145\162\141\164\x6f\x72" => "\x3d\x3d", "\166\x61\154\165\145" => "\143\141\x72"))), "\155\145\x6e\165\137\157\x72\144\145\162" => 0, "\x70\x6f\x73\151\164\151\x6f\156" => "\156\x6f\x72\x6d\x61\x6c", "\x73\x74\171\154\x65" => "\144\145\x66\x61\x75\x6c\164", "\x6c\141\x62\x65\154\137\160\x6c\x61\143\145\x6d\x65\x6e\x74" => "\164\157\160", "\151\156\x73\164\162\165\x63\164\151\x6f\x6e\x5f\160\x6c\x61\x63\x65\x6d\145\156\164" => "\x6c\141\142\145\154", "\x68\x69\144\x65\137\x6f\156\137\x73\143\x72\x65\145\x6e" => '', "\141\143\x74\x69\x76\145" => true, "\144\x65\163\x63\162\x69\160\x74\x69\x6f\x6e" => '', "\163\x68\157\167\137\x69\156\x5f\162\x65\x73\x74" => 0)); }

Function Calls

None

Variables

None

Stats

MD5 8b5c3fbb9933e45a9c03878e7d6a4398
Eval Count 0
Decode Time 81 ms