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/wp-conte.../plugins/contact-.../admin/includes
File: help-tabs.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class WPCF7_Help_Tabs {
[2] Fix | Delete
[3] Fix | Delete
private $screen;
[4] Fix | Delete
[5] Fix | Delete
public function __construct( WP_Screen $screen ) {
[6] Fix | Delete
$this->screen = $screen;
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
public function set_help_tabs( $screen_type ) {
[10] Fix | Delete
switch ( $screen_type ) {
[11] Fix | Delete
case 'list':
[12] Fix | Delete
$this->screen->add_help_tab( array(
[13] Fix | Delete
'id' => 'list_overview',
[14] Fix | Delete
'title' => __( 'Overview', 'contact-form-7' ),
[15] Fix | Delete
'content' => $this->content( 'list_overview' ),
[16] Fix | Delete
) );
[17] Fix | Delete
[18] Fix | Delete
$this->screen->add_help_tab( array(
[19] Fix | Delete
'id' => 'list_available_actions',
[20] Fix | Delete
'title' => __( 'Available Actions', 'contact-form-7' ),
[21] Fix | Delete
'content' => $this->content( 'list_available_actions' ),
[22] Fix | Delete
) );
[23] Fix | Delete
[24] Fix | Delete
$this->sidebar();
[25] Fix | Delete
[26] Fix | Delete
return;
[27] Fix | Delete
case 'edit':
[28] Fix | Delete
$this->screen->add_help_tab( array(
[29] Fix | Delete
'id' => 'edit_overview',
[30] Fix | Delete
'title' => __( 'Overview', 'contact-form-7' ),
[31] Fix | Delete
'content' => $this->content( 'edit_overview' ),
[32] Fix | Delete
) );
[33] Fix | Delete
[34] Fix | Delete
$this->screen->add_help_tab( array(
[35] Fix | Delete
'id' => 'edit_form_tags',
[36] Fix | Delete
'title' => __( 'Form-tags', 'contact-form-7' ),
[37] Fix | Delete
'content' => $this->content( 'edit_form_tags' ),
[38] Fix | Delete
) );
[39] Fix | Delete
[40] Fix | Delete
$this->screen->add_help_tab( array(
[41] Fix | Delete
'id' => 'edit_mail_tags',
[42] Fix | Delete
'title' => __( 'Mail-tags', 'contact-form-7' ),
[43] Fix | Delete
'content' => $this->content( 'edit_mail_tags' ),
[44] Fix | Delete
) );
[45] Fix | Delete
[46] Fix | Delete
$this->sidebar();
[47] Fix | Delete
[48] Fix | Delete
return;
[49] Fix | Delete
case 'integration':
[50] Fix | Delete
$this->screen->add_help_tab( array(
[51] Fix | Delete
'id' => 'integration_overview',
[52] Fix | Delete
'title' => __( 'Overview', 'contact-form-7' ),
[53] Fix | Delete
'content' => $this->content( 'integration_overview' ),
[54] Fix | Delete
) );
[55] Fix | Delete
[56] Fix | Delete
$this->sidebar();
[57] Fix | Delete
[58] Fix | Delete
return;
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
private function content( $name ) {
[63] Fix | Delete
$content = array();
[64] Fix | Delete
[65] Fix | Delete
$content['list_overview'] = '<p>' . __( "On this screen, you can manage contact forms provided by Contact Form 7. You can manage an unlimited number of contact forms. Each contact form has a unique ID and Contact Form 7 shortcode ([contact-form-7 ...]). To insert a contact form into a post or a text widget, insert the shortcode into the target.", 'contact-form-7' ) . '</p>';
[66] Fix | Delete
[67] Fix | Delete
$content['list_available_actions'] = '<p>' . __( "Hovering over a row in the contact forms list will display action links that allow you to manage your contact form. You can perform the following actions:", 'contact-form-7' ) . '</p>';
[68] Fix | Delete
$content['list_available_actions'] .= '<p>' . __( "<strong>Edit</strong> - Navigates to the editing screen for that contact form. You can also reach that screen by clicking on the contact form title.", 'contact-form-7' ) . '</p>';
[69] Fix | Delete
$content['list_available_actions'] .= '<p>' . __( "<strong>Duplicate</strong> - Clones that contact form. A cloned contact form inherits all content from the original, but has a different ID.", 'contact-form-7' ) . '</p>';
[70] Fix | Delete
[71] Fix | Delete
$content['edit_overview'] = '<p>' . __( "On this screen, you can edit a contact form. A contact form is comprised of the following components:", 'contact-form-7' ) . '</p>';
[72] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "<strong>Title</strong> is the title of a contact form. This title is only used for labeling a contact form, and can be edited.", 'contact-form-7' ) . '</p>';
[73] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "<strong>Form</strong> is a content of HTML form. You can use arbitrary HTML, which is allowed inside a form element. You can also use Contact Form 7&#8217;s form-tags here.", 'contact-form-7' ) . '</p>';
[74] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "<strong>Mail</strong> manages a mail template (headers and message body) that this contact form will send when users submit it. You can use Contact Form 7&#8217;s mail-tags here.", 'contact-form-7' ) . '</p>';
[75] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "<strong>Mail (2)</strong> is an additional mail template that works similar to Mail. Mail (2) is different in that it is sent only when Mail has been sent successfully.", 'contact-form-7' ) . '</p>';
[76] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "In <strong>Messages</strong>, you can edit various types of messages used for this contact form. These messages are relatively short messages, like a validation error message you see when you leave a required field blank.", 'contact-form-7' ) . '</p>';
[77] Fix | Delete
$content['edit_overview'] .= '<p>' . __( "<strong>Additional Settings</strong> provides a place where you can customize the behavior of this contact form by adding code snippets.", 'contact-form-7' ) . '</p>';
[78] Fix | Delete
[79] Fix | Delete
$content['edit_form_tags'] = '<p>' . __( "A form-tag is a short code enclosed in square brackets used in a form content. A form-tag generally represents an input field, and its components can be separated into four parts: type, name, options, and values. Contact Form 7 supports several types of form-tags including text fields, number fields, date fields, checkboxes, radio buttons, menus, file-uploading fields, CAPTCHAs, and quiz fields.", 'contact-form-7' ) . '</p>';
[80] Fix | Delete
$content['edit_form_tags'] .= '<p>' . __( "While form-tags have a comparatively complex syntax, you do not need to know the syntax to add form-tags because you can use the straightforward tag generator (<strong>Generate Tag</strong> button on this screen).", 'contact-form-7' ) . '</p>';
[81] Fix | Delete
[82] Fix | Delete
$content['edit_mail_tags'] = '<p>' . __( "A mail-tag is also a short code enclosed in square brackets that you can use in every Mail and Mail (2) field. A mail-tag represents a user input value through an input field of a corresponding form-tag.", 'contact-form-7' ) . '</p>';
[83] Fix | Delete
$content['edit_mail_tags'] .= '<p>' . __( "There are also special mail-tags that have specific names, but do not have corresponding form-tags. They are used to represent meta information of form submissions like the submitter&#8217;s IP address or the URL of the page.", 'contact-form-7' ) . '</p>';
[84] Fix | Delete
[85] Fix | Delete
$content['integration_overview'] = '<p>' . __( "On this screen, you can manage services that are available through Contact Form 7. Using API will allow you to collaborate with any services that are available.", 'contact-form-7' ) . '</p>';
[86] Fix | Delete
$content['integration_overview'] .= '<p>' . __( "You may need to first sign up for an account with the service that you plan to use. When you do so, you would need to authorize Contact Form 7 to access the service with your account.", 'contact-form-7' ) . '</p>';
[87] Fix | Delete
$content['integration_overview'] .= '<p>' . __( "Any information you provide will not be shared with service providers without your authorization.", 'contact-form-7' ) . '</p>';
[88] Fix | Delete
[89] Fix | Delete
if ( ! empty( $content[$name] ) ) {
[90] Fix | Delete
return $content[$name];
[91] Fix | Delete
}
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
public function sidebar() {
[95] Fix | Delete
$content = '<p><strong>' . __( 'For more information:', 'contact-form-7' ) . '</strong></p>';
[96] Fix | Delete
$content .= '<p>' . wpcf7_link( __( 'https://contactform7.com/docs/', 'contact-form-7' ), __( 'Docs', 'contact-form-7' ) ) . '</p>';
[97] Fix | Delete
$content .= '<p>' . wpcf7_link( __( 'https://contactform7.com/faq/', 'contact-form-7' ), __( 'FAQ', 'contact-form-7' ) ) . '</p>';
[98] Fix | Delete
$content .= '<p>' . wpcf7_link( __( 'https://contactform7.com/support/', 'contact-form-7' ), __( 'Support', 'contact-form-7' ) ) . '</p>';
[99] Fix | Delete
[100] Fix | Delete
$this->screen->set_help_sidebar( $content );
[101] Fix | Delete
}
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function