| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 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/www/cj79373/administrator/components/com_engage/Toolbar/ |
Upload File : |
<?php
/**
* @package AkeebaEngage
* @copyright Copyright (c)2020-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Engage\Admin\Toolbar;
defined('_JEXEC') or die;
use FOF40\Toolbar\Toolbar as BaseToolbar;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Toolbar\Toolbar as JToolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
class Toolbar extends BaseToolbar
{
public function onCommentsBrowse()
{
$this->renderSubmenu();
// Set toolbar title
ToolbarHelper::title(Text::_('COM_ENGAGE') . ' <small>' . Text::_('COM_ENGAGE_TITLE_COMMENTS') . '</small>', 'engage');
$bar = JToolbar::getInstance();
if ($this->perms->edit)
{
ToolbarHelper::editList();
}
if ($this->perms->editstate)
{
ToolbarHelper::publishList();
ToolbarHelper::unpublishList();
ToolbarHelper::custom('possiblespam', 'akengage-possiblespam', '', 'COM_ENGAGE_COMMENTS_TOOLBAR_POSSIBLESPAM');
$bar->appendButton('Confirm', 'COM_ENGAGE_COMMENTS_CONFIRM_REPORTHAM', 'akengage-reportham', 'COM_ENGAGE_COMMENTS_TOOLBAR_REPORTHAM', 'reportham', true);
}
if ($this->perms->delete)
{
$bar->appendButton('Confirm', 'COM_ENGAGE_COMMENTS_CONFIRM_REPORTSPAM', 'akengage-reportspam', 'COM_ENGAGE_COMMENTS_TOOLBAR_REPORTSPAM', 'reportspam', true);
ToolbarHelper::deleteList('COM_ENGAGE_COMMENTS_CONFIRM_DELETE');
}
ToolbarHelper::preferences('com_engage');
ToolbarHelper::help('foobar', false, 'https://github.com/akeeba/engage/wiki');
}
public function onCommentsEdit()
{
$this->renderSubmenu();
// Set toolbar title
ToolbarHelper::title(Text::_('COM_ENGAGE') . ' <small>' . Text::_('COM_ENGAGE_TITLE_COMMENTS_EDIT') . '</small>', 'engage');
if ($this->perms->edit || $this->perms->editown)
{
// Show the apply button only if I can edit the record, otherwise I'll return to the edit form and get a
// 403 error since I can't do that
ToolbarHelper::apply();
}
ToolbarHelper::save();
ToolbarHelper::link('index.php?option=com_engage&view=Comments', 'JCANCEL', 'cancel');
}
public function onEmailtemplatesBrowse()
{
parent::onBrowse();
// Set toolbar title
ToolbarHelper::title(Text::_('COM_ENGAGE') . ' <small>' . Text::_('COM_ENGAGE_TITLE_EMAILTEMPLATES') . '</small>', 'engage');
}
public function onEmailtemplatesEdit()
{
parent::onEdit();
// Set toolbar title
ToolbarHelper::title(Text::_('COM_ENGAGE') . ' <small>' . Text::_('COM_ENGAGE_TITLE_EMAILTEMPLATES_EDIT') . '</small>', 'engage');
}
}