blob: b40f23fa3caf3d43f71da1837feb55554eced1a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
/**
* Log browser search form
*
* @package ElggLogBrowser
*/
$form_vars = array(
'method' => 'get',
'action' => 'admin/administer_utilities/logbrowser',
'disable_security' => true,
);
$form = elgg_view_form('logbrowser/refine', $form_vars, $vars);
$toggle_link = elgg_view('output/url', array(
'href' => '#log-browser-search-form',
'text' => elgg_echo('logbrowser:search'),
'rel' => 'toggle',
));
$form_class = 'elgg-module elgg-module-inline';
if (!isset($vars['user_guid']) && !isset($vars['username'])) {
$form_class .= ' hidden';
}
?>
<div id="logbrowser-search-area" class="mbm">
<div>
<?php echo $toggle_link; ?>
</div>
<div id="log-browser-search-form" class="<?php echo $form_class; ?>">
<div class="elgg-head">
<h3><?php echo elgg_echo('logbrowser:search'); ?></h3>
</div>
<div class="elgg-body">
<?php echo $form; ?>
</div>
</div>
</div>
|