<?php

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

?>

<div class="rizora-wrap">

    <div class="rizora-header">

        <h1>⚙️ Rizwan Image Alt Text and WebP Optimizer</h1>

        <p>
            Configure your image SEO optimization settings.
        </p>

    </div>

    <div class="rizora-card">

        <!-- Settings Form -->
        
<form
method="post"
action="options.php">

        
<?php

settings_fields(
'rizwan_image_alt_text_webp_optimizer_settings_group'
);

settings_errors();

?>

            <table class="form-table">

                <!-- Auto Alt Text -->
                <tr>

                    <th scope="row">
                        Auto Alt Text
                    </th>

                    <td>

                        <input
                            type="checkbox"
                            name="rizwan_image_alt_text_webp_optimizer_auto_alt"
                            value="1"
                            <?php checked(
                                absint(
                                    get_option(
                                        'rizwan_image_alt_text_webp_optimizer_auto_alt',
                                         0
                                    )
                                ),
                                1
                             ); ?>
                        >

                    </td>

                </tr>

                <!-- Auto Image Title -->
                <tr>

                    <th scope="row">
                        Auto Image Title
                    </th>

                    <td>

                        <input
                            type="checkbox"
                            name="rizwan_image_alt_text_webp_optimizer_auto_title"
                            value="1"
                            <?php checked(
                                absint(
                                    get_option(
                                        'rizwan_image_alt_text_webp_optimizer_auto_title',
                                        0
                                    )
                                ),
                                1
                             ); ?>
                        >

                    </td>

                </tr>

                <!-- Auto Image Caption -->
                <tr>

                    <th scope="row">
                        Auto Image Caption
                    </th>

                    <td>

                        <input
                            type="checkbox"
                            name="rizwan_image_alt_text_webp_optimizer_auto_caption"
                            value="1"
                            <?php checked(
                                absint(
                                    get_option(
                                        'rizwan_image_alt_text_webp_optimizer_auto_caption',
                                        0
                                    )
                                ),
                                1
                             ); ?>
                        >

                    </td>

                </tr>

                

<tr>

    <th scope="row">
        Auto WebP Converter
    </th>

    <td>

        <input
            type="checkbox"
            name="rizwan_image_alt_text_webp_optimizer_auto_webp"
            value="1"
            <?php checked(
                absint(
                     get_option(
                        'rizwan_image_alt_text_webp_optimizer_auto_webp',
                        0
                    )
                ),
                1
             ); ?>
        >

    </td>

</tr>


            </table>

            <?php submit_button(); ?>

        </form>

        

    </div>

</div>