<div class="w2dc-fields-group">
	<?php if (!$content_fields_group->on_tab): ?>
	<div class="w2dc-fields-group-caption"><?php echo $content_fields_group->name; ?></div>
	<?php endif; ?>
	<?php if (!$content_fields_group->hide_anonymous || is_user_logged_in()): ?>
		<?php foreach ($content_fields_group->content_fields_array AS $content_field): ?>
			<?php if ((!$is_single || ($is_single && $content_field->on_listing_page)) && $content_field->isNotEmpty($listing)): ?>
				<?php $content_field->renderOutput($listing); ?>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php elseif ($content_fields_group->hide_anonymous && !is_user_logged_in()): ?>
		<?php printf(__('You must be <a href="%s">logged in</a> to see this info', 'W2DC'), wp_login_url(get_permalink($listing->post->ID))); ?>
	<?php endif; ?>
</div>