XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
rmc_plugins.php
Go to the documentation of this file.
1 <h1 class="rmc_titles"><?php _e('Plugins Manager','rmcommon'); ?></h1>
2 <div class="descriptions">
3 <?php _e('Plugins allows to Common Utilities to improve its features and capabilities. Following is a list with existing plugins, installed and available to install.','rmcommon'); ?>
4 </div>
5 
6 <h3><?php _e('Installed Plugins', 'rmcommon'); ?></h3>
7 <table class="outer" cellspacing="0" cellpadding="0">
8  <thead>
9  <tr>
10  <th align="left"><?php _e('Name','rmcommon'); ?></th>
11  <th align="left"><?php _e('Description', 'rmcommon'); ?></th>
12  <th><?php _e('Version','rmcommon'); ?></th>
13  <th><?php _e('Author','rmcommon'); ?></th>
14  <th><?php _e('Status','rmcommon'); ?></th>
15  </tr>
16  </thead>
17  <tfoot>
18  <tr>
19  <th align="left"><?php _e('Name','rmcommon'); ?></th>
20  <th align="left"><?php _e('Description', 'rmcommon'); ?></th>
21  <th><?php _e('Version','rmcommon'); ?></th>
22  <th><?php _e('Author','rmcommon'); ?></th>
23  <th><?php _e('Status','rmcommon'); ?></th>
24  </tr>
25  </tfoot>
26  <tbody>
27  <?php if(empty($installed_plugins)): ?>
28  <tr class="even">
29  <td class="error" colspan="5" align="center"><?php _e('There are not plugins installed yet!','rmcommon'); ?></td>
30  </tr>
31  <?php endif; ?>
32  <?php foreach ($installed_plugins as $plugin): ?>
33  <tr class="<?php echo tpl_cycle("even,odd"); ?>" valign="top">
34  <td>
35  <?php if($plugin->get_info('hasmain')): ?>
36  <strong><a href="plugins.php?p=<?php echo $plugin->get_info('dir'); ?>"><?php echo $plugin->getVar('name'); ?></a></strong>
37  <?php else: ?>
38  <strong><?php echo $plugin->getVar('name'); ?></strong>
39  <?php endif; ?>
40  <span class="rmc_options">
41  <a href="plugins.php?action=uninstall&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Uninstall','rmcommon'); ?></a> |
42  <?php if($plugin->getVar('status')): ?>
43  <a href="plugins.php?action=disable&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Disable','rmcommon'); ?></a> |
44  <?php else: ?>
45  <a href="plugins.php?action=enable&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Enable','rmcommon'); ?></a> |
46  <?php endif; ?>
47  <a href="plugins.php?action=update&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Update','rmcommon'); ?></a>
48  <?php if($plugin->options()): ?>
49  | <a href="plugins.php?action=configure&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Settings','rmcommon'); ?></a>
50  <?php endif; ?>
51  </span>
52  </td>
53  <td>
54  <span class="descriptions"><?php echo $plugin->get_info('description'); ?></span>
55  </td>
56  <td align="center">
57  <strong><?php echo is_array($plugin->get_info('version')) ? RMUtilities::format_version($plugin->get_info('version')) : $plugin->get_info('version'); ?></strong>
58  </td>
59  <td align="center">
60  <?php if($plugin->get_info('web')!=''): ?>
61  <strong><a href="<?php echo $plugin->get_info('web'); ?>"><?php echo $plugin->get_info('author'); ?></a></strong>
62  <?php else: ?>
63  <strong><?php echo $plugin->get_info('author'); ?></strong>
64  <?php endif; ?><br />
65  <?php echo $plugin->get_info('email'); ?>
66  </td>
67  <td align="center">
68  <?php echo $plugin->getVar('status')?__('Active','rmcommon'):__('Inactive','rmcommon'); ?>
69  </td>
70  </tr>
71  <?php endforeach; ?>
72  </tbody>
73 
74 </table>
75 
76 <h3><?php _e('Available Plugins'); ?></h3>
77 <table class="outer" cellspacing="0" cellpadding="0">
78  <thead>
79  <tr>
80  <th align="left"><?php _e('Name','rmcommon'); ?></th>
81  <th align="left"><?php _e('Description', 'rmcommon'); ?></th>
82  <th><?php _e('Version','rmcommon'); ?></th>
83  <th><?php _e('Author','rmcommon'); ?></th>
84  </tr>
85  </thead>
86  <tfoot>
87  <tr>
88  <th align="left"><?php _e('Name and Description','rmcommon'); ?></th>
89  <th align="left"><?php _e('Description', 'rmcommon'); ?></th>
90  <th><?php _e('Version','rmcommon'); ?></th>
91  <th><?php _e('Author','rmcommon'); ?></th>
92  </tr>
93  </tfoot>
94  <tbody>
95  <?php if(empty($available_plugins)): ?>
96  <tr class="even">
97  <td class="error" colspan="4" align="center"><?php _e('There are not available plugins yet!','rmcommon'); ?></td>
98  </tr>
99  <?php endif; ?>
100  <?php foreach ($available_plugins as $plugin): ?>
101  <tr class="<?php echo tpl_cycle("even,odd"); ?>" valign="top">
102  <td>
103  <strong><?php echo $plugin->get_info('name'); ?></strong>
104  <span class="rmc_options">
105  <a href="plugins.php?action=install&amp;plugin=<?php echo $plugin->get_info('dir'); ?>"><?php _e('Install','rmcommon'); ?></a> |
106  <a href="<?php echo $plugin->get_info('web'); ?>"><?php _e('Visit Web site','rmcommon'); ?></a>
107  </span>
108  </td>
109  <td>
110  <span class="descriptions"><?php echo $plugin->get_info('description'); ?></span>
111  </td>
112  <td align="center">
113  <strong><?php echo $plugin->get_info('version'); ?></strong>
114  </td>
115  <td align="center">
116  <?php if($plugin->get_info('web')!=''): ?>
117  <strong><a href="<?php echo $plugin->get_info('web'); ?>"><?php echo $plugin->get_info('author'); ?></a></strong>
118  <?php else: ?>
119  <strong><?php echo $plugin->get_info('author'); ?></strong>
120  <?php endif; ?><br />
121  <?php echo $plugin->get_info('email'); ?>
122  </td>
123  </tr>
124  <?php endforeach; ?>
125  </tbody>
126 
127 </table>