Elgg  Version 2.3
content.php
Go to the documentation of this file.
1 <?php
6 // section => string replacements.
8  'intro' => [],
9  'admin_overview' => [],
10  'outro' => [],
11 ];
12 
13 // don't use longtext because it filters output.
14 // that's annoying.
15 echo '<div class="elgg-output">';
16 foreach ($sections as $section => $strings) {
17  echo '<p>' . elgg_echo("admin:widget:admin_welcome:$section", $strings) . '</p>';
18 }
19 echo '</div>';
$sections
Welcome widget for admins.
Definition: content.php:7
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:48