<?php
/**
 * Template for the settings page.
 *
 * @package Tasty_Roundups
 *
 * @var array  $tabs       A list of all pages for tab links.
 * @var string $active_tab The current tab slug.
 */

use Tasty_Roundups\Admin;
use Tasty\Framework\Utils\Common;

?>
<div class="wrap tasty-settings">
	<div class="wp-header-end"></div>
	<?php
	Common::show_tabs( $tabs );

	if ( 'settings' === $active_tab ) :
		?>
		<form method="POST" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" class="tasty-tab-content">
			<?php settings_fields( Admin::SETTINGS_GROUP_CONFIG ); ?>
			<div id="tasty-roundups-settings" class="tasty-settings-main"></div>
		</form>
	<?php endif; ?>

</div>
