| Current Path : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/views/crawl/tmpl/ |
| Current File : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/views/crawl/tmpl/default.php |
<?php
/*
* Copyright (c) 2017-2019 Aimy Extensions, Netzum Sorglos Software GmbH
* Copyright (c) 2014-2017 Aimy Extensions, Lingua-Systems Software GmbH
*
* https://www.aimy-extensions.com/
*
* License: GNU GPLv2, see LICENSE.txt within distribution and/or
* https://www.aimy-extensions.com/software-license.html
*/
defined( '_JEXEC' ) or die(); try { JHtml::_( 'jquery.framework' ); JHtml::_( version_compare( JVERSION, '3.3.0', 'lt' ) ? 'behavior.framework' : 'behavior.core' ); } catch ( Exception $e ) { } $i18n = array( 'crawling' => JText::_( 'AIMY_SM_CRAWLING' ), 'dont_close' => JText::_( 'AIMY_SM_MSG_DONT_CLOSE' ), 'manage' => JText::_( 'AIMY_SM_MSG_DO_MANAGE' ), 'errors' => JText::_( 'AIMY_SM_MSG_ERRORS' ), 'added' => JText::_( 'AIMY_SM_MSG_CRAWL_ADDED' ), 'deleted' => JText::_( 'AIMY_SM_MSG_CRAWL_DELETED' ), 'updated' => JText::_( 'AIMY_SM_MSG_CRAWL_UPDATED' ), 'no_updates' => JText::_( 'AIMY_SM_MSG_NO_UPDATES' ), 'finished' => JText::_( 'AIMY_SM_MSG_CRAWL_FINISHED' ), 'init' => JText::_( 'AIMY_SM_MSG_CRAWL_INIT' ), 'abort_first' => JText::_( 'AIMY_SM_MSG_CRAWL_ABORT_FIRST' ), 'retry' => JText::_( 'AIMY_SM_MSG_CRAWL_RETRY' ), 'userabort' => JText::_( 'AIMY_SM_MSG_CRAWL_USERABORT' ) ); ?>
<div id="j-main-container" class="j-main-container clearfix">
<?php if ( $this->allow_crawl ) : ?>
<form action="<?php
echo JRoute::_( 'index.php?option=com_aimysitemap&view=crawl' ); ?>" method="post" name="adminForm" id="adminForm">
<input type="hidden" name="task" value="" />
<?php echo JHtml::_( 'form.token' ); ?>
</form>
<div id="crawl-hint">
<img src="../media/com_aimysitemap/go-up_32x32.png" width="32" height="32"
alt="go up" class="pull-left skip-right" />
<h1><?php echo JText::_( 'AIMY_SM_CRAWL_HINT_HEADING' ); ?></h1>
<p><?php echo JText::_( 'AIMY_SM_CRAWL_HINT_TEXT' ); ?></p>
</div>
<div id="crawling"></div>
<script type="text/javascript">
jQuery(document).ready(function()
{
jQuery( '#toolbar-unpublish button' ).prop( 'disabled', true );
Joomla.submitbutton = function( task )
{
if ( task == 'crawl.crawl' )
{
g_aimysitemap_abort = false;
jQuery( '#toolbar-tree-2 button' ).prop( 'disabled', true );
jQuery( '#toolbar-unpublish button' ).prop( 'disabled', false );
jQuery( '#crawl-hint' ).fadeOut();
AimySitemapCrawl(
<?php echo json_encode( $i18n ); ?>,
'<?php echo JSession::getFormToken(); ?>',
'#crawling',
function( success, msg )
{
jQuery( '#toolbar-unpublish button' )
.prop( 'disabled', true );
jQuery( '#toolbar-tree-2 button' )
.prop( 'disabled', false );
<?php if ( defined( 'JDEBUG' ) && JDEBUG ) : ?>
jQuery( '#dl_btn_cnt' ).fadeIn( 'slow' );
<?php endif; ?>
}
);
return false;
}
else if ( task == 'crawl.abort' )
{
g_aimysitemap_abort = true;
jQuery( '#toolbar-unpublish button' ).prop( 'disabled', true );
jQuery( '#toolbar-tree-2 button' ).prop( 'disabled', false );
return false;
}
}
<?php if ( defined( 'JDEBUG' ) && JDEBUG && ! is_readable( AimySitemapLogger::get_path() ) ) : ?>
jQuery( '#dl_btn_cnt' ).hide();
<?php endif; ?>
});
</script>
<?php endif; ?>
<?php if ( defined( 'JDEBUG' ) && JDEBUG ) : ?>
<p id="dl_btn_cnt" style="padding:6px 0;">
<a class="btn btn-lg btn-warning"
href="index.php?option=com_aimysitemap&task=crawl.get_log&<?php
echo JSession::getFormToken(); ?>=1"
target="_blank"><?php
echo JText::_( 'AIMY_SM_DOWNLOAD_LOG' ); ?></a>
<?php endif; ?>
</div>
<?php
include( JPATH_ADMINISTRATOR . '/components/com_aimysitemap/helpers/footer.php' );