diff --git a/modules/custom_fields/add.php b/modules/custom_fields/add.php index a47fa486c..00dd6545b 100644 --- a/modules/custom_fields/add.php +++ b/modules/custom_fields/add.php @@ -28,7 +28,13 @@ include_once __DIR__.'/../../core.php'; - +filepath('content-info.php'); + +?> + +
diff --git a/modules/custom_fields/content-info.php b/modules/custom_fields/content-info.php new file mode 100644 index 000000000..6e9eade62 --- /dev/null +++ b/modules/custom_fields/content-info.php @@ -0,0 +1,37 @@ + +
+
+

'.tr('Istruzioni per il campo _FIELD_', [ + '_FIELD_' => tr('Contenuto'), + ]).'

+
+ +
+

'.tr('Le seguenti sequenze di testo vengono sostituite nel seguente modo').':

+
    '; + +$list = [ + 'label' => tr('Nome'), + 'name' => tr('Nome HTML'), +]; + +foreach ($list as $key => $value) { + echo ' +
  • '.tr('_TEXT_ con il valore del campo "_FIELD_"', [ + '_TEXT_' => '|'.$key.'|', + '_FIELD_' => $value, + ]).'
  • '; +} + +echo ' +
  • '.tr('_TEXT_ con il valore impostato per il record', [ + '_TEXT_' => '|value|', + ]).'
  • '; + +echo ' +
+
+
'; diff --git a/modules/custom_fields/edit.php b/modules/custom_fields/edit.php index e4baa9ea3..f77f71b64 100644 --- a/modules/custom_fields/edit.php +++ b/modules/custom_fields/edit.php @@ -45,40 +45,11 @@ include_once __DIR__.'/../../core.php';
- -
-
-

tr('Contenuto'), - ]); ?>

-
- -
-

:

-
    tr('Nome'), - 'html_name' => tr('Nome HTML'), -]; -foreach ($list as $key => $value) { - echo ' -
  • '.tr('_TEXT_ con il valore del campo "_FIELD_"', [ - '_TEXT_' => '|'.$key.'|', - '_FIELD_' => $value, - ]).'
  • '; -} - -echo ' -
  • '.tr('_TEXT_ con il valore impostato per il record', [ - '_TEXT_' => '|value|', - ]).'
  • '; +include $module->filepath('content-info.php'); ?> -
-
-