default_update.php
3.7 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
/**
* @package Joomla.Administrator
* @subpackage com_joomlaupdate
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/** @var JoomlaupdateViewDefault $this */
?>
<fieldset>
<legend>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_UPDATEFOUND'); ?>
</legend>
<p>
<?php echo JText::sprintf($this->langKey, $this->updateSourceKey); ?>
</p>
<table class="table table-striped">
<tbody>
<tr>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_INSTALLED'); ?>
</td>
<td>
<?php echo '‎' . $this->updateInfo['installed']; ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_LATEST'); ?>
</td>
<td>
<?php echo '‎' . $this->updateInfo['latest']; ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_PACKAGE'); ?>
</td>
<td>
<a href="<?php echo $this->updateInfo['object']->downloadurl->_data; ?>" target="_blank" rel="noopener noreferrer">
<?php echo $this->updateInfo['object']->downloadurl->_data; ?>
<span class="icon-out-2" aria-hidden="true"></span>
<span class="element-invisible"><?php echo JText::_('JBROWSERTARGET_NEW'); ?></span>
</a>
</td>
</tr>
<?php if (isset($this->updateInfo['object']->get('infourl')->_data)
&& isset($this->updateInfo['object']->get('infourl')->title)) : ?>
<tr>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_INFOURL'); ?>
</td>
<td>
<a href="<?php echo $this->updateInfo['object']->get('infourl')->_data; ?>" target="_blank" rel="noopener noreferrer">
<?php echo $this->updateInfo['object']->get('infourl')->title; ?>
<span class="icon-out-2" aria-hidden="true"></span>
<span class="element-invisible"><?php echo JText::_('JBROWSERTARGET_NEW'); ?></span>
</a>
</td>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_METHOD'); ?>
</td>
<td>
<?php echo $this->methodSelect; ?>
</td>
</tr>
<tr id="row_ftp_hostname" <?php echo $this->ftpFieldsDisplay; ?>>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_HOSTNAME'); ?>
</td>
<td>
<input type="text" name="ftp_host" value="<?php echo $this->ftp['host']; ?>" />
</td>
</tr>
<tr id="row_ftp_port" <?php echo $this->ftpFieldsDisplay; ?>>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_PORT'); ?>
</td>
<td>
<input type="text" name="ftp_port" value="<?php echo $this->ftp['port']; ?>" />
</td>
</tr>
<tr id="row_ftp_username" <?php echo $this->ftpFieldsDisplay; ?>>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_USERNAME'); ?>
</td>
<td>
<input type="text" name="ftp_user" value="<?php echo $this->ftp['username']; ?>" />
</td>
</tr>
<tr id="row_ftp_password" <?php echo $this->ftpFieldsDisplay; ?>>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_PASSWORD'); ?>
</td>
<td>
<input type="password" name="ftp_pass" value="<?php echo $this->ftp['password']; ?>" />
</td>
</tr>
<tr id="row_ftp_directory" <?php echo $this->ftpFieldsDisplay; ?>>
<td>
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_DIRECTORY'); ?>
</td>
<td>
<input type="text" name="ftp_root" value="<?php echo $this->ftp['directory']; ?>" />
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
</td>
<td>
<button class="btn btn-primary" type="submit">
<?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_INSTALLUPDATE'); ?>
</button>
</td>
</tr>
</tfoot>
</table>
</fieldset>