Last change
on this file since 15507 was
12819,
checked in by mistic100, 13 years ago
|
fix detection regex and watermark position
|
File size:
2.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | load_plugin_lang('front2back_support'); |
---|
3 | |
---|
4 | switch ($PLUGIN_ACTION) { |
---|
5 | // Affichage simple de la configuration |
---|
6 | case 'read_config': |
---|
7 | $PAGE['content'] .= ' |
---|
8 | <table> |
---|
9 | <tr> |
---|
10 | <td>'.l10n('front2back_support.NAMEverso').' :</td> |
---|
11 | <td>'.$plugin_config['NAMEverso'].'</td> |
---|
12 | </tr> |
---|
13 | <tr> |
---|
14 | <td>'.l10n('front2back_support.MOVEverso').' :</td> |
---|
15 | <td>'.bool_to_string($plugin_config['MOVEverso']).'</td> |
---|
16 | </tr> |
---|
17 | <tr> |
---|
18 | <td>'.l10n('front2back_support.TAGverso').' :</td> |
---|
19 | <td>'.$plugin_config['TAGverso'].'</td> |
---|
20 | </tr> |
---|
21 | </table>'; |
---|
22 | break; |
---|
23 | |
---|
24 | // Actions avant enregistrement |
---|
25 | case 'save_config': |
---|
26 | $_POST['Plugins']['front2back_support']['NAMEverso'] = delete_special_car($_POST['Plugins']['front2back_support']['NAMEverso']); |
---|
27 | break; |
---|
28 | |
---|
29 | // Formulaire d'édition |
---|
30 | case 'edit_config': |
---|
31 | $PAGE['content'] .= ' |
---|
32 | <table> |
---|
33 | <tr> |
---|
34 | <td>'.l10n('front2back_support.NAMEverso').' :</td> |
---|
35 | <td><input type="text" name="Plugins[front2back_support][NAMEverso]" value="'.$plugin_config['NAMEverso'].'" size="6"/></td> |
---|
36 | </tr> |
---|
37 | <tr> |
---|
38 | <td>'.l10n('front2back_support.MOVEverso').' :</td> |
---|
39 | <td> |
---|
40 | <input type="radio" id="front2back_support-move1" name="Plugins[front2back_support][MOVEverso]" value="true" '.(($plugin_config['MOVEverso'])?'checked="checked"':'').'/> |
---|
41 | <label for="front2back_support-move1">'.l10n('yes').'</label> |
---|
42 | <input type="radio" id="front2back_support-move2" name="Plugins[front2back_support][MOVEverso]" value="false" '.((!$plugin_config['MOVEverso'])?'checked="checked"':'').'/> |
---|
43 | <label for="front2back_support-move2">'.l10n('no').'</label> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td>'.l10n('front2back_support.TAGverso').' :</td> |
---|
48 | <td> |
---|
49 | <input type="text" name="Plugins[front2back_support][TAGverso]" value="'.$plugin_config['TAGverso'].'" size="10"/> |
---|
50 | <i>'.l10n('front2back_support.unactive').'</i> |
---|
51 | </td> |
---|
52 | </tr> |
---|
53 | </table>'; |
---|
54 | break; |
---|
55 | } |
---|
56 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.