<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

<div id="col-container" class="<?php //about-wrap ?>">
  <?php
  echo '<div class="licenses-notice">' . wpautop( sprintf( __( '%s theme requires activation. You can %s, as well as our %s on how this works. %s', $this->domain ), $this->name, '<a target="_blank" href="'. trailingslashit( $this->api_url ) .'account">view your licenses here</a>', '<a target="_blank" href="https://www.usabilitydynamics.com/docs/products-installation/">documentation</a>', '&nbsp;&nbsp;<a href="' . esc_url( admin_url( 'update-core.php' ) ) . '" class="button">' . __( 'Check for Updates', $this->domain ) . '</a>' ) ) . '</div>' . "\n";
  ?>
  <div>
    <form id="activate-products" method="post" action="" class="validate">
      <input type="hidden" name="action" value="activate-products" />
      <input type="hidden" name="page" value="<?php echo esc_attr( $this->page_slug ); ?>" />
      <?php
      //echo "<pre>"; print_r( $this->get_detected_products() ); echo "</pre>"; die();
      $this->list_table = new UsabilityDynamics\UD_API\Licenses_Table( array(
        'name' => $this->name,
        'domain' => $this->domain,
        'page' => $this->menu_slug,
      ) );
      $this->list_table->data = $this->get_detected_products();
      $this->list_table->prepare_items();
      $this->list_table->display();
      submit_button( __( 'Activate', $this->domain ), 'button-primary' );
      ?>
    </form>
  </div><!--/.col-wrap-->
</div><!--/#col-container-->