| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Logtivity |
| 4 |
* @contact logtivity.io, hello@logtivity.io |
| 5 |
* @copyright 2024-2026 Logtivity. All rights reserved |
| 6 |
* @license https://www.gnu.org/licenses/gpl.html GNU/GPL |
| 7 |
* |
| 8 |
* This file is part of Logtivity. |
| 9 |
* |
| 10 |
* Logtivity is free software: you can redistribute it and/or modify |
| 11 |
* it under the terms of the GNU General Public License as published by |
| 12 |
* the Free Software Foundation, either version 2 of the License, or |
| 13 |
* (at your option) any later version. |
| 14 |
* |
| 15 |
* Logtivity is distributed in the hope that it will be useful, |
| 16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 |
* GNU General Public License for more details. |
| 19 |
* |
| 20 |
* You should have received a copy of the GNU General Public License |
| 21 |
* along with Logtivity. If not, see <https://www.gnu.org/licenses/>. |
| 22 |
*/ |
| 23 |
|
| 24 |
echo logtivity_view('_admin-header', compact('options')); |
| 25 |
?> |
| 26 |
|
| 27 |
<div class="postbox"> |
| 28 |
<div class="logtivity-settings"> |
| 29 |
|
| 30 |
<div class="inside"> |
| 31 |
<h1 style="padding-top: 10px;">Logs</h1> |
| 32 |
</div> |
| 33 |
|
| 34 |
<form id="logtivity-log-index-search-form" method="GET" action="<?php echo admin_url( 'admin-ajax.php' ) ?>"> |
| 35 |
<input type="hidden" name="action" value="logtivity_log_index_filter"> |
| 36 |
<input id="logtivity_page" type="hidden" name="page"> |
| 37 |
|
| 38 |
<div class="logtivity-row"> |
| 39 |
<div class="logtivity-col-md-4"> |
| 40 |
<label for="logtivity-search-action"> |
| 41 |
<?php esc_html_e( 'Search', 'logtivity' ) ?> |
| 42 |
</label> |
| 43 |
<input id="logtivity-search-action" type="search" name="search_action" class="large-text" placeholder="<?php esc_attr_e( 'User Created or %keyword%', 'logtivity' ) ?>"> |
| 44 |
</div> |
| 45 |
<div class="logtivity-col-md-4"> |
| 46 |
<label for="logtivity-search-context"> |
| 47 |
<?php esc_html_e( 'Context', 'logtivity' ) ?> |
| 48 |
</label> |
| 49 |
<input id="logtivity-search-context" type="search" name="search_context" class="large-text" placeholder="<?php esc_attr_e( 'admin or %keyword%', 'logtivity' ) ?>"> |
| 50 |
</div> |
| 51 |
<div class="logtivity-col-md-4"> |
| 52 |
<label for="logtivity-search-user"> |
| 53 |
<?php esc_html_e( 'User', 'logtivity' ) ?> |
| 54 |
</label> |
| 55 |
<input id="logtivity-search-user" type="search" name="action_user" class="large-text" placeholder="<?php esc_attr_e( 'User ID / Username / IP Address', 'logtivity' ) ?>"> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
</form> |
| 59 |
|
| 60 |
<div |
| 61 |
style="padding-top: 15px" |
| 62 |
id="logtivity-log-index" |
| 63 |
role="region" |
| 64 |
aria-live="polite" |
| 65 |
aria-busy="true" |
| 66 |
aria-label="<?php esc_attr_e( 'Log results', 'logtivity' ) ?>" |
| 67 |
> |
| 68 |
<!-- Populated with AJAX --> |
| 69 |
</div> |
| 70 |
|
| 71 |
</div> |
| 72 |
</div> |
| 73 |
|
| 74 |
<?php echo logtivity_view('_admin-footer', compact('options')); ?> |
| 75 |
|