Skip to content

Commit

Permalink
Added namespaces and replaced Jhtml for JHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoLopesPT committed Jul 26, 2017
1 parent ad91562 commit 69e9576
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions administrator/components/com_installer/tmpl/update/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

defined('_JEXEC') or die;

JHtml::_('behavior.multiselect');
\JHtml::_('behavior.multiselect');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
Expand All @@ -32,41 +32,41 @@
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<?php if (empty($this->items)) : ?>
<div class="alert alert-info alert-no-items">
<?php echo JText::_('COM_INSTALLER_MSG_UPDATE_NOUPDATES'); ?>
<?php echo \JText::_('COM_INSTALLER_MSG_UPDATE_NOUPDATES'); ?>
</div>
<?php else : ?>
<table class="table table-striped">
<thead>
<tr>
<th style="width:1%" class="nowrap">
<?php echo JHtml::_('grid.checkall'); ?>
<?php echo \JHtml::_('grid.checkall'); ?>
</th>
<th class="nowrap">
<?php echo JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'u.name', $listDirn, $listOrder); ?>
<?php echo \JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'u.name', $listDirn, $listOrder); ?>
</th>
<th class="nowrap text-center">
<?php echo JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirn, $listOrder); ?>
<?php echo \JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirn, $listOrder); ?>
</th>
<th class="nowrap text-center">
<?php echo JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirn, $listOrder); ?>
<?php echo \JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirn, $listOrder); ?>
</th>
<th class="nowrap hidden-sm-down">
<?php echo JText::_('COM_INSTALLER_CURRENT_VERSION'); ?>
<?php echo \JText::_('COM_INSTALLER_CURRENT_VERSION'); ?>
</th>
<th class="nowrap center">
<?php echo JText::_('COM_INSTALLER_NEW_VERSION'); ?>
<?php echo \JText::_('COM_INSTALLER_NEW_VERSION'); ?>
</th>
<th class="nowrap center">
<?php echo JText::_('COM_INSTALLER_CHANGELOG'); ?>
<?php echo \JText::_('COM_INSTALLER_CHANGELOG'); ?>
</th>
<th class="nowrap hidden-sm-down">
<?php echo JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirn, $listOrder); ?>
<?php echo \JHtml::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirn, $listOrder); ?>
</th>
<th class="nowrap hidden-sm-down">
<?php echo JText::_('COM_INSTALLER_HEADING_INSTALLTYPE'); ?>
<?php echo \JText::_('COM_INSTALLER_HEADING_INSTALLTYPE'); ?>
</th>
<th style="width:40%" class="nowrap hidden-sm-down">
<?php echo JText::_('COM_INSTALLER_HEADING_DETAILSURL'); ?>
<?php echo \JText::_('COM_INSTALLER_HEADING_DETAILSURL'); ?>
</th>
</tr>
</thead>
Expand All @@ -79,16 +79,16 @@
</tfoot>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<?php $client = $item->client_id ? JText::_('JADMINISTRATOR') : JText::_('JSITE'); ?>
<?php $client = $item->client_id ? \JText::_('JADMINISTRATOR') : \JText::_('JSITE'); ?>
<?php $manifest = json_decode($item->manifest_cache); ?>
<?php $current_version = isset($manifest->version) ? $manifest->version : JText::_('JLIB_UNKNOWN'); ?>
<?php $current_version = isset($manifest->version) ? $manifest->version : \JText::_('JLIB_UNKNOWN'); ?>
<tr class="row<?php echo $i % 2; ?>">
<td>
<?php echo JHtml::_('grid.id', $i, $item->update_id); ?>
<?php echo \JHtml::_('grid.id', $i, $item->update_id); ?>
</td>
<td>
<label for="cb<?php echo $i; ?>">
<span class="editlinktip hasTooltip" title="<?php echo JHtml::_('tooltipText', JText::_('JGLOBAL_DESCRIPTION'), $item->description ?: JText::_('COM_INSTALLER_MSG_UPDATE_NODESC'), 0); ?>">
<span class="editlinktip hasTooltip" title="<?php echo \JHtml::_('tooltipText', \JText::_('JGLOBAL_DESCRIPTION'), $item->description ?: \JText::_('COM_INSTALLER_MSG_UPDATE_NODESC'), 0); ?>">
<?php echo $this->escape($item->name); ?>
</span>
</label>
Expand All @@ -110,7 +110,7 @@
<button type="button" class="btn btn-info btn-xs" data-toggle="modal" data-target="#changelog_modal<?php echo $item->extension_id?>">Changelog</button>

<?php
echo Jhtml::_(
echo \JHtml::_(
'bootstrap.renderModal',
'changelog_modal' . $item->extension_id,
array(
Expand All @@ -123,7 +123,7 @@

<?php else:?>
<span>
N/A
<?php echo \JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE')?>
</span>

<?php endif; ?>
Expand All @@ -150,7 +150,7 @@
<?php endif; ?>
<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
<?php echo JHtml::_('form.token'); ?>
<?php echo \JHtml::_('form.token'); ?>
</div>
</div>
</div>
Expand Down

0 comments on commit 69e9576

Please sign in to comment.