<?php
/**
 * Counter number template
 */
$value = 0;

if ( 'percent' === $settings['values_type'] ) {
	$value = $settings['percent_value']['size'];
} else {
	$value  = $settings['absolute_value_curr'];
}

$this->add_render_attribute( 'circle-counter', array(
	'class'         => 'circle-counter__number',
	'data-to-value' => $value,
) );

if ( ! empty( $settings['thousand_separator'] ) ) {
	$this->add_render_attribute( 'circle-counter', 'data-delimiter', ',' );
}
?>
<span <?php echo $this->get_render_attribute_string( 'circle-counter' ); ?>>0</span>