diff options
Diffstat (limited to 'views')
-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'))); |