Hi Joohmla,
This is some Notice, not a bug/issue. Could you send me the admin/FTP account? we will check about it.
Or you can help me update the following code to this files:
File: public_html/templates/ja_coach/html/layouts/chromes/t4section.php.
Override with this code:
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* html5 (chosen html5 tag and font header tags)
*/
defined('_JEXEC') or die;
$module = $displayData['module'];
$params = $displayData['params'];
$attribs = $displayData['attribs'];
$badge = '';
// if ($params->get('moduleclass_sfx') != null && preg_match('/badge/', $params->get('moduleclass_sfx'))) {
// $badge = '<span class="badge"> </span>';
// }
if ($params->get('moduleclass_sfx') !== null) {
$badge = (preg_match('/badge/', $params->get('moduleclass_sfx'))) ? '<span class="badge"> </span>' : '';
}
$moduleTag = htmlspecialchars($params->get('module_tag', 'div') ?? '');
$headerTag = htmlspecialchars($params->get('header_tag', 'h4') ?? '');
// $moduleTag = htmlspecialchars($params->get('module_tag', 'div'));
// $headerTag = htmlspecialchars($params->get('header_tag', 'h4'));
$headerClass = $params->get('header_class');
$bootstrapSize = $params->get('bootstrap_size');
$moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
// $moduleClassSfx = $params->get('moduleclass_sfx') != null ? htmlspecialchars($params->get('moduleclass_sfx')) : '';
$moduleClassSfx = htmlspecialchars($params->get('moduleclass_sfx') ?? '');
// Sub Align
$moduleAli = $params->get('sub-align','left');
// Main Color
$mainColor = $params->get('main-color', 'normal');
// Sub Color
$titleColor = $params->get('title-color', 'normal');
// Title Space
$titleSpace = $params->get('title-space', 'large');
// Main Heading
$moduleMain = '';
if($params->get('main-heading')) {
$moduleMain = '<span class="main-heading mt-0 text-'.$mainColor.' h1">'.$params->get('main-heading').'</span>';
}
// Mod Description
$moduleDesc = '';
if($params->get('mod-desc')) {
$moduleDesc = '<div class="mod-desc lead">'.$params->get('mod-desc').'</div>';
}
// Mod Title
$modTitle = '';
if($module->showtitle != 0) {
$modTitle = '<'.$headerTag.' class="section-title h6 text-'.$titleColor.' '.$headerClass.'"><span>'.$module->title.'</span></'.$headerTag.'>';
}
if (!empty ($module->content)) {
$html = "<{$moduleTag} class=\"t4-mod-wrap {$moduleClassSfx} {$moduleClass}\" id=\"Mod{$module->id}\">" .
"<div class=\"section-inner\">" . $badge;
if ($module->showtitle != 0 || $params->get('main-heading')) {
$html .= "<div class=\"section-title-wrap text-{$moduleAli} space-{$titleSpace}\">{$modTitle}{$moduleMain}{$moduleDesc}</div>";
}
$html .= "<div class=\"section-ct\">{$module->content}</div></div></{$moduleTag}>";
echo $html;
}
File: /public_html/templates/ja_coach/html/mod_guru_courses/business.php. line 23:
$moduleclass_sfx = $params->get('moduleclass_sfx') ?? ''; // Use null coalescing operator
$moduleclass_sfx = htmlspecialchars($moduleclass_sfx, ENT_COMPAT, 'UTF-8'); // Apply htmlspecialchars after checking for null
Hope this helps!