Example #1
0
        ?>

        <tr>
          <td class="shl-list-id">
            <?php 
        echo $this->pagination->getRowOffset($i);
        ?>
          </td>
          <td class="shl-list-check">
            <?php 
        echo $checked;
        ?>
          </td>
          <td class="shl-list-hits">
            <?php 
        echo empty($url->cpt) ? '&nbsp;' : ShlHtmlBs_Helper::badge($url->cpt, 'info');
        ?>
          </td>

          <td class="shl-list-sef">
            <?php 
        $params = array();
        $linkData = array('c' => 'editurl', 'task' => 'edit', 'cid[]' => $url->id, 'tmpl' => 'component', 'view' => 'editurl');
        $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData);
        $params['linkTitle'] = Sh404sefHelperHtml::abridge(JText::_('COM_SH404SEF_MODIFY_LINK_TITLE') . ' ' . $this->escape($url->oldurl), 'editurl');
        $modalTitle = '';
        $params['linkClass'] = 'shl-list-sef';
        $params['linkType'] = 'a';
        $name = '-editurl-' . $url->id;
        echo ShlHtmlModal_helper::modalLink($name, $this->escape($url->oldurl), $targetUrl, $sizes['editurl']['x'], $sizes['editurl']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params);
        ?>
Example #2
0
 /**
  * Create toolbar for current view
  *
  * @param midxed $params
  */
 private function _makeToolbarJ3($params = null)
 {
     // if redirect is set, no toolbar
     if (!empty($this->redirectTo)) {
         return;
     }
     // Get the JComponent instance of JToolBar
     $bar = JToolBar::getInstance('toolbar');
     // prepare configuration button
     $bar->addButtonPath(SHLIB_ROOT_PATH . 'toolbarbutton');
     // display all buttons we are supposed to display
     $buttonsGroup = array();
     $this->visibleButtonsList = array_reverse($this->visibleButtonsList);
     foreach ($this->visibleButtonsList as $buttonType) {
         $button = array();
         switch ($buttonType) {
             case 'next':
                 $button['type'] = 'primary';
                 $button['onclick'] = "Joomla.submitbutton('next');";
                 break;
             case 'previous':
                 $button['type'] = '';
                 $button['onclick'] = "Joomla.submitbutton('previous');";
                 break;
             case 'terminate':
                 $button['type'] = 'success';
                 $button['onclick'] = "Joomla.submitbutton('terminate');";
                 break;
             case 'cancel':
                 $button['type'] = '';
                 $button['onclick'] = "Joomla.submitbutton('cancel');";
                 break;
         }
         $button['size'] = 'large';
         $button['text'] = JText::_('COM_SH404SEF_WIZARD_' . strtoupper($buttonType));
         // build a list of buttons
         // store button in button group
         $buttonsGroup[] = array($button);
     }
     $bar = ShlHtmlBs_Helper::buttonsToolbar($buttonsGroup);
     return $bar;
 }
