PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 0.9.0
Page Builder: Pagelayer – Drag and Drop website builder v0.9.0
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 0.9.0, at main/settings.php

127 lines 4.0 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 $option_name = 'pl_gen_setting' ;
28 $new_value = '';
29
30 if(isset($_REQUEST['pl_gen_setting'])){
31 $new_value = $_REQUEST['pl_gen_setting'];
32
33 if ( get_option( $option_name ) !== false ) {
34
35 // The option already exists, so we just update it.
36 update_option( $option_name, $new_value );
37
38 } else {
39
40 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
41 $deprecated = null;
42 $autoload = 'no';
43 add_option( $option_name, $new_value, $deprecated, $autoload );
44 }
45
46 }
47
48 if(isset($_REQUEST['pl_support_ept'])){
49
50 $pl_support_ept = $_REQUEST['pl_support_ept'];
51
52 if ( get_option( 'pl_support_ept' ) !== false ) {
53
54 // The option already exists, so we just update it.
55 update_option( 'pl_support_ept', $pl_support_ept );
56
57 } else {
58
59 // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
60 $deprecated = null;
61 $autoload = 'no';
62 $pl_support_ept = ['post', 'page'];
63 add_option( 'pl_support_ept', $pl_support_ept, $deprecated, $autoload );
64 }
65 }
66
67 $post_type = array('post', 'page', 'product');
68
69 $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
70 foreach ( $support_ept as $support_pl ) {
71 add_post_type_support( $support_pl, 'pagelayer' );
72 }
73 ?>
74 <form class="pagelayer-setting-form" method="post" action="">
75 <h1>PageLayer Editor</h1>
76 <p>Welcome To PageLayer</p>
77 <div class="tabs-wrapper">
78 <h2 class="nav-tab-wrapper">
79 <a href="#general" class="nav-tab">General</a>
80 <a href="#support" class="nav-tab ">Support</a>
81 <a href="#faq" class="nav-tab ">FAQ</a>
82 </h2>
83
84 <div class="pagelayer-tab-panel" id="general">
85 <table>
86 <tr>
87 <th scope="row">Editor Enables On </th>
88 <td>
89 <label>
90 <?php
91 foreach($post_type as $type){
92 echo '<input type="checkbox" name="pl_support_ept[]" value="'.$type.'" '. (in_array($type, $support_ept) ? "checked" : "") .'/>'.$type.'</br>';
93 }
94 ?>
95 </label></td>
96 </tr>
97 <tr>
98 <th>
99 <input type="submit" name="submit" class="button button-primary" value="Save Changes">
100 </th>
101 <td></td>
102 </tr>
103 </table>
104 </div>
105 <div class="pagelayer-tab-panel" id="support">
106 <h2>Support</h2>
107 <h3>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!</h3>
108
109
110 </div>
111 <div class="pagelayer-tab-panel" id="faq">
112 <h2>FAQ</h2>
113 <div class="pagelayer-acc-wrapper">
114 <span class="nav-tab pagelayer-acc-tab">1: Why choose us</span>
115 <div class="pagelayer-acc-panel">
116 <p>PageLayer is best live editor and easy to use and we will keep improving it !</P>
117 </div>
118
119 <span class="nav-tab pagelayer-acc-tab">2: Support</span>
120 <div class="pagelayer-acc-panel">
121 <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>
122 </div>
123 </div>
124 </div>
125 </div>
126 </form>
127