mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-04 10:18: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\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
HTMLHelper::_('behavior.formvalidator');
|
||||
|
||||
|
@ -12,9 +12,9 @@ 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\Weblinks\Site\Helper\RouteHelper;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
|
@ -12,6 +12,8 @@ defined('_JEXEC') or die;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
// HTMLHelper::_('behavior.framework');
|
||||
|
||||
@ -35,7 +37,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
||||
<p> <?php echo Text::_('COM_WEBLINKS_NO_WEBLINKS'); ?></p>
|
||||
<?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')) : ?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
||||
@ -130,7 +132,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
||||
</div>
|
||||
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?>
|
||||
<?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 endif; ?>
|
||||
<?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\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
HTMLHelper::_('behavior.keepalive');
|
||||
@ -20,7 +21,7 @@ HTMLHelper::_('behavior.formvalidator');
|
||||
$captchaEnabled = false;
|
||||
$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)
|
||||
{
|
||||
|
@ -10,8 +10,9 @@
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
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">
|
||||
<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