default.php
3.32 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
<?php
/**
* @package Joomla.Administrator
* @subpackage com_postinstall
*
* @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;
use Joomla\CMS\Factory;
$lang = Factory::getLanguage();
$renderer = Factory::getDocument()->loadRenderer('module');
$options = array('style' => 'raw');
$mod = JModuleHelper::getModule('mod_feed');
$param = array(
'rssurl' => 'https://www.joomla.org/announcements/release-news.feed?type=rss',
'rsstitle' => 0,
'rssdesc' => 0,
'rssimage' => 1,
'rssitems' => 5,
'rssitemdesc' => 1,
'rssrtl' => $lang->isRtl() ? 1 : 0,
'word_count' => 200,
'cache' => 0,
);
$params = array('params' => json_encode($param));
JHtml::_('formbehavior.chosen', 'select');
?>
<form action="index.php" method="post" name="adminForm" class="form-inline" id="adminForm">
<input type="hidden" name="option" value="com_postinstall">
<input type="hidden" name="task" value="">
<label for="eid"><?php echo JText::_('COM_POSTINSTALL_MESSAGES_FOR'); ?></label>
<?php echo JHtml::_('select.genericlist', $this->extension_options, 'eid', array('onchange' => 'this.form.submit()', 'class' => 'input-xlarge'), 'value', 'text', $this->eid, 'eid'); ?>
</form>
<?php if ($this->eid == 700) : ?>
<div class="row-fluid">
<div class="span8">
<?php endif; ?>
<?php if (empty($this->items)) : ?>
<div class="hero-unit">
<h2><?php echo JText::_('COM_POSTINSTALL_LBL_NOMESSAGES_TITLE'); ?></h2>
<p><?php echo JText::_('COM_POSTINSTALL_LBL_NOMESSAGES_DESC'); ?></p>
<a href="index.php?option=com_postinstall&view=messages&task=reset&eid=<?php echo $this->eid; ?>&<?php echo $this->token; ?>=1" class="btn btn-warning btn-large">
<span class="icon icon-eye-open" aria-hidden="true"></span>
<?php echo JText::_('COM_POSTINSTALL_BTN_RESET'); ?>
</a>
</div>
<?php else : ?>
<?php foreach ($this->items as $item) : ?>
<fieldset>
<legend><?php echo JText::_($item->title_key); ?></legend>
<p class="small">
<?php echo JText::sprintf('COM_POSTINSTALL_LBL_SINCEVERSION', $item->version_introduced); ?>
</p>
<div>
<?php echo JText::_($item->description_key); ?>
<?php if ($item->type !== 'message') : ?>
<a href="index.php?option=com_postinstall&view=messages&task=action&id=<?php echo $item->postinstall_message_id; ?>&<?php echo $this->token; ?>=1" class="btn btn-primary">
<?php echo JText::_($item->action_key); ?>
</a>
<?php endif; ?>
<?php if (Factory::getUser()->authorise('core.edit.state', 'com_postinstall')) : ?>
<a href="index.php?option=com_postinstall&view=message&task=unpublish&id=<?php echo $item->postinstall_message_id; ?>&<?php echo $this->token; ?>=1" class="btn btn-inverse btn-small">
<?php echo JText::_('COM_POSTINSTALL_BTN_HIDE'); ?>
</a>
<?php endif; ?>
</div>
</fieldset>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($this->eid == 700) : ?>
</div>
<div class="span4"<?php if ($lang->isRtl()) : ?> style="padding-right: 20px;"<?php endif; ?>>
<h2><?php echo JText::_('COM_POSTINSTALL_LBL_RELEASENEWS'); ?></h2>
<?php echo $renderer->render($mod, $params, $options); ?>
</div>
</div>
<?php endif; ?>