<?php if ($author['type'] != 'none'): ?>
<section class='<?php echo esc_attr($module_classes); ?>' id="<?php echo esc_attr($this->module_id(false)); ?>">
	<?php if (($props['show_image'] == 'on') && $author['image']): ?>
	<div class='author-image-container'>
		<img src="<?php echo $author['image']; ?>">
	</div>
	<?php endif?>
	<div class="author-name-container">
		<?php if ($author['url']): ?>
			<span class='name-prefix'>
				<?php
                    // phpcs:ignore
                    echo __('Recipe By', 'food-recipes');
                ?>
			</span> <span class='author-name'><a href="<?php echo $author['url']; ?>"><?php echo $author['name']; // phpcs:ignore            ?></a></span>
		<?php else: ?>
			<span class='name-prefix'>
				<?php
                    // phpcs:ignore
                    echo __('Recipe By', 'food-recipes');
                ?>
			</span> <span class='author-name'><?php echo $author['name']; // phpcs:ignore          ?></span>
		<?php endif?>
	</div>
</section>
<?php else: ?>
<?php if ($this->container['divi_modules']->is_visual_builder_request()): ?>
		<section class='<?php echo esc_attr($module_classes); ?>' id="<?php echo esc_attr($this->module_id(false)); ?>">
			Note: This text is displayed only on divi visual builder. This recipe does not have any author associated with it. On live webpage this content will not be displayed.
		</section>
	<?php endif?>
<?php endif?>