<?php
$section_title = $section_title ?? '';
$help_links = $help_links ?? array();
?>
<div class="idf-section-header">
	<h1 class="idf-section-title"><?php echo esc_html__( $section_title, 'ignitiondeck' ); ?></h1>
	<?php if ( !empty( $help_links ) ): ?>
		<div class="idf-section-help-link-group">
			<?php foreach ( $help_links as $link ): ?>
				<a class="<?php echo esc_attr( ! empty( $link['css_classes'] ) ? $link['css_classes'] : 'button-primary' ); ?>" href="<?php echo esc_url( $link['url'] ); ?>" title="<?php echo esc_attr( $link['title'] ); ?>" target="_blank">
					<?php echo esc_html__( $link['text'], 'ignitiondeck' ); ?>
				</a>
			<?php endforeach; ?>
		</div>
	<?php endif; ?>
</div>
