The Review Badge displays the live score of the Review Module of the booking engine of hoteliers.com.
1. Possible variations of the Review Badge
There are seven variations available to fit the Review Badge to the design of your website:
whiteround | |
blackround | |
whitesquare | |
blacksquare | |
whitestars | |
blackstars | |
yellowstars |
2. Placing the Review Badge HTML into the website
Place the Review Badge HTML, by adding the following between the <body></body> tags of the page.
<script type="text/javascript" src="https://www.hoteliers.com/reviewwidget/reviewwidget.js"></script>;
<script type="text/javascript">
htlrs_review.initialize({
hotel : '{HOTEL_ID}',
lang : '{LANG}',
theme : '{THEME_NAME}'
});
</script>
<div id="htlrs_reviewwidget"></div>
Setting the correct language, hotel ID and theme
Replace the parameters:
- Replace {HOTEL_ID} with your hotel ID
- Replace {LANG} with the language of the page (if this language is not supported, it will be redirected to English)
- Replace {THEME_NAME} with a theme name (see above variations)
Example:
The following is an example of a spanish badge, with hotel ID 8 and theme whitesquare:
<script type="text/javascript" src="https://hoteliers.com/reviewwidget/reviewwidget.js"></script>;
<script type="text/javascript">
htlrs_review.initialize({
lang : 'es',
hotel : '8',
theme : 'whitesquare'
});
</script>
<div id="htlrs_reviewwidget"></div>