';
$html .= '
';
$html .= '
';
//
if (!empty($attr['header'])) {
$html .= '
' . $attr['header'] . '
';
}
//
$html .= '
';
//
$limitItems = false;
if (isset($attr['limit']))
$limitItems = $attr['limit'];
$items = Hotel_Content::roomItems($limitItems);
foreach ($items as $e) {
$coverBG = '';
if (isset($e['photo']['url'])) {
$coverBG = 'background-image: url(' . $e['photo']['url'] . ');';
}
$html .=
'
' .
'
' .
'' . $e['name'] . '' .
'
' .
'
' . $e['desc'] . '
' .
'
';
if (!empty($e['features'])) {
foreach ($e['features'] as $e2) {
$title = str_replace('fa-', '', $e2);
$html .= '';
}
}
$booking_page = get_permalink(Hotel_Content::getSetting('booking_page'));
$roomLink = add_query_arg(array('step' => 1, 'room' => $e['id']), $booking_page);
$roomLink = str_replace('&', '&', $roomLink);
$html .= '
' .
'
' .
'
' .
'
';
}
$html .= '
';
//
$html .= '
';
if (isset($attr['more_link'])) {
$html .= '';
}
$html .= '
';
return $html;
}
//
function hotel_code_map($attr, $content = null) {
if (empty($attr['mapbox']))
$attr['mapbox'] = '//a.tiles.mapbox.com/v3/frytek91.hpej9nbh/attribution,zoompan.html';
//
$html = '';
$html .= '';
$html .= '
';
$html .= '
';
//
if (!empty($attr['header'])) {
$html .= '
' . $attr['header'] . '
';
}
//
$html .= '
';
$limitItems = false;
if (isset($attr['limit']))
$limitItems = $attr['limit'];
$items = Hotel_Content::reviewsItem($limitItems);
foreach ($items as $e) {
// $e['author'] | $e['rank']
if (empty($e['company'])) {
$e['company'] = '';
}
$html .= '
' . $e['author'] . ', ' . $e['author_company'] . '
';
}
$html .= '
';
//
$html .= '
';
if (isset($attr['more_link'])) {
$html .= '';
}
$html .= '
';
return $html;
}
//
function hotel_code_blog($attr, $content = null) {
if (empty($attr['header']))
$attr['header'] = '';
if (empty($attr['header_sub']))
$attr['header_sub'] = '';
//
$html = '';
if (!empty($attr['header'])) {
$html .= '' . $thumb . '
';
}
$htmlSingle =
'';
if (count($posts) == 0) {
$html .= '
' . __('No posts available.', 'hotel-theme') . '
';
}
$html .= '
' . $htmlLeft . '
';
$html .= '
' . $htmlRight . '
';
$html .= '
';
if (is_home()) {
$html .= '';
}
//
$html = '';
$html .= '
';
$html .= '
' . $attr['header'] . '
';
$html .= '';
$html .= '
';
return $html;
}
//
function hotel_code_gallery($attr, $content = null) {
$html = '';
if (!empty($attr['header'])) {
$html .= '';
$html .= '
' . $attr['header'] . '
';
$html .= ' ';
}
$html .= '