Custom Login Page Customizer | LoginPress - Version 1.0.17

Version Description

  • 2017-06-14 =
  • Enhancement: Compatible with 4.8
  • Enhancement: Pro features promo introducing in Free version.
Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Custom Login Page Customizer | LoginPress
Version 1.0.17
Comparing to
See all releases

Code changes from version 1.0.16 to 1.0.17

classes/control-promo.php ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class for Promotion.
5
+ *
6
+ * @since 1.0.17
7
+ * @access public
8
+ */
9
+ class LoginPress_Promo extends WP_Customize_Control {
10
+
11
+ /**
12
+ * The type of customize control being rendered.
13
+ *
14
+ * @since 1.0.17
15
+ * @access public
16
+ * @var string
17
+ */
18
+ public $type = 'promotion';
19
+
20
+ /**
21
+ * The type of customize control being rendered.
22
+ *
23
+ * @since 1.0.17
24
+ * @access public
25
+ * @var string
26
+ */
27
+ public $thumbnail;
28
+
29
+ /**
30
+ * Promotion text for <the> Controler</the>.
31
+ *
32
+ * @since 1.0.17
33
+ * @access public
34
+ * @var string
35
+ */
36
+ public $promo_text;
37
+
38
+ /**
39
+ * Promotion link for the Controler
40
+ *
41
+ * @since 1.0.17
42
+ * @access public
43
+ * @var string
44
+ */
45
+ public $link;
46
+
47
+ /**
48
+ * Enqueue scripts/styles.
49
+ *
50
+ * @since 1.0.17
51
+ * @access public
52
+ * @return void
53
+ */
54
+ public function enqueue() {
55
+ // wp_enqueue_script( 'jt-customize-controls', plugins_url( '/customize-controls.js' , __FILE__ ), array( 'jquery' ) );
56
+ // wp_enqueue_script( 'jquery-ui-button' );
57
+ }
58
+
59
+ /**
60
+ * Displays the control content.
61
+ *
62
+ * @since 1.0.17
63
+ * @access public
64
+ * @return void
65
+ */
66
+ public function render_content() {
67
+ ?>
68
+
69
+ <span class="customize-control-title">
70
+ <?php echo esc_attr( $this->label ); ?>
71
+ <?php if ( ! empty( $this->description ) ) : ?>
72
+ <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
73
+ <?php endif; ?>
74
+ </span>
75
+
76
+
77
+ <div id="input_<?php echo $this->id; ?>" class="image">
78
+
79
+ <div class="loginpress_promo_thumbnail">
80
+ <a href="<?php echo esc_url( $this->link );?>" target="_blank">
81
+ <div class="customizer-promo-overlay">
82
+ <span class="customizer-promo-text"><?php echo esc_html( $this->promo_text ); ?></span>
83
+ </div>
84
+ <img src="<?php echo esc_url( $this->thumbnail ); ?>" alt="<?php echo esc_attr( $this->id ); ?>" title="<?php echo esc_attr( $this->id ); ?>">
85
+ </a>
86
+ </div> <!-- .loginpress_promo_thumbnail -->
87
+
88
+ </div>
89
+
90
+ <?php }
91
+
92
+
93
+ }
94
+ function loginpress_promo_control_css() {
95
+ ?>
96
+ <style>
97
+ .loginpress_promo_thumbnail a{
98
+ display: inline-block;
99
+ position: relative;
100
+ border:5px solid transparent;
101
+ }
102
+ .loginpress_promo_thumbnail a .customizer-promo-overlay{
103
+ position: absolute;
104
+ top: 0;
105
+ left: 0;
106
+ width: 100%;
107
+ height: 100%;
108
+ background: rgba(204, 204, 204, 0.8);
109
+ content: '';
110
+ -webkit-transition: all 0.2s ease-in-out;
111
+ -moz-transition: all 0.2s ease-in-out;
112
+ -ms-transition: all 0.2s ease-in-out;
113
+ transition: all 0.2s ease-in-out;
114
+ opacity: 0;
115
+ visibility: hidden;
116
+ -webkit-transform: scale(.5);
117
+ -moz-transform: scale(.5);
118
+ -ms-transform: scale(.5);
119
+ transform: scale(.5);
120
+ }
121
+ .customizer-promo-text{
122
+ line-height:1.2;
123
+ position: absolute;
124
+ top: 50%;
125
+ left: 50%;
126
+ -webkit-transform:translate(-50%, -50%);
127
+ transform:translate(-50%, -50%);
128
+ width: 100%;
129
+ font-size: 25px;
130
+ color: #000;
131
+ z-index: 100;
132
+ text-align: center;
133
+ opacity: 0;
134
+ }
135
+ .loginpress_promo_thumbnail a:hover{
136
+ border-color: #ccc;
137
+ }
138
+ .loginpress_promo_thumbnail a:hover .customizer-promo-text{
139
+ opacity: 1;
140
+ }
141
+ .loginpress_promo_thumbnail a:hover .customizer-promo-overlay{
142
+ opacity: 1;
143
+ visibility: visible;
144
+ -webkit-transform: scale(1);
145
+ -moz-transform: scale(1);
146
+ -ms-transform: scale(1);
147
+ transform: scale(1);
148
+ }
149
+ </style>
150
+ <?php
151
+ }
152
+ add_action( 'customize_controls_print_styles', 'loginpress_promo_control_css' );
153
+ ?>
classes/loginpress-promo.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include LOGINPRESS_ROOT_PATH .'classes/control-promo.php';
3
+
4
+ $wp_customize->add_section( 'lpcustomize_google_font', array(
5
+ 'title' => __( 'Google Fonts', 'loginpress-pro' ),
6
+ // 'description' => __( 'Select Google Font', 'loginpress-pro' ),
7
+ 'priority' => 2,
8
+ 'panel' => 'loginpress_panel',
9
+ ) );
10
+
11
+ $wp_customize->add_setting( 'loginpress_customization[google_font]', array(
12
+ 'default' => '',
13
+ 'type' => 'option',
14
+ 'capability' => 'manage_options',
15
+ 'transport' => 'postMessage'
16
+ ) );
17
+
18
+ $wp_customize->add_control( new LoginPress_Promo( $wp_customize, 'loginpress_customization[google_font]',
19
+ array(
20
+ 'section' => 'lpcustomize_google_font',
21
+ 'thumbnail' => plugins_url( 'img/promo/font_promo.png', LOGINPRESS_ROOT_FILE ),
22
+ 'promo_text' => __( 'Unlock Premium Feature', 'loginpress' ),
23
+ 'link' => 'https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&amp;utm_medium=fonts&amp;utm_campaign=pro-upgrade'
24
+ ) ) );
25
+
26
+ $wp_customize->add_section( 'customize_recaptcha', array(
27
+ 'title' => __( 'reCAPTCHA', 'loginpress-pro' ),
28
+ // 'description' => __( 'reCAPTCHA Setting', 'loginpress-pro' ),
29
+ 'priority' => 24,
30
+ 'panel' => 'loginpress_panel',
31
+ ) );
32
+
33
+ $wp_customize->add_setting( "loginpress_customization[recaptcha_error_message]", array(
34
+ 'type' => 'option',
35
+ 'capability' => 'manage_options',
36
+ 'transport' => 'postMessage'
37
+ ) );
38
+
39
+ $wp_customize->add_control( new LoginPress_Promo( $wp_customize, 'loginpress_customization[recaptcha_error_message]',
40
+ array(
41
+ 'section' => 'customize_recaptcha',
42
+ 'thumbnail' => plugins_url( 'img/promo/recaptcha_option_promo.png', LOGINPRESS_ROOT_FILE ),
43
+ 'promo_text' => __( 'Unlock Premium Feature', 'loginpress' ),
44
+ 'link' => 'https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&amp;utm_medium=recaptcha&amp;utm_campaign=pro-upgrade'
45
+ ) ) );
46
+
47
+ // $wp_customize->add_setting( "loginpress_customization[reset_hint_text]", array(
48
+ // 'type' => 'option',
49
+ // 'capability' => 'manage_options',
50
+ // 'transport' => 'postMessage'
51
+ // ) );
52
+
53
+ // $wp_customize->add_control( new LoginPress_Promo( $wp_customize, 'loginpress_customization[reset_hint_text]',
54
+ // array(
55
+ // 'section' => 'section_welcome',
56
+ // 'thumbnail' => plugins_url( 'img/promo/hint_promo.png', LOGINPRESS_ROOT_FILE ),
57
+ // 'promo_text' => __( 'Unlock Premium Feature', 'loginpress' ),
58
+ // 'priority' => 32,
59
+ // 'link' => 'https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&amp;utm_medium=hint&amp;utm_campaign=pro-upgrade'
60
+ // ) ) );
61
+ ?>
classes/loginpress-setup.php CHANGED
@@ -76,7 +76,7 @@ class LoginPress_Settings {
76
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
77
  array_push( $loginpress_general_tab , array(
78
  'id' => 'loginpress_premium',
79
- 'title' => __( 'Try Premium Version', 'loginpress' )
80
  ) );
81
  }
