<div class="block-poston"><?php 
            do_action('accesspress_mag_home_posted_on');
            ?>
</div>
                        <div class="block-poston"><?php 
            do_action('accesspress_mag_block_post_on');
            ?>
</div>
                        <?php 
            if ($e_counter > 1) {
                echo '</div>';
            }
            if ($e_counter == 1) {
                ?>
<div class="post-content"><?php 
                echo '<p>' . accesspress_mag_word_count(get_the_content(), 25) . '</p>';
                ?>
</div><?php 
            }
            ?>
                </div>
            <?php 
        }
    }
    echo '</div>';
    ?>
            <?php 
}
?>
    
            </div>
 function accesspress_mag_excerpt()
 {
     global $post;
     $excerpt_type = esc_attr(of_get_option('excerpt_type'));
     $excerpt_length = intval(of_get_option('excerpt_lenght'));
     $excerpt_content = get_the_content($post->ID);
     if ($excerpt_type == 'letters') {
         $excerpt_content = accesspress_mag_letter_count($excerpt_content, $excerpt_length);
     } else {
         $excerpt_content = accesspress_mag_word_count($excerpt_content, $excerpt_length);
     }
     echo '<p>' . $excerpt_content . '</p>';
 }