<?php
// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<div class="sekhlo_sections_control">

		<?php
		global $post;
	    $use_sections = get_post_meta( $post->ID, '_sekhlo_use_sections', true );
        //$use_sections = isset( $use_sections['use_sections'] ) && 'true' == $use_sections['use_sections'] ? true : false;
        wp_nonce_field( 'sekhlo_sections_use_sections_nonce', '_sekhlo_sections_use_sections_nonce' );
		?>
		<label for="_sekhlo_use_sections[use_sections]">
			<input type="checkbox" class="use-sections-switch" name="_sekhlo_use_sections[use_sections]" id="_sekhlo_use_sections[use_sections]" value="true" <?php if ( isset ( $use_sections['use_sections'] ) ) checked( $use_sections['use_sections'], 'true', true );?> />
			<?php _e( 'Use Sections', 'sekhlopress-connect' ); ?>
		</label>
</div>
