-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Server
committed
Mar 15, 2022
1 parent
4845333
commit 1066ef0
Showing
193 changed files
with
13,584 additions
and
12,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
(function () { var require = undefined; var define = undefined; (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
'use strict'; | ||
|
||
var __ = window.wp.i18n.__; | ||
var registerBlockType = window.wp.blocks.registerBlockType; | ||
var SelectControl = window.wp.components.SelectControl; | ||
var forms = window.nl4wp_forms; | ||
registerBlockType('newsletter-for-wp/form', { | ||
title: __('Newsletter for WordPress Form'), | ||
description: __('Block showing a Newsletter for WordPress sign-up form'), | ||
category: 'widgets', | ||
attributes: { | ||
id: { | ||
type: 'int' | ||
} | ||
}, | ||
supports: { | ||
html: false | ||
}, | ||
edit: function edit(props) { | ||
var options = forms.map(function (f) { | ||
return { | ||
label: f.name, | ||
value: f.id | ||
}; | ||
}); | ||
return React.createElement("div", { | ||
style: { | ||
backgroundColor: '#f8f9f9', | ||
padding: '14px' | ||
} | ||
}, React.createElement(SelectControl, { | ||
label: __('Newsletter for WordPress Sign-up Form'), | ||
value: props.attributes.id, | ||
options: options, | ||
onChange: function onChange(value) { | ||
props.setAttributes({ | ||
id: value | ||
}); | ||
} | ||
})); | ||
}, | ||
// Render nothing in the saved content, because we render in PHP | ||
save: function save(props) { | ||
return null; //return `[nl4wp_form id="${props.attributes.id}"]`; | ||
} | ||
}); | ||
|
||
},{}]},{},[1]); | ||
})(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
|
||
$email_label = __( 'Email address', 'newsletter-for-wp' ); | ||
$email_placeholder = __( 'Your email address', 'newsletter-for-wp' ); | ||
$signup_button = __( 'Sign up', 'newsletter-for-wp' ); | ||
$email_label = __('Email address', 'newsletter-for-wp'); | ||
$email_placeholder = __('Your email address', 'newsletter-for-wp'); | ||
$signup_button = __('Sign up', 'newsletter-for-wp'); | ||
|
||
$content = "<p>\n\t<label>{$email_label}: </label>\n"; | ||
$content .= "\t<input type=\"email\" name=\"EMAIL\" placeholder=\"{$email_placeholder}\" required />\n</p>\n\n"; | ||
$content .= "<p>\n\t<input type=\"submit\" value=\"{$signup_button}\" />\n</p>"; | ||
|
||
return $content; | ||
return $content; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
<?php | ||
return array( | ||
'subscribed' => array( | ||
'type' => 'success', | ||
'text' => __( 'Thank you, your sign-up request was successful! Please check your email inbox to confirm.', 'newsletter-for-wp' ) | ||
), | ||
'updated' => array( | ||
'type' => 'success', | ||
'text' => __( 'Thank you, your records have been updated!', 'newsletter-for-wp' ), | ||
), | ||
'unsubscribed' => array( | ||
'type' => 'success', | ||
'text' => __( 'You were successfully unsubscribed.', 'newsletter-for-wp' ), | ||
), | ||
'not_subscribed' => array( | ||
'type' => 'notice', | ||
'text' => __( 'Given email address is not subscribed.', 'newsletter-for-wp' ), | ||
), | ||
'error' => array( | ||
'type' => 'error', | ||
'text' => __( 'Oops. Something went wrong. Please try again later.', 'newsletter-for-wp' ), | ||
), | ||
'invalid_email' => array( | ||
'type' => 'error', | ||
'text' => __( 'Please provide a valid email address.', 'newsletter-for-wp' ), | ||
), | ||
'already_subscribed' => array( | ||
'type' => 'notice', | ||
'text' => __( 'Given email address is already subscribed, thank you!', 'newsletter-for-wp' ), | ||
), | ||
'required_field_missing' => array( | ||
'type' => 'error', | ||
'text' => __( 'Please fill in the required fields.', 'newsletter-for-wp' ), | ||
), | ||
'no_lists_selected' => array( | ||
'type' => 'error', | ||
'text' => __( 'Please select at least one list.', 'newsletter-for-wp' ) | ||
), | ||
'subscribed' => array( | ||
'type' => 'success', | ||
'text' => __('Thank you, your sign-up request was successful! Please check your email inbox to confirm.', 'newsletter-for-wp') | ||
), | ||
'updated' => array( | ||
'type' => 'success', | ||
'text' => __('Thank you, your records have been updated!', 'newsletter-for-wp'), | ||
), | ||
'unsubscribed' => array( | ||
'type' => 'success', | ||
'text' => __('You were successfully unsubscribed.', 'newsletter-for-wp'), | ||
), | ||
'not_subscribed' => array( | ||
'type' => 'notice', | ||
'text' => __('Given email address is not subscribed.', 'newsletter-for-wp'), | ||
), | ||
'error' => array( | ||
'type' => 'error', | ||
'text' => __('Oops. Something went wrong. Please try again later.', 'newsletter-for-wp'), | ||
), | ||
'invalid_email' => array( | ||
'type' => 'error', | ||
'text' => __('Please provide a valid email address.', 'newsletter-for-wp'), | ||
), | ||
'already_subscribed' => array( | ||
'type' => 'notice', | ||
'text' => __('Given email address is already subscribed, thank you!', 'newsletter-for-wp'), | ||
), | ||
'required_field_missing' => array( | ||
'type' => 'error', | ||
'text' => __('Please fill in the required fields.', 'newsletter-for-wp'), | ||
), | ||
'no_lists_selected' => array( | ||
'type' => 'error', | ||
'text' => __('Please select at least one list.', 'newsletter-for-wp') | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?php | ||
return array( | ||
'css' => 0, | ||
'double_optin' => 1, | ||
'hide_after_success' => 0, | ||
'lists' => array(), | ||
'redirect' => '', | ||
'replace_interests' => 1, | ||
'required_fields' => '', | ||
'update_existing' => 0, | ||
'css' => 0, | ||
'double_optin' => 1, | ||
'hide_after_success' => 0, | ||
'lists' => array(), | ||
'redirect' => '', | ||
'replace_interests' => 1, | ||
'required_fields' => '', | ||
'update_existing' => 0, | ||
'subscriber_tags' => '', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
return array( | ||
'api_key' => '', | ||
'allow_usage_tracking' => 0, | ||
'api_key' => '', | ||
'allow_usage_tracking' => 0, | ||
'debug_log_level' => 'warning', | ||
); | ||
); |
Oops, something went wrong.