blob: 4ebdb719cd4e217b0fd8fa9290a60658d6f4bbeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
/**
* Welcome widget for admins
*/
// section => string replacements.
$sections = array(
'intro' => array(),
'admin_overview' => array(),
'common_links' => array(
elgg_normalize_url('pg/admin/plugins/simple'),
elgg_normalize_url('pg/admin/site/advanced'),
),
'external_resources' => array(),
'outro' => array()
);
// don't use longtext because it filters output.
// that's annoying.
foreach ($sections as $section => $strings) {
echo '<p>' . elgg_echo("admin:widget:admin_welcome:$section", $strings) . '</p>';
}
|