82
 
@@ -99,14 +99,17 @@ class LoginPress_Settings {
99
  'desc' => __( 'Remove my custom settings.', 'loginpress' ),
100
  'type' => 'checkbox'
101
  ),
102
- // array(
103
- // 'name' => 'tracking_anonymous',
104
- // 'label' => __( 'Allow Usage Tracking?', 'loginpress' ),
105
- // 'desc' => __( 'Allow LoginPress to <a href="https://wpbrigade.com/wordpress/plugins/non-sensitive-diagnostic-tracking/" target="_blank">non-sensitive diagnostic tracking</a> and help us make the plugin even better.', 'loginpress' ),
106
- // 'type' => 'checkbox'
107
- // )
108
  );
109
 
 
 
 
 
 
 
 
 
 
110
  $_settings_fields = apply_filters( 'loginpress_pro_settings', $_free_fields );
111
 
112
  $settings_fields = array( 'loginpress_setting' => $_settings_fields, );
76
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
77
  array_push( $loginpress_general_tab , array(
78
  'id' => 'loginpress_premium',
79
+ 'title' => __( 'Upgrade to Pro for More Features', 'loginpress' )
80
  ) );
81
  }
82
 
99
  'desc' => __( 'Remove my custom settings.', 'loginpress' ),
100
  'type' => 'checkbox'
