-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate-blogs.php
41 lines (35 loc) · 1.09 KB
/
template-blogs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/* Template Name: Blogs Template */
get_header();
?>
<main id="main-content">
<div class="container">
<div class="row">
<div class="col-lg-12 pay-main-content-wrapper">
<div class="pay-left">
<?php get_template_part( 'template-parts/components/page-top', 'section' ); ?>
<div class="page-top-with-ad">
<h1 class="page-title">Blog</h1>
<?php
if( have_rows('pages_global_ad', 'option') ):?>
<?php while( have_rows('pages_global_ad', 'option') ) : the_row();
$ad_image = get_sub_field( 'ad_image', 'option' );
if ( $ad_image != '' ) : ?>
<div class="page-ad-wrap">
<a href="<?php the_sub_field('ad_link', 'option') ?>"><img src="<?php echo $ad_image; ?>" alt=""></a>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php
echo do_shortcode( '[pay_blog_shortcodes]' )
?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
</div>
</main><!-- #main -->
<?php
get_footer();