bibb-theme/templates/RecordTab/description.phtml
2026-02-24 07:35:06 +01:00

22 lines
900 B
PHTML
Executable File

<?
// Set page title.
$this->headTitle($this->translate('Description') . ': ' . $this->driver->getBreadcrumb());
$formatter = $this->recordDataFormatter();
$mainFields = $formatter->getData($driver, $formatter->getDefaults('description'));
?>
<table class="table table-striped" summary="<?=$this->transEsc('Description')?>">
<? if (!empty($mainFields)): ?>
<? foreach ($mainFields as $key => $current): ?>
<? if (strcmp($key,"Language") == 0): ?>
<?$tr = "Language::" .$current['value'] ; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$this->translate("$tr")?></td></tr>
<? continue; ?>
<? endif; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr>
<? endforeach; ?>
<? else: ?>
<tr><td><?=$this->transEsc('no_description')?></td></tr>
<? endif; ?>
</table>