switch ($action) {
case 'edit':
+ admin_gatekeeper();
$title = elgg_echo('sitepages');
$content = sitepages_get_edit_section_content($page_type);
'restricted' => array('sitepages/custom_frontpage')
);
+ $return_value['entity'] = array(
+ 'description' => elgg_echo('sitepages:ecml:keywords:entity'),
+ 'usage' => elgg_echo('sitepages:ecml:keywords:entity_usage'),
+ 'restricted' => array('sitepages/custom_frontpage')
+ );
+
+ $return_value['view'] = array(
+ 'description' => elgg_echo('sitepages:ecml:keywords:view'),
+ 'usage' => elgg_echo('sitepages:ecml:keywords:view_usage'),
+ 'restricted' => array('sitepages/custom_frontpage')
+ );
+
return $return_value;
}
___EOT;
$logged_in_content = <<<___EOT
<div id="elgg_content" class="clearfloat sidebar">
-<div id="elgg_sidebar">
- <h3>Newest members:</h3>[userlist: list_type=new, only_with_avatars=TRUE, limit=5]
+ <div id="elgg_sidebar">
+ <h3>Newest members:</h3>[userlist list_type=new only_with_avatars=TRUE limit=5]
</div>
<div id="elgg_page_contents" class="clearfloat">
- <h2>All site activity</h2>
- [activity]
-</div>
+ <h2>All site activity</h2>
+ [activity]
+ </div>
</div>
___EOT;
$logged_out_content = <<<___EOT
<div id="elgg_content" class="clearfloat sidebar">
-<div id="elgg_sidebar">
- [loginbox]
- <h3>Newest members:</h3>[userlist: list_type=new, only_with_avatars=TRUE, limit=5]
+ <div id="elgg_sidebar">
+ [loginbox]
+ <h3>Newest members:</h3>[userlist: list_type=new, only_with_avatars=TRUE, limit=5]
</div>
<div id="elgg_page_contents" class="clearfloat">
- <h2>Welcome to [networkname]</h2><p class="margin_top">Introduction and instructions might go here. Learn about this network, and how to get registered and start adding content.</p>
- <h2>All site activity</h2>
- [activity]
-</div>
+ <h2>Welcome to [networkname]</h2><p class="margin_top">Introduction and instructions might go here. Learn about this network, and how to get registered and start adding content.</p>
+ <h2>All site activity</h2>
+ [activity]
+ </div>
</div>
___EOT;
}