default_info.php
2.68 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* @package AllediaInstaller
* @contact www.joomlashack.com, help@joomlashack.com
* @copyright Copyright (C) 2016 Open Sources Training, LLC, All rights reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die();
?>
<div class="joomlashack-details-container">
<a href="javascript:void(0);" id="joomlashack-installer-footer-toggler">
<?php echo JText::_('LIB_ALLEDIAINSTALLER_SHOW_DETAILS'); ?>
</a>
<div id="joomlashack-installer-footer" style="display: none;">
<div class="joomlashack-license">
<?php echo JText::sprintf('LIB_ALLEDIAINSTALLER_RELEASE_V', (string)$this->manifest->version); ?>
</div>
<br>
<?php if (!empty($this->manifest->alledia->relatedExtensions)) : ?>
<table class="joomlashack-related-table">
<thead>
<tr>
<th colspan="2"><?php echo JText::_('LIB_ALLEDIAINSTALLER_RELATED_EXTENSIONS'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->relatedExtensionFeedback as $element => $data) : ?>
<tr>
<td><?php echo JText::_($data['name']); ?></td>
<td>
<?php
$messages = array($data['message']);
if (isset($data['publish']) && $data['publish']) {
$messages[] = JText::_('LIB_ALLEDIAINSTALLER_PUBLISHED');
}
if (isset($data['ordering'])) {
$messages[] = JText::sprintf('LIB_ALLEDIAINSTALLER_SORTED', $data['ordering']);
}
$messages = implode(', ', $messages);
echo $messages;
?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="joomlashack-license">
<?php
echo JText::sprintf(
'LIB_ALLEDIAINSTALLER_LICENSED_AS',
$this->getName(),
'<a href="http://www.gnu.org/licenses/gpl-3.0.html">GNU/GPL v3.0</a>'
);
?>.
</div>
</div>
</div>
<script>
(function($) {
$(function() {
// More info button
$('#joomlashack-installer-footer-toggler').on('click', function(event) {
$('#joomlashack-installer-footer').show();
$(this).hide();
});
});
})(jQuery);
</script>