<?php
  get_header();
?>
<div class='clearfix'></div>
<section class="mainsingle">
    <div class="container">
        <?php if (have_posts()) { ?>
            <div class="row ">
                <?php $newsitm =.1; while (have_posts()) : the_post(); ?>
                    <div class="col-md-4">
                        <div class="newsitm wow fadeInUp" data-wow-delay= '<?php echo $newsitm ?>s'>
                            <div class="imgsecitm">
                                <?php
                                $thumbnailnews_id = get_post_thumbnail_id();
                                $titlenews = get_the_title($thumbnailnews_id);
                                $altnews = get_post_meta($thumbnailnews_id, '_wp_attachment_image_alt', true) ?: $titlenews ;
                                ?>
                                <img src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>"
                                     class="img-fluid"
                                     alt="<?php echo esc_attr($altnews); ?>"
                                     title="<?php echo esc_attr($titlenews); ?>" />
                                <div class="onimgsecitm">
                                    <i class="fa-solid fa-calendar-days"></i>
                                    <span><?php echo get_the_date('d-m-Y'); ?></span>
                                </div>
                            </div>
                            <div class="txtsecitm">
                                <h3><?php the_title() ?></h3>
                                <?php the_excerpt(); ?>
                                <a class="main-buttonsc "
                                   href="<?php the_permalink(); ?>"  >
                                <span>
                                    <?php
                                    _e("<!--:en--> Read More<!--:--><!--:ar--> اقرأ المزيد <!--:-->");
                                    ?>
                                </span>
                                    <div class="iconbtnmain">
                                        <i class="fa-solid fa-arrow-up"></i>
                                    </div>
                                </a>
                            </div>
                        </div>
                    </div>
                    <?php  $newsitm+=.1; endwhile; ?>
            </div>
        <?php } else { ?>
            <h3>
                <?php _e('أسف ما تبحث عنة ليس موجود هنا', 'a7md') ?>
            </h3>
        <?php } ?>
    </div>
</section>

 


<div class='clearfix'></div>



<?php get_footer();?>
