29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-16 00:52:49 +00:00
cms/layouts/chromes/table.php
Fedir Zinchuk 5fd5edfc45
Fix for the title of a loaded module is not visible (#39839)
* Fix default style for "load module" plugin

* Fix default style for "load module" plugin

* Fix default style for "load module" plugin, performance

* Fix default style for "load module" plugin, deprecation

* Fix default style for "load module" plugin, remove unused

* phpcs

* Update plugins/content/loadmodule/loadmodule.xml

Co-authored-by: Brian Teeman <brian@teeman.net>

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
2023-02-22 19:34:55 +01:00

33 lines
773 B
PHP

<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* Module chrome that wraps the module in a table
*/
defined('_JEXEC') or die;
$module = $displayData['module'];
$params = $displayData['params'];
?>
<table
class="moduletable <?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); ?>">
<?php if ((bool) $module->showtitle) : ?>
<tr>
<th>
<?php echo $module->title; ?>
</th>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo $module->content; ?>
</td>
</tr>
</table>