PluginProbe ʕ •ᴥ•ʔ
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress / 3.1
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress v3.1
4.16.19 4.16.18 4.16.17 4.16.16 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5a 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.7 1.7.1 1.7.2 1.8 1.8.1 1.8.10 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.1.9 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.2 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 3.0 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.14 3.2.15 3.2.16 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10.0 4.10.1 4.10.2 4.10.3 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.15.0 4.15.1 4.15.10 4.15.11 4.15.12 4.15.13 4.15.14 4.15.15 4.15.16 4.15.17 4.15.18 4.15.19 4.15.2 4.15.20 4.15.20.1 4.15.21 4.15.22 4.15.23 4.15.24 4.15.25 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.0 4.16.1 4.16.10 4.16.11 4.16.12 4.16.13 4.16.14 4.16.15 4.16.2 4.16.3 4.16.4 4.16.5 4.16.6 4.16.7 4.16.8 4.16.9 4.2.0 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.6.0 4.7.0 4.8.0 4.9.0
wp-user-avatar / src / Themes / DragDrop / Login / PerfectoLite.php
wp-user-avatar / src / Themes / DragDrop / Login Last commit date
BuildScratch.php 5 years ago PerfectoLite.php 5 years ago Tulip.php 5 years ago
PerfectoLite.php
257 lines
1 <?php
2
3 namespace ProfilePress\Core\Themes\DragDrop\Login;
4
5 use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder;
6 use ProfilePress\Core\Themes\DragDrop\AbstractTheme;
7 use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\Fields;
8
9 class PerfectoLite extends AbstractTheme
10 {
11 public static function default_field_listing()
12 {
13 Fields\Init::init();
14 $standard_fields = DragDropBuilder::get_instance()->standard_fields();
15
16 return [
17 $standard_fields['login-username'],
18 $standard_fields['login-password'],
19 $standard_fields['login-remember'],
20 ];
21 }
22
23 public function appearance_settings($settings)
24 {
25 $settings[] = [
26 'id' => 'perfectolite_login_headline',
27 'type' => 'text',
28 'label' => esc_html__('Headline', 'wp-user-avatar'),
29 'priority' => 20
30 ];
31
32 return $settings;
33 }
34
35 public function color_settings($settings)
36 {
37 $settings2 = [
38 [
39 'id' => 'perfectolite_login_bg_color',
40 'type' => 'color',
41 'label' => esc_html__('Background', 'wp-user-avatar')
42 ],
43 [
44 'id' => 'perfectolite_login_border',
45 'type' => 'color',
46 'label' => esc_html__('Form Border', 'wp-user-avatar')
47 ],
48 [
49 'id' => 'perfectolite_login_text_color',
50 'type' => 'color',
51 'label' => esc_html__('Text', 'wp-user-avatar')
52 ],
53 [
54 'id' => 'perfectolite_login_placeholder_color',
55 'type' => 'color',
56 'label' => esc_html__('Field Placeholder', 'wp-user-avatar')
57 ],
58 [
59 'id' => 'perfectolite_login_button_bg_color',
60 'type' => 'color',
61 'label' => esc_html__('Button Background', 'wp-user-avatar')
62 ],
63 [
64 'id' => 'perfectolite_login_button_text_color',
65 'type' => 'color',
66 'label' => esc_html__('Button Text', 'wp-user-avatar')
67 ]
68 ];
69
70 return array_merge($settings, $settings2);
71 }
72
73 public function default_metabox_settings()
74 {
75 $data = parent::default_metabox_settings();
76 $data['perfectolite_login_headline'] = esc_html__('Sign in to Your Account', 'wp-user-avatar');
77 $data['perfectolite_login_bg_color'] = '#ffffff';
78 $data['perfectolite_login_border'] = '#f0f0f0';
79 $data['perfectolite_login_text_color'] = '#555555';
80 $data['perfectolite_login_placeholder_color'] = '#555555';
81 $data['perfectolite_login_button_bg_color'] = '#196cd8';
82 $data['perfectolite_login_button_text_color'] = '#ffffff';
83
84 return $data;
85 }
86
87 public function form_structure()
88 {
89 $fields = $this->field_listing();
90 $button = $this->form_submit_button();
91 $headline = $this->get_meta('perfectolite_login_headline');
92
93 return <<<HTML
94 [pp-form-wrapper class="perfecto"]
95 <div class="perfecto-heading">$headline</div>
96 $fields
97 $button
98 </div>
99 [/pp-form-wrapper]
100 HTML;
101
102 }
103
104 public function form_css()
105 {
106 $form_id = $this->form_id;
107 $form_type = $this->form_type;
108
109 $bg_color = $this->get_meta('perfectolite_login_bg_color');
110 $border_color = $this->get_meta('perfectolite_login_border');
111 $text_color = $this->get_meta('perfectolite_login_text_color');
112 $placeholder_color = $this->get_meta('perfectolite_login_placeholder_color');
113 $button_bg_color = $this->get_meta('perfectolite_login_button_bg_color');
114 $button_text_color = $this->get_meta('perfectolite_login_button_text_color');
115
116 return <<<CSS
117 /* css class for the form generated errors */
118 #pp-$form_type-$form_id-wrap .profilepress-login-status {
119 border-radius: 5px;
120 font-size: 16px;
121 line-height: 1.471;
122 padding: 10px;
123 background-color: #e74c3c;
124 color: #ffffff;
125 font-weight: normal;
126 text-align: center;
127 vertical-align: middle;
128 margin: 10px auto;
129 -webkit-box-sizing: border-box;
130 -moz-box-sizing: border-box;
131 box-sizing: border-box;
132 max-width: 450px;
133 }
134
135 #pp-$form_type-$form_id-wrap .profilepress-login-status a {
136 color: #fff;
137 text-decoration: underline;
138 }
139
140 div#pp-$form_type-$form_id.perfecto * {
141 -webkit-box-sizing: border-box;
142 -moz-box-sizing: border-box;
143 box-sizing: border-box;
144 color: $text_color;
145 }
146
147 div#pp-$form_type-$form_id.perfecto ::placeholder{
148 color: $placeholder_color;
149 }
150
151 div#pp-$form_type-$form_id.perfecto ::-webkit-input-placeholder{
152 color: $placeholder_color;
153 }
154
155 div#pp-$form_type-$form_id.perfecto ::-moz-placeholder{
156 color: $placeholder_color;
157 }
158
159 div#pp-$form_type-$form_id.perfecto :-moz-placeholder{
160 color: $placeholder_color;
161 }
162
163 div#pp-$form_type-$form_id.perfecto :-ms-input-placeholder{
164 color: $placeholder_color;
165 }
166
167 div#pp-$form_type-$form_id.perfecto {
168 margin: 5px auto;
169 border: 2px solid $border_color;
170 background: $bg_color;
171 max-width: 450px;
172 padding: 30px;
173 width: 100%;
174 font-family: helvetica, arial, sans-serif;
175 -webkit-font-smoothing: antialiased;
176 -moz-font-smoothing: antialiased;
177 font-smoothing: antialiased;
178 font-size: 14px;
179 line-height: 24px;
180 -webkit-box-sizing: border-box;
181 -moz-box-sizing: border-box;
182 box-sizing: border-box;
183 }
184
185 div#pp-$form_type-$form_id.perfecto .perfecto-heading {
186 font-size: 24px;
187 line-height: 34px;
188 margin-bottom: 20px;
189 display: block;
190 font-weight: 100;
191 text-align: center;
192 }
193
194 div#pp-$form_type-$form_id.perfecto .ppform-remember-me {
195 font-size: 14px;
196 font-family: helvetica, arial, sans-serif;
197 }
198
199 div#pp-$form_type-$form_id.perfecto input:not([type="submit"]) {
200 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125);
201 padding: 12px 18px;
202 width: 100%;
203 outline: none;
204 font-size: 12px;
205 line-height: 22px;
206 font-family: helvetica, arial, sans-serif;
207 -webkit-font-smoothing: antialiased;
208 -moz-font-smoothing: antialiased;
209 font-smoothing: antialiased;
210 border: 1px solid #ddd;
211 -webkit-border-radius: 2px;
212 -moz-border-radius: 2px;
213 border-radius: 2px;
214 margin-bottom: 10px;
215 -webkit-transition: 0.4s;
216 -moz-transition: 0.4s;
217 transition: 0.4s;
218 }
219
220 div#pp-$form_type-$form_id.perfecto input:not([type="submit"]):focus {
221 border-color: #ccc;
222 background: #fafafa;
223 -webkit-box-shadow: inset 0px 1px 5px 0px #f0f0f0;
224 -moz-box-shadow: inset 0px 1px 5px 0px #f0f0f0;
225 box-shadow: inset 0px 1px 5px 0px #f0f0f0;
226 }
227
228 div#pp-$form_type-$form_id.perfecto input.ppform-submit-button {
229 padding: 12px 10px;
230 width: 100%;
231 border: 0;
232 outline: none;
233 margin: 0;
234 margin-top: 10px;
235 color: $button_text_color;
236 cursor: pointer;
237 background: $button_bg_color;
238 font-size: 11px;
239 line-height: 21px;
240 letter-spacing: 1px;
241 text-transform: uppercase;
242 font-weight: bold;
243 font-family: helvetica, arial, sans-serif;
244 -webkit-font-smoothing: antialiased;
245 -moz-font-smoothing: antialiased;
246 font-smoothing: antialiased;
247 -webkit-border-radius: 2px;
248 -moz-border-radius: 2px;
249 border-radius: 2px;
250 -webkit-transition: 0.4s;
251 -moz-transition: 0.4s;
252 transition: 0.4s;
253 }
254 CSS;
255
256 }
257 }