This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
help.php
43 lines (34 loc) · 1.77 KB
/
help.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$code = '';
$code .= '<fieldset class="form-horizontal">'.PHP_EOL;
$code .= ' <div class="form-group">'.PHP_EOL;
$code .= ' <label class="col-sm-2 control-label" for="value-1">VALUE 1</label>'.PHP_EOL;
$code .= ' <div class="col-sm-10">'.PHP_EOL;
$code .= ' <textarea class="form-control tinyMCEEditor" id="value-1" name="REX_INPUT_VALUE[1]">REX_VALUE[1]</textarea>'.PHP_EOL;
$code .= ' </div>'.PHP_EOL;
$code .= ' </div>'.PHP_EOL;
$code .= '</fieldset>';
$fragment = new rex_fragment();
$fragment->setVar('class', 'info', false);
$fragment->setVar('title', 'Beispiel: Module Input', false); //todo
$fragment->setVar('body', rex_string::highlight($code), false);
echo $fragment->parse('core/page/section.php');
///
$code = '';
$code .= 'REX_VALUE[id="1" output="html"]';
$fragment = new rex_fragment();
$fragment->setVar('class', 'info', false);
$fragment->setVar('title', 'Beispiel: Module Output', false); //todo
$fragment->setVar('body', rex_string::highlight($code), false);
echo $fragment->parse('core/page/section.php');
$fragment = new rex_fragment();
$fragment->setVar('class', 'info', false);
$fragment->setVar('title', 'Modul installieren', false); //todo
$fragment->setVar('body', '<a href="'.rex_url::backend('index.php').'?page=tinymce4&r=/config/createmodule">Ein Beispiel-Modul installieren</a>', false);
echo $fragment->parse('core/page/section.php');
$fragment = new rex_fragment();
$fragment->setVar('class', 'info', false);
$fragment->setVar('title', 'Weitere Infos', false); //todo
$fragment->setVar('body', '<a target="_blank" href="https://github.com/akuehnis/redaxo5_addon_tinymce4">https://github.com/akuehnis/redaxo5_addon_tinymce4</a>', false);
echo $fragment->parse('core/page/section.php');
?>