<?php
/**
 * Template part for displaying a scroll top in footer.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package PureNote
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$purenote_scroll_top_enable = purenote_get_customizer_option_value( 'purenote_scroll_top_enable' );

if ( false === $purenote_scroll_top_enable ) {
    return;
}

/**
 * hook - purenote_before_scroll_top
 * 
 * @since 1.0.0
 */
do_action( 'purenote_before_scroll_top' );

$purenote_scroll_top_arrow = purenote_get_customizer_option_value( 'purenote_scroll_top_arrow' );
?>
    <div id="purenote-scrollup">
        <i class="fas <?php echo esc_attr( $purenote_scroll_top_arrow ); ?>"></i>
    </div><!-- #purenote-scrollup -->
<?php
/**
 * hook - purenote_after_scroll_top
 * 
 * @since 1.0.0
 */
do_action( 'purenote_after_scroll_top' );