<?php
/**
 * Action button view
 *
 * @package wp-viral-click
 * @author InstaProduct
 * @button http://insta-product.com/
 */

$setting    = $this->setting;
$current    = $setting->getSetting( 'action_type', 'form' );
$dspSection = ' style="display:none";';
if ( $current == 'button' ) {
  $dspSection = '';
}
?>

<!-- start: .ipjck-section-select-content -->
<div id="ipjck-section-button" class="ipjck-section-select-content"<?php echo $dspSection;?>>

	<?php
  /*
   * Button label
   */
  ?>
  <!-- start: .ipjck-field-row -->
  <div class="ipjck-field-row ipjck-field-x ipjck-help-abs">
    <div class="ipjck-form-label col-lg-3 col-md-4 col-sm-12">
      <label for="input-button-label"><?php _e( 'Button Label', IPJCK_SLUG ); ?></label>
    </div>

    <!-- start: .ipjck-field -->
    <div class="ipjck-field col-lg-9 col-md-8 col-sm-12">
      <?php
      $label = stripslashes( $this->setting->getSetting( 'button_label' ) );
      ?>
      <input type="text" id="input-button-label" class="ipjck-input ipjck-input-full" name="button_label" value="<?php echo $label; ?>">

      <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( 'The label of the button.', IPJCK_SLUG ); ?>
        </div>
      </div>
    </div>
    <!-- end: .ipjck-field -->
  </div>
  <!-- end: .ipjck-field-row -->

	<?php
  /*
   * Button URL
   */
  ?>
  <!-- start: .ipjck-field-row -->
  <div class="ipjck-field-row ipjck-field-x ipjck-help-abs">
    <div class="ipjck-form-label col-lg-3 col-md-4 col-sm-12">
      <label for="input-button-url"><?php _e( 'Button URL', IPJCK_SLUG ); ?></label>
    </div>

    <!-- start: .ipjck-field -->
    <div class="ipjck-field col-lg-9 col-md-8 col-sm-12">
      <?php
      $url = stripslashes( $this->setting->getSetting( 'button_url' ) );
      ?>
      <input type="text" id="input-button-url" class="ipjck-input ipjck-input-full" name="button_url" value="<?php echo $url; ?>">

      <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( 'The url of the button.', IPJCK_SLUG ); ?>
        </div>
      </div>
    </div>
    <!-- end: .ipjck-field -->
  </div>
  <!-- end: .ipjck-field-row -->

  <?php
  //Button design
  $this->prefix = '';
  $this->view( 'admin/widget/action/button-design' );
  ?>

</div>
<!-- end: .ipjck-section-select-content -->