mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-04 18:28:25 +00:00
Convert remaining J classes to namespace
This commit is contained in:
parent
a2ca619d87
commit
269b6f0bbf
@ -12,8 +12,8 @@ defined('_JEXEC') or die;
|
|||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\HTML\HTMLHelper;
|
use Joomla\CMS\HTML\HTMLHelper;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\Router\Route;
|
|
||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
|
use Joomla\CMS\Router\Route;
|
||||||
|
|
||||||
HTMLHelper::_('behavior.formvalidator');
|
HTMLHelper::_('behavior.formvalidator');
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@ use Joomla\CMS\Factory;
|
|||||||
use Joomla\CMS\HTML\HTMLHelper;
|
use Joomla\CMS\HTML\HTMLHelper;
|
||||||
use Joomla\CMS\Language\Multilanguage;
|
use Joomla\CMS\Language\Multilanguage;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
|
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
|
||||||
use Joomla\CMS\Layout\LayoutHelper;
|
|
||||||
|
|
||||||
$app = Factory::getApplication();
|
$app = Factory::getApplication();
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ defined('_JEXEC') or die;
|
|||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\HTML\HTMLHelper;
|
use Joomla\CMS\HTML\HTMLHelper;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\Layout\FileLayout;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
// HTMLHelper::_('behavior.framework');
|
// HTMLHelper::_('behavior.framework');
|
||||||
|
|
||||||
@ -35,7 +37,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
<p> <?php echo Text::_('COM_WEBLINKS_NO_WEBLINKS'); ?></p>
|
<p> <?php echo Text::_('COM_WEBLINKS_NO_WEBLINKS'); ?></p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||||
<?php if ($this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) : ?>
|
<?php if ($this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) : ?>
|
||||||
<fieldset class="filters btn-toolbar">
|
<fieldset class="filters btn-toolbar">
|
||||||
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
||||||
@ -130,7 +132,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
</div>
|
</div>
|
||||||
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?>
|
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?>
|
||||||
<?php if ($this->params->get('show_tags', 1)) : ?>
|
<?php if ($this->params->get('show_tags', 1)) : ?>
|
||||||
<?php $this->category->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
<?php $this->category->tagLayout = new FileLayout('joomla.content.tags'); ?>
|
||||||
<?php echo $this->category->tagLayout->render($tagsData); ?>
|
<?php echo $this->category->tagLayout->render($tagsData); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?>
|
<?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?>
|
||||||
|
@ -12,6 +12,7 @@ defined('_JEXEC') or die;
|
|||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\HTML\HTMLHelper;
|
use Joomla\CMS\HTML\HTMLHelper;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\Plugin\PluginHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
|
|
||||||
HTMLHelper::_('behavior.keepalive');
|
HTMLHelper::_('behavior.keepalive');
|
||||||
@ -20,7 +21,7 @@ HTMLHelper::_('behavior.formvalidator');
|
|||||||
$captchaEnabled = false;
|
$captchaEnabled = false;
|
||||||
$captchaSet = $this->params->get('captcha', Factory::getApplication()->get('captcha', '0'));
|
$captchaSet = $this->params->get('captcha', Factory::getApplication()->get('captcha', '0'));
|
||||||
|
|
||||||
foreach (JPluginHelper::getPlugin('captcha') as $plugin)
|
foreach (PluginHelper::getPlugin('captcha') as $plugin)
|
||||||
{
|
{
|
||||||
if ($captchaSet === $plugin->name)
|
if ($captchaSet === $plugin->name)
|
||||||
{
|
{
|
||||||
|
@ -10,8 +10,9 @@
|
|||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\String\PunycodeHelper;
|
||||||
|
|
||||||
$weblinkUrl = JStringPunycode::urlToUTF8($this->item->url);
|
$weblinkUrl = PunycodeHelper::urlToUTF8($this->item->url);
|
||||||
?>
|
?>
|
||||||
<div class="item-page">
|
<div class="item-page">
|
||||||
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? Factory::getConfig()->get('language') : $this->item->language; ?>" />
|
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? Factory::getConfig()->get('language') : $this->item->language; ?>" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user