Example #3
0
}
$data->tip = !$this->canEditNewUrl || $this->noUrlEditing ? '' : JText::_('COM_SH404SEF_TT_NEWURL');
echo $this->layoutRenderer['custom']->render($data);
// canonical
$data = new stdClass();
$data->name = 'canonical';
$data->label = JText::_('COM_SH404SEF_CANONICAL');
if ($this->noUrlEditing) {
    $data->input = $this->escape($this->meta->canonical);
} else {
    $data->input = '<input type="text" name="canonical" id="canonical" size="90" value="' . $this->escape($this->meta->canonical) . '" />';
}
$data->tip = $this->noUrlEditing ? '' : JText::_('COM_SH404SEF_TT_CANONICAL');
echo $this->layoutRenderer['custom']->render($data);
// shurl
$data = new stdClass();
$data->name = 'shurl';
$data->label = JText::_('COM_SH404SEF_PAGE_ID');
$data->input = ShlHtmlBs_Helper::badge($this->escape($this->pageid->pageid), 'info');
$data->tip = '';
echo $this->layoutRenderer['custom']->render($data);
// QR code
$data = new stdClass();
$data->name = 'qrcode';
$data->label = 'QR code';
$data->input = '<img src="http://chart.apis.google.com/chart?chs=130x130&cht=qr&chld=L|0&chl=' . urlencode($this->qrCodeUrl) . '" alt="QR code" width="130" height="130">';
$data->tip = '';
echo $this->layoutRenderer['custom']->render($data);
?>
</div>
Example #4
0
    ?>
			</td>
			<td >
      			<?php 
    echo ShlHtmlBs_Helper::label($this->updates->statusMessage, $this->updates->shouldUpdate ? 'important' : 'success');
    ?>
      		</td>
		</tr>
	</thead>
	<?php 
    if ($this->updates->shouldUpdate) {
        ?>
	<tr>
	   <td class="span4 shl-right">
	     <?php 
        echo ShlHtmlBs_Helper::label(JText::_('COM_SH404SEF_AVAILABLE_VERSION'), 'important');
        ?>
	   </td>
	   <td>
	   <?php 
        if (!empty($this->updates->current)) {
            echo $this->updates->current . ' [' . '<a target="_blank" href="' . $this->escape($this->updates->changelogLink) . '" >' . JText::_('COM_SH404SEF_VIEW_CHANGELOG') . '</a>]' . '&nbsp[' . '<a target="_blank" href="' . $this->escape($this->updates->downloadLink) . '" >' . JText::_('COM_SH404SEF_GET_IT') . '</a>]';
        }
        ?>
     </td>
	</tr>
	<tr>
     <td class="shl-right">
       <?php 
        echo JText::_('COM_SH404SEF_NOTES');
        ?>
Example #5
0
<?php

/**
 * @package		Joomla.Administrator
 * @subpackage	com_config
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
/**
 * This layout displays message or error, insde a bootstrap alert box
 */
if (!empty($displayData->message)) {
    echo ShlHtmlBs_Helper::alert($displayData->message, $type = 'success', $dismiss = true);
}
$error = $displayData->getError();
if (!empty($error)) {
    echo ShlHtmlBs_Helper::alert($error, $type = 'error', $dismiss = true);
}
Example #6
0
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @version     4.1.0.1559
 * @date		2013-04-25
 */
// 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.');
}
?>
<div id="sh404sef-popup" class="sh404sef-popup">

<div class="shmodal-toolbar row-fluid" id="shmodal-toolbar">
<div class="alert alert-success shmodal-toolbar-wrapper">
<div class="shmodal-toolbar-text">
<?php 
$title = ShlHtmlBs_Helper::label($this->escape(Sh404sefHelperHtml::abridge($this->url->oldurl, 'editurl')), 'info', $dismiss = false, 'label-large');
echo JText::_('COM_SH404SEF_NOT_FOUND_ENTER_REDIRECT_FOR') . ' ' . $title;
?>
</div>
<div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons">
	<button class="btn btn-primary" type="button" onclick="Joomla.submitform('save', document.adminForm);">
		<i class="icon-apply icon-white"> </i>
				<?php 
echo JText::_('JSAVE');
?>
	</button>
	<button class="btn" type="button"  onclick="<?php 
echo JRequest::getBool('refresh', 0) ? 'window.parent.location.href=window.parent.location.href;' : '';
?>
  window.parent.shlBootstrap.closeModal();">
				<?php 
