Skip to content

Commit

Permalink
https://github.com/ColorlibHQ/colorlib-login-customizer/issues/115
Browse files Browse the repository at this point in the history
Version bump
Update changelog
  • Loading branch information
andyluak committed May 10, 2021
1 parent 8015764 commit dcd9a19
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion colorlib-login-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @return object Colorlib_Login_Customizer
*/
function colorlib_login_customizer() {
$instance = Colorlib_Login_Customizer::instance( __FILE__, '1.2.99' );
$instance = Colorlib_Login_Customizer::instance( __FILE__, '1.3.00' );

if (is_null($instance->settings)) {
$instance->settings = Colorlib_Login_Customizer_Settings::instance($instance);
Expand Down
1 change: 1 addition & 0 deletions includes/class-colorlib-login-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public function get_defaults(){
* Background section
*/
'custom-background' => '',
'custom-background-link' => '',
'custom-background-form' => '',
'custom-background-color' => '',
'custom-background-color-form' => '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,19 @@ public function generate_css() {
echo '<style type="text/css" id="clc-columns-style">' . $columns_css . '</style>';
echo '<style type="text/css" id="clc-logo-style">' . $logo_css . '</style>';
echo '<style type="text/css" id="clc-custom-css">' . $custom_css . '</style>';
echo '<style type="text/css" id="clc-custom-background-link"> body .ml-container .ml-extra-div .clc-custom-background-link {display:block; width:100%; height:100%;} </style>';
}

public function add_extra_div() {
echo '<div class="ml-container"><div class="ml-extra-div"></div><div class="ml-form-container">';

$options = get_option( 'clc-options');

if( isset( $options['custom-background'] ) && '' != $options['custom-background'] && isset( $options['custom-background-link'] ) && '' != $options['custom-background-link'] ) {
echo '<div class="ml-container"><div class="ml-extra-div"><a class="clc-custom-background-link" href="' . $options['custom-background-link'] . '"></a></div><div class="ml-form-container">';
} else {

echo '<div class="ml-container"><div class="ml-extra-div"></a></div><div class="ml-form-container">';
}
}

public function close_extra_div() {
Expand Down
7 changes: 7 additions & 0 deletions includes/lib/class-colorlib-login-customizer-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ private function settings_fields() {
'type' => 'image',
'default' => '',
),
array(
'id' => 'custom-background-link',
'label' => esc_html__( 'Background Image Link', 'colorlib-login-customizer' ),
'description' => esc_html__( 'This will add a link on the background image.', 'colorlib-login-customizer' ),
'type' => 'text',
'default' => '',
),
array(
'id' => 'custom-background-color-form',
'label' => esc_html__( 'Form Column background color', 'colorlib-login-customizer' ),
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ If you enjoy using Colorlib Login Customizer for WordPress please leave a [posit

== Changelog ==

= 1.3.00 - 10.05.2021 =
Added : Background image link ( https://github.com/ColorlibHQ/colorlib-login-customizer/issues/115 )

= 1.2.99 - 08.04.2021=
Fixed: An issue where the link color hover pallete would not display properly (https://github.com/ColorlibHQ/colorlib-login-customizer/issues/139)
Fixed: An issue where the logo would be outside of the login box on a selected template ( https://github.com/ColorlibHQ/colorlib-login-customizer/issues/134)
Expand Down

0 comments on commit dcd9a19

Please sign in to comment.