2$this->
data[
'header'] = $this->t(
'metaconv_title');
3$this->includeAtTemplateBase(
'includes/header.php');
5 <h2><?
php echo $this->t(
'metaconv_title'); ?></h2>
6 <form action=
"?" method=
"post" enctype=
"multipart/form-data">
7 <
p><?
php echo($this->t(
'{admin:metaconv_xmlmetadata}')); ?></
p>
9 <
textarea rows=
"20" style=
"width: 100%"
10 name=
"xmldata"><?
php echo htmlspecialchars($this->
data[
'xmldata']); ?></
textarea>
13 <?
php echo $this->t(
'metaconv_selectfile'); ?>
14 <
input type=
"file" name=
"xmlfile" /></
p>
16 <button type=
"submit" class=
"btn"><?
php echo $this->t(
'metaconv_parse'); ?></button>
24 <h2><?
php echo $this->t(
'metaconv_converted'); ?></h2>
32 <h3><?
php echo htmlspecialchars(
$type); ?></h3>
33 <div
class=
"metadatabox">
34 <button
data-clipboard-target=
"#metadata<?php echo $i; ?>" id=
"btn<?php echo $i; ?>"
35 class=
"btn topright" style=
"margin-right: 0.5em;">
36 <img src=
"/<?php echo $this->data['baseurlpath'].'resources/icons/clipboard.svg'; ?>"
37 alt=
"Copy to clipboard" />
39 <pre
id=
"metadata<?php echo $i; ?>"><?
php
40 echo htmlspecialchars(
$text);
47 <script type=
"text/javascript">
49 for ($j = 1; $j <=
$i; $j++) {
51 var clipboard<?php echo $j; ?> =
new Clipboard(
'#btn<?php echo $j; ?>');
58$this->includeAtTemplateBase(
'includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.