?> </th> <th><?php echo DESC; ?> </th> <th><?php echo ACTION; ?> </th> </thead> <tbody> <?php if (count($data['mods']) > 0) { foreach ($data['mods'] as $mod) { $m = Mod::data($mod); if (Mod::isActive($mod)) { # code... $btnact = "warning"; $act = DEACTIVATE; } else { $btnact = "success"; $act = ACTIVATE; } echo "\n <tr>\n <td>\n {$m['icon']} <strong>{$m['name']}</strong><br />\n <small>" . VERSION . ": {$m['version']} - " . LICENSE . ": {$m['license']}</small>\n </td>\n <td>\n <p title=\"{$m['desc']}\">" . substr($m['desc'], 0, 180) . "</p>\n <small>author: <a href=\"{$m['url']}\">{$m['developer']}</a></small>\n </td>\n <td>\n <a href=\"index.php?page=modules&act={$act}&modules={$mod}&token=" . TOKEN . "\" class=\"label label-{$btnact}\">{$act}</a> \n "; if (!Mod::isActive($mod)) { echo "<a href=\"index.php?page=modules&act=remove&modules={$mod}&token=" . TOKEN . "\" class=\"label label-danger\" disable>" . REMOVE . "</a>"; } echo "\n </td>\n </tr>"; //echo $m; }