# quickwebp/1.0.0/admin/templates/page-settings.php

QuickWebP – WebP &amp; AVIF Image Optimizer, Compression &amp; SEO for WordPress, version 1.0.0. 112 lines.

- Page: https://pluginprobe.com/plugins/quickwebp/1.0.0/code/admin/templates/page-settings.php
- Raw: https://pluginprobe.com/plugins/quickwebp/1.0.0/raw/admin/templates/page-settings.php
- Modified: 2023-02-09T08:58:38+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/quickwebp/1.0.0/code/admin/templates/page-settings.php#L10-L20`.

```php
<?php
/**
 * The admin settings of the plugin.
 * @since      1.0.0
 */
?>
<h1><?php _e( "Quickwebp Settings", QUICKWEBP_TEXT_DOMAIN ); ?></h1>
<form action="" method="post">

    <table class="form-table">

        <?php $this->render_component( array(
            'type'      => 'toggle',
            'name'      => 'quickwebp_settings_conversion',
            'label'     => __( "Enable/disable image conversion to WEBP format", QUICKWEBP_TEXT_DOMAIN ),
            'default'   => quickwebp_settings_default('quickwebp_settings_conversion'),
            'classes'   => 'toggle-with-children',
        )); ?>

        <tbody class="form-table children">

            <?php $this->render_component( array(
                'type'        => 'number',
                'name'        => 'quickwebp_settings_conversion_max_width',
                'label'       => __( 'Max width', QUICKWEBP_TEXT_DOMAIN ),
                'default'     => quickwebp_settings_default('quickwebp_settings_conversion_max_width')
            )); ?>

            <?php $this->render_component( array(
                'type'        => 'number',
                'name'        => 'quickwebp_settings_conversion_max_height',
                'label'       => __( 'Max height', QUICKWEBP_TEXT_DOMAIN ),
                'default'     => quickwebp_settings_default('quickwebp_settings_conversion_max_height')
            )); ?>

            <?php $this->render_component( array(
                'type'        => 'number',
                'name'        => 'quickwebp_settings_conversion_quality',
                'label'       => __( 'Quality', QUICKWEBP_TEXT_DOMAIN ),
                'default'     => quickwebp_settings_default('quickwebp_settings_conversion_quality')
            )); ?>

            <?php $this->render_component( array(
                'type'        => 'number',
                'name'        => 'quickwebp_settings_conversion_sharpen',
                'label'       => __( 'Sharpen', QUICKWEBP_TEXT_DOMAIN ),
                'default'     => quickwebp_settings_default('quickwebp_settings_conversion_sharpen')
            )); ?>

        </tbody>

    </table>

    <hr>

    <table class="form-table">

        <?php $this->render_component( array(
            'type'      => 'toggle',
            'name'      => 'quickwebp_settings_completion',
            'label'     => __( "Enable/disable smart media completion for SEO", QUICKWEBP_TEXT_DOMAIN ),
            'default'   => quickwebp_settings_default('quickwebp_settings_completion'),
            'classes'   => 'toggle-with-children',
            'description' => __( "This feature will automatically complete the media information (title, caption, alt text, description) from the image name.", QUICKWEBP_TEXT_DOMAIN ),
        )); ?>

        <tbody class="form-table children">

            <?php $this->render_component( array(
                'type'        => 'checkbox',
                'name'        => 'quickwebp_settings_completion_options',
                'default'     => quickwebp_settings_default('quickwebp_settings_completion_options'),
                'options'    => array(
                    array(
                        'label' => __( 'Title completion from image name', QUICKWEBP_TEXT_DOMAIN ),
                        'value' => 'title',
                    ),
                    array(
                        'label' => __( 'Caption completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
                        'value' => 'caption',
                    ),
                    array(
                        'label' => __( 'Alt text completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
                        'value' => 'alt',
                    ),
                    array(
                        'label' => __( 'Description completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
                        'value' => 'description',
                    )
                )
            )); ?>

        </tbody>

    </table>

    <hr>

    <table class="form-table">

        <?php $this->render_component( array(
            'type'        => 'toggle',
            'name'        => 'quickwebp_settings_cleanup',
            'label'       => __( "Enable/disable file name cleanup", QUICKWEBP_TEXT_DOMAIN ),
            'default'     => quickwebp_settings_default('quickwebp_settings_cleanup'),
            'description' => __( "Remove special characters from file names.", QUICKWEBP_TEXT_DOMAIN ),
        )); ?>

    </table>

    <?php submit_button(); ?>
</form>
```
