<?php
include_once get_template_directory() . '/anps-framework/classes/AnpsStyle.php';

if (isset($_GET['save_font'])) {
    $anps_style->update_gfonts();
}
$google_fonts = $anps_style->get_fonts('Google fonts');
?>
<form action="themes.php?page=theme_options&sub_page=theme_style_google_font&save_font" method="post">
    <div class="content-inner">
        <div class="row">
            <div class="col-md-12">
                <h3><i class="fab fa-google"></i><?php esc_html_e('Update Google Fonts', 'industrial'); ?></h3>
                <p><?php esc_html_e('As Google Fonts are not updated automatically, you can update Google Fonts by clicking the button below.', 'industrial'); ?></p>
                <p><button type="submit" class="button"><?php esc_html_e('Update Google Fonts', 'industrial'); ?></button></p>
                <br>
                <div class="alert alert-info alert-no-icon">
                    <?php esc_html_e('Number of available Google fonts', 'industrial'); ?>: <strong><?php echo count($google_fonts); ?></strong><br>
                </div>
            </div>
        </div>
    </div>
</form>
