/**
  * The singleton method.
  *
  * @return Muut_Webhooks The instance.
  * @author Paul Hughes
  * @since  3.0.2
  */
 public static function instance()
 {
     if (!is_a(self::$instance, __CLASS__)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
/**
 * Check if webhooks are currently activated.
 *
 * @return bool Whether webhooks are active or not.
 * @author Paul Hughes
 * @since 3.0.2
 */
function muut_is_webhooks_active()
{
    return Muut_Webhooks::instance()->isWebhooksActivated();
}
 /**
  * Initializes the Webhooks class.
  *
  * @return void
  * @author Paul Hughes
  * @since 3.0.2
  */
 public function initWebhooks()
 {
     $class = 'Muut_Webhooks';
     if (!in_array($class, $this->alreadyInit)) {
         require_once muut()->getPluginPath() . 'lib/subscriber/webhooks.class.php';
         if (class_exists($class)) {
             Muut_Webhooks::instance();
         }
         $this->alreadyInit[] = $class;
     }
 }
	</p>
<?php 
}
?>
	</form>
	<div id="muut_settings_webhooks_setup_instructions" style="display: none">
		<div class="center_screenshot">
			<h3><?php 
_e('To complete your webhooks setup...', 'muut');
?>
</h3>
			<p><?php 
_e('From your main forum page, open the Muut settings, select the integrations tab, and create a new integration as below using the following URL and secret:', 'muut');
?>
</p>
			<p><input type="text" class="muut_autoselect"  value="<?php 
echo site_url() . '/' . Muut_Webhooks::instance()->getEndpointSlug();
?>
" style="width: 500px;" readonly /><br />
			<input type="text" class="muut_autoselect" value="<?php 
echo $current_values['webhooks_secret'];
?>
" readonly />
			</p>
			<img class="retinaise" style="height: 480px" src="<?php 
echo muut()->getPluginUrl() . '/resources/images/webhooks-instructions.png';
?>
">
		</div>
	</div>
</div>