Skip to content
Snippets Groups Projects
Commit b123d05c authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Frank Morgner
Browse files

refs #13257

* changes language references in recordDataFormatterFactory
* introduces new data-transEscCommaSep.phtml
parent 3a1979a7
No related merge requests found
......@@ -114,7 +114,7 @@ class RecordDataFormatterFactory
['helperMethod' => 'getFormatList']
);
$spec->setTemplateLine(
'Language', 'getLanguages', 'data-escapeHtml.phtml'
'Language', 'getLanguages', 'data-transEscCommaSep.phtml'
);
$spec->setTemplateLine(
'Published',
......@@ -216,7 +216,7 @@ class RecordDataFormatterFactory
['helperMethod' => 'getFormatList']
);
$spec->setTemplateLine(
'Language', 'getLanguages', 'data-escapeHtml.phtml'
'Language', 'getLanguages', 'data-transEscCommaSep.phtml'
);
$spec->setTemplateLine(
'Additionals',
......@@ -252,7 +252,7 @@ class RecordDataFormatterFactory
]
);
$spec->setTemplateLine(
'Language', 'getLanguages', 'data-escapeHtml.phtml'
'Language', 'getLanguages', 'data-transEscCommaSep.phtml'
);
$spec->setLine(
'Format', 'getFormats', 'RecordHelper',
......@@ -318,7 +318,7 @@ class RecordDataFormatterFactory
['helperMethod' => 'getFormatList']
);
$spec->setTemplateLine(
'Language', 'getLanguages', 'data-escapeHtml.phtml'
'Language', 'getLanguages', 'data-transEscCommaSep.phtml'
);
$spec->setTemplateLine(
'Published',
......@@ -610,7 +610,7 @@ class RecordDataFormatterFactory
);
// , context: "recordEvents"
$spec->setTemplateLine(
'Language', 'getLanguages','data-escapeHtml.phtml'
'Language', 'getLanguages','data-transEscCommaSep.phtml'
);
$spec->setTemplateLine(
'Time of origin', 'getDateSpan', 'data-dateSpan.phtml'
......@@ -701,7 +701,7 @@ class RecordDataFormatterFactory
['helperMethod' => 'getFormatList']
);
$spec->setTemplateLine(
'Language', 'getLanguages', 'data-escapeHtml.phtml'
'Language', 'getLanguages', 'data-transEscCommaSep.phtml'
);
$spec->setTemplateLine(
'Published',
......
<?if (!empty($data)): ?>
<? if(is_array($data)): ?>
<?=implode(', ', array_map(array($this, 'transEsc'), $data)); ?>
<? else: ?>
<?= $this->transEsc($data) ?>
<? endif; ?>
<? endif; ?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment