[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/content/icons/ -> edit_lock.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  Layout
   6   *
   7   * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Language\Text;
  14  
  15  if (isset($displayData['ariaDescribed'])) {
  16      $aria_described = $displayData['ariaDescribed'];
  17  } elseif (isset($displayData['article'])) {
  18      $article        = $displayData['article'];
  19      $aria_described = 'editarticle-' . (int) $article->id;
  20  } elseif (isset($displayData['contact'])) {
  21      $contact        = $displayData['contact'];
  22      $aria_described = 'editcontact-' . (int) $contact->id;
  23  }
  24  
  25  $tooltip = $displayData['tooltip'];
  26  
  27  ?>
  28  <span class="hasTooltip icon-lock" aria-hidden="true"></span>
  29      <?php echo Text::_('JLIB_HTML_CHECKED_OUT'); ?>
  30  <div role="tooltip" id="<?php echo $aria_described; ?>">
  31      <?php echo $tooltip; ?>
  32  </div>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer