default.php
1.88 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
<?php
/**
* @package Joomla.Administrator
* @subpackage com_cpanel
*
* @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\Registry\Registry;
$user = JFactory::getUser();
?>
<div class="row-fluid">
<?php $iconmodules = JModuleHelper::getModules('icon');
if ($iconmodules) : ?>
<div class="span3">
<div class="cpanel-links">
<?php
// Display the submenu position modules
foreach ($iconmodules as $iconmodule)
{
echo JModuleHelper::renderModule($iconmodule);
}
?>
</div>
</div>
<?php endif; ?>
<div class="span<?php echo $iconmodules ? 9 : 12; ?>">
<?php if ($user->authorise('core.manage', 'com_postinstall') && $this->postinstall_message_count) : ?>
<div class="row-fluid">
<div class="alert alert-info">
<h3>
<?php echo JText::_('COM_CPANEL_MESSAGES_TITLE'); ?>
</h3>
<p>
<?php echo JText::_('COM_CPANEL_MESSAGES_BODY_NOCLOSE'); ?>
</p>
<p>
<?php echo JText::_('COM_CPANEL_MESSAGES_BODYMORE_NOCLOSE'); ?>
</p>
<p>
<a href="index.php?option=com_postinstall&eid=700" class="btn btn-primary">
<?php echo JText::_('COM_CPANEL_MESSAGES_REVIEW'); ?>
</a>
</p>
</div>
</div>
<?php endif; ?>
<div class="row-fluid">
<?php
$spans = 0;
foreach ($this->modules as $module)
{
// Get module parameters
$params = new Registry($module->params);
$bootstrapSize = $params->get('bootstrap_size');
if (!$bootstrapSize)
{
$bootstrapSize = 12;
}
$spans += $bootstrapSize;
if ($spans > 12)
{
echo '</div><div class="row-fluid">';
$spans = $bootstrapSize;
}
echo JModuleHelper::renderModule($module, array('style' => 'well'));
}
?>
</div>
</div>
</div>