<?php


defined('_WPBOOKINGPRO_EXEC') or die;

$data = $displayData;

$title = htmlspecialchars(WoobookingText::_($data->tip ?: $data->title));
WpBookingPro_Html::_('bootstrap.popover');
?>
<a href="#" onclick="return false;" class="js-stools-column-order hasPopover"
   data-order="<?php wpbookingpro_render_content($data->order); ?>" data-direction="<?php echo strtoupper($data->direction); ?>" data-name="<?php echo WoobookingText::_($data->title); ?>"
   title="<?php wpbookingpro_render_content($title); ?>" data-content="<?php echo htmlspecialchars(WoobookingText::_('JGLOBAL_CLICK_TO_SORT_THIS_COLUMN')); ?>" data-placement="top">
<?php if (!empty($data->icon)) : ?><span class="<?php wpbookingpro_render_content($data->icon); ?>"></span><?php endif; ?>
<?php if (!empty($data->title)) : ?><?php echo WoobookingText::_($data->title); ?><?php endif; ?>
<?php if ($data->order == $data->selected) : ?><span class="<?php wpbookingpro_render_content($data->orderIcon); ?>"></span><?php endif; ?>
</a>
