diff --git a/htdocs/wp-content/plugins/subscribe-to-lc/js/subscribe.js b/htdocs/wp-content/plugins/subscribe-to-lc/js/subscribe.js
new file mode 100644
index 0000000..46da64b
--- /dev/null
+++ b/htdocs/wp-content/plugins/subscribe-to-lc/js/subscribe.js
@@ -0,0 +1,24 @@
+$(document).ready(function () {
+ $(".lc-subscrive-form").on("submit", function () {
+ var form = $(this)
+ var data = {email: form.find("#subscribe-email").val(), formId: form.find("#subscribe-from-id").val()}
+ $.ajax({
+ url: form.attr('action'),
+ type: 'POST',
+ data: JSON.stringify(data),
+ contentType: 'application/json',
+ dataType: 'json',
+ success: function (data) {
+ if (data.success) {
+ msg = "Almost finished...
We need to confirm your email address.
To complete the subscription process, please click the link in the email we just sent you."
+ customAlert(msg);
+ }
+ form[0].reset()
+ },
+ error: function (jqXHR) {
+ console.log(jqXHR)
+ }
+ });
+ return false;
+ })
+});
diff --git a/htdocs/wp-content/plugins/subscribe-to-lc/subscribe-to-lc.php b/htdocs/wp-content/plugins/subscribe-to-lc/subscribe-to-lc.php
new file mode 100644
index 0000000..078bc37
--- /dev/null
+++ b/htdocs/wp-content/plugins/subscribe-to-lc/subscribe-to-lc.php
@@ -0,0 +1,63 @@
+ 'subscribetolc_widget',
+ ]
+ );
+ }
+
+ public function widget($args, $instance)
+ {
+ extract($args);
+ if (empty($code)) {
+ return;
+ }
+
+ wp_enqueue_script('subscribe-to-lc-js', plugin_dir_url(__FILE__).'js/subscribe.js');
+
+ ?>
+
+
With one-on-one support from our team, you can focus on writing and we'll get your book e-ready and print-ready in no time. Personalize your book settings to control how your book is used and publish new editions and revisions instantly. A fully flexible publishing solution from start to finish.