PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 1.0.5
Page Builder: Pagelayer – Drag and Drop website builder v1.0.5
2.2.1 2.2.0 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 trunk 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.2 1.0.3 1.0.4 1.0.5 All 129 releases
pagelayer / main / settings.php

settings.php in Page Builder: Pagelayer – Drag and Drop website builder 1.0.5, at main/settings.php

679 lines 21.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 //////////////////////////////////////////////////////////////
4 //===========================================================
5 // settings.php
6 //===========================================================
7 // PAGELAYER
8 // Inspired by the DESIRE to be the BEST OF ALL
9 // ----------------------------------------------------------
10 // Started by: Pulkit Gupta
11 // Date: 23rd Jan 2017
12 // Time: 23:00 hrs
13 // Site: http://pagelayer.com/wordpress (PAGELAYER)
14 // ----------------------------------------------------------
15 // Please Read the Terms of use at http://pagelayer.com/tos
16 // ----------------------------------------------------------
17 //===========================================================
18 // (c)Pagelayer Team
19 //===========================================================
20 //////////////////////////////////////////////////////////////
21
22 // Are we being accessed directly ?
23 if(!defined('PAGELAYER_VERSION')) {
24 exit('Hacking Attempt !');
25 }
26
27 // The Pagelayer Settings Header
28 function pagelayer_page_header($title = 'Pagelayer Editor'){
29
30 wp_enqueue_script( 'pagelayer-admin', PAGELAYER_JS.'/pagelayer-admin.js', array('jquery'), PAGELAYER_VERSION);
31 wp_enqueue_style( 'pagelayer-admin', PAGELAYER_CSS.'/pagelayer-admin.css', array(), PAGELAYER_VERSION);
32
33 $promos = apply_filters('pagelayer_review_link', true);
34
35 echo '<div style="margin: 10px 20px 0 2px;">
36 <div class="metabox-holder columns-2">
37 <div class="postbox-container">
38 <div class="wrap">
39 <h1><!--This is to fix promo--></h1>
40 <table cellpadding="2" cellspacing="1" width="100%" class="fixed" border="0">
41 <tr>
42 <td valign="top"><h1>'.$title.'</h1></td>
43 '.($promos ? '<td align="right"><a target="_blank" class="button button-primary" href="https://wordpress.org/support/view/plugin-reviews/pagelayer">Review Pagelayer</a></td>' : '').'
44 <td align="right" width="40"><a target="_blank" href="https://twitter.com/pagelayer"><img src="'.PAGELAYER_URL.'/images/twitter.png" /></a></td>
45 <td align="right" width="40"><a target="_blank" href="https://www.facebook.com/pagelayer/"><img src="'.PAGELAYER_URL.'/images/facebook.png" /></a></td>
46 </tr>
47 </table>
48 <hr />
49
50 <!--Main Table-->
51 <table cellpadding="8" cellspacing="1" width="100%" class="fixed">
52 <tr>
53 <td valign="top">';
54
55 }
56
57 // The Pagelayer Settings footer
58 function pagelayer_page_footer(){
59
60 echo '
61 </td>';
62
63 $promos = apply_filters('pagelayer_right_bar_promos', true);
64
65 if($promos){
66
67 echo '
68 <td width="200" valign="top" id="pagelayer-right-bar">';
69
70 if(!defined('PAGELAYER_PREMIUM')){
71
72 echo '
73 <div class="postbox" style="min-width:0px !important;">
74 <h2 class="hndle ui-sortable-handle">
75 <span><a target="_blank" href="'.PAGELAYER_PRO_URL.'"><img src="'.PAGELAYER_URL.'/images/pagelayer_product.png" width="100%" /></a></span>
76 </h2>
77 <div class="inside">
78 <i>Upgrade to the premium version and get the following features </i>:<br>
79 <ul class="pagelayer-right-ul">
80 <li>60+ Premium Widgets</li>
81 <li>400+ Premium Sections</li>
82 <li>Theme Builder</li>
83 <li>WooCommerce Builder</li>
84 <li>Theme Creator and Exporter</li>
85 <li>Form Builder</li>
86 <li>Popup Builder</li>
87 <li>And many more ...</li>
88 </ul>
89 <center><a class="button button-primary" target="_blank" href="'.PAGELAYER_PRO_URL.'">Upgrade</a></center>
90 </div>
91 </div>';
92
93 }
94
95 echo '
96 <div class="postbox" style="min-width:0px !important;">
97 <h2 class="hndle ui-sortable-handle">
98 <span><a target="_blank" href="https://wpcentral.co/?from=pagelayer-plugin"><img src="'.PAGELAYER_URL.'/images/wpcentral_product.png" width="100%" /></a></span>
99 </h2>
100 <div class="inside">
101 <i>Manage all your WordPress sites from <b>1 dashboard</b> </i>:<br>
102 <ul class="pagelayer-right-ul">
103 <li>1-click Admin Access</li>
104 <li>Update WordPress</li>
105 <li>Update Themes</li>
106 <li>Update Plugins</li>
107 <li>Backup your WordPress Site</li>
108 <li>Plugins & Theme Management</li>
109 <li>Post Management</li>
110 <li>And many more ...</li>
111 </ul>
112 <center><a class="button button-primary" target="_blank" href="https://wpcentral.co/?from=pagelayer-plugin">Visit wpCentral</a></center>
113 </div>
114 </div>
115
116 </td>';
117 }
118
119 echo '
120 </tr>
121 </table>
122 <br />
123 <div style="width:45%;background:#FFF;padding:15px; margin:auto">
124 <b>Let your followers know that you use Pagelayer to build your website :</b>
125 <form method="get" action="https://twitter.com/intent/tweet" id="tweet" onsubmit="return dotweet(this);">
126 <textarea name="text" cols="45" row="3" style="resize:none;">I easily built my #WordPress #site using @pagelayer</textarea>
127 &nbsp; &nbsp; <input type="submit" value="Tweet!" class="button button-primary" onsubmit="return false;" id="twitter-btn" style="margin-top:20px;"/>
128 </form>
129
130 </div>
131 <br />
132
133 <script>
134 function dotweet(ele){
135 window.open(jQuery("#"+ele.id).attr("action")+"?"+jQuery("#"+ele.id).serialize(), "_blank", "scrollbars=no, menubar=no, height=400, width=500, resizable=yes, toolbar=no, status=no");
136 return false;
137 }
138 </script>
139
140 <hr />
141 <a href="'.PAGELAYER_WWW_URL.'" target="_blank">Pagelayer</a> v'.PAGELAYER_VERSION.'. '.(empty($GLOBALS['sitepad']) ? 'You can report any bugs <a href="http://wordpress.org/support/plugin/pagelayer" target="_blank">here</a>.' : '').'
142
143 </div>
144 </div>
145 </div>
146 </div>';
147
148 }
149
150 function pagelayer_settings_page(){
151
152 $option_name = 'pl_gen_setting' ;
153 $new_value = '';
154
155 if(isset($_REQUEST['pl_gen_setting'])){
156 $new_value = $_REQUEST['pl_gen_setting'];
157
158 if ( get_option( $option_name ) !== false ) {
159
160 // The option already exists, so we just update it.
161 update_option( $option_name, $new_value );
162
163 } else {
164
165 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
166 $deprecated = null;
167 $autoload = 'no';
168 add_option( $option_name, $new_value, $deprecated, $autoload );
169 }
170
171 }
172
173 if(isset($_REQUEST['pl_support_ept'])){
174
175 $pl_support_ept = $_REQUEST['pl_support_ept'];
176
177 if ( get_option( 'pl_support_ept' ) !== false ) {
178
179 // The option already exists, so we just update it.
180 update_option( 'pl_support_ept', $pl_support_ept );
181
182 } else {
183
184 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
185 $deprecated = null;
186 $autoload = 'no';
187 $pl_support_ept = ['post', 'page'];
188 add_option( 'pl_support_ept', $pl_support_ept, $deprecated, $autoload );
189 }
190 }
191
192
193
194 if(isset($_REQUEST['pagelayer_icons_set'])){
195 $pagelayer_icons_set = $_REQUEST['pagelayer_icons_set'];
196
197 if ( get_option( 'pagelayer_icons_set' ) !== false ) {
198
199 // The option already exists, so we just update it.
200 update_option( 'pagelayer_icons_set', $pagelayer_icons_set);
201
202 } else {
203 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
204 $deprecated = null;
205 $autoload = 'no';
206 //$pagelayer_icons_set = [];
207 add_option( 'pagelayer_icons_set', $pagelayer_icons_set, $deprecated, $autoload );
208 }
209 }
210
211 if(isset($_REQUEST['pagelayer_content_width'])){
212
213 $content_width = $_REQUEST['pagelayer_content_width'];
214
215 if ( get_option( 'pagelayer_content_width' ) !== false ) {
216
217 // The option already exists, so we just update it.
218 update_option( 'pagelayer_content_width', $content_width );
219
220 } else {
221
222 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
223 $deprecated = null;
224 $autoload = 'no';
225 add_option( 'pagelayer_content_width', $content_width, $deprecated, $autoload );
226 }
227 }
228
229 // Tablet breakpoint
230 if(isset($_REQUEST['pagelayer_tablet_breakpoint'])){
231
232 $tablet_breakpoint = $_REQUEST['pagelayer_tablet_breakpoint'];
233
234 if ( get_option( 'pagelayer_tablet_breakpoint' ) !== false ) {
235
236 // The option already exists, so we just update it.
237 update_option( 'pagelayer_tablet_breakpoint', $tablet_breakpoint );
238
239 } else {
240
241 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
242 $deprecated = null;
243 $autoload = 'no';
244 add_option( 'pagelayer_tablet_breakpoint', $tablet_breakpoint, $deprecated, $autoload );
245 }
246 }
247
248
249 // Mobile breakpoint
250 if(isset($_REQUEST['pagelayer_mobile_breakpoint'])){
251
252 $tablet_breakpoint = $_REQUEST['pagelayer_mobile_breakpoint'];
253
254 if ( get_option( 'pagelayer_mobile_breakpoint' ) !== false ) {
255
256 // The option already exists, so we just update it.
257 update_option( 'pagelayer_mobile_breakpoint', $tablet_breakpoint );
258
259 } else {
260
261 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
262 $deprecated = null;
263 $autoload = 'no';
264 add_option( 'pagelayer_mobile_breakpoint', $tablet_breakpoint, $deprecated, $autoload );
265 }
266 }
267
268 if(isset($_REQUEST['pagelayer_between_widgets'])){
269
270 $space_widgets = $_REQUEST['pagelayer_between_widgets'];
271
272 if ( get_option( 'pagelayer_between_widgets' ) !== false ) {
273
274 // The option already exists, so we just update it.
275 update_option( 'pagelayer_between_widgets', $space_widgets );
276
277 } else {
278
279 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
280 $deprecated = null;
281 $autoload = 'no';
282 add_option( 'pagelayer_between_widgets', $space_widgets, $deprecated, $autoload );
283 }
284 }
285
286 if(isset($_REQUEST['pagelayer_body_font'])){
287
288 $body_font = $_REQUEST['pagelayer_body_font'];
289
290 if ( get_option( 'pagelayer_body_font' ) !== false ) {
291
292 // The option already exists, so we just update it.
293 update_option( 'pagelayer_body_font', $body_font );
294
295 } else {
296
297 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
298 $deprecated = null;
299 $autoload = 'no';
300 add_option( 'pagelayer_body_font', $body_font, $deprecated, $autoload );
301 }
302 }
303
304 $socials = ['pagelayer-facebook-url','pagelayer-twitter-url','pagelayer-instagram-url','pagelayer-linkedin-url','pagelayer-youtube-url','pagelayer-gplus-url','pagelayer-copyright','pagelayer-phone','pagelayer-address'];
305
306 foreach( $socials as $social ){
307 if(isset($_REQUEST[$social])){
308 $url = $_REQUEST[$social];
309 update_option($social, $url);
310 }
311 }
312
313 if(defined('PAGELAYER_PREMIUM')){
314
315 if(isset($_REQUEST['pagelayer_cf_to_email'])){
316
317 $to_email = $_REQUEST['pagelayer_cf_to_email'];
318
319 if ( get_option( 'pagelayer_cf_to_email' ) !== false ) {
320
321 // The option already exists, so we just update it.
322 update_option( 'pagelayer_cf_to_email', $to_email );
323
324 } else {
325
326 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
327 $deprecated = null;
328 $autoload = 'no';
329 add_option( 'pagelayer_cf_to_email', $to_email, $deprecated, $autoload );
330 }
331 }
332
333 if(isset($_REQUEST['pagelayer_cf_subject'])){
334
335 $subject = $_REQUEST['pagelayer_cf_subject'];
336
337 if ( get_option( 'pagelayer_cf_subject' ) !== false ) {
338
339 // The option already exists, so we just update it.
340 update_option( 'pagelayer_cf_subject', $subject );
341
342 } else {
343
344 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
345 $deprecated = null;
346 $autoload = 'no';
347 add_option( 'pagelayer_cf_subject', $subject, $deprecated, $autoload );
348 }
349 }
350
351 if(isset($_REQUEST['pagelayer_cf_success'])){
352
353 $success = $_REQUEST['pagelayer_cf_success'];
354
355 if ( get_option( 'pagelayer_cf_success' ) !== false ) {
356
357 // The option already exists, so we just update it.
358 update_option( 'pagelayer_cf_success', $success );
359
360 } else {
361
362 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
363 $deprecated = null;
364 $autoload = 'no';
365 add_option( 'pagelayer_cf_success', $success, $deprecated, $autoload );
366 }
367 }
368
369 if(isset($_REQUEST['pagelayer_cf_failed'])){
370
371 $failed = $_REQUEST['pagelayer_cf_failed'];
372
373 if ( get_option( 'pagelayer_cf_failed' ) !== false ) {
374
375 // The option already exists, so we just update it.
376 update_option( 'pagelayer_cf_failed', $failed );
377
378 } else {
379
380 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
381 $deprecated = null;
382 $autoload = 'no';
383 add_option( 'pagelayer_cf_failed', $failed, $deprecated, $autoload );
384 }
385 }
386
387 if(isset($_REQUEST['pagelayer_google_captcha'])){
388
389 $captcha = $_REQUEST['pagelayer_google_captcha'];
390
391 if ( get_option( 'pagelayer_google_captcha' ) !== false ) {
392
393 // The option already exists, so we just update it.
394 update_option( 'pagelayer_google_captcha', $captcha );
395
396 } else {
397
398 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
399 $deprecated = null;
400 $autoload = 'no';
401 add_option( 'pagelayer_google_captcha', $captcha, $deprecated, $autoload );
402 }
403 }
404
405 // Facebook APP ID
406 if(isset($_REQUEST['pagelayer-fbapp-id'])){
407 $fb_app_id = $_REQUEST['pagelayer-fbapp-id'];
408
409 // Save it
410 update_option( 'pagelayer-fbapp-id', $fb_app_id );
411 }
412 }
413
414 $post_type = array('post', 'page', 'product');
415
416 $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
417 foreach ( $support_ept as $support_pl ) {
418 add_post_type_support( $support_pl, 'pagelayer' );
419 }
420
421 pagelayer_page_header('Pagelayer Settings');
422
423 ?>
424 <form class="pagelayer-setting-form" method="post" action="">
425 <div class="tabs-wrapper">
426 <h2 class="nav-tab-wrapper pagelayer-wrapper">
427 <a href="#general" class="nav-tab">General</a>
428 <a href="#settings" class="nav-tab ">Settings</a>
429 <a href="#icons" class="nav-tab ">Enable Icons</a>
430 <?php if(defined('PAGELAYER_PREMIUM')){ ?>
431 <a href="#integration" class="nav-tab">Integrations</a>
432 <a href="#social" class="nav-tab">Information</a>
433 <a href="#contactform" class="nav-tab ">Contact Form</a>
434 <a href="#captcha" class="nav-tab ">Google Captcha</a>
435 <?php } ?>
436 <a href="#support" class="nav-tab ">Support</a>
437 <a href="#faq" class="nav-tab ">FAQ</a>
438 </h2>
439
440 <div class="pagelayer-tab-panel" id="general">
441 <table>
442 <tr>
443 <th scope="row">Editor Enables On </th>
444 <td>
445 <label>
446 <?php
447 foreach($post_type as $type){
448
449 echo '<input type="checkbox" name="pl_support_ept[]" value="'.$type.'" '. (in_array($type, $support_ept) ? "checked" : "") .'/>'.$type.'</br>';
450 }
451 ?>
452 </label>
453 </td>
454 </tr>
455 </table>
456 </div>
457 <div class="pagelayer-tab-panel" id="settings">
458 <table>
459 <tr>
460 <th>Content Width</th>
461 <td>
462 <input name="pagelayer_content_width" type="number" step="1" min="320" max="5000" placeholder="1170" <?php if(get_option('pagelayer_content_width')){
463 echo 'value="'.get_option('pagelayer_content_width').'"';
464 }?>>
465 <p>Set the custom width of the content area. The default width set is 1170px</p>
466 </td>
467 <tr>
468 <tr>
469 <th>Space Between Widgets</th>
470 <td>
471 <input name="pagelayer_between_widgets" type="number" step="1" min="0" max="500" placeholder="15" <?php if(get_option('pagelayer_between_widgets')){
472 echo 'value="'.get_option('pagelayer_between_widgets').'"';
473 }?>>
474 <p>Set the Space Between Widgets. The default Space set is 15px</p>
475 </td>
476 <tr>
477 <tr>
478 <th>Body Font</th>
479 <td>
480 <input name="pagelayer_body_font" type="text" placeholder="Open Sans" <?php if(get_option('pagelayer_body_font')){
481 echo 'value="'.get_option('pagelayer_body_font').'"';
482 }?>>
483 <p>Please give font name as it appears on Google fonts site. You can check all google fonts here: <a href="https://fonts.google.com" target="_blank">https://fonts.google.com</a></p>
484 </td>
485 <tr>
486 <tr>
487 <th>Tablet Breakpoint</th>
488 <td>
489 <input name="pagelayer_tablet_breakpoint" type="number" step="1" min="320" max="5000" placeholder="768" <?php if(get_option('pagelayer_tablet_breakpoint')){
490 echo 'value="'.get_option('pagelayer_tablet_breakpoint').'"';
491 }?>>
492 <p>Set the breakpoint for tablet devices. The default breakpoint for tablet layout is 768px</p>
493 </td>
494 </tr>
495 <tr>
496 <th>Mobile Breakpoint</th>
497 <td>
498 <input name="pagelayer_mobile_breakpoint" type="number" step="1" min="320" max="5000" placeholder="360" <?php if(get_option('pagelayer_mobile_breakpoint')){
499 echo 'value="'.get_option('pagelayer_mobile_breakpoint').'"';
500 }?>>
501 <p>Set the breakpoint for mobile devices. The default breakpoint for mobile layout is 360px</p>
502 </td>
503 </tr>
504 </table>
505 </div>
506 <div class="pagelayer-tab-panel" id="icons">
507 <table>
508 <tr>
509 <th scope="row">Enable Icons</th>
510 <td>
511 <label>
512 <input type="checkbox" name="pagelayer_icons_set[]" value="font-awesome5" <?php if(in_array('font-awesome5',get_option( 'pagelayer_icons_set')) || !get_option( 'pagelayer_icons_set')){echo ' checked';}?> />font-awesome5</br>
513 </label>
514 </td>
515 </tr>
516 </table>
517 </div>
518 <?php if(defined('PAGELAYER_PREMIUM')){ ?>
519 <div class="pagelayer-tab-panel" id="integration">
520 <div class="pagelayer-title">
521 <h2>Facebook SDK Details</h2>
522 </div>
523 <table>
524 <tr>
525 <th>App ID</th>
526 <td><input type="text" name="pagelayer-fbapp-id" class="pagelayer-app-id" <?php if(get_option('pagelayer-fbapp-id')){
527 echo 'value="'.get_option('pagelayer-fbapp-id').'"';
528 }?>/></td>
529 </tr>
530 </table>
531 </div>
532 <div class="pagelayer-tab-panel" id="social">
533 <div class="pagelayer-settings-info" style="display:flex;">
534 <div style="flex:1">
535 <div class="pagelayer-title">
536 <h2>Address and Phone Number</h2>
537 </div>
538 <table>
539 <tr>
540 <th>Address</th>
541 <td><textarea name="pagelayer-address"><?php echo pagelayer_get_option('pagelayer-address');?></textarea></td>
542 </tr>
543 <tr>
544 <th>Phone Number</th>
545 <td><input type="tel" name="pagelayer-phone" <?php echo 'value="'.pagelayer_get_option('pagelayer-phone').'"';?> /></td>
546 </tr>
547 </table>
548 <div class="pagelayer-title">
549 <h2>Copyright</h2>
550 </div>
551 <table>
552 <tr>
553 <th>Copyright Text</th>
554 <td><textarea name="pagelayer-copyright"><?php echo pagelayer_get_option('pagelayer-copyright'); ?></textarea></td>
555 </tr>
556 </table>
557 </div>
558 <div style="flex:1">
559 <div class="pagelayer-title">
560 <h2>Social Profile URLs</h2>
561 </div>
562 <table>
563 <tr>
564 <th>Facebook</th>
565 <td><input type="text" name="pagelayer-facebook-url" <?php echo 'value="'.get_option('pagelayer-facebook-url').'"';?>/></td>
566 </tr>
567 <tr>
568 <th>Twitter</th>
569 <td><input type="text" name="pagelayer-twitter-url" <?php echo 'value="'.get_option('pagelayer-twitter-url').'"';?>/></td>
570 </tr>
571 <tr>
572 <th>Instagram</th>
573 <td><input type="text" name="pagelayer-instagram-url" <?php echo 'value="'.get_option('pagelayer-instagram-url').'"'; ?>/></td>
574 </tr>
575 <tr>
576 <th>LinkedIn</th>
577 <td><input type="text" name="pagelayer-linkedin-url" <?php echo 'value="'.get_option('pagelayer-linkedin-url').'"'; ?>/></td>
578 </tr>
579 <tr>
580 <th>YouTube</th>
581 <td><input type="text" name="pagelayer-youtube-url" <?php echo 'value="'.get_option('pagelayer-youtube-url').'"'; ?>/></td>
582 </tr>
583 <tr>
584 <th>Google+</th>
585 <td><input type="text" name="pagelayer-gplus-url" <?php echo 'value="'.get_option('pagelayer-gplus-url').'"'; ?>/></td>
586 </tr>
587 </table>
588 </div>
589 </div>
590 </div>
591 <div class="pagelayer-tab-panel" id="contactform">
592 <table>
593 <tr>
594 <th scope="row">To Email:</th>
595 <td>
596 <label>
597 <input name="pagelayer_cf_to_email" type="email" placeholder="email@domain.com" <?php if(get_option('pagelayer_cf_to_email')){
598 echo 'value="'.get_option('pagelayer_cf_to_email').'"';
599 }?>/>
600 </label>
601 </td>
602 </tr>
603 <tr>
604 <th scope="row">Subject:</th>
605 <td>
606 <label>
607 <input name="pagelayer_cf_subject" type="text" placeholder="Subject" <?php if(get_option('pagelayer_cf_subject')){
608 echo 'value="'.get_option('pagelayer_cf_subject').'"';
609 }?> />
610 </label>
611 </td>
612 </tr>
613 <tr>
614 <th scope="row">Success Message:</th>
615 <td>
616 <label>
617 <input name="pagelayer_cf_success" type="text" placeholder="Success" <?php if(get_option('pagelayer_cf_success')){
618 echo 'value="'.get_option('pagelayer_cf_success').'"';
619 }?> />
620 </label>
621 </td>
622 </tr>
623 <tr>
624 <th scope="row">Failed Message: </th>
625 <td>
626 <label>
627 <input name="pagelayer_cf_failed" type="text" placeholder="Failed" <?php if(get_option('pagelayer_cf_failed')){
628 echo 'value="'.get_option('pagelayer_cf_failed').'"';
629 }?> />
630 </label>
631 </td>
632 </tr>
633 </table>
634 </div>
635 <div class="pagelayer-tab-panel" id="captcha">
636 <table>
637 <tr>
638 <th scope="row">Google ReCaptcha </th>
639 <td>
640 <label>
641 <input name="pagelayer_google_captcha" type="text" placeholder="captcha" <?php if(get_option('pagelayer_google_captcha')){
642 echo 'value="'.get_option('pagelayer_google_captcha').'"';
643 }?> />
644 </label>
645 </td>
646 </tr>
647 </table>
648 </div>
649 <?php } ?>
650 <div class="pagelayer-tab-panel" id="support">
651 <h2>Support</h2>
652 <h3>You can contact the Pagelayer Team via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</h3>
653 </div>
654 <div class="pagelayer-tab-panel" id="faq">
655 <h2>FAQ</h2>
656 <div class="pagelayer-acc-wrapper">
657 <span class="nav-tab pagelayer-acc-tab">1: Why choose us</span>
658 <div class="pagelayer-acc-panel">
659 <p>Pagelayer is best live editor and easy to use and we will keep improving it !</P>
660 </div>
661
662 <span class="nav-tab pagelayer-acc-tab">2: Support</span>
663 <div class="pagelayer-acc-panel">
664 <p>You can contact the PageLayer Group via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</p>
665 </div>
666 </div>
667 </div>
668 </div>
669 <p>
670 <input type="submit" name="submit" class="button button-primary" value="Save Changes">
671 </p>
672 </form>
673
674 <?php
675
676 pagelayer_page_footer();
677
678 }
679