0aa6aa6f |
1 | <?php |
2 | |
3 | |
4 | /** |
5 | * SquirrelMail Demo Plugin |
6 | * |
7 | * @copyright © 2006-2007 The SquirrelMail Project Team |
8 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
9 | * @version $Id$ |
10 | * @package plugins |
11 | * @subpackage demo |
12 | */ |
13 | |
14 | |
15 | /** |
16 | * Add link to menu at top of content pane |
17 | * |
18 | * @return void |
19 | * |
20 | */ |
21 | function demo_page_header_template_do() |
22 | { |
23 | global $oTemplate; |
24 | |
25 | sq_change_text_domain('demo'); |
26 | $nbsp = $oTemplate->fetch('non_breaking_space.tpl'); |
27 | $output = makeInternalLink('plugins/demo/demo.php', _("Demo"), '') |
28 | . $nbsp . $nbsp; |
29 | sq_change_text_domain('squirrelmail'); |
30 | |
31 | return array('menuline' => $output); |
32 | } |
33 | |
34 | |
35 | |
e04de0b9 |
36 | /** |
37 | * Inserts an option block in the main SM options page |
38 | * |
39 | */ |
40 | function demo_option_link_do() |
41 | { |
42 | |
43 | global $optpage_blocks; |
44 | |
45 | sq_change_text_domain('demo'); |
46 | |
47 | $optpage_blocks[] = array( |
48 | 'name' => _("Demo"), |
49 | 'url' => sqm_baseuri() . 'plugins/demo/demo.php', |
50 | 'desc' => _("This is where you would describe what your plugin does."), |
51 | 'js' => FALSE |
52 | ); |
53 | |
54 | sq_change_text_domain('squirrelmail'); |
55 | |
56 | } |
57 | |
58 | |
59 | |