XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
rmc_dashboard.php
Go to the documentation of this file.
1 <h1 class="rmc_titles"><?php _e('Dashboard','rmcommon'); ?></h1>
2 <div class="row-fluid rmcw-container">
3  <!-- Left widgets -->
4  <div class="span6">
5  <div class="outer">
6  <div class="th"><?php _e('System Tools','rmcommon'); ?></div>
7  <div class="even system_tools">
8  <table width="100%" cellpadding="0" cellspacing="0">
9  <tr class="even">
10  <td width="50%">
11  <a style="background-image: url(images/configure.png);" href="<?php echo XOOPS_URL; ?>/modules/system/admin.php?fct=preferences&op=showmod&mod=<?php echo $xoopsModule->mid(); ?>"><?php _e('Configure Common Utilities','rmcommon'); ?></a>
12  </td>
13  <td>
14  <a style="background-image: url(images/images.png);" href="images.php"><?php _e('Images Manager','rmcommon'); ?></a>
15  </td>
16  </tr>
17  <tr class="odd">
18  <td width="50%">
19  <a style="background-image: url(images/comments.png);" href="comments.php"><?php _e('Comments Management','rmcommon'); ?></a>
20  </td>
21  <td>
22  <a style="background-image: url(images/plugin.png);" href="plugins.php"><?php _e('Plugins Management','rmcommon'); ?></a>
23  </td>
24  </tr>
25  <tr class="even">
26  <td width="50%">
27  <a style="background-image: url(images/modules.png);" href="modules.php"><?php _e('XOOPS Modules','rmcommon'); ?></a>
28  </td>
29  <td>
30  <a style="background-image: url(images/users.png);" href="users.php"><?php _e('Users Management','rmcommon'); ?></a>
31  </td>
32  </tr>
33  <?php
34  $system_tools = RMEvents::get()->run_event('rmcommon.get.system.tools', array());
35  $i = 1;
36  ?>
37  <?php if($system_tools): ?>
38  <tr class="odd">
39  <?php foreach ($system_tools as $tool): ?>
40  <?php if($i>2): ?>
41  </tr><tr class="<?php echo tpl_cycle('even,odd'); ?>">
42  <?php $i=1; ?>
43  <?php endif; ?>
44  <td><a href="<?php echo $tool['link']; ?>" style="background-image: url(<?php echo $tool['icon']; ?>);"><?php echo $tool['caption']; ?></td>
45  <?php $i++; endforeach; ?>
46  </tr>
47  <?php endif; ?>
48  </table>
49  </div>
50  </div>
51 
52  <!-- Recent news -->
53  <div class="outer">
54  <div class="th"><img src="images/loading_2.gif" alt="" class="loading" id="loading-news" /> <?php _e('Recent News','rmcommon'); ?></div>
55  <div class="even" id="rmc-recent-news">
56 
57  </div>
58  </div>
59  <!-- End recent news -->
60 
61  <?php RMEvents::get()->run_event('rmcommon.dashboard.left.widgets'); ?>
62 
63  </div>
64  <!-- End left widgets -->
65 
66  <!-- Right widgets -->
67  <div class="span6" id="rmc-central-right-widgets">
68 
69  <div class="alert alert-block" style="display: none;" id="updater-info">
70  <h4><?php echo sprintf(__('%s Updates Available!','rmcommon'), '<span class="badge badge-important">%s</span>'); ?></h4>
71  <p><?php echo sprintf(__('Please %s to view available updates.','rmcommon'), '<a href="updates.php">'.__('click here','rmcommon').'</a>'); ?></p>
72  </div>
73 
74  <div class="outer">
75  <div class="th"><img src="images/loading_2.gif" alt="" class="loading" id="loading-mods" /> <?php _e('Installed Modules','rmcommon'); ?></div>
76  <div class="even mods_coint">
77  <div id="ajax-mods-list">
78 
79  </div>
80  <span class="description">
81  <?php _e('If you wish to manage or install new modules please go to Modules Management.','rmcommon'); ?><br />
82  <a href="<?php echo XOOPS_URL; ?>/modules/system/admin.php?fct=modulesadmin"><?php _e('Modules management', 'rmcommon'); ?></a>
83  </span>
84  </div>
85  </div>
86 
87  <!-- Available Modules -->
88  <div class="outer">
89  <div class="th"><?php _e('Available Modules','rmcommon'); ?></div>
90  <?php foreach($available_mods as $module): ?>
91  <div class="<?php echo tpl_cycle("even,odd"); ?>">
92  <span class="modimg" style="background: url(../<?php echo $module->getInfo('dirname'); ?>/<?php echo $module->getInfo('icon48')!='' ? $module->getInfo('icon48') : $module->getInfo('image'); ?>) no-repeat center;">&nbsp;</span>
93  <strong><?php echo $module->getInfo('name'); ?></strong><br />
94  <span class="moddesc"><?php echo $module->getInfo('description'); ?></span><br />
95  <a href="modules.php?action=install&dir=<?php echo $module->getInfo('dirname'); ?>"><?php _e('Install', 'rmcommon'); ?></a>
96  </div>
97  <?php endforeach; ?>
98  <span class="description">
99  <?php _e('If you wish to manage or install new modules please go to Modules Management.','rmcommon'); ?><br />
100  <a href="modules.php"><?php _e('Modules management', 'rmcommon'); ?></a>
101  </span>
102  </div>
103  <!-- End available modules -->
104  <?php RMEvents::get()->run_event('rmcommon.dashboard.right.widgets'); ?>
105  </div>
106  <!-- / End right widgets -->
107 </div>