<?php
/**
 * @package     Joomla.Site
 * @subpackage  Layout
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_BASE') or die;

\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tooltip');

$tooltip = $displayData['tooltip'];
$legacy  = $displayData['legacy'];

?>
<?php if ($legacy) : ?>
	<span class="hasTooltip" title="<?php echo \Joomla\CMS\HTML\HTMLHelper::tooltipText($tooltip . '', 0); ?>">
		<?php echo \Joomla\CMS\HTML\HTMLHelper::_('image', 'system/checked_out.png', null, null, true); ?>
	</span>
	<?php if (TCK_ARTICLE_TOOLS_ICON_SHOW_TEXT) : ?>
	<?php echo \Joomla\CMS\Language\Text::_('JLIB_HTML_CHECKED_OUT'); ?>
	<?php endif; ?>
<?php else : ?>
	<span class="hasTooltip icon-lock" title="<?php echo \Joomla\CMS\HTML\HTMLHelper::tooltipText($tooltip . '', 0); ?>"></span>
	<?php if (TCK_ARTICLE_TOOLS_ICON_SHOW_TEXT) : ?>
	<?php echo \Joomla\CMS\Language\Text::_('JLIB_HTML_CHECKED_OUT'); ?>
	<?php endif; ?>
<?php endif; ?>
