=== Booking.com Official Search Box ===
Contributors: SP - Booking.com 
Tags: search hotels, accommodation searchbox, Booking.com Official Searchbox, hotels, accommodation 
Requires at least: 3.0
Tested up to: 6.8.1
Stable tag: 3.0.6
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

The official Booking.com search box is a user-friendly, customisable plugin to add the Booking.com search box to your own website in two easy steps.

== Description ==

This plugin creates a search box that Booking.com Affiliate Partners can implement into their site using their affiliate ID.

If you’re not an Affiliate Partner yet, you can still implement the plugin. To get the most out of the plugin and earn commission, you’ll need to sign up for the [Booking.com Affiliate Partner Programme](https://www.booking.com/affiliate-program/v2/index.html).

To implement the search box, simply drag and drop the plugin to the sidebar Widget area to publish it - then you’re done!

Once installed, you can choose a pre-filled destination for the search box. This destination is linked to a destination ID, avoiding potential issues for multiple cities with the same name. You can also change the pre-filled destination for each page or post where the search box is displaying, thanks to the meta box feature showed at the end of the editing area.

You can even customize the colour, text, and size of the search box to fit your website design. Check the Features for more details.

= Features = 

* Easy to use: No code or Javascript knowledge needed! We create a standard search box ready to be implemented in your site
* Responsive design: The search box automatically adapts to your website’s sidebar width
* Search box flexibility: Can have pre-filled destination in the search box with the option to have different pre-filled destinations on different pages and posts.
* Try it before you publish: You can preview the plugin in your settings before it goes on your website
* Multi-lingual search box and dashboard settings: Now available in over 40 languages and dialects.
* Performances: Css and Javascript loaded only when needed
* Support: You can always contact your Strategic Partnerships Technical Team for technical support
* Earn more: Join our [Booking.com Affiliate Partner Programme](https://www.booking.com/affiliate-program/v2/index.html)

= Possible customisation =

* Add your aid ( Ex. 382821 ): pay attantion affiliate ID is different from partner ID which normally starts with a '4'.
* Adjust the width of the search box (min-width is 200px)
* Pre-fill the search field with a destination name to show filtered search results 
* Add a flexible-dates feature
* Preset check-in and check-out dates 
* Customize the Booking.com logo: Available in white or blue and three sizes (150x25, 200x33, 300x50) 
* Change the logo position: Center, left, right
* Pre-set specific destination: To further filter search results you can determine the destination page type, such as city or landmark, as well as a specific destination ID
* Choose specific destination for posts and pages
* Change main colors: Background, text, button background, button border, button text 
* Choose infinite colours from the colours picker
* And much more...

== Installation ==

**First installation**

1. Download the zip file from this page 
2. Login to your WordPress dashboard 
3. Go to Plugins >> Add New, under Install Plugins title click on Upload and use the browse button to search the .zip file you have downloaded at point 1.
4. Once activated you can start using the searchbox in the **Appearance >> Widget** section
5. Use the settings page to customise the searchbox if needed. 

**Subsequent upgrades**

1. Just upgrade using the plug-in panel

== Frequently Asked Questions ==

= Can I change default texts and colours? =

Yes, you can. The plugin has a settings area where you can change colours, texts and add an affiliate ID if you have one.

= What's the Affiliate Programme and how can I join? =

By joining the Booking.com Affiliate Program you can earn commissions on any reservation made through the search box created by this plugin. Please check this [page](https://www.booking.com/affiliate-program/v2/index.html) to learn more about the Booking.com Affiliate Program.

= Can I use the plugin even if I'm not an affiliate yet? =

Yes, it's possible. You don’t need to be an Affiliate Partner to implement the plugin, but you could start earning commissions today becoming one. [Sign-up now](https://secure.booking.com/affiliate-program/register.html?lang=en-gb).

= Can I place the widget on multiple position ? =

The Booking.com Official Search Box plugin can be placed on a sidebar and also in the content of a page (via Block Editor). Multiple search boxes in different widget areas in the same page would affect the functionalities. However, you can use the Meta Boxes feature to display the same widget with different destinations for each post and page.

= Which WP version is the plugin compatible with ? =

The plugin will work from WP ver 3.0 onwards.

== Screenshots ==

1. Searchbox Main settings section.
2. Searchbox Destination settings section.
3. Searchbox Colour settings section.
4. Searchbox Calendar settings section.
5. Searchbox text settings section.
6. Gutenberg block editor, with on the right some of the settings you can change for the widget in the content (not the sidebar) and on the bottom the meta box to change the destination.
7. Example of the sidebar and content widget.

== Changelog ==

= 3.0.6 =
* Release March 2026
* Fix: esc_html__ had too many underscores.

= 3.0.5 =
* Release November 2025
* Fixing a persistent date issue in Block Editor.

= 3.0.4 =
* Release November 2025
* Fix date format in Block Editor.

= 3.0.3 =
* Release November 2025
* Fix: German Language format.

= 3.0.2 =
* Release October 2025
* Fix: Language formats.
* Fix: Missing translation for destination placeholder.

= 3.0.1 =
* Fix : Calendar language not being picked up correctly.

= 3.0.0 =
* Release June 2025
* New: Redesigned admin panel.
* New: Calendar, with multi calendar display and range selection.
* New: show weeknumbers on the calendar.
* New: searchbox block editor element, add the Booking.com searchbox to your page using wordpress gutenberg block editor.

= 2.3.1 =
* Release Feb 2022
* Fix : Default dates in searchbox not reflecting language of website.
* Fix : Changing format of dates when selecting in backend. This due to an error shown up when selecting pre-set dates.

= 2.3.0 =
* Release Feb 2022
* Fix : JS dates incorrect language when selecting date
* Fix : Minor css tweaks
* New : Added calendar styling customisation for, selected date background, selected date text and daynames

= 2.2.9 =
* Release Feb 2022
* Fix : Minor JS error when searchbox not present on page
* Fix : Minor css fixes
* New : Adding option to change background colour for destination and dates fields
* New : Adding option to change text colour for destination, dates fields and headline
* New : Adding option to change headline size

= 2.2.8 =
* Release Jan 2022
* Fix : Minor css issues calendar

= 2.2.7 =
* Release Jan 2022
* Fix : Calendar layout in smaller width
* Fix : Calendar color css when hover days
* Update : Setting min-width for searchbox at 200px, this due to the calendar

= 2.2.6 =
* Release Jan 2022
* Fixed incorrect version number

= 2.2.5 =
* Release Jan 2022
* Fix: Calendar displaying past dates
* Fix: Calendar displayed some incorrect languages or not being translated

= 2.2.4 =
* Release Jan 2022
* Fix : Called css internal instead of external

= 2.2.3 =
* Release Jan 2022
* Fix : Security issues
* Redesign of the calendar

= 2.2.1 =
* Release Feb 2019
* New Feature: chance to preset check-in and check-out dates ( useful for example in case of events in specific dates etc... )


= 2.1.1 =
* Release Jul 2018
* Fix : get rid of warning about screen_icon() icon and get_screen_icon()

= 2.1 =
* Release Feb 2018
* Compatibility : checked compatibility with latest Wp versions
* Fix : custom colour for "I don't have specific dates yet"

= 2.0 =
* Release December 2016
* Fixed missing copy for languages
* Added internazionalization-ready feature to make plugin's page available in different languages

= 1.9 =
* Release October 2016
* Added korean language

= 1.8 =
* Release October 2016
* Added japanese language

= 1.7 =
* Release April 2016
* Fixed affiliate ID field in settings cannot get 7 digits number
* Fixed error message about cname when input field empty

= 1.6 =
* Release April 2016
* Fixed typo "cclass" on line 109 of bos_date_array.php - thanks gezginrocker
* Added chance to add cname 

= 1.5 =
* Release August 2015
* Compatible with WP 4.3
* Fixed bug in preview mode on check-in and check-out resetting to day 1
* Fixed bug in preview mode when clicking on lock icon when a destination is preset no action performed and no tooltip appears
* Installed Turkish translation

= 1.4 =
* Release April 2015
* Added 'save' button to widget area: useful for plugins like 'Fixed widgets' using this feature
* Added a control on affiliate ID input field in order to prevent user placing Partner ID instead of Affiliate ID
* Added Polish language
* Chance to specify Custom Post Types where to display Booking.com destination meta box
* Checkin and checkout set on current date even for cached pages
* Added airport to destination types
* Small css fixes


= 1.3.2 =
* Release January 2015
* Added Chinese ( traditional and simplified ) and Dutch
* Fix february copy issue for French translation ( only short format )
* Removed protocol select in settings ( now taken automatically ) 
* Added submit position select ( left, right or centre )
* Minor css fixes

= 1.3.1 =
* Release October 2014
* Minor fixes for German, Italian, French and Russian translations
* Fix issue with not displaying widget when no previuos settings in database
* Fix strange characters on month-year dropdown
* Added landmark for destination types

= 1.3 =
* Release October 2014
* Wordpress 4.0 compatible
* Meta Boxes ( also known as Custom Fields ) : choose different destination for posts and pages
* More accurate searches with destination type and ID
* New color picker ( wpcolor picker from WP core )
* Admin pages translated into same languages of the widget
* Added russian translation
* Error dates message
* Minor css fixes
* New restore default settings button
* New https feature for secure enviroment installation
* Increased performances: less DB writing on installation

= 1.2 =
* Release July 2014
* Extends calendar select menu to one year window

= 1.1 =
* Release June 2014
* Fixed some minors css issues ( Ex. calendar misalignment, button width etc... )
* Fixed issue on last month not-showing in check-out select
* Added Portuguese ( brazilian ), Spanish and Indonesian to searchbox widget ( not admin settings )
* Added a flexible-dates feature
* Improved preview feature
* Improved the cleaning process after uninstallation: from this version onwards user settings will be kept into db
* Versioned Css and Javascript

= 1.0 =
* First release - April 2014

== Upgrade Notice ==

No upgrade notice for the first release