[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_users/tmpl/profile/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2009 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\Factory;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  ?>
  18  <div class="com-users-profile profile">
  19      <?php if ($this->params->get('show_page_heading')) : ?>
  20          <div class="page-header">
  21              <h1>
  22                  <?php echo $this->escape($this->params->get('page_heading')); ?>
  23              </h1>
  24          </div>
  25      <?php endif; ?>
  26  
  27      <?php if (Factory::getUser()->id == $this->data->id) : ?>
  28          <ul class="com-users-profile__edit btn-toolbar float-end">
  29              <li class="btn-group">
  30                  <a class="btn btn-primary" href="<?php echo Route::_('index.php?option=com_users&task=profile.edit&user_id=' . (int) $this->data->id); ?>">
  31                      <span class="icon-user-edit" aria-hidden="true"></span> <?php echo Text::_('COM_USERS_EDIT_PROFILE'); ?>
  32                  </a>
  33              </li>
  34          </ul>
  35      <?php endif; ?>
  36  
  37      <?php echo $this->loadTemplate('core'); ?>
  38      <?php echo $this->loadTemplate('params'); ?>
  39      <?php echo $this->loadTemplate('custom'); ?>
  40  </div>


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