Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier card.php

Espaces de nommage

 Joomla\Site
 

Variables

 $module = $displayData['module']
 
 $params = $displayData['params']
 
 $attribs = $displayData['attribs']
 
if($module->content===null|| $module->content==='') $moduleTag = $params->get('module_tag', 'div')
 
 $moduleAttribs = []
 
 $moduleAttribs ['class'] = $module->position . ' card ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_QUOTES, 'UTF-8')
 
 $headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8')
 
 $headerClass = htmlspecialchars($params->get('header_class', ''), ENT_QUOTES, 'UTF-8')
 
 $headerAttribs = []
 
 $headerAttribs ['class'] = $headerClass
 
if($headerClass !=='card-title') endif
 
if($moduleTag !=='div') $header = '<' . $headerTag . ' ' . ArrayHelper::toString($headerAttribs) . '>' . $module->title . '</' . $headerTag . '>'
 

Documentation des variables

◆ $attribs

$attribs = $displayData['attribs']

◆ $header

if ( $moduleTag !=='div') $header = '<' . $headerTag . ' ' . ArrayHelper::toString($headerAttribs) . '>' . $module->title . '</' . $headerTag . '>'

◆ $headerAttribs [1/2]

$headerAttribs = []

◆ $headerAttribs [2/2]

$headerAttribs[ 'class'] = $headerClass

◆ $headerClass

$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_QUOTES, 'UTF-8')

◆ $headerTag

$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8')

◆ $module

$module = $displayData['module']

◆ $moduleAttribs [1/2]

$moduleAttribs = []

◆ $moduleAttribs [2/2]

$moduleAttribs[ 'class'] = $module->position . ' card ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_QUOTES, 'UTF-8')

◆ $moduleTag

if ( $module->content===null||$module->content==='') $moduleTag = $params->get('module_tag', 'div')

◆ $params

$params = $displayData['params']

◆ endif

if ( $module->showtitle &&$headerClass==='card-title') endif