<?php echo '<input type="hidden" name="metaid[' . $url->id . ']" value="' . (empty($url->metaid) ? 0 : $url->metaid) . '" />'; echo '<input type="hidden" name="newurls[' . $url->id . ']" value="' . (empty($url->nonsefurl) ? '' : $this->escape($url->nonsefurl)) . '" />'; // link to full meta edit $anchor = empty($url->oldurl) ? '(-)' : $this->escape($url->oldurl); $anchor .= '<br/><i>(' . $this->escape($url->nonsefurl) . ')</i>'; $params = array(); $linkData = array('c' => 'editurl', 'task' => 'edit', 'view' => 'editurl', 'startOffset' => '1', 'cid[]' => $url->id, 'tmpl' => 'component'); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); $displayedUrl = empty($url->oldurl) ? $url->nonsefurl : $url->oldurl; $params['linkTitle'] = JText::_('COM_SH404SEF_MODIFY_META_TITLE') . ' ' . $this->escape($displayedUrl); $modalTitle = ''; $params['linkClass'] = 'shl-list-sef'; $params['linkType'] = 'a'; $name = '-editurl-' . $url->id; echo ShlHtmlModal_helper::modalLink($name, $anchor, $targetUrl, Sh404sefFactory::getPConfig()->windowSizes['editurl']['x'], Sh404sefFactory::getPConfig()->windowSizes['editurl']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); // small preview icon $sefConfig =& Sh404sefFactory::getConfig(); $link = JURI::root() . ltrim($sefConfig->shRewriteStrings[$sefConfig->shRewriteMode], '/') . (empty($url->oldurl) ? $url->nonsefurl : $url->oldurl); echo ' <a href="' . $this->escape($link) . '" target="_blank" title="' . JText::_('COM_SH404SEF_PREVIEW') . ' ' . $this->escape($url->oldurl) . '">'; echo '<img src=\'components/com_sh404sef/assets/images/external-black.png\' border=\'0\' alt=\'' . JText::_('COM_SH404SEF_PREVIEW') . '\' />'; echo '</a>'; ?> </td> <td class="shl-list-icon"> <?php echo $custom; ?> </td>
$params['linkTitle'] = JText::_('COM_SH404SEF_NOT_FOUND_SHOW_URLS_TITLE') . ' ' . $this->escape($url->oldurl); $params['linkClass'] = 'btn'; $name = '-editsefredirect-' . $url->id; echo ShlHtmlModal_helper::modalLink($name, JText::_('COM_SH404SEF_NOT_FOUND_SHOW_URLS'), $targetUrl, $sizes['selectredirect']['x'], $sizes['selectredirect']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); ?> </td> <td class="center"> <?php $params = array(); $linkData = array('c' => 'editnotfound', 'notfound_url_id' => $url->id, 'task' => 'newredirect', 'tmpl' => 'component'); $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData); //$modalTitle = JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT'); $modalTitle = ''; $params['linkTitle'] = JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT_TITLE') . ' ' . $this->escape($url->oldurl); $name = '-enterredirect-' . $url->id; echo ShlHtmlModal_helper::modalLink($name, JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT'), $targetUrl, $sizes['enterredirect']['x'], $sizes['enterredirect']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params); ?> </td> </tr> <?php $k = 1 - $k; } } else { ?> <tr> <td class="center shl-middle" colspan="6"> <?php echo JText::_('COM_SH404SEF_NO_URL'); ?> </td> </tr>