Чтобы удалить надпись Работает на Kunena форум в Kunena_v5.2.2, необходимо в файл: Ваш_сайт\libraries\kunena\controller\application\display.php внести следующие изменения:

В функции, строка № 397: final public function poweredBy().

Задокументировать строку № 434: // Документируем // return $credits;

 

Выглядеть функция будет например так:

final public function poweredBy()
{
$templateText = (string) $this->template->params->get('templatebyText');
$templateName = (string) $this->template->params->get('templatebyName');
$templateLink = (string) $this->template->params->get('templatebyLink');
$credits = '<div style="text-align:center;">';
$credits .= HTMLHelper::_(
'kunenaforum.link', 'index.php?option=com_kunena&view=credits',
Text::_('COM_KUNENA_POWEREDBY'), '', '', '',
array('style' => 'display: inline !important; visibility: visible !important; text-decoration: none !important;')
);
$credits .= ' <a href="https://www.kunena.org"
target="_blank" rel="noopener noreferrer" style="display: inline !important; visibility: visible !important; text-decoration: none !important;">'
. Text::_('COM_KUNENA') . '</a>';

if (trim($templateText))
{
$credits .= ' :: <a href ="' . $templateLink . '" target="_blank" rel="noopener noreferrer" style="text-decoration: none;">'
. $templateText . ' ' . $templateName . '</a>';
}

$credits .= '</div>';

if (\Joomla\CMS\Plugin\PluginHelper::isEnabled('kunena', 'powered'))
{
$credits = '';
}
else
{
$styles = <<<EOF
.layout#kunena + div { display: block !important;}
#kunena + div { display: block !important;}
EOF;

KunenaTemplate::getInstance()->addStyleDeclaration($styles);
}

// Документируем // return $credits;
}

 

Вот только после обновления Kunena, всё придётся повторить.

 

Добавить комментарий
Правила добавления комментариев: Читайте правила сайта и форума.

Яндекс.Метрика

Top.Mail.Ru