Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -16,20 +16,20 @@
*/
return array(
'filetemplate_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'fields' => array(
'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'label' => $lng['admin']['templates']['action'],
'type' => 'select',
'select_var' => $free_templates
),
'filecontent' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
'label' => $lng['admin']['templates']['filecontent'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12

View File

@@ -16,21 +16,21 @@
*/
return array(
'filetemplate_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'fields' => array(
'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'label' => $lng['admin']['templates']['action'],
'type' => 'hidden',
'value' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']],
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']]
'value' => $lng['admin']['templates'][$row['varname']],
'display' => $lng['admin']['templates'][$row['varname']]
),
'filecontent' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
'label' => $lng['admin']['templates']['filecontent'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,

View File

@@ -16,32 +16,32 @@
*/
return array(
'template_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'fields' => array(
'language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'label' => $lng['login']['language'],
'type' => 'hidden',
'value' => $language,
'display' => $language
),
'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'label' => $lng['admin']['templates']['action'],
'type' => 'hidden',
'value' => $template,
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$template]
'display' => $lng['admin']['templates'][$template]
),
'subject' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
'label' => $lng['admin']['templates']['subject'],
'type' => 'text',
'value' => $subject
),
'mailbody' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
'label' => $lng['admin']['templates']['mailbody'],
'type' => 'textarea',
'value' => $body,
'cols' => 60,

View File

@@ -16,32 +16,32 @@
*/
return array(
'template_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'fields' => array(
'language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'label' => $lng['login']['language'],
'type' => 'hidden',
'value' => $language,
'display' => $language
),
'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'label' => $lng['admin']['templates']['action'],
'type' => 'hidden',
'value' => $template,
'display' => $template
),
'subject' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
'label' => $lng['admin']['templates']['subject'],
'type' => 'text',
'value' => $subject
),
'mailbody' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
'label' => $lng['admin']['templates']['mailbody'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,