Example #7
0
            echo ShlHtmlModal_helper::modalLink($name, $anchor, $targetUrl, Sh404sefFactory::getPConfig()->windowSizes['duplicates']['x'], Sh404sefFactory::getPConfig()->windowSizes['duplicates']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params);
        }
        ?>
          </td>
          <td class="center">
            <?php 
        if (empty($url->aliases)) {
            echo '&nbsp;';
        } else {
            $params = array();
            $linkData = array('c' => 'editurl', 'task' => 'edit', 'cid[]' => $url->id, 'tmpl' => 'component', 'startOffset' => 2);
            $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData);
            $modalTitle = '';
            $params['linkTitle'] = 'Has ' . $url->aliases . ' alias(es)';
            $name = '-editurlaliases-' . $url->id;
            $anchor = ShlHtmlBs_Helper::badge($url->aliases, 'info');
            echo ShlHtmlModal_helper::modalLink($name, $anchor, $targetUrl, Sh404sefFactory::getPConfig()->windowSizes['editurl']['x'], Sh404sefFactory::getPConfig()->windowSizes['editurl']['y'], $top = 0, $left = 0, $onClose = '', $modalTitle, $params);
        }
        ?>
          </td>
          <td class="center">
            <?php 
        echo $custom;
        ?>
          </td>
        </tr>
        <?php 
        $k = 1 - $k;
    }
} else {
    ?>
Example #8
0
}
?>
<div class="sh404sef-popup" id="sh404sef-popup">

<?php 
echo ShlMvcLayout_Helper::render('com_sh404sef.general.message_block', $this);
?>

<form action="index.php" method="post" name="adminForm" id="adminForm" class="form-validate form-horizontal">

  <div class="row-fluid">

  <div>
  <?php 
if (!empty($this->mainText)) {
    echo ShlHtmlBs_Helper::alert($this->mainText, $textClass, $dismiss = false);
}
?>
  </div>

  <div class="shmodal-toolbar-buttons ">
  	<button class="btn shl-left-separator" type="button"  onclick="window.parent.shlBootstrap.closeModal();">
		<?php 
echo JText::_('JCANCEL');
?>
	</button>
	<button class="btn btn-large shl-left-separator <?php 
echo $buttonClass;
?>
" type="button" onclick="Joomla.submitform('<?php 
echo $this->task;
Example #9
0
?>

<div class="sh404sef-secstats" id="sh404sef-secstats">

<!-- start security stats panel markup -->
<?php 
echo ShlMvcLayout_Helper::render('com_sh404sef.general.message_block', $this);
?>
    <table class="table table-striped">

      <tr>
        <th class="cpanel" colspan="3"><?php 
echo JText::_('COM_SH404SEF_SEC_STATS_TITLE') . ': ';
if ($this->sefConfig->shSecEnableSecurity) {
    echo $this->shSecStats['curMonth'];
    echo ' <a href="javascript: void(0);" onclick="javascript: shSetupSecStats(\'updatesecstats\');" >' . ShlHtmlBs_Helper::button(JText::_('COM_SH404SEF_SEC_STATS_UPDATE'), $type = '', $size = 'small') . '</a>';
    echo '<small> (' . $this->shSecStats['lastUpdated'] . ')</small>';
    echo '<div class=\'sh-ajax-loading\'></div>';
} else {
    echo JText::_('COM_SH404SEF_SEC_DEACTIVATED');
}
?>
</th>
      </tr>
      <tr>
        <td ><b><?php 
echo JText::_('COM_SH404SEF_TOTAL_ATTACKS');
?>
</b></td>
        <td class="shl-centered"><b><?php 
echo $this->shSecStats['totalAttacks'];
Example #10
0
        $targetUrl = Sh404sefHelperGeneral::buildUrl($linkData);
        $params['linkTitle'] = Sh404sefHelperHtml::abridge(JText::_('COM_SH404SEF_MODIFY_LINK_TITLE') . ' ' . $this->escape($url->oldurl), 'editurl');
        $modalTitle = '';
        $name = '-editurl-' . $url->id;
        $params['linkClass'] = 'shl-list-sef';
        $params['linkType'] = 'a';
        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) ? $nonSefUrl : $url->oldurl);
        echo '&nbsp;<a href="' . $this->escape($link) . '" target="_blank" title="' . JText::_('COM_SH404SEF_PREVIEW') . ' ' . $this->escape($link) . '">';
        echo '<img src=\'components/com_sh404sef/assets/images/external-black.png\' border=\'0\' alt=\'' . JText::_('COM_SH404SEF_PREVIEW') . '\' />';
        echo '</a>';
        // attach an input counter to the title input boxes
        echo ShlHtmlBs_Helper::renderInputCounter('metatitle' . $url->id, Sh404sefFactory::getPConfig()->metaDataSpecs['metatitle']);
        echo ShlHtmlBs_Helper::renderInputCounter('metadesc' . $url->id, Sh404sefFactory::getPConfig()->metaDataSpecs['metadesc']);
        ?>
          </td>

          <td class="center">
            	<textarea class="text_area" id="metatitle<?php 
        echo $url->id;
        ?>
