<?php

/**
 * Advanced tools page that contain all other plugins
 * Call back function for  advanced_tools function
 */

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

function sapmfly_advanced_tools()
{
?>
    <!-- Advanced tools page started here -->
    <div class="sapmfly-advanced-tools-wrap">
        <div class="sapmfly-advanced-tools-page sapmfly-fonts">
            <div class="sapmfly-plugin-global-headings">
                <!-- include promotional and header area -->
                <?php
                $sapmfly_promotional_header_template = SAPMFLY_TEMPLATES . 'global-header-design.php';

                if (file_exists($sapmfly_promotional_header_template)) {
                    require_once $sapmfly_promotional_header_template;
                }
                ?>
            </div>

            <div class="sapmfly-advanced-tools-page-body">
                <!-- Page heading starts here -->
                <div class="sapmfly-page-heading">
                    <h1><?php echo esc_html__('Advanced Tools that Help You Work Smarter from Us', 'minifly'); ?></h1>
                    <p><?php echo esc_html__('A curated set of smart tools built to make your daily tasks faster, easier, and more effective.', 'minifly'); ?></p>
                </div>
                <!-- Page heading ends here -->

                <div class="sapmfly-plugin-promotion-area sapmfly-advanced-tools-body">
                    <div class="container">
                        <div class="row">
                            <div class="sapmfly-plugin-row-one sapmfly-plugin-refine-url">
                                <!-- Logo -->
                                <div style="text-align: center;">
                                    <img src="<?php echo esc_url(SAPMFLY_ASSETS . 'img/refinewp-logo-white.png'); ?>" alt="Plugin Logo" style="max-width: 100px; height: auto;">
                                </div>

                                <!-- Heading -->
                                <h2 style="text-align: center; margin-bottom: 10px;"><?php echo esc_html__('RefineURL', 'minifly'); ?></h2>

                                <!-- Description -->
                                <p style="text-align: center; margin-bottom: 30px;">
                                    <?php echo esc_html__('#1 WordPress link management plugin. You can securely manage your website URLs', 'minifly'); ?>
                                </p>

                                <!-- Buttons -->
                                <div style="display: flex; justify-content: space-between;">
                                    <a href="https://sapwp.com/refineurl/" target="_blank" class="button button-primary">
                                        <?php echo esc_html__('Explore Advanced Options', 'minifly'); ?>
                                    </a>
                                    <a href="https://wordpress.org/plugins/refineurl/" target="_blank" class="button">
                                        <?php echo esc_html__('Get Free', 'minifly'); ?>
                                    </a>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php
}
