diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-14 12:54:15 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-14 12:54:15 +0000 |
commit | 53ab8cf80e4990ac1daf17c7a23931d26110e2f5 (patch) | |
tree | bb36b1a57232e43d3f874a09a2e3600af392b853 /views/default | |
parent | 964aae2967218c594fe5fcbadfdcada731ef2a6e (diff) | |
download | elgg-53ab8cf80e4990ac1daf17c7a23931d26110e2f5.tar.gz elgg-53ab8cf80e4990ac1daf17c7a23931d26110e2f5.tar.bz2 |
Fixes #2723 members listing pages now in core
git-svn-id: http://code.elgg.org/elgg/trunk@7616 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/core/members/nav.php | 24 | ||||
-rw-r--r-- | views/default/core/members/sidebar.php | 33 | ||||
-rw-r--r-- | views/default/forms/members/name_search.php | 8 | ||||
-rw-r--r-- | views/default/forms/members/tag_search.php | 11 |
4 files changed, 76 insertions, 0 deletions
diff --git a/views/default/core/members/nav.php b/views/default/core/members/nav.php new file mode 100644 index 000000000..a713fa8a3 --- /dev/null +++ b/views/default/core/members/nav.php @@ -0,0 +1,24 @@ +<?php +/** + * Members navigation + */ + +$tabs = array( + 'newest' => array( + 'title' => elgg_echo('members:label:newest'), + 'url' => "pg/members/newest/", + 'selected' => $vars['selected'] == 'newest', + ), + 'popular' => array( + 'title' => elgg_echo('members:label:popular'), + 'url' => "pg/members/popular/", + 'selected' => $vars['selected'] == 'popular', + ), + 'online' => array( + 'title' => elgg_echo('members:label:online'), + 'url' => "pg/members/online/", + 'selected' => $vars['selected'] == 'online', + ), +); + +echo elgg_view('navigation/tabs', array('tabs' => $tabs)); diff --git a/views/default/core/members/sidebar.php b/views/default/core/members/sidebar.php new file mode 100644 index 000000000..821547f99 --- /dev/null +++ b/views/default/core/members/sidebar.php @@ -0,0 +1,33 @@ +<?php +/** + * Members sidebar + */ + +// Tag search +$params = array( + 'method' => 'get', + 'action' => elgg_get_site_url() . 'pg/members/search/tag/', + 'disable_security' => true, +); +$body = elgg_view_form('members/tag_search', $params); + +$params = array( + 'title' => elgg_echo('members:searchtag'), + 'body' => $body, +); +echo elgg_view('layout/objects/module', $params); + + +// name search +$params = array( + 'method' => 'get', + 'action' => elgg_get_site_url() . 'pg/members/search/name/', + 'disable_security' => true, +); +$body = elgg_view_form('members/name_search', $params); + +$params = array( + 'title' => elgg_echo('members:searchname'), + 'body' => $body, +); +echo elgg_view('layout/objects/module', $params); diff --git a/views/default/forms/members/name_search.php b/views/default/forms/members/name_search.php new file mode 100644 index 000000000..265290fc9 --- /dev/null +++ b/views/default/forms/members/name_search.php @@ -0,0 +1,8 @@ +<?php + +$params = array( + 'internalname' => 'name', +); +echo elgg_view('input/text', $params); + +echo elgg_view('input/submit', array('value' => elgg_echo('search'))); diff --git a/views/default/forms/members/tag_search.php b/views/default/forms/members/tag_search.php new file mode 100644 index 000000000..1a281963d --- /dev/null +++ b/views/default/forms/members/tag_search.php @@ -0,0 +1,11 @@ +<?php +/** + * Simple members search by tag form + */ + +$params = array( + 'internalname' => 'tag', +); +echo elgg_view('input/text', $params); + +echo elgg_view('input/submit', array('value' => elgg_echo('search'))); |