" name="metatitle[<?php 
        echo $url->id;
        ?>
]" cols="40" rows="5"><?php 
        echo $this->escape($url->metatitle);
        ?>
</textarea>
          </td>
Example #11
0
    </div>

    <?php 
echo JHtml::_('bootstrap.endPanel');
echo JHtml::_('bootstrap.addPanel', 'content-pane', 'infos');
?>
    <table class="table table-bordered">
      <thead>
        <tr>
          <td class="span4 shl-right"><?php 
echo JText::_('COM_SH404SEF_INSTALLED_VERS');
?>
</td>
          <td><?php 
if (!empty($this->sefConfig)) {
    echo ShlHtmlBs_Helper::label($this->sefConfig->version, 'info');
} else {
    echo 'Please review and save configuration first';
}
?>
</td>
        </tr>
      </thead>
      <tr>
        <td class="shl-right"><?php 
echo JText::_('COM_SH404SEF_COPYRIGHT');
?>
</td>
        <td><a href="http://anything-digital.com/sh404sef/seo-analytics-and-security-for-joomla.html">&copy; 2006-<?php 
echo date('Y');
?>
Example #12
0
            	<div class="span12 shl-center">
                <?php 
echo JText::_('COM_SH404SEF_ANALYTICS_AVG_MEMORY_USED');
?>
&nbsp;
                </div>
                <div class="span12 shl-center">
                  <?php 
echo ShlHtmlBs_Helper::badge($this->escape(sprintf('%0.1f', $this->analytics->analyticsData->perf->avgMemoryUsed)) . ' Mb', 'info');
?>
                </div>
            </div>

          <div class="span4" rel="tooltip" <?php 
echo Sh404sefHelperHtml::wrapBootstrapTipTitle(JText::_('COM_SH404SEF_ANALYTICS_USER_STATUS'), JText::_('COM_SH404SEF_ANALYTICS_TT_USER_STATUS'));
?>
>
                <div class="span12 shl-center">
                <?php 
echo JText::_('COM_SH404SEF_ANALYTICS_USER_STATUS');
?>
&nbsp;
                </div>
                <div class="span12 shl-center">
                  <?php 
echo ShlHtmlBs_Helper::badge($this->escape(sprintf('%0.1f', $this->analytics->analyticsData->perf->loggedInUserRate * 100)) . ' %', 'info');
?>
                </div>
			</div>
	</div>
