Edit: extend-file-format.php
<?php $dnext_ff_options = get_option( 'dnxte_file_upload_options', array() ); $files_format = array( 'svg' => array( 'title' => __( 'Allow SVG Uploads', 'dnxte-divi-essential' ), 'info' => __( 'Toggle allow/disallow SVG file upload permission', 'dnxte-divi-essential' ), ), 'json' => array( 'title' => __( 'Allow JSON Uploads', 'dnxte-divi-essential' ), 'info' => __( 'Toggle allow/disallow JSON file upload permission', 'dnxte-divi-essential' ), ), ); ?> <div class="wrap"> <div class="dnext-ee-wrapper"> <div class="dnext-ee-items"> <div class="dnext-ee-item"> <div class="dnext-ee-admin-header-title dnext-align-inline"> <img src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/folder.svg' ); ?>" alt="Folder Icon"> <h1><?php echo esc_html( get_admin_page_title() ); ?></h1> <span class="dnxte-arrow-up-icons"> <img class="dnxte-angle-up dnxte-control-icon" src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/angle-up.svg' ); ?>" alt="Angle Up Icon"> <img class="dnxte-angle-down dnxte-control-icon" src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/angle-up.svg' ); ?>" alt="Angle Up Icon"> <img class="dnxte-arrow-up dnxte-control-icon" src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/arrow-up.svg' ); ?>" alt="Arrow Up Icon"> </span> </div> <div class="dnext-ee-admin-header-sub-title dnext-align-inline"> <img src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/settings.svg' ); ?>" alt="Settings Icon"> <p><?php echo esc_html__( 'General Settings', 'dnxte-divi-essential' ); ?></p> </div> <div class="dnext-ee-admin-content"> <form action="" method="POST"> <div class="dnext-ee-rows"> <?php foreach ( $files_format as $key => $value ) : ?> <div class="dnext-ee-row"> <label class="toggle" for="<?php echo esc_attr( $key ); ?>"> <span><?php echo esc_html( $value['title'] ); ?></span> <div class="dnxte-tooltip-container"> <img src="<?php echo esc_url( DIVI_ESSENTIAL_ASSETS . 'images/admin/tooltip-icon.svg' ); ?>" alt="Tooltip Icon"> <span class="tooltip-text"> <?php echo esc_html( $value['info'] ); ?> </span> </div> <input id="<?php echo esc_attr( $key ); ?>" name="<?php echo esc_attr( $key ); ?>" type="checkbox" value="1" class="toggle-checkbox dnxte-checkbox-field" <?php checked( isset( $dnext_ff_options[ $key ] ) && $dnext_ff_options[ $key ] ); ?> > <div class="toggle-switch"></div> </label> </div> <?php endforeach; ?> </div> <input type="hidden" name="action" value="dnxte_save_file_formats"> <input type="hidden" name="security" value="<?php echo esc_attr(wp_create_nonce( 'dnxte_save_file_formats_nonce' )); ?>"> <?php wp_nonce_field( 'dnxte_save_admin', 'dnxte_save_admin_nonce' ); ?> <input class="dnext-ee-btn button-primary" type="submit" value="Save Changes"> </form> </div> </div> </div> </div> </div>
Save
Back