| @@ -1,16 +1,113 @@ | ||
| 1 | -<div class="updated notice is-dismissible"> | |
| 1 | +<?php | |
| 2 | 2 | |
| 3 | - <img style="margin: 20px 0 20px; display: block; width: 200px; height: auto;" src="<?php echo plugin_dir_url('logtivity.php') ?>logtivity/assets/logtivity-logo.svg" alt="Logtivity"> | |
| 4 | - | |
| 5 | - <p><strong>Welcome to Logtivity!</strong> Here's how it works:</p> | |
| 6 | - | |
| 7 | - <ol> | |
| 8 | - <li>Make sure you have an account set up with <a target="_blank" href="https://logtivity.io/">Logtivity</a></li> | |
| 9 | - <li><a target="_blank" href="https://logtivity.io/docs/connect-your-site-to-logtivity/">Create a site</a> inside the Logtivity app and copy your API key.</li> | |
| 10 | - <li>Paste your API key in your <a href="<?php echo admin_url( 'admin.php?page=logtivity-settings' ) ?>">plugin settings page</a>.</li> | |
| 11 | - <li>Configure your options and you're good to go!</li> | |
| 12 | - </ol> | |
| 13 | - | |
| 14 | - <p>For more information getting started and what you can do with Logtivity <a href="http://logtivity.io/docs" target="_blank">read this guide here.</a></p> | |
| 15 | - | |
| 16 | -</div> | |
| 3 | +/** | |
| 4 | + * @package Logtivity | |
| 5 | + * @contact logtivity.io, [email protected] | |
| 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 esc_attr(($display ?? false) ? 'display:block;' : '') ?>" | |
| 26 | + class="updated notice logtivity-notice is-dismissible"> | |
| 27 | + <div> | |
| 28 | + <div style="<?php echo esc_attr(($logo ?? false) ? '' : 'display:none;'); ?>"> | |
| 29 | + <img style="margin: 0 0 20px; display: block; width: 200px; height: auto;" | |
| 30 | + src="<?php echo esc_url(plugin_dir_url('logtivity.php') . 'logtivity/assets/logtivity-logo.svg') ?>" | |
| 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 | + printf( | |
| 44 | + wp_kses( | |
| 45 | + __('%1$sCreate a Logtivity account%2$s or %3$slog in to your Logtivity account%4$s.', 'logtivity'), | |
| 46 | + [ | |
| 47 | + 'a' => [ | |
| 48 | + 'href' => true, | |
| 49 | + 'rel' => true, | |
| 50 | + 'target' => true, | |
| 51 | + ], | |
| 52 | + ] | |
| 53 | + ), | |
| 54 | + '<a target="_blank" rel="noopener noreferrer" href="' . esc_url(logtivity_get_app_url() . '/register') . '">', | |
| 55 | + '</a>', | |
| 56 | + '<a target="_blank" rel="noopener noreferrer" href="' . esc_url(logtivity_get_app_url() . '/login') . '">', | |
| 57 | + '</a>' | |
| 58 | + ); | |
| 59 | + ?> | |
| 60 | + </li> | |
| 61 | + <li> | |
| 62 | + <?php | |
| 63 | + printf( | |
| 64 | + wp_kses( | |
| 65 | + __('%sRead the "Add Site" instructions%s and get your API Key.', 'logtivity'), | |
| 66 | + [ | |
| 67 | + 'a' => [ | |
| 68 | + 'href' => true, | |
| 69 | + 'rel' => true, | |
| 70 | + 'target' => true, | |
| 71 | + ], | |
| 72 | + ] | |
| 73 | + ), | |
| 74 | + '<a target="_blank" rel="noopener noreferrer" href="' . esc_url('https://logtivity.io/docs/connect-your-site-to-logtivity/') . '">', | |
| 75 | + '</a>' | |
| 76 | + ); | |
| 77 | + ?> | |
| 78 | + </li> | |
| 79 | + <li> | |
| 80 | + <?php | |
| 81 | + printf( | |
| 82 | + wp_kses( | |
| 83 | + __('Add your API Key into %sthe Logtivity Settings area%s on this site.', 'logtivity'), | |
| 84 | + [ | |
| 85 | + 'a' => [ | |
| 86 | + 'href' => true, | |
| 87 | + 'rel' => true, | |
| 88 | + 'target' => true, | |
| 89 | + ], | |
| 90 | + ] | |
| 91 | + ), | |
| 92 | + '<a target="_blank" rel="noopener noreferrer" href="' . esc_url(admin_url('admin.php?page=logtivity-settings')) . '">', | |
| 93 | + '</a>' | |
| 94 | + ); | |
| 95 | + ?> | |
| 96 | + </li> | |
| 97 | + </ol> | |
| 98 | + <p> | |
| 99 | + <a class="button-primary logtivity-button logtivity-button-secondary" | |
| 100 | + target="_blank" | |
| 101 | + rel="noopener noreferrer" | |
| 102 | + href="<?php echo esc_url(logtivity_get_app_url() . '/login'); ?>"> | |
| 103 | + <?php esc_html_e('Login to Logtivity', 'logtivity'); ?> | |
| 104 | + </a> <a class="button-primary logtivity-button logtivity-button-primary" | |
| 105 | + target="_blank" | |
| 106 | + rel="noopener noreferrer" | |
| 107 | + href="<?php echo esc_url(logtivity_get_app_url() . '/register'); ?>"> | |
| 108 | + <?php esc_html_e('Start your free 10 day trial', 'logtivity'); ?> | |
| 109 | + </a> | |
| 110 | + </p> | |
| 111 | + </div> | |
| 112 | + </div> | |
| 113 | +</div> | |