101
  ),
 
 
 
 
 
 
102
  );
103
 
104
+ if ( ! has_action( 'loginpress_pro_add_template' ) ) {
105
+ array_unshift( $_free_fields , array(
106
+ 'name' => 'enable_repatcha_promo',
107
+ 'label' => __( 'Enable reCAPTCHA', 'loginpress' ),
108
+ 'desc' => __( 'Enable LoginPress reCaptcha', 'loginpress' ),
109
+ 'type' => 'checkbox'
110
+ ) );
111
+ }
112
+
113
  $_settings_fields = apply_filters( 'loginpress_pro_settings', $_free_fields );
114
 
115
  $settings_fields = array( 'loginpress_setting' => $_settings_fields, );
css/style.css CHANGED
@@ -235,12 +235,27 @@
235
  .loginpress-dasboard-pro-link{
236
  color: #0cbb0c;
237
  }
 
238
  #customize-theme-controls #accordion-section-customize_presets .accordion-section-title{
239
  background-color: #FFD700;
240
  }
241
  #customize-controls #accordion-section-customize_presets:hover>.accordion-section-title{
242
  background-color: #FFD700;
243
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  #loginpress_setting form>h2{
245
  display: none;
246
  }
@@ -254,6 +269,43 @@
254
  .site_key, .secret_key, .captcha_theme, .captcha_language, .captcha_enable{
255
  display: none;
256
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  @media screen and (max-width: 1170px) {
258
 
259
  }
235
  .loginpress-dasboard-pro-link{
236
  color: #0cbb0c;
237
  }
238
+ /*Preset section*/
239
  #customize-theme-controls #accordion-section-customize_presets .accordion-section-title{
240
  background-color: #FFD700;
241
  }
242
  #customize-controls #accordion-section-customize_presets:hover>.accordion-section-title{
243
  background-color: #FFD700;
244
  }
245
+ /*Google font section*/
246
+ /*#customize-theme-controls #accordion-section-lpcustomize_google_font .accordion-section-title{
247
+ background-color: #FFD700;
248
+ }
249
+ #customize-controls #accordion-section-lpcustomize_google_font:hover>.accordion-section-title{
250
+ background-color: #FFD700;
251
+ }
252
+ /*reCaptcha section*/
253
+ /*#customize-theme-controls #accordion-section-customize_recaptcha .accordion-section-title{
254
+ background-color: #FFD700;
255
+ }
256
+ #customize-controls #accordion-section-customize_recaptcha:hover>.accordion-section-title{
257
+ background-color: #FFD700;
258
+ }*/
259
  #loginpress_setting form>h2{
260
  display: none;
261
  }
269
  .site_key, .secret_key, .captcha_theme, .captcha_language, .captcha_enable{
270
  display: none;
271
  }
