<?php

/**
 * Advanced settings view for the plugin
 *
 * @link       http://www.webfactoryltd.com
 * @since      1.0
 */

?>

<div class="signals-tile" id="advanced">
	<div class="signals-tile-body">
		<div class="signals-tile-title"><?php _e( 'ADVANCED', 'signals' ); ?></div>
		<p><?php _e( 'Please double-check any custom code you enter in the settings below. Any typos or mistakes will affect the appearance of the page.', 'signals' ); ?></p>


		<div class="signals-section-content">
    <div class="signals-double-group signals-clearfix">
			<div class="signals-form-group">
				<label for="signals_csmm_disable" class="signals-strong"><?php _e( 'Use Custom HTML only', 'signals' ); ?></label>
				<input type="checkbox" class="signals-form-ios" id="signals_csmm_disable" name="signals_csmm_disable" value="1"<?php checked( '1', $signals_csmm_options['disable_settings'] ); ?>>

				<p class="signals-form-help-block"><?php _e( 'If you enable this option, the plugin will ignore everything except the HTML you provide.', 'signals' ); ?></p>
				<p class="signals-form-help-block"><?php _e( 'Basically, you will have a blank template which you can fill with your provided HTML content. Only basic CSS gets added by the plugin which does the task of browser styling reset. You should style your HTML content either inline or by inserting styling in the custom CSS section. In short, use this option only if you know what you are doing.', 'signals' ); ?></p>
      </div>

      <div class="signals-form-group">
        <label for="csmm_nocache" class="signals-strong pro-option">Send no-cache Headers<sup>PRO</sup></label>
        <input type="checkbox" class="signals-form-ios pro-option skip-save" id="csmm_nocache" name="csmm_nocache" value="1" disabled>

        <p class="signals-form-help-block">If you don't want the coming soon page's preview to be cached by Facebook and other social media enable this option. Once you switch to the normal site social media preview (visible when sharing the site's link) will immediately be refreshed. Normal visitors won't notice any differences with the option enabled. This is a <a href="#pro" class="csmm-change-tab">PRO feature</a>.</p>
      </div>

			</div>

      <div class="signals-double-group signals-clearfix">
      <div class="signals-form-group">
        <label for="csmm_force_ssl" class="signals-strong pro-option">Force HTTPS<sup>PRO</sup></label>
        <input type="checkbox" class="signals-form-ios pro-option skip-save" id="csmm_force_ssl" name="csmm_force_ssl" value="1" disabled>

        <p class="signals-form-help-block">If you have a valid SSL certificate installed on your site but people are still visiting the non-secure HTTP version you can redirect them to HTTPS. Redirection only works for the coming soon page; not for the entire site. This is a <a href="#pro" class="csmm-change-tab">PRO feature</a>.</p>
      </div>

      <div class="signals-form-group">
        <label for="signals_csmm_disable_adminbar" class="signals-strong"><?php _e( 'Disable Maintenance Mode Toolbar Menu', 'signals' ); ?></label>
        <input type="checkbox" class="signals-form-ios" id="signals_csmm_disable_adminbar" name="signals_csmm_disable_adminbar" value="1"<?php checked( '1', $signals_csmm_options['disable_adminbar'] ); ?>>

        <p class="signals-form-help-block"><?php _e( 'By default, a helpfull Maintenance Mode menu and status are added to the admin and front-end toolbar. If your toolbar is too crowded, disable the menu.', 'signals' ); ?></p>
      </div>

			</div>

			<div class="signals-form-group">
				<label for="signals_csmm_html" class="signals-strong"><?php _e( 'Custom HTML', 'signals' ); ?></label>
				<div id="signals_csmm_html_editor"></div>
				<textarea name="signals_csmm_html" id="signals_csmm_html" rows="8" placeholder="<?php _e( 'Custom HTML for the plugin', 'signals' ); ?>"><?php echo stripslashes( $signals_csmm_options['custom_html'] ); ?></textarea>

				<p class="signals-form-help-block"><?php echo __( 'Custom HTML for the plugin goes over here. Please note that ', 'signals' ) . '<i style="color: #f96773">' . __( '[html], [head], [title], [meta], [body], and similar tags', 'signals' ) . '</i>' . __( ' are not required. Only provide content HTML for the page.', 'signals' ); ?></p>
				<p class="signals-form-help-block"><?php _e( 'To insert subscription form anywhere in the HTML, simply use the placeholder <strong>{{form}}</strong> and you are done. This should only be used if you have enabled the above option to use custom HTML only.', 'signals' ); ?></p>
			</div>

			<div class="signals-form-group">
				<label for="signals_csmm_css" class="signals-strong"><?php _e( 'Custom CSS', 'signals' ); ?></label>
				<div id="signals_csmm_css_editor"></div>
				<textarea name="signals_csmm_css" id="signals_csmm_css" class="Signals_csmm_Block" rows="8" placeholder="<?php _e( 'Custom CSS for the plugin', 'signals' ); ?>"><?php echo stripslashes( $signals_csmm_options['custom_css'] ); ?></textarea>

				<p class="signals-form-help-block"><?php _e( 'Custom CSS for the plugin goes over here.', 'signals' ); ?></p>
			</div>

		</div>
	</div>
</div><!-- #advanced -->
