File Manager

Current Directory: /home/astoriaah/www/administrator/components/com_sh404sef/views/hitdetails/tmpl
Viewing File: /home/astoriaah/www/administrator/components/com_sh404sef/views/hitdetails/tmpl/default_j3.php
<?php /** * sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier - Weeblr llc - 2022 * @package sh404SEF * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.24.1.4308 * @date 2022-05-31 */ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) { die('Direct Access to this location is not allowed.'); } jimport('joomla.html.html.bootstrap'); JHtml::_('formbehavior.chosen', 'select'); $liveSite = Sh404sefFactory::getPageInfo()->getDefaultFrontLiveSite(); ?> <div class="sh404sef-popup" id="sh404sef-popup"> <div class="shmodal-toolbar row-fluid wbl-theme-default" id="shmodal-toolbar"> <div class="shmodal-toolbar-wrapper"> <div class="shmodal-toolbar-text"> <?php echo JText::_('COM_SH404SEF_HIT_DETAILS_FOR') . ' ' . ShlHtmlBs_Helper::label(Sh404sefHelperHtml::abridge($this->escape($this->url->requested_url), 'editurl'), 'info', $dismiss = false, 'label-large'); ?> </div> <div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons"> <?php if ($this->itemCount > 0) : $message = JText::_('COM_SH404SEF_CONFIRM_PURGE_HITS_DETAILS', true); $onclick = "javascript: if(confirm('$message')) { Joomla.submitform('purgedetails', document.adminForm); }"; ?> <button class="btn btn-primary" type="button" onclick="<?php echo $onclick; ?>"> <i class="icon-publish icon-white"> </i> <?php echo JText::_('COM_SH404SEF_HIT_DETAILS_PURGE'); ?></button> <?php endif; ?> <button class="btn" type="button" onclick="<?php echo JFactory::getApplication()->input->getBool('refresh', 0) ? 'window.parent.location.href=window.parent.location.href;' : ''; ?> window.parent.shlBootstrap.closeModal();"> <?php echo JText::_('JTOOLBAR_CLOSE'); ?> </button> </div> </div> </div> <div class="shmodal-content wbl-theme-default" id="shmodal-content"> <form method="post" action="index.php" name="adminForm" id="adminForm" class="form-validate form-horizontal"> <div class="row-fluid"> <div class="shl-fixed shl-modal-searchbar-wrapper shl-left-separator"> <div class="span2 hidden-phone shl-hidden-low-width"></div> <div id="shl-modal-searchbar-right-block" class="span10"> <?php echo ShlMvcLayout_Helper::render('com_sh404sef.filters.search_all', $this->options); echo ShlMvcLayout_Helper::render('com_sh404sef.filters.limit_box', $this->pagination); echo '<div class="pull-right hidden-phone">' . $this->pagination->getListFooter() . '</div>'; ?> </div> </div> <div id="shl-sidebar-container" class="shl-fixed span2"> <?php echo ShlMvcLayout_Helper::render('com_sh404sef.submenus.filters', JHtml::_('sidebar.getFilters')); ?> </div> <div class="shl-modal-list-wrapper shl-left-separator"> <div class="span2 hidden-phone"></div> <div class="span10"> <?php // possible errors and success messages echo ShlMvcLayout_Helper::render('com_sh404sef.general.message_block', $this); if (!empty($this->alertMsg)) { echo ShlHtmlBs_Helper::alert($this->alertMsg, 'info', $dismiss = false, 'alert-centered'); } ?> <div id="sh-message-box"></div> <?php if ($this->itemCount > 0) { ?> <table class="table table-striped shl-hit-details table-bordered"> <thead> <tr> <th class="shl-list-id">&nbsp; </th> <?php if ($this->options->filter_collapse == Sh404sefHelperGeneral::COLLAPSE_NONE): ?> <th class="center"> <?php echo JHTML::_('grid.sort', JText::_('JDATE'), 'datetime', $this->options->filter_order_Dir, $this->options->filter_order); ?> </th> <?php else: ?> <th class="center"> <?php echo JHTML::_('grid.sort', JText::_('COM_SH404SEF_HITS'), 'hits', $this->options->filter_order_Dir, $this->options->filter_order); ?> </th> <?php endif; ?> <?php if ($this->request_type == Sh404sefModelReqrecorder::REQUEST_404): ?> <th class="center"><?php echo JText::_('COM_SH404SEF_HIT_TYPE_INTERNAL'); ?> </th> <?php endif; ?> <th class=""> <?php echo JHTML::_('grid.sort', JText::_('COM_SH404SEF_HIT_DETAILS_REFERRER'), 'referrer', $this->options->filter_order_Dir, $this->options->filter_order); ?> </th> <th class="center"> <?php echo JText::_('COM_SH404SEF_HIT_DETAILS_IP'); ?> </th> </tr> </thead> <tbody> <?php $k = 0; for ($i = 0; $i < $this->itemCount; $i++) { $record = $this->items[$i]; ?> <tr> <td class="shl-list-id"> <?php echo $this->pagination->getRowOffset($i); ?> </td> <?php if ($this->options->filter_collapse == Sh404sefHelperGeneral::COLLAPSE_NONE): ?> <td class="shl-list-datetime"> <?php echo $this->items[$i]->datetime; ?> </td> <?php else: ?> <td class="shl-list-hits"> <?php echo empty($this->items[$i]->hits) ? '&nbsp;' : ShlHtmlBs_Helper::badge($this->items[$i]->hits, 'info'); ?> </td> <?php endif; ?> <?php if ($this->request_type == Sh404sefModelReqrecorder::REQUEST_404): ?> <td class="shl-list-request-type"> <?php $txt = $this->items[$i]->type == Sh404sefHelperUrl::IS_INTERNAL ? ShlHtmlBs_Helper::iconglyph('', 'thumbs-down') : ''; echo empty($txt) ? '&nbsp;' : ShlHtmlBs_Helper::badge($txt, 'warning', JText::_('COM_SH404SEF_HIT_TYPE_INTERNAL_404_TITLE')); ?> </td> <?php endif; ?> <td class="shl-list-referrer"> <span class=""> <?php if (JString::strpos($this->items[$i]->referrer, $liveSite) === 0) { $this->items[$i]->referrer = '/' . str_replace(JURI::root(), '', $this->items[$i]->referrer); } echo $this->escape($this->items[$i]->referrer); ?> </span> </td> <td class="shl-list-ip-address"> <span class=""><?php echo $this->escape($this->items[$i]->ip_address); ?></span> </td> </tr> <?php if ($this->options->filter_collapse == Sh404sefHelperGeneral::COLLAPSE_NONE || $this->options->filter_collapse == Sh404sefHelperGeneral::COLLAPSE_BY_USER_AGENT ): ?> <tr> <td colspan="6"> <div class="muted shl-hit-details-subrecord"> <small> <span class="shl-hit-details-sub-title"><?php echo JText::_('COM_SH404SEF_HIT_DETAILS_USER_AGENT'); ?> :&nbsp;</></span> <span class="shl-hit-details-sub-data"><?php echo $this->escape($this->items[$i]->user_agent); ?></span> </small> </div> <?php if ($this->options->filter_collapse != Sh404sefHelperGeneral::COLLAPSE_BY_USER_AGENT && ($this->request_type == Sh404sefModelReqrecorder::REQUEST_ALIAS || $this->request_type == Sh404sefModelReqrecorder::REQUEST_SHURL) && !empty($this->items[$i]->target) ) : ?> <div class="muted shl-hit-details-subrecord"> <small> <span class="shl-hit-details-sub-title"><?php echo JText::_('COM_SH404SEF_HIT_DETAILS_REDIRECT_TARGET'); ?> :&nbsp;</span> <span class="shl-hit-details-sub-data"> <?php if (JString::strpos($this->items[$i]->target, $liveSite) === 0) { $this->items[$i]->target = '/' . str_replace(JURI::root(), '', $this->items[$i]->target); } echo $this->escape($this->items[$i]->target); ?> </span> </small> </div> <?php endif; ?> </td> </tr> <?php endif; $k = 1 - $k; } ?> </tbody> </table> <?php } else { echo '<br /><div class="alert alert-info">' . JText::_('COM_SH404SEF_NO_DETAILS_RECORDED') . '</div>'; } ?> </div> <input type="hidden" name="c" value="hitdetails"/> <input type="hidden" name="view" value="hitdetails"/> <input type="hidden" name="option" value="com_sh404sef"/> <input type="hidden" name="format" value="html"/> <input type="hidden" name="task" value=""/> <input type="hidden" name="boxchecked" value="0"/> <input type="hidden" name="hidemainmenu" value="0"/> <input type="hidden" name="filter_order" value="<?php echo $this->options->filter_order; ?>"/> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->options->filter_order_Dir; ?>"/> <input type="hidden" name="tmpl" value="component"/> <input type="hidden" name="url_id" value="<?php echo $this->url->id; ?>"/> <input type="hidden" name="request_type" value="<?php echo $this->request_type; ?>"/> <?php echo JHTML::_('form.token'); ?> </div> </div> </form> </div> </div>