272
+ .recapthca-promo-img{
273
+ display: none;
274
+ }
275
+ /*.recapthca-promo-img img{
276
+ margin-left: -9px;
277
+ width: 353%;
278
+ }*/
279
+ .recapthca-promo{
280
+ position: relative;
281
+ }
282
+ .recapthca-promo-link{
283
+ position: absolute;
284
+ top: 0;
285
+ left: 0;
286
+ width: 100%;
287
+ height: 100%;
288
+ background: rgba(0,0,0, .7);
289
+ opacity: 0;
290
+ }
291
+ .recapthca-promo-link span{
292
+ position: absolute;
293
+ top: 50%;
294
+ left: 50%;
295
+ -webkit-transform: translate(-50%, -50%);
296
+ -moz-transform: translate(-50%, -50%);
297
+ -ms-transform: translate(-50%, -50%);
298
+ transform: translate(-50%, -50%);
299
+ content: '';
300
+ font-size: 37px;
301
+ color: #fff;
302
+ width: 100%;
303
+ text-align: center;
304
+ text-transform: capitalize;
305
+ }
306
+ .recapthca-promo:hover .recapthca-promo-link{
307
+ opacity: 1;
308
+ }
309
  @media screen and (max-width: 1170px) {
310
 
311
  }
custom.php CHANGED
@@ -52,7 +52,7 @@ class LoginPress_Entities {
52
  */
53
  function loginpress_customizer_js() {
54
  wp_enqueue_script('jquery');
55
- wp_enqueue_script( 'loginpress-customize-control', plugins_url( 'js/customize-controls.js' , __FILE__ ), array( 'jquery', 'customize-preview' ), LOGINPRESS_VERSION, true );
56
 
57
 
58
  // Get Background URL for use in Customizer JS.
@@ -83,6 +83,10 @@ class LoginPress_Entities {
83
 
84
  include LOGINPRESS_ROOT_PATH .'classes/control-presets.php';
85
 
 
 
 
 
86
  // =============================
87
  // = Panel for the LoginPress =
88
  // =============================
@@ -93,7 +97,9 @@ class LoginPress_Entities {
93
  ) );
94
 
95
  /**
96
- * Start of Presets.
 
 
97
  *
98
  * @since 1.0.9
99
  */
@@ -112,109 +118,109 @@ class LoginPress_Entities {
112
 
113
  $loginpress_free_templates = array(
114
  'default1' => array(
115
- 'img' => plugins_url( 'img/bg.jpg', __FILE__ ),
116
- 'thumbnail' => plugins_url( 'img/thumbnail/default-1.png', __FILE__ ),
117
  'id' => 'default1',
118
  'name' => 'Default'
119
  ),
120
  'default2' => array(
121
- 'thumbnail' => plugins_url( 'img/thumbnail/default-2.png', __FILE__ ),
122
  'id' => 'default2',
123
  'name' => __( 'Company', 'loginpress' ),
124
  'pro' => 'yes'
125
  ),
126
  'default3' => array(
127
- 'thumbnail' => plugins_url( 'img/thumbnail/default-3.png', __FILE__ ),
128
  'id' => 'default3',
129
  'name' => __( 'Persona', 'loginpress' ),
130
  'pro' => 'yes'
131
  ),
132
  'default4' => array(
133
- 'thumbnail' => plugins_url( 'img/thumbnail/default-4.jpg', __FILE__ ),
134
  'id' => 'default4',
135
  'name' => __( 'Corporate', 'loginpress' ),
136
  'pro' => 'yes'
137
  ),
138
  'default5' => array(
139
- 'thumbnail' => plugins_url( 'img/thumbnail/default-5.png', __FILE__ ),
140
  'id' => 'default5',
141
  'name' => __( 'Corporate', 'loginpress' ),
142
  'pro' => 'yes'
143
  ),
144
  'default6' => array(
145
- 'thumbnail' => plugins_url( 'img/thumbnail/default-6.png', __FILE__ ),
146
  'id' => 'default6',
147
  'name' => __( 'Startup', 'loginpress' ),
148
  'pro' => 'yes'
149
  ),
150
  'default7' => array(
151
- 'thumbnail' => plugins_url( 'img/thumbnail/default-7.png', __FILE__ ),
152
  'id' => 'default7',
153
  'name' => __( 'Wedding', 'loginpress' ),
154
  'pro' => 'yes'
155
  ),
156
  'default8' => array(
157
- 'thumbnail' => plugins_url( 'img/thumbnail/default-8.png', __FILE__ ),
158
  'id' => 'default8',
159
  'name' => __( 'Wedding #2', 'loginpress' ),
160
  'pro' => 'yes'
161
  ),
162
  'default9' => array(
163
- 'thumbnail' => plugins_url( 'img/thumbnail/default-9.png', __FILE__ ),
164
  'id' => 'default9',
165
  'name' => __( 'Company', 'loginpress' ),
166
  'pro' => 'yes'
167
  ),
168
  'default10' => array(
169
- 'thumbnail' => plugins_url( 'img/thumbnail/default-10.png', __FILE__ ),
170
  'id' => 'default10',
171
  'name' => __( 'Bikers', 'loginpress' ),
172
  'pro' => 'yes'
173
  ),
174
  'default11' => array(
175
- 'thumbnail' => plugins_url( 'img/thumbnail/default-11.png', __FILE__ ),
176
  'id' => 'default11',
177
  'name' => __( 'Fitness', 'loginpress' ),
178
  'pro' => 'yes'
179
  ),
180
  'default12' => array(
181
- 'thumbnail' => plugins_url( 'img/thumbnail/default-12.png', __FILE__ ),
182
  'id' => 'default12',
183
  'name' => __( 'Shopping', 'loginpress' ),
184
  'pro' => 'yes'
185
  ),
186
  'default13' => array(
187
- 'thumbnail' => plugins_url( 'img/thumbnail/default-13.png', __FILE__ ),
188
  'id' => 'default13',
189
  'name' => __( 'Writers', 'loginpress' ),
190
  'pro' => 'yes'
191
  ),
192
  'default14' => array(
193
- 'thumbnail' => plugins_url( 'img/thumbnail/default-14.png', __FILE__ ),
194
  'id' => 'default14',
195
  'name' => __( 'Persona', 'loginpress' ),
196
  'pro' => 'yes'
197
  ),
198
  'default15' => array(
199
- 'thumbnail' => plugins_url( 'img/thumbnail/default-15.png', __FILE__ ),
200
  'id' => 'default15',
201
  'name' => __( 'Geek', 'loginpress' ),
202
  'pro' => 'yes'
203
  ),
204
  'default16' => array(
205
- 'thumbnail' => plugins_url( 'img/thumbnail/default-16.png', __FILE__ ),
206
  'id' => 'default16',
207
  'name' => __( 'Innovation', 'loginpress' ),
208
  'pro' => 'yes'
209
  ),
210
  'default17' => array(
211
- 'thumbnail' => plugins_url( 'img/thumbnail/default-17.png', __FILE__ ),
212
  'id' => 'default17',
213
  'name' => __( 'Photographers', 'loginpress' ),
214
  'pro' => 'yes'
215
  ),
216
  'default18' => array(
217
- 'thumbnail' => plugins_url( 'img/thumbnail/custom-design.png', __FILE__ ),
218
  'id' => 'default18',
219
  'name' => 'Custom Design',
220
  'pro' => 'yes'
@@ -325,7 +331,7 @@ class LoginPress_Entities {
325
  ) ) );
326
 
327
  $wp_customize->add_setting( 'loginpress_customization[setting_background]', array(
328
- // 'default' => plugins_url( 'img/bg.jpg', __FILE__ ) ,
329
  'type' => 'option',
330
  'capability' => 'manage_options',
331
  'transport' => 'postMessage'
52
  */
53
  function loginpress_customizer_js() {
54
  wp_enqueue_script('jquery');
55
+ wp_enqueue_script( 'loginpress-customize-control', plugins_url( 'js/customize-controls.js' , LOGINPRESS_ROOT_FILE ), array( 'jquery', 'customize-preview' ), LOGINPRESS_VERSION, true );
56
 
57
 
58
  // Get Background URL for use in Customizer JS.
83
 
84
  include LOGINPRESS_ROOT_PATH .'classes/control-presets.php';
85
 
86
+ if ( ! has_action( 'loginpress_pro_add_template' ) ) :
87
+ include LOGINPRESS_ROOT_PATH .'classes/loginpress-promo.php';
88
+ endif;
89
+
90
  // =============================
91
  // = Panel for the LoginPress =
92
  // =============================
97
  ) );
98
 
99
  /**
100
+ * =============================
101
+ * = Section for Presets =
102
+ * =============================
103
  *
104
  * @since 1.0.9
105
  */
118
 
119
  $loginpress_free_templates = array(
120
  'default1' => array(
121
+ 'img' => plugins_url( 'img/bg.jpg', LOGINPRESS_ROOT_FILE ),
122
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-1.png', LOGINPRESS_ROOT_FILE ),
123
  'id' => 'default1',
124
  'name' => 'Default'
125
  ),
126
  'default2' => array(
127
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-2.png', LOGINPRESS_ROOT_FILE ),
128
  'id' => 'default2',
129
  'name' => __( 'Company', 'loginpress' ),
130
  'pro' => 'yes'
131
  ),
132
  'default3' => array(
133
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-3.png', LOGINPRESS_ROOT_FILE ),
134
  'id' => 'default3',
135
  'name' => __( 'Persona', 'loginpress' ),
136
  'pro' => 'yes'
137
  ),
138
  'default4' => array(
139
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-4.jpg', LOGINPRESS_ROOT_FILE ),
140
  'id' => 'default4',
141
  'name' => __( 'Corporate', 'loginpress' ),
142
  'pro' => 'yes'
143
  ),
144
  'default5' => array(
145
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-5.png', LOGINPRESS_ROOT_FILE ),
146
  'id' => 'default5',
147
  'name' => __( 'Corporate', 'loginpress' ),
148
  'pro' => 'yes'
149
  ),
150
  'default6' => array(
151
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-6.png', LOGINPRESS_ROOT_FILE ),
152
  'id' => 'default6',
153
  'name' => __( 'Startup', 'loginpress' ),
154
  'pro' => 'yes'
155
  ),
156
  'default7' => array(
157
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-7.png', LOGINPRESS_ROOT_FILE ),
158
  'id' => 'default7',
159
  'name' => __( 'Wedding', 'loginpress' ),
160
  'pro' => 'yes'
161
  ),
162
  'default8' => array(
163
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-8.png', LOGINPRESS_ROOT_FILE ),
164
  'id' => 'default8',
165
  'name' => __( 'Wedding #2', 'loginpress' ),
166
  'pro' => 'yes'
167
  ),
168
  'default9' => array(
169
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-9.png', LOGINPRESS_ROOT_FILE ),
170
  'id' => 'default9',
171
  'name' => __( 'Company', 'loginpress' ),
172
  'pro' => 'yes'
173
  ),
174
  'default10' => array(
175
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-10.png', LOGINPRESS_ROOT_FILE ),
176
  'id' => 'default10',
177
  'name' => __( 'Bikers', 'loginpress' ),
178
  'pro' => 'yes'
179
  ),
180
  'default11' => array(
181
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-11.png', LOGINPRESS_ROOT_FILE ),
182
  'id' => 'default11',
183
  'name' => __( 'Fitness', 'loginpress' ),
184
  'pro' => 'yes'
185
  ),
186
  'default12' => array(
187
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-12.png', LOGINPRESS_ROOT_FILE ),
188
  'id' => 'default12',
189
  'name' => __( 'Shopping', 'loginpress' ),
190
  'pro' => 'yes'
191
  ),
192
  'default13' => array(
193
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-13.png', LOGINPRESS_ROOT_FILE ),
194
  'id' => 'default13',
195
  'name' => __( 'Writers', 'loginpress' ),
196
  'pro' => 'yes'
197
  ),
198
  'default14' => array(
199
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-14.png', LOGINPRESS_ROOT_FILE ),
200
  'id' => 'default14',
201
  'name' => __( 'Persona', 'loginpress' ),
202
  'pro' => 'yes'
203
  ),
204
  'default15' => array(
205
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-15.png', LOGINPRESS_ROOT_FILE ),
206
  'id' => 'default15',
207
  'name' => __( 'Geek', 'loginpress' ),
208
  'pro' => 'yes'
209
  ),
210
  'default16' => array(
211
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-16.png', LOGINPRESS_ROOT_FILE ),
212
  'id' => 'default16',
213
  'name' => __( 'Innovation', 'loginpress' ),
214
  'pro' => 'yes'
215
  ),
216
  'default17' => array(
217
+ 'thumbnail' => plugins_url( 'img/thumbnail/default-17.png', LOGINPRESS_ROOT_FILE ),
218
  'id' => 'default17',
219
  'name' => __( 'Photographers', 'loginpress' ),
220
  'pro' => 'yes'
221
  ),
222
  'default18' => array(
223
+ 'thumbnail' => plugins_url( 'img/thumbnail/custom-design.png', LOGINPRESS_ROOT_FILE ),
224
  'id' => 'default18',
225
  'name' => 'Custom Design',
226
  'pro' => 'yes'
331
  ) ) );
332
 
333
  $wp_customize->add_setting( 'loginpress_customization[setting_background]', array(
334
+ // 'default' => plugins_url( 'img/bg.jpg', LOGINPRESS_ROOT_FILE ) ,
335
  'type' => 'option',
336
  'capability' => 'manage_options',
337
  'transport' => 'postMessage'
img/promo/font_promo.png ADDED
Binary file
img/promo/hint_promo.png ADDED
Binary file
img/promo/recaptcha_option_promo.png ADDED
Binary file
img/promo/recaptcha_promo.png ADDED
Binary file
include/settings.php CHANGED
@@ -3,7 +3,7 @@
3
  <a class="nav-tab" href="<?php //echo admin_url( 'admin.php?page=loginpress-settings&get-premium=loginpress' ) ?>">Premium Version</a>
4
  </h2> -->
5
 
6
- <h2>LoginPress Settings</h2>
7
  <div id="normal-sortables" class="meta-box-sortables wpbrigade-videobox-wrapper">
8
  <!-- <div id="wpbrigade_infs_general_videobox" class="postbox">
9
  <h3><span>Upgrade to the PREMIUM VERSION</span></h3>
3
  <a class="nav-tab" href="<?php //echo admin_url( 'admin.php?page=loginpress-settings&get-premium=loginpress' ) ?>">Premium Version</a>
4
  </h2> -->
5
 
6
+ <h2 style="margin: 20px 0 20px 0;">LoginPress - Rebranding your boring WordPress Login pages</h2>
7
  <div id="normal-sortables" class="meta-box-sortables wpbrigade-videobox-wrapper">
8
  <!-- <div id="wpbrigade_infs_general_videobox" class="postbox">
9
  <h3><span>Upgrade to the PREMIUM VERSION</span></h3>
js/admin-custom.js CHANGED
@@ -1,17 +1,38 @@
1
- (function( $ ) {
2
  'use strict';
3
 
4
  $(function() {
5
  // Code to fire when the DOM is ready.
6
- $('.wpbrigade-video-link').on('click', function (e) {
7
  e.preventDefault();
8
  var target = $(this).data('video-id');
9
- $('#'+target).fadeIn();
10
- } );
11
- $('.wpbrigade-close-popup').on('click', function (e) {
12
  $(this).parent().parent().fadeOut();
13
- $('.wpbrigade-video-wrapper iframe').attr('src', 'https://www.youtube.com/embed/GMAwsHomJlE');
14
- } );
15
- } );
16
 
17
- })( jQuery ); // This invokes the function above and allows us to use '$' in place of 'jQuery' in our code.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
  'use strict';
3
 
4
  $(function() {
5
  // Code to fire when the DOM is ready.
6
+ $('.wpbrigade-video-link').on('click', function(e) {
7
  e.preventDefault();
8
  var target = $(this).data('video-id');
9
+ $('#' + target).fadeIn();
10
+ });
11
+ $('.wpbrigade-close-popup').on('click', function(e) {
12
  $(this).parent().parent().fadeOut();
13
+ $('.wpbrigade-video-wrapper iframe').attr('src',
14
+ 'https://www.youtube.com/embed/GMAwsHomJlE');
15
+ });
16
 
17
+ $("#wpuf-loginpress_setting\\[enable_repatcha_promo\\]").on('click', function() {
18
+
19
+ var promotion = $('#wpuf-loginpress_setting\\[enable_repatcha_promo\\]');
20
+ if ( promotion.is(":checked") ) {
21
+ $('tr.recapthca-promo-img').show();
22
+ } else {
23
+ $('tr.recapthca-promo-img').hide();
24
+ }
25
+ }); // on click promo checkbox.
26
+
27
+ $(window).on('load', function() {
28
+
29
+ $('<tr class="recapthca-promo-img"><th class="recapthca-promo" colspan="2"><img src="' + loginpress_script.plugin_url + '/loginpress/img/promo/recaptcha_promo.png"><a class="recapthca-promo-link" href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&amp;utm_medium=recaptcha-settings&amp;utm_campaign=pro-upgrade" target="_blank"><span>Unlock Premium Feature</span></a></th></tr>').insertAfter( $(".enable_repatcha_promo").closest('tr') );
30
+
31
+ var promotion = $('#wpuf-loginpress_setting\\[enable_repatcha_promo\\]');
32
+ if ( promotion.is(":checked") ) {
33
+ $('tr.recapthca-promo-img').show();
34
+ }
35
+ }); // Window on load.
36
+
37
+ });
38
+ })(jQuery); // This invokes the function above and allows us to use '$' in place of 'jQuery' in our code.
loginpress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
- * Version: 1.0.16
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: loginpress
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
22
  /**
23
  * @var string
24
  */
25
- public $version = '1.0.16';
26
 
27
  /**
28
  * @var The single instance of the class
@@ -65,6 +65,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
65
  $this->define( 'LOGINPRESS_DIR_PATH', plugin_dir_path( __FILE__ ) );
66
  $this->define( 'LOGINPRESS_DIR_URL', plugin_dir_url( __FILE__ ) );
67
  $this->define( 'LOGINPRESS_ROOT_PATH', dirname( __FILE__ ) . '/' );
 
68
  $this->define( 'LOGINPRESS_VERSION', $this->version );
69
  $this->define( 'LOGINPRESS_FEEDBACK_SERVER', 'https://wpbrigade.com/' );
70
  }
@@ -264,6 +265,13 @@ if ( ! class_exists( 'LoginPress' ) ) :
264
  function _admin_scripts() {
265
  wp_enqueue_style( 'loginpress_stlye', plugins_url( 'css/style.css', __FILE__ ), array(), LOGINPRESS_VERSION );
266
  wp_enqueue_script( 'loginpress_js', plugins_url( 'js/admin-custom.js', __FILE__ ), array(), LOGINPRESS_VERSION );
 
 
 
 
 
 
 
267
  }
268
 
269
 
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
+ * Version: 1.0.17
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.0.17';
26
 
27
  /**
28
  * @var The single instance of the class
65
  $this->define( 'LOGINPRESS_DIR_PATH', plugin_dir_path( __FILE__ ) );
66
  $this->define( 'LOGINPRESS_DIR_URL', plugin_dir_url( __FILE__ ) );
67
  $this->define( 'LOGINPRESS_ROOT_PATH', dirname( __FILE__ ) . '/' );
68
+ $this->define( 'LOGINPRESS_ROOT_FILE', __FILE__ );
69
  $this->define( 'LOGINPRESS_VERSION', $this->version );
70
  $this->define( 'LOGINPRESS_FEEDBACK_SERVER', 'https://wpbrigade.com/' );
71
  }
265
  function _admin_scripts() {
266
  wp_enqueue_style( 'loginpress_stlye', plugins_url( 'css/style.css', __FILE__ ), array(), LOGINPRESS_VERSION );
267
  wp_enqueue_script( 'loginpress_js', plugins_url( 'js/admin-custom.js', __FILE__ ), array(), LOGINPRESS_VERSION );
268
+
269
+ // Array for localize.
270
+ $loginpress_localize = array(
271
+ 'plugin_url' => plugins_url(),
272
+ );
273
+
274
+ wp_localize_script( 'loginpress_js', 'loginpress_script', $loginpress_localize );
275
  }
276
 
277
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tested up to: 4.8
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
7
- Stable tag: 1.0.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -163,6 +163,10 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
163
 
164
  == Changelog ==
165
 
 
 
 
 
166
  = 1.0.16 - 2017-06-09 =
167
  * Bugfix: Login errors confliction with Woocommerce login form.
168
  * Enhancement: Set default login errors messages.
@@ -238,5 +242,5 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
238
 
239
  == Upgrade Notice ==
240
 
241
- = 1.0.16 =
242
  * Important release, Please upgrade immediately.
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
7
+ Stable tag: 1.0.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
163
 
164
  == Changelog ==
165
 
166
+ = 1.0.17 - 2017-06-14 =
167
+ * Enhancement: Compatible with 4.8
168
+ * Enhancement: Pro features promo introducing in Free version.
169
+
170
  = 1.0.16 - 2017-06-09 =
171
  * Bugfix: Login errors confliction with Woocommerce login form.
172
  * Enhancement: Set default login errors messages.
242
 
243
  == Upgrade Notice ==
244
 
245
+ = 1.0.17 =
246
  * Important release, Please upgrade immediately.