<?php
/**
 * General settings tab template.
 *
 * @package KooKoa_Folders
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; }
?>
	<!-- ============================================
		TAB 1: General
		============================================ -->
	<div class="kookoawpf-tab-panel active" data-panel="general">

		<div class="kookoawpf-settings-section">
			<h2><?php esc_html_e( 'General Settings', 'kookoa-folders' ); ?></h2>

			<div id="kookoawpf-settings-form">
				<table class="form-table">
					<!-- ═══ BLOCK 1: Sidebar & Tree ═══ -->
					<tr>
						<th scope="row"><?php esc_html_e( 'Enable folders for', 'kookoa-folders' ); ?></th>
						<td>
							<?php
							/**
							 * Extension point: companion plugins can override this row
							 * to render additional enableable post types. The default
							 * row covers the Media Library.
							 */
							if ( has_action( 'kookoawpf_settings_post_types_row' ) ) {
								do_action( 'kookoawpf_settings_post_types_row', $kookoawpf_post_types );
							} else {
								// Mirror the PRO row layout (Media, Posts, Pages,
								// then CPT block), but render non-Media entries
								// as a red X marker — they are PRO-only and
								// cannot be enabled from FREE. Media remains the
								// only active post type and is persisted via the
								// hidden input below.
								$kookoawpf_all_pt  = get_post_types( array( 'public' => true ), 'objects' );
								$kookoawpf_builtin = array( 'attachment', 'post', 'page' );
								$kookoawpf_sorted  = array();
								foreach ( $kookoawpf_builtin as $kookoawpf_b ) {
									if ( isset( $kookoawpf_all_pt[ $kookoawpf_b ] ) ) {
										$kookoawpf_sorted[ $kookoawpf_b ] = $kookoawpf_all_pt[ $kookoawpf_b ];
									}
								}
								$kookoawpf_cpts = array();
								foreach ( $kookoawpf_all_pt as $kookoawpf_k => $kookoawpf_v ) {
									if ( ! in_array( $kookoawpf_k, $kookoawpf_builtin, true ) ) {
										$kookoawpf_cpts[ $kookoawpf_k ] = $kookoawpf_v;
									}
								}
								foreach ( $kookoawpf_sorted as $kookoawpf_pt ) {
									$kookoawpf_is_media = ( 'attachment' === $kookoawpf_pt->name );
									$kookoawpf_label    = $kookoawpf_is_media ? __( 'Media', 'kookoa-folders' ) : $kookoawpf_pt->labels->name;
									?>
									<div style="display:flex;align-items:center;gap:8px;color:#fff;font-size:14px;margin-bottom:6px;">
										<?php if ( $kookoawpf_is_media ) : ?>
											<span style="color:#39FF14;font-size:16px;line-height:1;">&#10003;</span>
										<?php else : ?>
											<span style="color:#FF3B30;font-size:16px;line-height:1;">&#10007;</span>
										<?php endif; ?>
										<span><?php echo esc_html( $kookoawpf_label ); ?></span>
										<?php if ( ! $kookoawpf_is_media ) : ?>
											<span style="color:#FF9500;font-family:'Share Tech Mono',monospace;font-weight:bold;font-size:12px;letter-spacing:0.5px;">PRO</span>
										<?php endif; ?>
									</div>
									<?php
								}
								if ( ! empty( $kookoawpf_cpts ) ) {
									?>
									<div style="margin-top:10px;margin-bottom:8px;color:#FF9500;font-family:'Share Tech Mono',monospace;font-size:13px;letter-spacing:0.5px;">
										<?php esc_html_e( 'Custom Post Types & Plugins', 'kookoa-folders' ); ?>
									</div>
									<?php
									foreach ( $kookoawpf_cpts as $kookoawpf_pt ) {
										?>
										<div style="display:flex;align-items:center;gap:8px;color:#fff;font-size:14px;margin-bottom:6px;">
											<span style="color:#FF3B30;font-size:16px;line-height:1;">&#10007;</span>
											<span><?php echo esc_html( $kookoawpf_pt->labels->name ); ?></span>
											<span style="color:#FF9500;font-family:'Share Tech Mono',monospace;font-weight:bold;font-size:12px;letter-spacing:0.5px;">PRO</span>
										</div>
										<?php
									}
								}
								?>
								<input type="hidden" name="kookoawpf_post_types[]" value="attachment">
								<?php
							}
							?>
						</td>
					</tr>
					<tr>
						<th scope="row"><?php esc_html_e( 'Show item count', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_show_count" value="yes" <?php checked( $kookoawpf_show_count, 'yes' ); ?>>
								<?php esc_html_e( 'Show number of items in each folder', 'kookoa-folders' ); ?>
							</label>
						</td>
					</tr>
					<?php
					/**
					 * Extension point: companion plugins emit the full "Folder
					 * stats" row (label + control) only when they need it. The
					 * FREE plugin keeps the bottom-of-sidebar counters always
					 * on, so the row is omitted entirely from the form here.
					 */
					do_action( 'kookoawpf_settings_folder_stats_row', $kookoawpf_show_folder_stats );
					?>
					<tr id="kookoawpf-settings-width-row">
						<th scope="row"><?php esc_html_e( 'Sidebar width', 'kookoa-folders' ); ?></th>
						<td>
							<div class="kookoawpf-number-spinner" style="display:inline-flex;width:110px;vertical-align:middle;">
								<input type="number" name="kookoawpf_width" value="<?php echo esc_attr( $kookoawpf_width ); ?>" min="300" max="600" data-default="<?php echo (int) $kookoawpf_width; ?>" style="width:80px;">
								<div class="kookoawpf-number-spinner-btns">
									<button type="button" class="kookoawpf-number-spinner-btn" data-dir="up">&#9650;</button>
									<button type="button" class="kookoawpf-number-spinner-btn" data-dir="down">&#9660;</button>
								</div>
							</div> px &nbsp;<span style="color:#fff;font-size:13px;">(300 – 600)</span>
						</td>
					</tr>
					<tr>
						<th scope="row"><?php esc_html_e( 'Folder font size', 'kookoa-folders' ); ?></th>
						<td>
							<label style="display:inline-block;margin-right:16px;">
								<input type="radio" name="kookoawpf_font_size" value="compact" <?php checked( $kookoawpf_font_size, 'compact' ); ?>>
								<?php esc_html_e( 'Compact', 'kookoa-folders' ); ?> <span style="color:#fff;">(12px)</span>
							</label>
							<label style="display:inline-block;margin-right:16px;">
								<input type="radio" name="kookoawpf_font_size" value="default" <?php checked( $kookoawpf_font_size, 'default' ); ?>>
								<?php esc_html_e( 'Default', 'kookoa-folders' ); ?> <span style="color:#fff;">(13px)</span>
							</label>
							<label style="display:inline-block;margin-right:16px;">
								<input type="radio" name="kookoawpf_font_size" value="large" <?php checked( $kookoawpf_font_size, 'large' ); ?>>
								<?php esc_html_e( 'Large', 'kookoa-folders' ); ?> <span style="color:#fff;">(14px)</span>
							</label>
							<label style="display:inline-block;">
								<input type="radio" name="kookoawpf_font_size" value="xlarge" <?php checked( $kookoawpf_font_size, 'xlarge' ); ?>>
								<?php esc_html_e( 'X Large', 'kookoa-folders' ); ?> <span style="color:#fff;">(15px)</span>
							</label>
						</td>
					</tr>
					<tr>
						<th scope="row"><?php esc_html_e( 'Default folder color', 'kookoa-folders' ); ?></th>
						<td>
							<div class="kookoawpf-settings-color-row">
								<?php
								$kookoawpf_palette = array( '#39FF14', '#34C759', '#00BCD4', '#007AFF', '#9966FF', '#FF66FF', '#FF3300', '#FF9500', '#FFCC00', '#CC9933', '#FFCCFF', '#999999', '#FFFFFF', '#000000' );
								foreach ( $kookoawpf_palette as $kookoawpf_c ) :
									$kookoawpf_active       = ( strtoupper( $kookoawpf_color ) === strtoupper( $kookoawpf_c ) ) ? ' kookoawpf-settings-color-active' : '';
									$kookoawpf_black_border = ( '#000000' === $kookoawpf_c ) ? 'border:2px solid var(--kookoawpf-green);' : '';
									?>
									<span class="kookoawpf-settings-color-dot<?php echo esc_attr( $kookoawpf_active ); ?>" data-color="<?php echo esc_attr( $kookoawpf_c ); ?>" style="background-color:<?php echo esc_attr( $kookoawpf_c ); ?>;<?php echo esc_attr( $kookoawpf_black_border ); ?>"></span>
								<?php endforeach; ?>
							</div>
							<input type="hidden" name="kookoawpf_color" value="<?php echo esc_attr( $kookoawpf_color ); ?>">
						</td>
					</tr>

					<!-- ═══ Separator ═══ -->
					<tr><td colspan="2" style="padding:0;"><hr style="border:none;border-top:1px solid #39FF14;margin:10px 0;"></td></tr>

					<!-- ═══ BLOCK 2: Content Area ═══ -->
					<tr id="kookoawpf-settings-startup-row">
						<th scope="row"><?php esc_html_e( 'Startup folder', 'kookoa-folders' ); ?></th>
						<td>
							<label style="display:block;margin-bottom:6px;">
								<input type="radio" name="kookoawpf_startup_mode" value="all" <?php checked( $kookoawpf_startup_mode, 'all' ); ?>>
								<?php esc_html_e( 'All Files', 'kookoa-folders' ); ?>
								<span style="color:#8b949e;font-size:13px;margin-left:8px;"><?php esc_html_e( '(default — no folder pre-selected)', 'kookoa-folders' ); ?></span>
							</label>
							<label style="display:block;margin-bottom:6px;">
								<input type="radio" name="kookoawpf_startup_mode" value="last" <?php checked( $kookoawpf_startup_mode, 'last' ); ?>>
								<?php esc_html_e( 'Last opened folder', 'kookoa-folders' ); ?>
								<span style="color:#8b949e;font-size:13px;margin-left:8px;"><?php esc_html_e( '(remember per user and per post type)', 'kookoa-folders' ); ?></span>
							</label>
							<label style="display:block;margin-bottom:6px;">
								<input type="radio" name="kookoawpf_startup_mode" value="specific" <?php checked( $kookoawpf_startup_mode, 'specific' ); ?>>
								<?php esc_html_e( 'Specific folder', 'kookoa-folders' ); ?>
							</label>

							<div id="kookoawpf-settings-startup-specific" style="margin-top:10px;margin-left:24px;<?php echo esc_attr( 'specific' === $kookoawpf_startup_mode ? '' : 'display:none;' ); ?>">
								<?php
								$kookoawpf_startup_pts = array();
								foreach ( (array) $kookoawpf_post_types as $kookoawpf_startup_pt_slug ) {
									if ( 'attachment' === $kookoawpf_startup_pt_slug ) {
										$kookoawpf_startup_pts[ $kookoawpf_startup_pt_slug ] = __( 'Media', 'kookoa-folders' );
									} else {
										$kookoawpf_pt_obj = get_post_type_object( $kookoawpf_startup_pt_slug );
										if ( $kookoawpf_pt_obj ) {
											$kookoawpf_startup_pts[ $kookoawpf_startup_pt_slug ] = $kookoawpf_pt_obj->labels->name;
										}
									}
								}
								foreach ( $kookoawpf_startup_pts as $kookoawpf_startup_pt_slug => $kookoawpf_startup_pt_label ) :
									$kookoawpf_startup_tree = KookoaWPF_Folders::get_tree( $kookoawpf_startup_pt_slug );
									$kookoawpf_startup_flat = array();
									KookoaWPF_Folders::flatten_tree( $kookoawpf_startup_tree, $kookoawpf_startup_flat );
									$kookoawpf_selected_fid = isset( $kookoawpf_startup_folder_ids[ $kookoawpf_startup_pt_slug ] ) ? (int) $kookoawpf_startup_folder_ids[ $kookoawpf_startup_pt_slug ] : 0;
									?>
									<div style="margin-bottom:8px;display:flex;align-items:center;gap:10px;">
										<label style="min-width:80px;color:#FF9500;font-family:'Share Tech Mono',monospace;font-size:13px;letter-spacing:0.5px;"><?php echo esc_html( $kookoawpf_startup_pt_label ); ?></label>
										<div style="width:280px;">
										<select name="kookoawpf_startup_folder_ids[<?php echo esc_attr( $kookoawpf_startup_pt_slug ); ?>]" class="kookoawpf-startup-folder-select" style="width:100%;">
											<option value="0"><?php esc_html_e( '— All Files —', 'kookoa-folders' ); ?></option>
											<?php
											foreach ( $kookoawpf_startup_flat as $kookoawpf_startup_folder ) :
												$kookoawpf_startup_label = $kookoawpf_startup_folder['text'];
												if ( ! empty( $kookoawpf_startup_folder['pinned'] ) ) {
													$kookoawpf_startup_label .= ' ⭐';
												}
												if ( ! empty( $kookoawpf_startup_folder['locked'] ) ) {
													$kookoawpf_startup_label .= ' 🔒';
												}
												?>
												<option value="<?php echo esc_attr( $kookoawpf_startup_folder['id'] ); ?>" <?php selected( $kookoawpf_selected_fid, (int) $kookoawpf_startup_folder['id'] ); ?>><?php echo esc_html( $kookoawpf_startup_label ); ?></option>
											<?php endforeach; ?>
										</select>
										</div>
									</div>
								<?php endforeach; ?>
							</div>
						</td>
					</tr>
					<tr>
						<th scope="row"><?php esc_html_e( 'Breadcrumb navigation', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_show_breadcrumb" value="yes" <?php checked( $kookoawpf_show_breadcrumb, 'yes' ); ?>>
								<?php esc_html_e( 'Show folder path above the content area', 'kookoa-folders' ); ?>
							</label>
							<div id="kookoawpf-settings-breadcrumb-style" style="margin-top:8px;margin-left:24px;">
								<label style="margin-right:16px;">
									<input type="radio" name="kookoawpf_breadcrumb_style" value="default" <?php checked( $kookoawpf_breadcrumb_style, 'default' ); ?>>
									<?php esc_html_e( 'Default', 'kookoa-folders' ); ?>
								</label>
								<label>
									<input type="radio" name="kookoawpf_breadcrumb_style" value="retro" <?php checked( $kookoawpf_breadcrumb_style, 'retro' ); ?>>
									<?php esc_html_e( 'Retro Dark', 'kookoa-folders' ); ?>
								</label>
							</div>
						</td>
					</tr>
					<tr id="kookoawpf-settings-subfolder-cards-row">
						<th scope="row"><?php esc_html_e( 'Subfolder cards', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_show_subfolder_cards" value="yes" <?php checked( $kookoawpf_show_subfolder_cards, 'yes' ); ?>>
								<?php esc_html_e( 'Show subfolder cards below the breadcrumb', 'kookoa-folders' ); ?>
							</label>
						</td>
					</tr>
					<tr id="kookoawpf-settings-metadata-row">
						<th scope="row"><?php esc_html_e( 'Media hover info', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" id="kookoawpf-show-metadata-tooltip" name="kookoawpf_show_metadata_tooltip" value="yes" <?php checked( $kookoawpf_show_metadata_tooltip, 'yes' ); ?>>
								<?php esc_html_e( 'Show file details tooltip on media grid hover', 'kookoa-folders' ); ?>
							</label>
							<div id="kookoawpf-settings-exif-sub" style="margin-top:8px;margin-left:24px;">
								<label>
									<input type="checkbox" id="kookoawpf-show-exif" name="kookoawpf_show_exif" value="yes" <?php checked( $kookoawpf_show_exif, 'yes' ); ?> <?php disabled( $kookoawpf_show_metadata_tooltip, 'no' ); ?>>
									<?php esc_html_e( 'Include EXIF info (camera, aperture, shutter, ISO, focal length) for', 'kookoa-folders' ); ?><span aria-label="photographers" style="display:inline-block;vertical-align:middle;margin:1px 0 0 4px;color:#39FF14;"><svg viewBox="0 0 24 24" fill="currentColor" width="22" height="22" aria-hidden="true"><path d="M8.5 3L7 5.5H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-12a2 2 0 0 0-2-2h-3L15.5 3h-7zM12 8.5a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm5.5-3.5a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8z"/></svg></span>
								</label>
							</div>
						</td>
					</tr>

					<!-- ═══ Separator ═══ -->
					<tr><td colspan="2" style="padding:0;"><hr style="border:none;border-top:1px solid #39FF14;margin:10px 0;"></td></tr>

					<!-- ═══ BLOCK 3: System ═══ -->
					<tr id="kookoawpf-settings-shortcuts-row">
						<th scope="row"><?php esc_html_e( 'Keyboard Shortcuts', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_shortcuts_enabled" value="yes" <?php checked( $kookoawpf_shortcuts_enabled, 'yes' ); ?>>
								<?php esc_html_e( 'Use keyboard shortcuts to navigate faster', 'kookoa-folders' ); ?>
							</label>
							<span style="color:#ffffff;margin-left:12px;font-family:'Share Tech Mono',monospace;font-size:13px;">(</span><a href="#" id="kookoawpf-settings-view-shortcuts" style="color:#39FF14;font-family:'Share Tech Mono',monospace;font-size:13px;text-decoration:underline;"><?php esc_html_e( 'View shortcuts', 'kookoa-folders' ); ?></a><span style="color:#ffffff;font-family:'Share Tech Mono',monospace;font-size:13px;">)</span>
						</td>
					</tr>
					<tr>
						<th scope="row"><?php esc_html_e( 'Keep data on uninstall', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_keep_data" value="yes" <?php checked( $kookoawpf_keep_data, 'yes' ); ?>>
								<?php esc_html_e( 'Keep folders and settings when the plugin is deleted', 'kookoa-folders' ); ?>
							</label>
						</td>
					</tr>
					<?php
						// Show "Force English" only when two conditions are met:
						// 1. The user locale is NOT English (checkbox would be a no-op otherwise).
						// 2. A translation for this plugin is actually installed for the locale.
						// WP.org Language Packs auto-install .mo files once a translation reaches
						// 90% completion; we check this through the canonical WP API rather than
						// building the path manually.
						$kookoawpf_locale          = get_user_locale();
						$kookoawpf_has_translation = false;
					if ( function_exists( 'wp_get_installed_translations' ) ) {
						$kookoawpf_installed_translations = wp_get_installed_translations( 'plugins' );
						$kookoawpf_has_translation        = isset( $kookoawpf_installed_translations['kookoa-folders'][ $kookoawpf_locale ] );
					}
					// Fallback: also accept translations shipped inside the plugin's own
					// languages/ directory. wp_get_installed_translations() only scans
					// wp-content/languages/plugins/ — it misses .mo files we ship ourselves.
					if ( ! $kookoawpf_has_translation && defined( 'KOOKOAWPF_PLUGIN_DIR' ) ) {
						$kookoawpf_bundled_mo = KOOKOAWPF_PLUGIN_DIR . 'languages/kookoa-folders-' . $kookoawpf_locale . '.mo';
						if ( file_exists( $kookoawpf_bundled_mo ) ) {
							$kookoawpf_has_translation = true;
						} elseif ( preg_match( '/^([a-z]{2,3})_[A-Z]{2,4}$/', $kookoawpf_locale, $kookoawpf_lang_match ) ) {
							// Generic language fallback: es_MX -> es, fr_BE -> fr, de_AT -> de.
							$kookoawpf_fallback_mo = KOOKOAWPF_PLUGIN_DIR . 'languages/kookoa-folders-' . $kookoawpf_lang_match[1] . '.mo';
							if ( file_exists( $kookoawpf_fallback_mo ) ) {
								$kookoawpf_has_translation = true;
							}
						}
					}
					if ( 0 !== strpos( $kookoawpf_locale, 'en' ) && $kookoawpf_has_translation ) :
						?>
					<tr>
						<th scope="row"><?php esc_html_e( 'Force English', 'kookoa-folders' ); ?></th>
						<td>
							<label>
								<input type="checkbox" name="kookoawpf_force_english" value="yes" <?php checked( $kookoawpf_force_english, 'yes' ); ?>>
							<?php esc_html_e( 'Always use English regardless of WordPress language', 'kookoa-folders' ); ?>
							</label>
						</td>
					</tr>
					<?php endif; ?>
					<tr id="kookoawpf-settings-access-control-row">
						<th scope="row"><?php esc_html_e( 'Access Control', 'kookoa-folders' ); ?></th>
						<td style="display:flex;flex-wrap:wrap;gap:4px 24px;align-items:center;">
							<?php
							$kookoawpf_roles = wp_roles()->roles;
							foreach ( $kookoawpf_roles as $kookoawpf_role_slug => $kookoawpf_role_data ) :
								$kookoawpf_role_obj = get_role( $kookoawpf_role_slug );
								if ( ! $kookoawpf_role_obj || ! $kookoawpf_role_obj->has_cap( 'upload_files' ) ) {
									continue;
								}
								$kookoawpf_checked  = in_array( $kookoawpf_role_slug, $kookoawpf_allowed_roles, true );
								$kookoawpf_is_admin = ( 'administrator' === $kookoawpf_role_slug );
								?>
							<label style="white-space:nowrap;font-size:13px;display:inline-flex;align-items:center;gap:8px;">
								<?php if ( $kookoawpf_is_admin ) : ?>
									<span style="color:#39FF14;font-size:16px;line-height:1;">&#10003;</span>
								<?php else : ?>
									<input type="checkbox" name="kookoawpf_allowed_roles[]" value="<?php echo esc_attr( $kookoawpf_role_slug ); ?>" <?php checked( $kookoawpf_checked ); ?>>
								<?php endif; ?>
								<?php echo esc_html( translate_user_role( $kookoawpf_role_data['name'] ) ); ?>
							</label>
							<?php endforeach; ?>
						</td>
					</tr>
				</table>

				<p>
					<button type="button" id="kookoawpf-save-settings" class="button button-primary kookoawpf-btn-save">
						<?php esc_html_e( 'Save Settings', 'kookoa-folders' ); ?>
					</button>
				</p>
			</div>
		</div>

		<?php
		// Hide the Rate Us section once the current user has dismissed it
		// (set-only flag in user_meta, written by settings.js via the
		// kookoawpf_dismiss_review AJAX endpoint).
		$kookoawpf_review_dismissed = (bool) get_user_meta( get_current_user_id(), 'kookoawpf_review_dismissed', true );

		// The dismiss "×" only appears AFTER the user has clicked the
		// "Rate this plugin" link at least once — soft gate that nudges
		// them to actually visit WordPress.org before hiding the request.
		// Flag is written by settings.js on the rate-link click via the
		// kookoawpf_mark_review_clicked AJAX endpoint.
		$kookoawpf_review_clicked = (bool) get_user_meta( get_current_user_id(), 'kookoawpf_review_clicked', true );
		?>
		<?php if ( ! $kookoawpf_review_dismissed ) : ?>
		<!-- ── Rate Us section — its own panel, dismissible via the X in the corner. -->
		<div id="kookoawpf-review-section" class="kookoawpf-settings-section">
			<?php
			// The dismiss "×" stays hidden until the user has clicked the
			// rate link at least once (soft gate). Push the visibility
			// through a dedicated style attribute so the conditional
			// output goes through esc_attr() instead of echoing a raw
			// HTML attribute fragment.
			$kookoawpf_review_dismiss_style = $kookoawpf_review_clicked ? '' : 'display:none;';
			?>
			<button type="button" id="kookoawpf-review-dismiss" class="kookoawpf-review-dismiss" aria-label="<?php esc_attr_e( 'Dismiss', 'kookoa-folders' ); ?>" style="<?php echo esc_attr( $kookoawpf_review_dismiss_style ); ?>">&times;</button>
			<div class="kookoawpf-review-card">
				<div class="kookoawpf-review-stars">&#9733;&#9733;&#9733;&#9733;&#9733;</div>
				<div class="kookoawpf-review-content">
					<div class="kookoawpf-review-title"><?php esc_html_e( 'Enjoying KooKoa Folders?', 'kookoa-folders' ); ?></div>
					<div class="kookoawpf-review-text"><?php esc_html_e( 'Help other users discover this plugin — leave a 5-star review on WordPress.org. It only takes a minute and means a lot.', 'kookoa-folders' ); ?></div>
					<a href="https://wordpress.org/support/plugin/kookoa-folders/reviews/?rate=5#new-post"
						class="kookoawpf-review-btn" target="_blank" rel="noopener noreferrer">
						<?php esc_html_e( 'RATE THIS PLUGIN', 'kookoa-folders' ); ?>
					</a>
				</div>
			</div>
		</div>
		<?php endif; ?>

	</div>
