diff options
Diffstat (limited to 'mod/sitepages')
-rw-r--r-- | mod/sitepages/languages/en.php | 10 | ||||
-rw-r--r-- | mod/sitepages/start.php | 16 | ||||
-rw-r--r-- | mod/sitepages/views/default/sitepages/keywords/sitestats.php (renamed from mod/sitepages/views/default/sitepages/keywords/site_stats.php) | 0 | ||||
-rw-r--r-- | mod/sitepages/views/default/sitepages/keywords/userlist.php (renamed from mod/sitepages/views/default/sitepages/keywords/user_list.php) | 0 |
4 files changed, 16 insertions, 10 deletions
diff --git a/mod/sitepages/languages/en.php b/mod/sitepages/languages/en.php index d42e5425a..127e6c2ea 100644 --- a/mod/sitepages/languages/en.php +++ b/mod/sitepages/languages/en.php @@ -52,10 +52,10 @@ $english = array( /** * ECML */ - 'sitepages:ecml:keywords:login_box' => 'A standard login box. Useful for the logged out content area.', - 'sitepages:ecml:keywords:site_stats' => 'This does not exist yet.', - 'sitepages:ecml:keywords:user_list' => "Lists users. Supports only_with_avatars=TRUE|FALSE, list_type=newest|online|random, limit", - 'sitepages:ecml:views:custom_frontpage' => "The front page view", + 'sitepages:ecml:keywords:loginbox' => 'A standard login box. Useful for the logged out content area.', + 'sitepages:ecml:keywords:sitestats' => 'This does not exist yet.', + 'sitepages:ecml:keywords:userlist' => "Lists users. Supports only_with_avatars=TRUE|FALSE, list_type=newest|online|random, limit", + 'sitepages:ecml:views:custom_frontpage' => "Custom Front Page", ); -add_translation('en', $english);
\ No newline at end of file +add_translation('en', $english); diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index fba466e44..f8a0ba367 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -188,17 +188,23 @@ function sitepages_parse_view($hook, $entity_type, $return_value, $params) { function sitepages_ecml_keyword_hook($hook, $entity_type, $return_value, $params) { $return_value['loginbox'] = array( 'view' => 'account/forms/login', - 'description' => elgg_echo('sitepages:ecml:keywords:login_box') + 'description' => elgg_echo('sitepages:ecml:keywords:login_box'), + 'usage' => elgg_echo('sitepages:ecml:keywords:login_box_usage'), + 'restricted' => array('sitepages/custom_frontpage') ); $return_value['userlist'] = array( - 'view' => 'sitepages/keywords/user_list', - 'description' => elgg_echo('sitepages:ecml:keywords:user_list') + 'view' => 'sitepages/keywords/userlist', + 'description' => elgg_echo('sitepages:ecml:keywords:userlist'), + 'usage' => elgg_echo('sitepages:ecml:keywords:userlist_usage'), + 'restricted' => array('sitepages/custom_frontpage') ); $return_value['sitestats'] = array( - 'view' => 'sitepages/keywords/site_stats', - 'description' => elgg_echo('sitepages:ecml:keywords:site_stats') + 'view' => 'sitepages/keywords/sitestats', + 'description' => elgg_echo('sitepages:ecml:keywords:sitestats'), + 'usage' => elgg_echo('sitepages:ecml:keywords:sitestats_usage'), + 'restricted' => array('sitepages/custom_frontpage') ); return $return_value; diff --git a/mod/sitepages/views/default/sitepages/keywords/site_stats.php b/mod/sitepages/views/default/sitepages/keywords/sitestats.php index 8ccb96794..8ccb96794 100644 --- a/mod/sitepages/views/default/sitepages/keywords/site_stats.php +++ b/mod/sitepages/views/default/sitepages/keywords/sitestats.php diff --git a/mod/sitepages/views/default/sitepages/keywords/user_list.php b/mod/sitepages/views/default/sitepages/keywords/userlist.php index 0961cb682..0961cb682 100644 --- a/mod/sitepages/views/default/sitepages/keywords/user_list.php +++ b/mod/sitepages/views/default/sitepages/keywords/userlist.php |