HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u106391720 (10342218)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /homepages/34/d890102484/htdocs/wp-content/plugins/ninja-forms/includes/Display/PagePublicLink.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

class NF_Display_PagePublicLink extends NF_Display_Page
{
	public function __construct($form_id)
	{
		$this->form_id = $form_id;
		$this->form = Ninja_Forms()->form($this->form_id)->get();

		if($this->form->get_setting('allow_public_link')) {
			parent::__construct();
		}
	}

	/**
	 * @return string HTML
	 */
	public function get_content()
	{
		return "[ninja_forms id='$this->form_id']";
	}

	/**
	 * @return string
	 */
    public function get_title()
    {
        return ''; // Public form pages should not have visible page titles
    }

	/**
	 * @return string
	 */
    public function get_guid()
    {
        return 'ninja-forms-public-form';
    }
}