<tr> <td colspan="5"> <?php echo '<div id="shl-bottom-pagination-container">' . $this->pagination->getListFooter() . '</div>'; ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; if ($this->itemCount > 0) { for ($i = 0; $i < $this->itemCount; $i++) { $url =& $this->items[$i]; $checked = JHtml::_('grid.id', $i, $url->pageidid); $custom = !empty($url->newurl) && $url->dateadd != '0000-00-00' ? ShlHtmlBs_Helper::iconglyph('', 'wrench', JText::_('COM_SH404SEF_CUSTOM_URL_LINK_TITLE')) : ' '; ?> <tr> <td class="shl-list-id" > <?php echo $this->pagination->getRowOffset($i); ?> </td> <td class="shl-list-check" > <?php echo $checked; ?> </td>
<?php echo $this->escape($url->newurl); ?> </td> <td class="center"> <?php if (empty($url->metas)) { echo ' '; } else { $params = array(); $linkData = array('c' => 'editurl', 'task' => 'edit', 'cid[]' => $url->id, 'tmpl' => 'component', 'startOffset' => 1); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); $params['linkTitle'] = JText::_('COM_SH404SEF_HAS_META_LINK_TITLE'); $modalTitle = ''; $name = '-editurlmeta-' . $url->id; echo ShlHtmlModal_helper::modalLink($name, ShlHtmlBs_Helper::iconglyph('', 'tags'), $targetUrl, Sh404sefFactory::getPConfig()->windowSizes['editurl']['x'], Sh404sefFactory::getPConfig()->windowSizes['editurl']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); } ?> </td> <td class="center"> <?php if ($this->slowServer) { $params = array(); $linkData = array('c' => 'duplicates', 'cid[]' => $url->id, 'tmpl' => 'component'); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); $modalTitle = ''; $params['linkTitle'] = $url->rank == 0 ? JText::_('COM_SH404SEF_IS_A_MAIN_URL') : JText::_('COM_SH404SEF_IS_DUPLICATE'); $name = '-editurlduplicates-' . $url->id; $anchor = ShlHtmlBs_Helper::badge($url->rank == 0 ? '[<strong>+++</strong>]' : '++', 'warning'); echo ShlHtmlModal_helper::modalLink($name, $anchor, $targetUrl, Sh404sefFactory::getPConfig()->windowSizes['duplicates']['x'], Sh404sefFactory::getPConfig()->windowSizes['duplicates']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); }