<?php
/**
 * Outputs the metabox when adding/editing Posts, Pages and public facing Custom Post Types
 *
 * @package Page_Generator_Pro
 * @author WP Zinc
 */

?>

<div class="wpzinc-option sidebar">
	<div class="left">
		<label for="exclude"><?php esc_html_e( 'Exclude from regeneration?', 'page-generator-pro' ); ?></label>
	</div>
	<div class="right">
		<input type="checkbox" name="<?php echo esc_attr( $this->base->plugin->name ); ?>[exclude]" id="exclude"value="1"<?php echo ( esc_attr( $this->settings['exclude'] ) ? ' checked' : '' ); ?> />
		<p class="description">
		<?php esc_html_e( 'If checked, the post will not be regenerated when the Content Group\'s Generate functionality is run, even if the Content Group is set to overwrite.', 'page-generator-pro' ); ?>
	</p>
	</div>
	
</div>

<div class="wpzinc-option">    
	<div class="left">
		<label for="latitude"><?php esc_html_e( 'Latitude', 'page-generator-pro' ); ?></label>
	</div>
	<div class="right">
		<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>[latitude]" id="latitude" value="<?php echo esc_attr( $this->settings['latitude'] ); ?>" placeholder="<?php esc_attr_e( 'Latitude', 'page-generator-pro' ); ?>" class="widefat" />

		<p class="description">
			<?php esc_html_e( 'This is used by the Related Links Shortcode for displaying Related Links by Radius.', 'page-generator-pro' ); ?>
		</p>
	</div>
</div>

<div class="wpzinc-option">    
	<div class="left">
		<label for="longitude"><?php esc_html_e( 'Longitude', 'page-generator-pro' ); ?></label>
	</div>
	<div class="right">
		<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>[longitude]" id="longitude" value="<?php echo esc_attr( $this->settings['longitude'] ); ?>" placeholder="<?php esc_attr_e( 'Longitude', 'page-generator-pro' ); ?>" class="widefat" />

		<p class="description">
			<?php esc_html_e( 'This is used by the Related Links Shortcode for displaying Related Links by Radius.', 'page-generator-pro' ); ?>
		</p>
	</div>
</div>

<?php
wp_nonce_field( $this->base->plugin->name . '-save-meta', $this->base->plugin->name . '-save-meta-nonce' );