# king-addons/51.1.44/includes/extensions/Activity_Log/templates/view-export.php

King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder, version 51.1.44. 55 lines.

- Page: https://pluginprobe.com/plugins/king-addons/51.1.44/code/includes/extensions/Activity_Log/templates/view-export.php
- Raw: https://pluginprobe.com/plugins/king-addons/51.1.44/raw/includes/extensions/Activity_Log/templates/view-export.php
- Modified: 2025-12-27T05:19:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/king-addons/51.1.44/code/includes/extensions/Activity_Log/templates/view-export.php#L10-L20`.

```php
<?php
/**
 * Activity Log export view.
 *
 * @package King_Addons
 */

if (!defined('ABSPATH')) {
    exit;
}

$export_url = wp_nonce_url(add_query_arg([
    'action' => 'kng_activity_log_export',
], admin_url('admin-post.php')), 'kng_activity_log_export');
?>

<div class="ka-card">
    <div class="ka-card-header">
        <span class="dashicons dashicons-download purple"></span>
        <h2><?php esc_html_e('Export CSV', 'king-addons'); ?></h2>
    </div>
    <div class="ka-card-body">
        <p><?php esc_html_e('Export the current activity log into a CSV file. For filtered exports, use the Logs page filters first.', 'king-addons'); ?></p>
        <a href="<?php echo esc_url(add_query_arg(['page' => 'king-addons-activity-log', 'view' => 'logs'], admin_url('admin.php'))); ?>" class="ka-btn ka-btn-secondary">
            <?php esc_html_e('Go to Logs', 'king-addons'); ?>
        </a>
        <a href="<?php echo esc_url($export_url); ?>" class="ka-btn ka-btn-primary">
            <?php esc_html_e('Download CSV', 'king-addons'); ?>
        </a>
    </div>
    <?php if (!$is_pro) : ?>
        <div class="ka-card-footer">
            <small><?php esc_html_e('Free exports are limited to the retention window (14 days).', 'king-addons'); ?></small>
        </div>
    <?php endif; ?>
</div>

<div class="ka-card">
    <div class="ka-card-header">
        <span class="dashicons dashicons-lock pink"></span>
        <h2><?php esc_html_e('Pro Exports', 'king-addons'); ?></h2>
        <?php if (!$is_pro) : ?><span class="ka-pro-badge">PRO</span><?php endif; ?>
    </div>
    <div class="ka-card-body">
        <ul>
            <li><?php esc_html_e('JSON export with full metadata', 'king-addons'); ?></li>
            <li><?php esc_html_e('Scheduled exports to email or storage', 'king-addons'); ?></li>
            <li><?php esc_html_e('Webhook delivery for SIEM tools', 'king-addons'); ?></li>
        </ul>
        <a href="https://kingaddons.com/pricing/" target="_blank" class="ka-btn ka-btn-pink">
            <?php esc_html_e('Upgrade to Pro', 'king-addons'); ?>
        </a>
    </div>
</div>

```
