act form', 'wpforms-lite' ),
'content' => __( 'Oh hey, it looks like you\'re working on a contact page. Don\'t forget to embed your contact form. Click the plus icon above and search for WPForms.', 'wpforms-lite' ),
],
[
'image' => WPFORMS_PLUGIN_URL . '/assets/lite/images/edit-post-education-page-2.png',
'title' => __( 'Embed your form', 'wpforms-lite' ),
'content' => __( 'Then click on the WPForms block to embed your desired contact form.', 'wpforms-lite' ),
],
];
return $strings;
}
/**
* Add notice to classic editor.
*
* @since 1.8.1
*
* @param WP_Post $post Add notice to classic editor.
*/
public function classic_editor_notice( $post ) {
$message = $this->has_forms
? __( 'Don\'t forget to embed your contact form. Simply click the Add Form button below.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render(
'education/admin/edit-post/classic-notice',
[
'message' => $message,
],
true
);
}
/**
* Get Gutenberg notice template.
*
* @since 1.8.1
*
* @return string
*/
private function get_gutenberg_notice_template() {
$message = $this->has_forms
? __( 'You\'ve already created a form, now add it to the page so your customers can get in touch.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
return wpforms_render(
'education/admin/edit-post/notice',
[
'message' => $message,
],
true
);
}
}
act form', 'wpforms-lite' ),
'content' => __( 'Oh hey, it looks like you\'re working on a contact page. Don\'t forget to embed your contact form. Click the plus icon above and search for WPForms.', 'wpforms-lite' ),
],
[
'image' => WPFORMS_PLUGIN_URL . '/assets/lite/images/edit-post-education-page-2.png',
'title' => __( 'Embed your form', 'wpforms-lite' ),
'content' => __( 'Then click on the WPForms block to embed your desired contact form.', 'wpforms-lite' ),
],
];
return $strings;
}
/**
* Add notice to classic editor.
*
* @since 1.8.1
*
* @param WP_Post $post Add notice to classic editor.
*/
public function classic_editor_notice( $post ) {
$message = $this->has_forms
? __( 'Don\'t forget to embed your contact form. Simply click the Add Form button below.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render(
'education/admin/edit-post/classic-notice',
[
'message' => $message,
],
true
);
}
/**
* Get Gutenberg notice template.
*
* @since 1.8.1
*
* @return string
*/
private function get_gutenberg_notice_template() {
$message = $this->has_forms
? __( 'You\'ve already created a form, now add it to the page so your customers can get in touch.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
return wpforms_render(
'education/admin/edit-post/notice',
[
'message' => $message,
],
true
);
}
}
act form', 'wpforms-lite' ),
'content' => __( 'Oh hey, it looks like you\'re working on a contact page. Don\'t forget to embed your contact form. Click the plus icon above and search for WPForms.', 'wpforms-lite' ),
],
[
'image' => WPFORMS_PLUGIN_URL . '/assets/lite/images/edit-post-education-page-2.png',
'title' => __( 'Embed your form', 'wpforms-lite' ),
'content' => __( 'Then click on the WPForms block to embed your desired contact form.', 'wpforms-lite' ),
],
];
return $strings;
}
/**
* Add notice to classic editor.
*
* @since 1.8.1
*
* @param WP_Post $post Add notice to classic editor.
*/
public function classic_editor_notice( $post ) {
$message = $this->has_forms
? __( 'Don\'t forget to embed your contact form. Simply click the Add Form button below.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render(
'education/admin/edit-post/classic-notice',
[
'message' => $message,
],
true
);
}
/**
* Get Gutenberg notice template.
*
* @since 1.8.1
*
* @return string
*/
private function get_gutenberg_notice_template() {
$message = $this->has_forms
? __( 'You\'ve already created a form, now add it to the page so your customers can get in touch.', 'wpforms-lite' )
: sprintf( /* translators: %1$s - link to create a new form. */
__( 'Did you know that with WPForms, you can create an easy-to-use contact form in a matter of minutes?', 'wpforms-lite' ),
esc_url( add_query_arg( 'page', 'wpforms-overview', admin_url( 'admin.php' ) ) )
);
return wpforms_render(
'education/admin/edit-post/notice',
[
'message' => $message,
],
true
);
}
}
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wpforms-lite/src/Lite/Admin/Education/Admin/EditPost.php:1) in /htdocs/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wpforms-lite/src/Lite/Admin/Education/Admin/EditPost.php:1) in /htdocs/wp-includes/pluggable.php on line 1438