<?php
/**
 * MoMO BulkCW - Editor Page
 *
 * @author MoMo Themes
 * @package momoacg
 * @since v1.0.0
 */

?>
<div class="momo-admin-content-box">
	<div class="momo-ms-admin-content-main momorssfeed-editor-main" id="momorssfeed-editor-main-form">
		<div class="momo-be-block-section" id="momo-rssfeed-new-section">
			<div class="momo-be-table-header">
				<h3 class="momo-be-block-section-header"><?php esc_html_e( 'Add Feed URL', 'momoacgwc' ); ?></h3>
			</div>
			<p>
				<?php esc_html_e( 'Adding RSS feed url will generate title(s) from feed and add it to queue which will be processed automatically after some time', 'momoacgwc' ); ?>
			</p>
			<div class="momo-be-msg-block"></div>
			<div class="momo-be-block momo-cs-plan-form momo-mt-30">
				<div class="momo-be-messagebox"></div>
				<div class="momo-be-block momo-mb-20 momo-full-block">
					<label class="regular"><?php esc_html_e( 'Feed URL', 'momoacgwc' ); ?></label>
					<input type="text" class="full-width" name="momo_rssfeed_url" autocomplete="off" placeholder="<?php echo esc_url( 'http://test.momothemes.com/rss.xml' ); ?>">
				</div>
				<div class="momo-be-block momo-mb-20 momo-full-block">
					<div class="momo-be-block momo-half-block">
						<label class="regular">
							<?php esc_html_e( 'Select Category', 'momoacgwc' ); ?>
						</label>
						<select name="momo_rssfeed_category" class="full-width">
						<?php
						$categories = get_categories(
							array(
								'orderby' => 'name',
								'order'   => 'ASC',
							)
						);

						foreach ( $categories as $category ) {
							?>
							<option value="<?php echo esc_attr( $category->term_id ); ?>"><?php echo esc_html( $category->name ); ?></option>
							<?php
						}
						?>
						</select>
					</div>
				</div>
				<div class="momo-be-block momo-full-block">
					<label class="regular">
						<?php esc_html_e( 'Save generated post as:', 'momoacgwc' ); ?>
					</label>
					<select name="momo_rssfeed_status" class="full-width">
						<!-- <option value="momoacg_post_draft"><?php esc_html_e( 'Plugin Draft', 'momoacgwc' ); ?></option> -->
						<option value="wp_post_draft"><?php esc_html_e( 'Post Draft', 'momoacgwc' ); ?></option>
						<option value="wp_post_publish"><?php esc_html_e( 'Post Publish', 'momoacgwc' ); ?></option>
					</select>
				</div>
				<div class="momo-be-block momo-mb-20 momo-w-80">
					<p class="regular">
						<?php esc_html_e( 'Generate title(s) and add to queue', 'momoacgwc' ); ?>
					</p>
					<span class="momo-rssfeed-generate-queue momo-be-btn momo-be-btn-extra"><?php esc_html_e( 'Process', 'momoacgwc' ); ?></span>
				</div>
			</div>
		</div>
	</div>
</div>
