<?php
$default_settings = [
    'list' => '',
    'ct_animate' => '',
];
$settings = array_merge($default_settings, $settings);
extract($settings);
?>
<?php if(isset($list) && !empty($list) && count($list)): ?>
    <div class="ct-process">
        <?php foreach ($list as $key => $ct_list): ?>
            <div class="ct-process-item <?php echo esc_attr($ct_animate); ?>">
                <?php if ( $key <= 9 ) { ?>
                    <div class="ct--number">
                        <span>0<?php echo esc_attr($key + 1); ?></span>        
                    </div>
                <?php } else { ?>
                    <div class="ct--number">
                        <span><?php echo esc_attr($key) ; ?></span>    
                    </div>
                <?php } ?>
            	<div class="ct--content">
                    <h4 class="entry--title"><?php echo ct_print_html($ct_list['title'])?></h4>
	            	<div class="entry--excerpt">
                        <?php echo ct_print_html($ct_list['content'])?>      
                    </div>  
	            </div>
           </div>
        <?php endforeach; ?>
    </div>
<?php endif; ?>
