<?php
/**
 * Getting started template
 */
global $sparkling_required_actions, $sparkling_recommended_plugins;

// Initialize the Sparkling_Welcome class
$sparkling_welcome = new Sparkling_Welcome();

// Get the count of required actions
$count_actions = $sparkling_welcome->count_actions();

$customizer_url = admin_url() . 'customize.php';
$count = $count_actions;
?>

<div class="feature-section three-col has-3-columns is-fullwidth">
    <div class="col column">
        <h3><?php esc_html_e( 'Step 1 - Implement recommended actions', 'sparkling' ); ?></h3>
        <p><?php esc_html_e( 'We\'ve compiled a list of steps for you, to take make sure the experience you\'ll have using one of our products is very easy to follow.', 'sparkling' ); ?></p>
        <?php if ( 0 == $count ) { ?>
            <p><span class="dashicons dashicons-yes"></span>
                <?php esc_html_e( 'No recommended actions left to perform', 'sparkling' ); ?>
            </p>
        <?php } else { ?>
            <p><span class="dashicons dashicons-no-alt"></span> <a href="<?php echo esc_url( admin_url( 'themes.php?page=sparkling-welcome&tab=recommended_actions' ) ); ?>"><?php esc_html_e( 'Check recommended actions', 'sparkling' ); ?></a>
            </p> 
            <?php
};
?>
    </div><!--/.col-->

    <div class="col column">
        <h3><?php esc_html_e( 'Step 2 - Check our documentation', 'sparkling' ); ?></h3>
        <p><?php esc_html_e( 'Even if you\'re a long-time WordPress user, we still believe you should give our documentation a very quick Read.', 'sparkling' ); ?></p>
        <p>
            <a target="_blank"
               href="<?php echo esc_url( 'https://colorlib.com/wp/support/sparkling/' ); ?>"><?php esc_html_e( 'Full documentation', 'sparkling' ); ?></a>
        </p>
    </div><!--/.col-->

    <div class="col column">
        <h3><?php esc_html_e( 'Step 3 - Customize everything', 'sparkling' ); ?></h3>
        <p><?php esc_html_e( 'Using the WordPress Customizer you can easily customize every aspect of the theme.', 'sparkling' ); ?></p>
        <p><a target="_blank" href="<?php echo esc_url( $customizer_url ); ?>"
              class="button button-primary"><?php esc_html_e( 'Go to Customizer', 'sparkling' ); ?></a>
        </p>
    </div><!--/.col-->
</div><!--/.feature-section-->