PluginProbe
Loading Page with Loading Screen / 1.0.86
Loading Page with Loading Screen v1.0.86
1.2.8 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.20 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 46 releases
loading-page / feedback / feedback.html

feedback.html in Loading Page with Loading Screen 1.0.86, at feedback/feedback.html

183 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script id="cp_feedback_html<?php print esc_attr( $plugin_slug ); ?>" type="text/template">
2 <div title="QUICK FEEDBACK">
3 <div style="padding:10px;">
4 <style type="text/css">
5 .cp-feedback-reason-block { margin-top:8px; }
6 </style>
7 <h3><strong>If you have a moment, please let us know why you are deactivating:</strong></h3>
8 <form id="cp_feedback_form{{plugin_slug}}">
9 <div class="cp-feedback-reason-block">
10 <label>
11 <input type="radio" name="answer" value="loading-screen-appearance">
12 I prefer a different loading screen.<br />
13 </label>
14 <div id="cp_feedback_loading_screen_appearance" style="margin-left:25px;display:none;padding:10px;border:1px dotted gray;color:#660000">
15 <p>The free version of the plugin includes only one loading screen. However, modifying the colors of different sections allow you adapting the loading screen's appearance to the website's styles.</p>
16 <p style="font-style:italic;">Go to the <a href="https://wordpress.dwbooster.com/content-tools/loading-page#download">Loading Page Commercial</a> version.</p>
17 </div>
18 </div>
19 <div class="cp-feedback-reason-block">
20 <label>
21 <input type="radio" name="answer" value="too-quick-issue">
22 The loading screen disappears too quick.<br />
23 </label>
24 <div id="cp_feedback_too_quick_issue" style="margin-left:25px;display:none;padding:10px;border:1px dotted gray;color:#660000">
25 <p>
26 The easier solution:<br>
27 - Go to the <a href="<?php print esc_attr( admin_url( 'options-general.php?page=loading-page.php' ) ); ?>" target="_blank">settings page</a> of the plugin.<br>
28 - Tick the checkbox: <b>Remove the loading screen in the window onload event</b><br>
29 - Finally, press the <b>Update Settings</b> button.
30 </p>
31
32 </div>
33 </div>
34 <div class="cp-feedback-reason-block">
35 <label>
36 <input type="radio" name="answer" value="temporary-deactivation"> It's a temporary deactivation. I'm just debugging an issue.<br />
37 </label>
38 </div>
39 <div class="cp-feedback-reason-block">
40 <label>
41 <input type="radio" name="answer" value="better-plugin"> I found a better plugin.<br />
42 </label>
43 <div id="cp_feedback_otherplugin" style="margin-left:25px;display:none;">
44 <input type="text" name="otherplugin" placeholder="What's the plugin name?" style="width:100%">
45 </div>
46 </div>
47 <div class="cp-feedback-reason-block">
48 <label>
49 <input type="radio" name="answer" value="other"> Other.<br />
50 </label>
51 <div id="cp_feedback_other" style="margin-left:25px;display:none;font-weight:bold;">
52 Kindly tell us the reason so we can improve.<br />
53 <input type="text" name="otherinfo" style="width:100%">
54 </div>
55 </div>
56 <div id="cp_feedback_anonymous" style="display:none;margin-top:30px;text-align:right">
57 <input type="checkbox" name="cp_feedback_anonymous" value="yes"> Anonymous feedback
58 </div>
59 </form>
60 </div>
61 </div>
62 </script>
63 <script type="text/javascript">
64 jQuery(window).on(
65 'load',
66 function()
67 {
68 var $ = jQuery,
69 plugin_slug = '<?php print esc_js( $plugin_slug ); ?>',
70 support_link = '<?php print esc_js( str_replace( '&amp;', '&', $support_link ) ); ?>',
71 full_support_link = '<?php print esc_js( str_replace( '&amp;', '&', $full_support_link ) ); ?>';
72 $('[data-slug="'+plugin_slug+'"] .deactivate a').
73 on(
74 'click',
75 function(evt)
76 {
77 evt.preventDefault()
78 evt.stopPropagation();
79 // Define events
80 $(document).on(
81 'change',
82 '[id="cp_feedback_form'+plugin_slug+'"] [name="answer"]',
83 function()
84 {
85 var field = $(this),
86 value = field.val(),
87 form = field.closest('form');
88 $("#cp_feedback_deactivatebtn:visible").val('Submit & Deactivate');
89 $("#cp_feedback_deactivatebtn:visible").html('<span class="ui-button-text">Submit &amp; Deactivate</span>');
90 form.find("#cp_feedback_anonymous").show();
91 form.find("#cp_feedback_other,#cp_feedback_otherplugin,#cp_feedback_loading_screen_appearance,#cp_feedback_too_quick_issue").hide();
92 switch(value)
93 {
94 case 'other':
95 form.find("#cp_feedback_other").show();
96 break;
97 case 'better-plugin':
98 form.find("#cp_feedback_otherplugin").show();
99 break;
100 case 'loading-screen-appearance':
101 form.find("#cp_feedback_loading_screen_appearance").show();
102 break;
103 case 'too-quick-issue':
104 form.find("#cp_feedback_too_quick_issue").show();
105 break;
106 }
107 }
108 );
109 var url_redirect = $('[data-slug="'+plugin_slug+'"] .deactivate a').attr('href'),
110 html = $('[id="cp_feedback_html'+plugin_slug+'"]').html();
111 html = html.replace(/\{\{plugin_slug\}\}/g, plugin_slug)
112 .replace(/\{\{support_link\}\}/g, full_support_link)
113 .replace(/\{\{support_link_text\}\}/g, support_link);
114 $(html).dialog(
115 {
116 width:'600',
117 dialogClass: 'wp-dialog',
118 modal: true,
119 close: function(event, ui)
120 {
121 $(this).dialog("close");
122 $(this).remove();
123 },
124 closeOnEscape: true,
125 buttons: [
126 {
127 id: 'cp_feedback_deactivatebtn',
128 text: "Skip & Deactivate",
129 click: function()
130 {
131 var form = $('[id="cp_feedback_form'+plugin_slug+'"]'),
132 answer = form.find("input[name='answer']:checked").val();
133 if (answer == undefined || answer == '')
134 {
135 window.location.href = url_redirect;
136 }
137 else
138 {
139 var data = {
140 'action': 'cp_feedback',
141 'feedback_plugin': plugin_slug,
142 'nonce': '<?php print esc_js( wp_create_nonce( 'loading-page-feedback' ) ); ?>' ,
143 };
144 $.each(form.serializeArray(), function(i,v){data[v['name']] = v['value'];});
145 if(ajaxurl) // WordPress global variable with the AJAX URL
146 {
147 $.post(
148 ajaxurl,
149 data,
150 function(response)
151 {
152 window.location.href = url_redirect;
153 }
154 );
155 }
156 }
157 }
158 },
159 {
160 text: "We can help: Support Service",
161 click: function()
162 {
163 window.open(support_link);
164 $(this).dialog("close");
165 }
166 },
167 {
168 text: "Cancel",
169 "class": 'button button-primary button-close',
170 click: function()
171 {
172 $(this).dialog("close");
173 }
174 }
175 ]
176 }
177 ); // End dialog
178 }
179 ); // End onclick deactivate btn
180 }
181 ); // End onload window
182 </script>
183