Example #1
0
				<?php 
do_settings_fields('cartopress-settings', 'cartopress_collect_info');
?>
	        	<h4>Data Sync Options</h4>
				<p>CartoPress will automatically sync the Post Title, Summary Description, Permalink, Post Date, and all Geo Data to your CartoDB account. You may also select from the following additional options. Checking these boxes will add these features to sync so they can be featured and styled in the CartoDB infobox.</p>
				<p><em>Note: Unchecking will not remove existing data from your CartoDB table. Any new data, however, will not sync.</em> </p> 
				<?php 
do_settings_fields('cartopress-settings', 'cartopress_sync_info');
?>
	        	<div id="cpdb-customfields-select">
					<h5>Custom Field Selection</h5>
					<p>Please select a custom field from the drop down menu and press the Add Custom Field button to start syncing that custom field to CartoDB. Unchecking the box under the &ldquo;Syncing&rdquo; heading will stop syncing to for that field. Clicking &ldquo;Remove&rdquo; will remove the column (and all of its data) from CartoDB.</p>
					<select id="cpdb-customfield-select-menu">
						<option value="" disabled selected id="placeholder">Select a Custom Field</option>
						<?php 
cartopress_settings::get_metakey_menu();
?>
					</select>
					<input type="button" class="button" id="add_column" name="add_column" value="Add Custom Field" />
					<div id="cpdb-customfield-display">
						<table>
							<thead>
								<tr>
									<td align="center">Syncing</td>
									<td>Custom Field Name</td>
									<td>CartoDB Column</td>
									<td align="center">Remove</td>
								</tr>
							</thead>
							<tbody><?php 
do_settings_sections('cartopress-customfields-group');