<?php
namespace SPAATG;

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}


?>

<section id="tab-integrations" class="<?php echo ($this->display_part == 'integrations') ? 'active setting-tab' :'setting-tab'; ?>" data-part="integrations" >

<settinglist>
  <h2>
    <?php esc_html_e('Integrations','shortpixel-ai-alt-text-generator');?>
  </h2>
</settinglist>

  <h3><?php esc_html_e('HTTP AUTH credentials', 'shortpixel-ai-alt-text-generator') ?></h3>
<settinglist>
  <setting>
      <content>
        <?php if (! defined('SPAATG_HTTP_AUTH_USER')): ?>
        <inputlabel>User</inputlabel> <input name="siteAuthUser" type="text" id="siteAuthUser" value="<?php echo( esc_html(wp_unslash($view->data->siteAuthUser )));?>" class="regular-text" placeholder="<?php esc_html_e('User','shortpixel-ai-alt-text-generator');?>" style="margin-bottom: 8px"><br>
        <inputlabel>Password</inputlabel> <input name="siteAuthPass" type="password" id="siteAuthPass" value="<?php echo( esc_html(wp_unslash($view->data->siteAuthPass )));?>" class="regular-text" placeholder="<?php esc_html_e('Password','shortpixel-ai-alt-text-generator');?>" style="margin-bottom: 8px">
        <info>
            <?php /* translators: 1, 2: HTML strong tags. */
            printf(esc_html__('Only fill in these fields if your website\'s front end is not publicly accessible and requires a username and password for visitors to connect.
                      If you\'re unsure, simply %1$sleave these fields empty%2$s.','shortpixel-ai-alt-text-generator'), '<strong>', '</strong>'); ?>
        </info>
        <?php else:  ?>
            <p><?php esc_html_e('The HTTP AUTH credentials have been defined in the wp-config file.', 'shortpixel-ai-alt-text-generator'); ?></p>
        <?php endif; ?>
      </content>

  </setting>
</settinglist>



</settinglist>



<?php $this->loadView('settings/part-savebuttons', false); ?>
</section>
