Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../includes/Display
File: PagePublicLink.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
class NF_Display_PagePublicLink extends NF_Display_Page
[2] Fix | Delete
{
[3] Fix | Delete
protected $form_id;
[4] Fix | Delete
protected $form;
[5] Fix | Delete
[6] Fix | Delete
public function __construct($form_id)
[7] Fix | Delete
{
[8] Fix | Delete
$this->form_id = $form_id;
[9] Fix | Delete
$this->form = Ninja_Forms()->form($this->form_id)->get();
[10] Fix | Delete
[11] Fix | Delete
if($this->form->get_setting('allow_public_link')) {
[12] Fix | Delete
parent::__construct();
[13] Fix | Delete
}
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* @return string HTML
[18] Fix | Delete
*/
[19] Fix | Delete
public function get_content()
[20] Fix | Delete
{
[21] Fix | Delete
return "[ninja_forms id='$this->form_id']";
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* @return string
[26] Fix | Delete
*/
[27] Fix | Delete
public function get_title()
[28] Fix | Delete
{
[29] Fix | Delete
/**
[30] Fix | Delete
* Public form pages should not have visible page titles.
[31] Fix | Delete
* Specifically write out an empty span to keep themes from being cute
[32] Fix | Delete
* and saying "Untitled" on pages without a title.
[33] Fix | Delete
*/
[34] Fix | Delete
return '<span style="display:none;"></span>';
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* @return string
[39] Fix | Delete
*/
[40] Fix | Delete
public function get_guid()
[41] Fix | Delete
{
[42] Fix | Delete
return 'ninja-forms-public-form';
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function