| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @package Logtivity |
| 5 |
* @contact logtivity.io, hello@logtivity.io |
| 6 |
* @copyright 2024-2026 Logtivity. All rights reserved |
| 7 |
* @license https://www.gnu.org/licenses/gpl.html GNU/GPL |
| 8 |
* |
| 9 |
* This file is part of Logtivity. |
| 10 |
* |
| 11 |
* Logtivity is free software: you can redistribute it and/or modify |
| 12 |
* it under the terms of the GNU General Public License as published by |
| 13 |
* the Free Software Foundation, either version 2 of the License, or |
| 14 |
* (at your option) any later version. |
| 15 |
* |
| 16 |
* Logtivity is distributed in the hope that it will be useful, |
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
* GNU General Public License for more details. |
| 20 |
* |
| 21 |
* You should have received a copy of the GNU General Public License |
| 22 |
* along with Logtivity. If not, see <https://www.gnu.org/licenses/>. |
| 23 |
*/ |
| 24 |
?> |
| 25 |
<div style="<?php echo ($display ?? false) ? 'display:block;' : '' ?>" |
| 26 |
class="updated notice logtivity-notice is-dismissible"> |
| 27 |
<div> |
| 28 |
<div style="<?php echo ($logo ?? false) ? '' : 'display:none;'; ?>"> |
| 29 |
<img style="margin: 0 0 20px; display: block; width: 200px; height: auto;" |
| 30 |
src="<?php echo sprintf('%s/logtivity/assets/logtivity-logo.svg', plugin_dir_url('logtivity.php')) ?>" |
| 31 |
alt="Logtivity"> |
| 32 |
</div> |
| 33 |
<div> |
| 34 |
<h3> |
| 35 |
<?php esc_html_e('Welcome to Logtivity! We make activity logs simple!', 'logtivity') ?> |
| 36 |
</h3> |
| 37 |
<p> |
| 38 |
<?php esc_html_e("Here's how to start your activity log for this site:", 'logtivity') ?> |
| 39 |
</p> |
| 40 |
<ol> |
| 41 |
<li> |
| 42 |
<?php |
| 43 |
echo sprintf( |
| 44 |
esc_html__('%1$sCreate a Logtivity account%2$s or %3$slog in to your Logtivity account%4$s.', 'logtivity'), |
| 45 |
'<a target="_blank" href="' . logtivity_get_app_url() . '/register">', |
| 46 |
'</a>', |
| 47 |
'<a target="_blank" href="' . logtivity_get_app_url() . '/login">', |
| 48 |
'</a>' |
| 49 |
); |
| 50 |
?> |
| 51 |
</li> |
| 52 |
<li> |
| 53 |
<?php |
| 54 |
echo sprintf( |
| 55 |
esc_html__('%sRead the "Add Site" instructions%s and get your API Key.', 'logtivity'), |
| 56 |
'<a target="_blank" href="https://logtivity.io/docs/connect-your-site-to-logtivity/">', |
| 57 |
'</a>' |
| 58 |
); |
| 59 |
?> |
| 60 |
</li> |
| 61 |
<li> |
| 62 |
<?php |
| 63 |
echo sprintf( |
| 64 |
esc_html__('Add your API Key into %sthe Logtivity Settings area%s on this site.', 'logtivity'), |
| 65 |
'<a target="_blank" href="' . admin_url('admin.php?page=logtivity-settings') . '">', |
| 66 |
'</a>' |
| 67 |
); |
| 68 |
?> |
| 69 |
</li> |
| 70 |
</ol> |
| 71 |
<p> |
| 72 |
<a class="button-primary logtivity-button logtivity-button-secondary" |
| 73 |
target="_blank" |
| 74 |
href="<?php echo logtivity_get_app_url() . '/login'; ?>"> |
| 75 |
<?php esc_html_e('Login to Logtivity', 'logtivity'); ?> |
| 76 |
</a> <a class="button-primary logtivity-button logtivity-button-primary" |
| 77 |
target="_blank" |
| 78 |
href="<?php echo logtivity_get_app_url() . '/register'; ?>"> |
| 79 |
<?php esc_html_e('Start your free 10 day trial', 'logtivity'); ?> |
| 80 |
</a> |
| 81 |
</p> |
| 82 |
</div> |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
|