<?php
/**
 * Admin behaviour content view
 *
 * @package wp-viral-click
 * @author InstaProduct
 * @link http://insta-product.com/
 */

$setting = $this->setting;

/*

<h4 class="ipjck-field-title mb0 py10">
  <?php _e( 'Target Pages', IPJCK_SLUG ); ?>
</h4>

<!-- start: .ipjck-field-row -->
	<div class="ipjck-field-row ipjck-field-x">
	  <div class="ipjck-form-label col-md-3 col-sm-12">
	    <label for="input-enable-complete-site">
	      <?php _e( 'Enable On Complete Site', IPJCK_SLUG ); ?>
	    </label>
	  </div>
	  <div class="ipjck-field col-md-9 col-sm-12">

	    <div class="ipjck-onoff">
	      <?php
	      $val = $setting->getSetting( 'enable_complete_site', 'true' );
	      if ( $val == 'false' ) {
	          $clon  = '';
	          $cloff = ' active';
	      } else {
	          $clon  = ' active';
	          $cloff = '';
	      }
	      ?>
	      <div class="ipjck-btn-group">
	        <button data-value="true" class="ipjck-btn-onoff<?php echo $clon; ?> ipjck-btn-on" type="button"><?php _e( 'On', IPJCK_SLUG ); ?></button>
	        <button data-value="false" class="ipjck-btn-onoff<?php echo $cloff; ?> ipjck-btn-off" type="button"><?php _e( 'Off', IPJCK_SLUG ); ?></button>
	      </div>
	      <input type="hidden" class="ipjck-onoff-value" name="enable_cookies" value="<?php echo $val; ?>" />
	    </div>

	    <div class="ipjck-help">
	      <a class="ipjck-btn-help ipjck-btn ipjck-btn-default" href="#"><i class="ipjck-fa ipjck-fa-question"></i></a>
	      <div class="ipjck-help-content ipjck-hide">
	        <?php _e( 'Set to true if you want to showing widget in all pages.', IPJCK_SLUG ); ?>
	      </div>
	    </div>
	  </div>
	</div>
	<!-- end: .ipjck-field-row -->

	<!-- start: .ipjck-field-row -->
	<div class="ipjck-field-row ipjck-field-x">
	  <div class="ipjck-form-label col-md-3 col-sm-12">
	    <label for="input-enable-complete-site">
	      <?php _e( 'Enable On Specific Post Type', IPJCK_SLUG ); ?>
	    </label>
	  </div>
	  <div class="ipjck-field col-md-9 col-sm-12">
	    <select name="enable_post_type" id="input-enable-post-type" class="ipjck-input">
        <?php
        $current = $setting->getSetting( 'enable_post_type' );
        $args = array(
				   'public'   => true
				);
 				$types = get_post_types( $args, 'names' );
        foreach( $types as $key => $label )
        {
          $sltd = '';
          if ( $current == $key ) {
            $sltd = ' selected="selected"';
          }
          echo '<option value="' . $key . '"' . $sltd . '>' . $label . '</option>';
        }
        ?>
      </select>

	    <div class="ipjck-help">
	      <a class="ipjck-btn-help ipjck-btn ipjck-btn-default" href="#"><i class="ipjck-fa ipjck-fa-question"></i></a>
	      <div class="ipjck-help-content ipjck-hide">
	        <?php _e( 'Determine the type of post which widget you want displayed .', IPJCK_SLUG ); ?>
	      </div>
	    </div>
	  </div>
	</div>
	<!-- end: .ipjck-field-row -->

*/