Example #13
0
    ?>

 	<div class="row-fluid">

	<div id="shl-sidebar-container" class="span3">
		<?php 
    echo $this->sidebar;
    ?>
		<div class="row"></div>
		<div id="analyticscontent_headers"></div>
	</div>

	<div class="span9">
	<?php 
    if (!empty($this->message)) {
        echo ShlHtmlBs_Helper::alert($this->message, $type = 'info', $dismiss = true);
    }
    echo $this->loadTemplate($this->joomlaVersionPrefix . '_' . $this->options['report']);
    ?>
	  </div>
	</div>
	<?php 
} else {
    // this is one of the ajax calls to fetch one of the bits making up the reports
    // headers, global, visits, perf, top5referrers, top5urls
    // if there was an error while fetching data (due to credentials not set for instance)
    // we don't display anything, except for the 'headers' request, which is
    // precisely the template where the 'error' or information message
    // will be displayed
    if (!empty($this->analytics->status) || $this->options['subrequest'] == 'headers') {
        echo $this->loadTemplate($this->joomlaVersionPrefix . '_' . $this->options['subrequest']);
Example #14
0
 * @version     4.1.0.1559
 * @date  2013-04-25
 */
// No direct access
defined('_JEXEC') or die;
jimport('joomla.html.html.bootstrap');
JHtml::_('formbehavior.chosen', 'select');
// insert custom stylesheet
JFactory::getDocument()->addStyleSheet(JURI::base() . 'components/com_sh404sef/assets/css/configuration.css');
?>

<div class="shmodal-toolbar row-fluid" id="shmodal-toolbar">
<div class="alert alert-success shmodal-toolbar-wrapper">
<div class="shmodal-toolbar-text">
<?php 
echo ShlHtmlBs_Helper::label(Sh404sefHelperHtml::abridge(JText::_('COM_SH404SEF_TITLE_CONFIG'), 'configuration'), 'info', $dismiss = false, 'label-large');
?>
</div>

<div class="shmodal-toolbar-buttons" id="shmodal-toolbar-buttons">
	<button class="btn btn-primary" type="button" onclick="Joomla.submitform('saveconfiguration', document.adminForm);">
			<i class="icon-apply icon-white"> </i>
				<?php 
echo JText::_('JSAVE');
?>
	</button>
	<button class="btn" type="button"  onclick="<?php 
echo JRequest::getBool('refresh', 0) ? 'window.parent.location.href=window.parent.location.href;' : '';
?>
  window.parent.shlBootstrap.closeModal();">
		<?php 
Example #15
0
$alertType = empty($this->analytics->status) ? 'alert-warning' : 'alert-success';
if ($this->options['showFilters'] == 'yes') {
    ?>
	<h4 class="page-header">&nbsp;</h4>
<?php 
}
?>

<div class="alert <?php 
echo $alertType;
?>
">
<div class="row-fluid">
    <?php 
$allFilters = $this->options['showFilters'] == 'yes';
echo '<a href="javascript: void(0);" onclick="javascript: shSetupAnalytics({forced:1' . ($allFilters ? '' : ',showFilters:\'no\'') . '});" > ' . ShlHtmlBs_Helper::button(JText::_('COM_SH404SEF_CHECK_ANALYTICS'), 'primary') . '</a>';
?>
</div>
<div class="row-fluid">
	<?php 
echo '  ' . (empty($this->analytics->status) ? JText::_('COM_SH404SEF_ERROR_CHECKING_ANALYTICS') : $this->escape($this->analytics->statusMessage));
?>
</div>

<div class="row-fluid">
    <?php 
if (!empty($this->analytics->status)) {
    echo $this->loadTemplate($this->joomlaVersionPrefix . '_filters');
}
?>
</div>
Example #16
0
          <td class="shl-list-id" >
            <?php 
        echo $this->pagination->getRowOffset($i);
        ?>
          </td>

          <td class="shl-list-check" >
            <?php 
        echo $checked;
        ?>
          </td>

          <td class="shl-list-shurl">
            <?php 
        echo empty($url->pageid) ? '' : ShlHtmlBs_Helper::badge($this->escape($url->pageid), 'info');
        ?>
          </td>

          <td class="shl-list-sef">
            <?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);
Example #17
0
        ?>
          </td>
          <td class="shl-list-icon">
            <?php 
        echo $mainUrl;
        ?>
          </td>

          <td class="shl-list-nonsef">
            <?php 
        echo $this->escape($url->newurl);
        ?>
          </td>
          <td class="shl-list-icon">
            <?php 
        echo empty($url->aliases) ? '&nbsp;' : ShlHtmlBs_Helper::badge($url->aliases, 'info');
        ?>
          </td>
          <td class="shl-list-icon">
            <?php 
        echo $custom;
        ?>
          </td>
        </tr>
        <?php 
        $k = 1 - $k;
    }
    ?>
      </tbody>
    </table>
      <?php