* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\Component\Newsfeeds\Site\Helper\RouteHelper; /** @var \Joomla\Component\Newsfeeds\Administrator\View\Newsfeeds\HtmlView $this */ /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); $wa->useScript('core') ->useScript('modal-content-select'); $app = Factory::getApplication(); // @todo: Use of Function is deprecated and should be removed in 6.0. It stays only for backward compatibility. $function = $app->getInput()->getCmd('function', 'jSelectNewsfeed'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $multilang = Multilanguage::isEnabled(); ?>
$this]); ?> items)) : ?>
'icon-trash', 0 => 'icon-unpublish', 1 => 'icon-publish', 2 => 'icon-archive', ]; ?> items as $i => $item) : ?> language && $multilang) { $tag = \strlen($item->language); if ($tag == 5) { $lang = substr($item->language, 0, 2); } elseif ($tag == 6) { $lang = substr($item->language, 0, 3); } } $link = RouteHelper::getNewsfeedRoute($item->id, $item->catid, $item->language); $itemHtml = '' . $item->name . ''; ?>
, ,
id . '"' . ' data-title="' . $this->escape($item->name) . '"' . ' data-cat-id="' . $this->escape($item->catid) . '"' . ' data-uri="' . $this->escape($link) . '"' . ' data-language="' . $this->escape($lang) . '"' . ' data-html="' . $this->escape($itemHtml) . '"'; ?> onclick="if (window.parent && !window.parent.JoomlaExpectingPostMessage) window.parent.escape($function); ?>('id; ?>', 'escape(addslashes($item->name)); ?>', 'escape($item->catid); ?>', null, 'escape($link); ?>', 'escape($lang); ?>', null);"> escape($item->name); ?>
escape($item->category_title); ?>
escape($item->access_level); ?> id; ?>
pagination->getListFooter(); ?>