[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/tmpl/notes/ -> modal.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2011 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\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  
  16  ?>
  17  <div class="unotes">
  18      <h1><?php echo Text::sprintf('COM_USERS_NOTES_FOR_USER', $this->user->name, $this->user->id); ?></h1>
  19  <?php if (empty($this->items)) : ?>
  20      <?php echo Text::_('COM_USERS_NO_NOTES'); ?>
  21  <?php else : ?>
  22      <ul class="alternating">
  23      <?php foreach ($this->items as $item) : ?>
  24          <li>
  25              <div class="fltlft utitle">
  26                  <?php if ($item->subject) : ?>
  27                      <h4><?php echo Text::sprintf('COM_USERS_NOTE_N_SUBJECT', (int) $item->id, $this->escape($item->subject)); ?></h4>
  28                  <?php else : ?>
  29                      <h4><?php echo Text::sprintf('COM_USERS_NOTE_N_SUBJECT', (int) $item->id, Text::_('COM_USERS_EMPTY_SUBJECT')); ?></h4>
  30                  <?php endif; ?>
  31              </div>
  32  
  33              <div class="fltlft utitle">
  34                  <?php echo HTMLHelper::_('date', $item->created_time, Text::_('DATE_FORMAT_LC2')); ?>
  35              </div>
  36  
  37              <?php $category_image = $item->cparams->get('image'); ?>
  38  
  39              <?php if ($item->catid && isset($category_image)) : ?>
  40              <div class="fltlft utitle">
  41                  <?php echo HTMLHelper::_('users.image', $category_image); ?>
  42              </div>
  43  
  44              <div class="fltlft utitle">
  45                  <em><?php echo $this->escape($item->category_title); ?></em>
  46              </div>
  47              <?php endif; ?>
  48  
  49              <div class="clr"></div>
  50              <div class="ubody">
  51                  <?php echo (isset($item->body) ? HTMLHelper::_('content.prepare', $item->body) : ''); ?>
  52              </div>
  53          </li>
  54      <?php endforeach; ?>
  55      </ul>
  56  <?php endif; ?>
  57  </div>


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