get(); $enabled = ! empty( $s['enabled'] ); $log_auth = ! empty( $s['log_auth'] ); $log_content = ! empty( $s['log_content'] ); $log_plugins = ! empty( $s['log_plugins'] ); $log_users = ! empty( $s['log_users'] ); $retention = isset( $s['retention_days'] ) ? (int) $s['retention_days'] : 30; $preserve = ! empty( $s['preserve_data_on_uninstall'] ); $check_style = 'display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;cursor:pointer;'; $field_style = 'width:120px;padding:8px 10px;border-radius:8px;border:1px solid rgba(148,163,184,0.28);background:#0f1729;color:#fff;font-size:14px;'; $categories = [ [ 'log_auth', $log_auth, __( 'Logins', 'aiforya-activity-log' ), __( 'Logins, logouts and failed login attempts.', 'aiforya-activity-log' ), __( 'Records who logs in, who logs out and every failed attempt. For example: spotting a suspicious run of failed logins on an administrator account.', 'aiforya-activity-log' ) ], [ 'log_content', $log_content, __( 'Content', 'aiforya-activity-log' ), __( 'Publishing, editing, trashing and deleting posts and pages.', 'aiforya-activity-log' ), __( 'Tracks published, edited, trashed and deleted posts and pages. For example: knowing who changed a page, and when.', 'aiforya-activity-log' ) ], [ 'log_plugins', $log_plugins, __( 'Plugins and theme', 'aiforya-activity-log' ), __( 'Plugin activations and deactivations, theme switches.', 'aiforya-activity-log' ), __( 'Notes when a plugin is activated or deactivated and when the theme changes. For example: finding the date a plugin that broke the site was activated.', 'aiforya-activity-log' ) ], [ 'log_users', $log_users, __( 'User accounts', 'aiforya-activity-log' ), __( 'Account creation, changes and deletion.', 'aiforya-activity-log' ), __( 'Follows account creation, changes and deletion. For example: catching an unexpected new administrator.', 'aiforya-activity-log' ) ], ]; // Helper D2 : pastille d'aide « ? » charte (AiforyaTooltip). $text déjà traduit. $tip = static function ( $text ) { printf( '', esc_attr( $text ) ); }; ?>