default_crawler.php
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @package JMAP::CONFIG::administrator::components::com_jmap
* @subpackage views
* @subpackage config
* @subpackage tmpl
* @author Joomla! Extensions Store
* @copyright (C) 2015 - Joomla! Extensions Store
* @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
*/
defined ( '_JEXEC' ) or die ( 'Restricted access' );
?>
<style type="text/css">
#crawler_results {
background: #428bca;
color: #FFF;
margin-bottom: 20px;
padding: 0 0 2px 0;
box-shadow: 1px 8px 15px 1px #CCC;
}
#crawler_main_title {
text-align: center;
font-size: 18px;
background-color: #FFF;
color: #428bca;
border: 1px solid #428bca;
padding: 5px;
}
span.badge.badge-white {
background-color: #FFF;
color: #428bca;
margin-left: 10px;
}
#crawler_results p {
padding: 2px 10px;
margin: 2px;
text-align: left;
}
#crawler_results p span {
font-size: 12px;
}
</style>
<?php
if($this->testResults):?>
<div id="crawler_results">
<div id="crawler_main_title"><?php echo JText::_('COM_JMAP_CRAWLER_INFO')?></div>
<p><?php echo JText::sprintf('COM_JMAP_CRAWLER_TEST_HTTPCODE', $this->testResults->code);?></p>
<p><?php echo JText::sprintf('COM_JMAP_CRAWLER_TEST_CONTENT_TYPE', $this->testResults->headers['Content-Type']);?></p>
</div>
<?php
echo $this->testResults->body;
else:?>
<?php
endif;