Custom Login Page Customizer | LoginPress - Version 1.0.2

Version Description

  • 2016-12-24 =
  • code cleanup and readme update.
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. loginpress.php +162 -148
  2. readme.txt +109 -22
loginpress.php CHANGED
@@ -1,165 +1,179 @@
1
  <?php
2
  /**
3
- * Plugin Name: LoginPress - Customizing the WordPress Login
4
- * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/loginpress/
5
- * Description: LoginPress is the best Login Page Customizer in WordPress which allows you to completely change the layout of login, register and forgot password forms.
6
- * Version: 1.0.1
7
- * Author: WPBrigade
8
- * Author URI: http://www.WPBrigade.com/
9
- * Requires at least: 4.0
10
- * Tested up to: 4.6.1
11
- * Text Domain: loginpress
12
- * Domain Path: /languages
13
- *
14
- * @package loginpress
15
- * @category Core
16
- * @author WPBrigade
17
- */
18
  if ( ! class_exists( 'LoginPress' ) ) :
19
 
20
- final class LoginPress {
21
-
22
- /**
23
- * @var string
24
- */
25
- public $version = '1.0.0';
26
-
27
- /**
28
- * @var The single instance of the class
29
- * @since 1.0.0
30
- */
31
- protected static $_instance = null;
32
-
33
- /**
34
- * @var WP_Session session
35
- */
36
- public $session = null;
37
-
38
- /**
39
- * @var WP_Query $query
40
- */
41
- public $query = null;
42
-
43
- /**s
44
- * @var WP_Countries $countries
45
- */
46
- public $countries = null;
47
-
48
- /* * * * * * * * * *
49
- * Class constructor
50
- * * * * * * * * * */
51
- public function __construct() {
52
-
53
- $this->define_constants();
54
- $this->includes();
55
- $this->_hooks();
56
- }
57
-
58
- /**
59
- * Define LoginPress Constants
60
- */
61
- private function define_constants() {
62
-
63
- $this->define( 'LOGINPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
64
- $this->define( 'LOGINPRESS_VERSION', $this->version );
65
- }
66
-
67
- /**
68
- * Include required core files used in admin and on the frontend.
69
- */
70
- public function includes() {
71
- include_once( 'custom.php' );
72
- }
73
-
74
- /**
75
- * Hook into actions and filters
76
- * @since 1.0.0
77
- */
78
- private function _hooks() {
79
-
80
- add_action( 'admin_menu', array( $this, 'register_options_page' ) );
81
- add_action( 'plugins_loaded', array( $this, 'textdomain' ) );
82
- }
83
-
84
- /**
85
- * Main Instance
86
- *
87
- * @since 1.0.0
88
- * @static
89
- * @see loginPress_loader()
90
- * @return Main instance
91
- */
92
- public static function instance() {
93
- if ( is_null( self::$_instance ) ) {
94
- self::$_instance = new self();
95
- }
96
- return self::$_instance;
97
- }
98
-
99
-
100
- /**
101
- * Load Languages
102
- * @since 1.0.0
103
- */
104
- public function textdomain() {
105
-
106
- $plugin_dir = dirname( plugin_basename( __FILE__ ) ) ;
107
- load_plugin_textdomain( 'loginpress', false, $plugin_dir . '/languages/');
108
- }
109
-
110
- /**
111
- * Define constant if not already set
112
- * @param string $name
113
- * @param string|bool $value
114
- */
115
- private function define( $name, $value ) {
116
- if ( ! defined( $name ) ) {
117
- define( $name, $value );
118
- }
119
- }
120
-
121
- /**
122
- * Include required ajax files.
123
- */
124
- public function ajax_includes() {
125
- // Ajax functions for admin and the front-end
126
- }
127
- /**
128
- * Init WPBrigade when WordPress Initialises.
129
- */
130
- public function init() {
131
- // Before init action
132
- }
133
- /**
134
- * Add new page in Apperance to customize Login Page
135
- */
136
- public function register_options_page() {
137
- add_theme_page( __( 'LoginPress', 'loginpress' ),
138
- __( 'LoginPress', 'loginpress' ),
139
- 'manage_options',
140
- "abw",
141
- array( $this , '__return_null' ) );
142
- }
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  endif;
145
 
146
  /**
147
- * Returns the main instance of WP to prevent the need to use globals.
148
- *
149
- * @since 1.0.0
150
- * @return LoginPress
151
- */
152
  function loginPress_loader() {
153
- return LoginPress::instance();
154
  }
155
 
156
  // Call the function
157
  loginPress_loader();
158
 
159
  /**
160
- * Create the Object of Custom Login Entites.
161
- *
162
- * @since 1.0.0
163
- */
164
  new LoginPress_Entities();
165
  ?>
1
  <?php
2
  /**
3
+ * Plugin Name: LoginPress - Customizing the WordPress Login
4
+ * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/loginpress/
5
+ * Description: LoginPress is the best Login Page Customizer in WordPress which allows you to completely change the layout of login, register and forgot password forms.
6
+ * Version: 1.0.2
7
+ * Author: WPBrigade
8
+ * Author URI: http://www.WPBrigade.com/
9
+ * Requires at least: 4.0
10
+ * Tested up to: 4.7.0
11
+ * Text Domain: loginpress
12
+ * Domain Path: /languages
13
+ *
14
+ * @package loginpress
15
+ * @category Core
16
+ * @author WPBrigade
17
+ */
18
  if ( ! class_exists( 'LoginPress' ) ) :
19
 
20
+ final class LoginPress {
21
+
22
+ /**
23
+ * @var string
24
+ */
25
+ public $version = '1.0.2';
26
+
27
+ /**
28
+ * @var The single instance of the class
29
+ * @since 1.0.0
30
+ */
31
+ protected static $_instance = null;
32
+
33
+ /**
34
+ * @var WP_Session session
35
+ */
36
+ public $session = null;
37
+
38
+ /**
39
+ * @var WP_Query $query
40
+ */
41
+ public $query = null;
42
+
43
+ /**s
44
+ * @var WP_Countries $countries
45
+ */
46
+ public $countries = null;
47
+
48
+ /* * * * * * * * * *
49
+ * Class constructor
50
+ * * * * * * * * * */
51
+ public function __construct() {
52
+
53
+ $this->define_constants();
54
+ $this->includes();
55
+ $this->_hooks();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
57
+
58
+ /**
59
+ * Define LoginPress Constants
60
+ */
61
+ private function define_constants() {
62
+
63
+ $this->define( 'LOGINPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
64
+ $this->define( 'LOGINPRESS_VERSION', $this->version );
65
+ }
66
+
67
+ /**
68
+ * Include required core files used in admin and on the frontend.
69
+ */
70
+ public function includes() {
71
+ include_once( 'custom.php' );
72
+ }
73
+
74
+ /**
75
+ * Hook into actions and filters
76
+ * @since 1.0.0
77
+ */
78
+ private function _hooks() {
79
+
80
+ add_action( 'admin_menu', array( $this, 'register_options_page' ) );
81
+ add_action( 'plugins_loaded', array( $this, 'textdomain' ) );
82
+ add_filter( 'plugin_row_meta', array( $this, '_row_meta'), 10, 2 );
83
+ }
84
+
85
+ /**
86
+ * Main Instance
87
+ *
88
+ * @since 1.0.0
89
+ * @static
90
+ * @see loginPress_loader()
91
+ * @return Main instance
92
+ */
93
+ public static function instance() {
94
+ if ( is_null( self::$_instance ) ) {
95
+ self::$_instance = new self();
96
+ }
97
+ return self::$_instance;
98
+ }
99
+
100
+
101
+ /**
102
+ * Load Languages
103
+ * @since 1.0.0
104
+ */
105
+ public function textdomain() {
106
+
107
+ $plugin_dir = dirname( plugin_basename( __FILE__ ) ) ;
108
+ load_plugin_textdomain( 'loginpress', false, $plugin_dir . '/languages/');
109
+ }
110
+
111
+ /**
112
+ * Define constant if not already set
113
+ * @param string $name
114
+ * @param string|bool $value
115
+ */
116
+ private function define( $name, $value ) {
117
+ if ( ! defined( $name ) ) {
118
+ define( $name, $value );
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Include required ajax files.
124
+ */
125
+ public function ajax_includes() {
126
+ // Ajax functions for admin and the front-end
127
+ }
128
+ /**
129
+ * Init WPBrigade when WordPress Initialises.
130
+ */
131
+ public function init() {
132
+ // Before init action
133
+ }
134
+ /**
135
+ * Add new page in Apperance to customize Login Page
136
+ */
137
+ public function register_options_page() {
138
+ add_theme_page( __( 'LoginPress', 'loginpress' ),
139
+ __( 'LoginPress', 'loginpress' ),
140
+ 'manage_options',
141
+ "abw",
142
+ array( $this , '__return_null' ) );
143
+ }
144
+ public function _row_meta( $links, $file ) {
145
+
146
+ if ( strpos( $file, 'loginpress.php' ) !== false ) {
147
+
148
+ // Set link for Reviews.
149
+ $new_links = array('<a href="https://wordpress.org/support/view/plugin-reviews/loginpress" target="_blank"><span class="dashicons dashicons-thumbs-up"></span> ' . __( 'Vote!', 'loginpress' ) . '</a>',
150
+ );
151
+
152
+ $links = array_merge( $links, $new_links );
153
+ }
154
+
155
+ return $links;
156
+ }
157
+ }
158
  endif;
159
 
160
  /**
161
+ * Returns the main instance of WP to prevent the need to use globals.
162
+ *
163
+ * @since 1.0.0
164
+ * @return LoginPress
165
+ */
166
  function loginPress_loader() {
167
+ return LoginPress::instance();
168
  }
169
 
170
  // Call the function
171
  loginPress_loader();
172
 
173
  /**
174
+ * Create the Object of Custom Login Entites.
175
+ *
176
+ * @since 1.0.0
177
+ */
178
  new LoginPress_Entities();
179
  ?>
readme.txt CHANGED
@@ -1,43 +1,105 @@
1
- === LoginPress - Customizing the WordPress Login ===
2
- Version: 1.0.1
3
  Requires at least: 4.0
4
- Tested up to: 4.6
5
  Contributors: WPBrigade, hiddenpearls, abdulwahab610
6
  Author URI: https://wpbrigade.com
7
  Tags: login, customizer, logo, login logo, login customizer, login page,admin, branding, customization, custom login, forgot password, welcome message, error, login error, custom login pro, plugin, custom login style, widget
8
- Stable tag: 1.0.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
- LoginPress -> Allows you to completely change the layout of login, register and forgot password forms.
13
 
14
  == Description ==
15
 
16
- LoginPress hold a lot of customization fields for the login page of WordPress. You can modify the login error messages, forgot error messages, registration error messages and many more.
17
- LoginPress would give you and your users a feeling that it is a custom login page and a part of the site layout.
18
 
19
- **Getting Started video for login**
20
 
21
- https://www.youtube.com/watch?v=GMAwsHomJlE
22
 
 
23
 
24
- **Features: **
25
-
26
- *Logo:* Can change the login logo {image, width, height, padding, URL and Title}.
27
 
28
- *Background:* You can customize background Image or Color. Set its position, Size and repeatable property.
29
 
30
- *Login Form:* Even you can customize the login form {image or color, width, height, padding and border}. More over customize Input Text Field {width, margin, text color, label color and background color}.
31
 
32
- *Forget Form:* Beauty of the plugin here you can change the background or color of the forget form.
33
 
34
- *Button:* You can set the color of your button WYSIWYG.
 
 
 
 
35
 
36
  Error Messages: Main Feature of the plugin. You can change the error log messages as you want to show users form LoginPress → Error Messages.
37
 
38
- *Welcome Messages:* Same as error log messages you can customize the welcome messages from LoginPress → Welcome Messages.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- *Form Footer:* After the login Button, here is form footer. You can customize the footer {text, display, text decoration, text color, text hover color and text size}. In this section you can also customize the page footer text.
 
 
 
 
 
 
 
 
 
 
41
 
42
  == Installation ==
43
 
@@ -46,21 +108,44 @@ Error Messages: Main Feature of the plugin. You can change the error log message
46
 
47
  == Frequently Asked Questions ==
48
 
49
- = How to use customizer? =
50
 
51
  In your WordPress Dashboard, navigate to Appearance > LoginPress to get started.
52
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  = How to donate or contribute? =
54
 
55
  Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/wordpress/plugins/loginpress/">this link</a> for more info.
56
 
57
  == Screenshots ==
58
 
59
- 1. Custom Login page Example with Background Image
60
- 2. Example with background color
 
 
 
 
 
 
 
 
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.0.1 - 2016-11-08 =
65
  * Changing menu name to LoginPress in WordPress Customizer
66
 
@@ -68,4 +153,6 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
68
  * Initial Release.
69
 
70
  == Upgrade Notice ==
71
- Important update - Changing menu name to LoginPress in WordPress Customizer
 
 
1
+ === login ===
2
+ Version: 1.0.2
3
  Requires at least: 4.0
4
+ Tested up to: 4.7.0
5
  Contributors: WPBrigade, hiddenpearls, abdulwahab610
6
  Author URI: https://wpbrigade.com
7
  Tags: login, customizer, logo, login logo, login customizer, login page,admin, branding, customization, custom login, forgot password, welcome message, error, login error, custom login pro, plugin, custom login style, widget
8
+ Stable tag: 1.0.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ LoginPress allows you to easily customize the layout of login, admin login, client login, register and forgot password forms/pages.
13
 
14
  == Description ==
15
 
16
+ [LoginPress](http://www.WPBrigade.com/wordpress/plugins/loginpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion) holds a lot of customization fields to change the layout of the login page of WordPress. You can modify the look and feel of login page completely even the login error messages, forgot error messages, registration error messages and many more.
17
+ LoginPress would give you and your users a feeling that it is a custom login page and a part of the site layout. You must checkout the Demo video of how you can customize WordPress login page.
18
 
19
+ **Getting Started video for customizing login page using LoginPress**
20
 
21
+ `[youtube https://www.youtube.com/watch?v=GMAwsHomJlE]`
22
 
23
+ LoginPress is built using The Customizer API which is getting popular for live-previewing any changes to the layouts of WordPress. So, with LoginPress you can preview your login page changes instantly. This login customizer plugin is easy enough & required no coding skills. Just have options for each element on the login form and make a new customized login page within seconds.
24
 
 
 
 
25
 
26
+ **Features:**
27
 
28
+ * Logo: Can change the login logo {image, width, height, padding, URL and Title}.
29
 
30
+ * Background: You can customize background Image or Color. Set its position, Size and repeatable property.
31
 
32
+ * Login Form: Even you can customize the login form {image or color, width, height, padding and border}. More over customize Input Text Field {width, margin, text color, label color and background color}.
33
+
34
+ * Forget Form: Beauty of the plugin here you can change the background or color of the forget form.
35
+
36
+ * Button: You can set the color of your button WYSIWYG.
37
 
38
  Error Messages: Main Feature of the plugin. You can change the error log messages as you want to show users form LoginPress → Error Messages.
39
 
40
+ * Welcome Messages: Same as error log messages you can customize the welcome messages from LoginPress → Welcome Messages.
41
+
42
+ * Form Footer: After the login Button, here is form footer. You can customize the footer {text, display, text decoration, text color, text hover color and text size}. In this section you can also customize the page footer text.
43
+
44
+
45
+ > <strong>Making WordPress Login page mobile friendly after customization</strong><br>
46
+ > This plugin is also responsive. It means that when you customize login page, It will look good on mobile i.e It is Responsive.
47
+
48
+
49
+ **LoginPress Features in Detail:**
50
+
51
+ * Customize login error messages. You can change every error message wether it is on login form, forgot password form or register form.
52
+ * Customize login logo image.
53
+ * Customize login logo image width.
54
+ * Customize login logo image height.
55
+ * Customize login logo image hover title.
56
+ * Customize login logo image hover link.
57
+ * Customize login logo padding bottom.
58
+ * Customize login page background image.
59
+ * Customize login page background color.
60
+ * Customize login page background image size.
61
+ * Customize login page without background image. You can keep it simple with different login form style.
62
+ * Customize login form width.
63
+ * Customize login form height.
64
+ * Customize login form border style.
65
+ * Customize login form input styling.
66
+ * Customize login form label styling.
67
+ * Customize login form field text color.
68
+ * Customize login form background color.
69
+ * Customize login page "lost your password?" text.
70
+ * Customize login forgot password form background color and image.
71
+ * Customize login form button styling.
72
+ * Customize login form notice messages.
73
+ * Add copyright notice message at the bottom of login page.
74
+ * Customize "Back to" text at login page. You can hide or show or change the color or even the text size as well.
75
+ * Customize login page footer. We call login page footer area under the login form fields.
76
+ * LoginPress has a Custom CSS area which can Customize login page in more advanced way. Recommended for advanced users.
77
+ * Customize your login page in more advanced way using our Custom JS area. Add your JS there and make your login page more advanced.
78
+ * Customize login page with unlimited features available in loginpress.
79
+
80
+ After going through this extensive list of feaures you can imagine Why LoginPress is the best login page customizer in the WordPress market.
81
+
82
+ > <strong>Beautify and Innovate your WordPress login page without any coding knowledge!</strong>
83
+
84
+ = What's Next =
85
+
86
+
87
+ If you like this plugin, then consider checking out our other projects:
88
+
89
+ * <a href="https://analytify.io/" rel="friend" title="Google Analytics by Analytify">Google Analytics by Analytify</a> - Google Analytics by Analytify
90
+ * <a href="http://wpbrigade.com/" rel="friend" title="Related Posts">Related Posts</a> - Best Related Posts Plugin
91
 
92
+ == Notes ==
93
+
94
+ LoginPress is absolutely, positively the most <a href="http://www.WPBrigade.com/wordpress/plugins/loginpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="Best Custom login form plugin">beginner friendly WordPress custom login form plugin</a> on the market. It is both easy and powerful.
95
+
96
+ Also, I'm the founder of <a href="http://www.wpbrigade.com/" rel="friend">WPBrigade</a>, We do custom WordPress themes for clients and can transform any website in WordPress. It was a huge priority for me to make a WordPress custom login form plugin that beginners can use without any training.
97
+
98
+ I feel that we have done that here. I hope you enjoy using LoginPress.
99
+
100
+ Thank you
101
+
102
+ Muhammad Adnan
103
 
104
  == Installation ==
105
 
108
 
109
  == Frequently Asked Questions ==
110
 
111
+ = How to get started with LoginPress? =
112
 
113
  In your WordPress Dashboard, navigate to Appearance > LoginPress to get started.
114
 
115
+ = Who should use LoginPress? =
116
+
117
+ Every WordPress user should use LoginPress. It is easy to use and can tranform your boring wp-login.php login page into a beautiful customized login form page.
118
+
119
+ = Do I need to have coding skills to use LoginPress? =
120
+
121
+ Absolutely not. You can create and manage custom login page without any coding knowledge. LoginPress is the most beginner friendly custom login form solution in the market.
122
+
123
+ = Is LoginPress translation ready? =
124
+
125
+ Yes, LoginPress has full translation and localization support via the loginpress textdomain. All .mo and .po translation files should go into the languages folder in the base of the plugin.
126
+
127
  = How to donate or contribute? =
128
 
129
  Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/wordpress/plugins/loginpress/">this link</a> for more info.
130
 
131
  == Screenshots ==
132
 
133
+ 1. Custom Login page Example #1 with Background Image
134
+ 2. Custom Login page Example #2 with background color only
135
+ 3. Custom Login page Example #3
136
+ 4. Custom Login page Example #4
137
+ 5. Custom Login page Example #5
138
+ 6. Custom Login page Example #6
139
+ 7. Custom Login page Example #7
140
+ 8. Custom Login page Example #8
141
+ 9. Custom Login page Example #9
142
+ 10. Custom Login page Example #10
143
 
144
  == Changelog ==
145
 
146
+ = 1.0.2 - 2016-12-24 =
147
+ * code cleanup and readme update.
148
+
149
  = 1.0.1 - 2016-11-08 =
150
  * Changing menu name to LoginPress in WordPress Customizer
151
 
153
  * Initial Release.
154
 
155
  == Upgrade Notice ==
156
+
157
+ = 1.0.2 =
158
+ * Important update - Code cleanup.