| Server IP : 54.36.91.62 / Your IP : 216.73.217.111 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/montpellier/plugins/kunena/community/ |
Upload File : |
<?php
/**
* Kunena Plugin
*
* @package Kunena.Plugins
* @subpackage Community
*
* @copyright Copyright (C) 2008 - 2025 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
namespace Kunena\Forum\Plugin\Kunena\Community;
\defined('_JEXEC') or die();
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Kunena\Forum\Libraries\Integration\KunenaPrivate;
/**
* Class KunenaPrivateCommunity
*
* @since Kunena 6.0
*/
class KunenaPrivateCommunity extends KunenaPrivate
{
/**
* @var boolean
* @since Kunena 6.0
*/
protected $loaded = false;
/**
* @var null
* @since Kunena 6.0
*/
protected $params = null;
/**
* KunenaPrivateCommunity constructor.
*
* @param object $params params
*
* @since Kunena 6.0
*/
public function __construct($params)
{
$this->params = $params;
\CFactory::load('libraries', 'messaging');
}
/**
* @param string $text
*
* @return string
*
* @since Kunena 6.0
*/
public function getInboxLink(string $text): string
{
if (!$text) {
$text = Text::_('COM_KUNENA_PMS_INBOX');
}
return '<a href="' . \CRoute::_('index.php?option=com_community&view=inbox') . '" rel="follow">' . $text . '</a>';
}
/**
* @return string
*
* @since Kunena 6.0
*/
public function getInboxURL(): string
{
return \CRoute::_('index.php?option=com_community&view=inbox');
}
/**
* @param int $userid
*
* @return string
*
* @since Kunena 6.0
*/
protected function getOnClick(int $userid): string
{
if (!$this->loaded) {
// PM popup requires JomSocial css to be loaded from selected template
$config = \CFactory::getConfig();
$document = Factory::getApplication()->getDocument();
$document->addStyleSheet('components/com_community/assets/window.css');
$document->addStyleSheet('components/com_community/templates/' . $config->get('template') . '/assets/css/style.css');
$this->loaded = true;
}
return ' onclick="' . \CMessaging::getPopup($userid) . '"';
}
/**
* @param int $userid
*
* @return string
*
* @since Kunena 6.0
*/
protected function getURL(int $userid): string
{
return "javascript:void(0)";
}
}