Read Template Parameters Inside the Template
Directly reads configuration fields from the active template style inside index.php or component.php.
<?php
declare(strict_types=1);
// Dentro de templates/<seu_template>/index.php
/** @var \Joomla\CMS\Document\HtmlDocument $this */
$param = (string) $this->params->get('paramName', 'defaultValue');