<?php
/**
 * Admin Sidebar Template
 *
 * Provides the sidebar content for the RSS Chimp admin pages, including
 * upgrade promotion for free plan users and support information.
 *
 * @package    RSS_Chimp
 * @subpackage RSS_Chimp/admin/partials
 */
?>

<!-- Sidebar navigation and promotional content -->
<ul class="kd-sidebar">

	<?php
	// Display upgrade promotion only for free plan users
	if ( rss_chimp_fs()->is_free_plan() ) {
		?>

		<?php
		// Render the upgrade promotional section with feature list
		echo '<li class="kd-sidebar-item" id="upgrade-default">';
		echo '<h2>' . __( 'Update to RSS Chimp Pro and unlock awesome features', 'rss-chimp' ) . '</h2>';
		echo '<ul>';
		// List of Pro features
		echo '<li>' . __( 'Create an additional RSS feed for your site', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Select from all registered image sizes', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Add custom HTML before/after feed items', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Delay the publication of new posts in the feed', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Change the additional feeds permalink', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Define the length of the posts in the custom feed', 'rss-chimp' ) . '</li>';
		echo '<li>' . __( 'Hide WordPress version from the feed', 'rss-chimp' ) . '</li>';
		echo '</ul>';
		// Upgrade call-to-action button
		echo '<div class="kd-btn">';
		echo '<a href="' . rss_chimp_fs()->get_upgrade_url() . '">';
		echo __( 'Upgrade Now', 'rss-chimp' );
		echo '</a>';
		echo '</div>';
		echo '</li>';
		?>

	<?php } ?>

	<!-- Support section with documentation and forum links -->
	<li class="kd-sidebar-item" id="support">
		<h2><?php _e( 'Houston, we have a problem!', 'rss-chimp' ); ?></h2>
		<!-- Link to documentation -->
		<p><?php echo sprintf( __( 'Have you checked out the <a target="_blank" href="%1$s">documentation</a>?', 'rss-chimp' ), 'https://kerosin.digital/support/docs/?utm_source=plugin&utm_medium=link&utm_campaign=rss.chimp&utm_term=wp-sidebar' ); ?></p>
		<!-- Link to support forum -->
		<p><?php echo sprintf( __( 'If you still have troubles with RSS Chimp please use the <a target="_blank" href="%1$s">forum</a>.', 'rss-chimp' ), 'https://wordpress.org/support/plugin/rss-chimp/' ); ?></p>
	</li>

</ul>