<?php if( $active_tab == 'ticker' ) { ?>
<?php $data = get_option('nycreatisCC'); ?>
<div id="ncrts-admin-container">
	<div class="grid-x grid-container grid-padding-y admin-settings">
		<div class="cell small-12">
			<div class="grid-x display-required callout">
				<div class="small-12 cell">
					<h3><?php esc_html_e('Data Ticker', 'corvid'); ?></h3>
				</div>
				<div class="small-12 cell"><small><?php esc_html_e('Paste this shortcode into Sidebar Text widget.', 'corvid'); ?></small></div>
				<div class="small-12 cell"><?php esc_html_e('Use style="horizontal" for Horizontal style.', 'corvid'); ?></div>
				<div class="small-12 cell">
					<h4><?php esc_html_e('Countries:', 'corvid'); ?></h4>
				</div>
				<div class="small-12 cell">
					<select name="covid_country_ticker">
						<option value=""><?php esc_html_e('All Countries - Worldwide Statistics', 'corvid'); ?></option>
						<?php
						foreach ($data as $item) {
							echo '<option value="'.esc_html($item->country).'">'.esc_html( nycreatisCN($item) ).'</option>';
						}
						?>
					</select>
				</div>
				<p id="covidsh-ticker" class="covid_shortcode"><?php esc_html_e('[COVID19-TICKER ticker_title="World" style="vertical" confirmed_title="Confirmed" deaths_title="Deaths" recovered_title="Recovered"]', 'corvid'); ?></p>
			</div>
		</div>
	</div>
</div>
<?php 
}
