<?php get_header(); ?>

    <section class="content sec-padding services-page">
        <div class="container">
            <h1 class="sec-tit text-center">
                <?php post_type_archive_title(); ?>
            </h1>
            <?php if (have_posts()) : ?>
                <div class="row">
                    <?php while (have_posts()) : the_post(); ?>
                        <div class="col-md-4">
                            <div class="ser-item">
                                <a class="ser-item-url d-flex align-items-center"
                                   href="<?php the_permalink(); ?>"
                                   title="<?php the_title(); ?>">
                                    <div class="ser-item-icon">
                                        <img class="img-fluid"
                                             src="<?php echo get_field('serv_icon')['url']; ?>"
                                             alt="<?php echo get_field('serv_icon')['alt']; ?>">
                                    </div>
                                    <h6 class="ser-item-tit">
                                        <?php the_title(); ?>
                                    </h6>
                                </a>
                            </div>
                        </div>
                    <?php endwhile; ?>
                </div>
                <?php wp_pagenavi(); ?>

            <?php else : ?>
                <p>
                    <?php _e('معذرة , لا يوجد محتوى مضاف حاليا', 'm7md') ?>
                </p>
            <?php endif; ?>
        </div>
    </section>

<?php get_footer(); ?>