2018-12-03 13:56:48 +01:00
< ? php if ( ! defined ( 'ABSPATH' ) ) exit ;
/**
'slug_name' => array (
//Same as slug name/
'id' => 'slug_name' ,
'title' => 'nicename' ,
'template-desc' => '' ,
),
*/
$templates = array (
/**
* Regular old form templates
*/
'formtemplate-contactform' => array (
'id' => 'formtemplate-contactform' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Contact Us' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow your users to contact you with this simple contact form. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-quoterequest' => array (
'id' => 'formtemplate-quoterequest' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Quote Request' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Manage quote requests from your website easily with this template. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-eventregistration' => array (
'id' => 'formtemplate-eventregistration' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Event Registration' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow user to register for your next event this easy to complete form. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-enquiry' => array (
'id' => 'formtemplate-enquiry' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'General Enquiry' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Collect user enquiries with this simple, generic form. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-feedback' => array (
'id' => 'formtemplate-feedback' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Collect feedback' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Collect feedback for an event, blog post, or anything else. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-questionnaire' => array (
'id' => 'formtemplate-questionnaire' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Questionnaire' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Collect information about your users. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-jobapplication' => array (
'id' => 'formtemplate-jobapplication' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Job Application' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow users to apply for a job. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-deletedata' => array (
'id' => 'formtemplate-deletedata' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Delete Data Request' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Includes action to add users to WordPress\' personal data delete tool, allowing admins to comply with the GDPR and other privacy regulations from the site\'s front end.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'formtemplate-exportdata' => array (
2021-08-04 17:09:29 +02:00
'id' => 'formtemplate-exportdata' ,
'title' => esc_html__ ( 'Export Data Request' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Includes action to add users to WordPress\' personal data export tool, allowing admins to comply with the GDPR and other privacy regulations from the site\'s front end.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
);
$ads = array (
/**
* Ads
*/
'mailchimp-signup' => array (
'id' => 'mailchimp-signup' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'MailChimp Signup' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Add a user to a list in MailChimp. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get MailChimp for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/mail-chimp.png " />
< p > In order to use this template , you need MailChimp for Ninja Forms .</ p >
2021-08-04 17:09:29 +02:00
< p > Bring new life to your lists with upgraded Mailchimp signup forms for WordPress ! Easy to build and customize with no code required .</ p >
2018-12-03 13:56:48 +01:00
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/mail-chimp/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Mailchimp+Signup " title = " MailChimp " class = " primary nf-button " > Learn More </ a >
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'stripe-payment' => array (
'id' => 'stripe-payment' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Stripe Payment' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Collect a payment using Stripe. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get Stripe for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
2021-08-04 17:09:29 +02:00
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/stripe.png " />
2018-12-03 13:56:48 +01:00
< p > In order to use this template , you need Stripe for Ninja Forms .</ p >
2021-08-04 17:09:29 +02:00
< p > Did you know you can accept credit card payments or donations from any form ? Single payments , subscriptions , and more !</ p >
2018-12-03 13:56:48 +01:00
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/stripe/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Stripe+Payment " title = " Stripe " class = " primary nf-button " > Learn More </ a >
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'file-upload' => array (
'id' => 'file-upload' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'File Upload' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow users to upload files with their forms. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get File Uploads for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
2021-08-04 17:09:29 +02:00
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/file-uploads.png " />
2018-12-03 13:56:48 +01:00
< p > In order to use this template , you need File Uploads for Ninja Forms .</ p >
2021-08-04 17:09:29 +02:00
< p >
Let users upload any file to your website with File Uploads ! Restrict by file type and size . Upload to server , media library , or your favorite cloud service .</ p >
2018-12-03 13:56:48 +01:00
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/stripe/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=File+Upload
" title= " File Uploads " class= " primary nf - button " >Learn More</a>
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'paypal-payment' => array (
'id' => 'paypal-payment' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'PayPal Payment' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Collect a payment using PayPal Express. You can add and remove fields as needed.' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get PayPal Express for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/paypal-express.png " />
< p > In order to use this template , you need PayPal Express for Ninja Forms .</ p >
2021-08-04 17:09:29 +02:00
< p > Did you know you can accept PayPal payments or donations from any form ? Connect any form completely and securely to your PayPal Express account !</ p >
2018-12-03 13:56:48 +01:00
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/paypal-express/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Paypal+Payment
" title= " PayPal Express " class= " primary nf - button " >Learn More</a>
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'create-post' => array (
'id' => 'create-post' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Create a Post' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow users to create posts from the front-end using a form, including custom post meta!' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get Front-End Posting for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/front-end-posting.png " />
< p > In order to use this template , you need Front - End Posting for Ninja Forms .</ p >
< p > Create posts , pages , or any custom post type from the front - end .</ p >
< p > The Ninja Forms Front - End Posting extension gives you the power of the WordPress post editor on any publicly viewable page you choose .</ p >
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/front-end-posting/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Create+a+Post " title = " Create Post " class = " primary nf-button " > Learn More </ a >
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'register-user' => array (
'id' => 'register-user' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Register a User' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Register a WordPress User' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get User Management for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/user-management.png " />
< p > In order to use this template , you need User Management for Ninja Forms .</ p >
< p > User Management brings you the remarkable flexibility to register new WordPress users and manage existing ones through your Ninja Forms !</ p >
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/user-management/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Register+a+User " title = " User Management " class = " primary nf-button " > Learn More </ a >
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
'update-profile' => array (
'id' => 'update-profile' ,
2021-08-04 17:09:29 +02:00
'title' => esc_html__ ( 'Edit User Profile' , 'ninja-forms' ),
'template-desc' => esc_html__ ( 'Allow WordPress users to edit their profiles from the front-end, including custom user meta!' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'type' => 'ad' ,
'modal-title' => 'Get User Management for Ninja Forms' ,
'modal-content' => ' < div class = " modal-template " >
< img src = " ' . Ninja_Forms:: $url . 'assets/img/add-ons/user-management.png " />
< p > In order to use this template , you need User Management for Ninja Forms .</ p >
< p > User Management brings you the remarkable flexibility to register new WordPress users and manage existing ones through your Ninja Forms !</ p >
< div class = " actions " >
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " https://ninjaforms.com/extensions/user-management/?utm_source=Ninja+Forms+Plugin&utm_medium=Add+New&utm_campaign=Dashboard+New+Form+Template&utm_content=Edit-User-Profile " title = " User Management " class = " primary nf-button " > Learn More </ a >
2018-12-03 13:56:48 +01:00
</ div >
</ div > ' ,
),
);
/**
* If we 've disabled marketing using our filter, don' t merge in our ads .
*/
$disable_marketing = false ;
if ( ! apply_filters ( 'ninja_forms_disable_marketing' , $disable_marketing ) ) {
$templates = array_merge ( $templates , $ads );
}
2021-08-04 17:09:29 +02:00
return apply_filters ( 'ninja_forms_new_form_templates' , $templates );