<?php if(get_theme_mod('photo_gallery_show_pagination', true )== true): ?>
	<?php
		the_posts_pagination( array(
			'prev_text' => esc_html__( 'Previous page', 'photo-gallery' ),
			'next_text' => esc_html__( 'Next page', 'photo-gallery' ),
		) );
	?>		
<?php endif; ?>