14 $ret[
'title'] =
__(
'Available Modules',
'rmcommon');
21 $nav->target_url(
'javascript:;" onclick="load_page({PAGE_NUM});');
26 <div
class=
"rmc_widget_content_reduced rmc_modules_widget">
27 <img
id=
"img-load" src=
"images/loading.gif" style=
"display: none; margin: 15px auto;" />
28 <div
id=
"mods-widget-container">
29 <?php
foreach($available_mods as
$mod): ?>
31 <div
class=
"<?php echo tpl_cycle("even,
odd"); ?>">
32 <a
href=
"modules.php?action=install&dir=<?php echo $mod->getInfo('dirname'); ?>" class=
"rmc_mod_img" style=
"background: url(<?php echo XOOPS_URL; ?>/modules/<?php echo $mod->getInfo('dirname'); ?>/<?php echo $mod->getInfo('image'); ?>) no-repeat center;"><span> </span></a>
33 <strong><a href=
"modules.php?action=install&dir=<?php echo $mod->getInfo('dirname'); ?>"><?php echo $mod->getInfo(
'name'); ?></a></strong>
34 <span
class=
"rmc_available_options">
35 <a href=
"modules.php?action=install&dir=<?php echo $mod->getInfo('dirname'); ?>"><?php
_e(
'Install',
'rmcommon'); ?></a> |
36 <a href=
"javascript:;" onclick=
"show_module_info('<?php echo $mod->getInfo('dirname'); ?>');"><?php
_e(
'More info',
'rmcommon'); ?></a>
38 <span
class=
"rmc_mod_info" id=
"mod-<?php echo $mod->getInfo('dirname'); ?>">
39 <?php
_e(
'Version:',
'rmcommon'); ?>
40 <?php
if($mod->getInfo(
'rmnative')): ?>
43 <?php echo $mod->getInfo(
'version'); ?>
45 <?php
_e(
'Author:',
'rmcommon'); ?> <?php echo substr(strip_tags($mod->getInfo(
'author')), 0, 12); ?>
49 <?php
$nav->display(
false); ?>
52 <input type=
"hidden" id=
"token" value=
"<?php echo $xoopsSecurity->createToken(); ?>" />
54 $ret[
'content'] = ob_get_clean();
64 $db = XoopsDatabaseFactory::getDatabaseConnection();
69 $result =
$db->query(
"SELECT * FROM ".
$db->prefix(
"modules").
" WHERE isactive=1 ORDER BY `name`");
71 $modules[] = array(
'dir'=>$row[
'dirname'],
'name'=>$row[
'name']);
75 $sql =
"SELECT groupid, name FROM " .
$db->prefix(
"groups") .
" ORDER BY name";
79 $groups[] = array(
'id' => $row[
'groupid'],
'name' => $row[
'name']);
82 $widget[
'title'] =
'Add Block';
86 $widget[
'content'] = ob_get_clean();
96 $widget[
'title'] =
'Add Position';
102 include
RMTemplate::get()->get_template(
'widgets/rmc_aw_posnew.php',
'module',
'rmcommon');
103 $widget[
'content'] = ob_get_clean();