Skip to content

Commit d4078a1

Browse files
authored
Merge pull request #678 from analogwp/release-v2.3.0
Release v2.3.0
2 parents 33d2b01 + 148cd6f commit d4078a1

10 files changed

+764
-275
lines changed

analogwp-templates.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
* Plugin Name: Style Kits for Elementor
1111
* Plugin URI: https://analogwp.com/
1212
* Description: Style Kits extends the Elementor theme styles editor with more global styling options. Boost your design workflow in Elementor with intuitive global controls and theme style presets.
13-
* Version: 2.2.3
13+
* Version: 2.3.0
1414
* Author: AnalogWP
1515
* Author URI: https://analogwp.com/
1616
* License: GPL2
1717
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1818
* Text Domain: ang
1919
* Requires at least: 6.0
20-
* Requires PHP: 8.0
20+
* Requires PHP: 7.4
2121
*
2222
* Elementor tested up to: 3.25.10
2323
* Elementor Pro tested up to: 3.25.4
@@ -26,9 +26,9 @@
2626
defined( 'ABSPATH' ) || exit;
2727

2828
define( 'ANG_ELEMENTOR_MINIMUM', '3.20.0' );
29-
define( 'ANG_PHP_MINIMUM', '8.0' );
29+
define( 'ANG_PHP_MINIMUM', '7.4' );
3030
define( 'ANG_WP_MINIMUM', '6.0' );
31-
define( 'ANG_VERSION', '2.2.2' );
31+
define( 'ANG_VERSION', '2.3.0' );
3232
define( 'ANG_PLUGIN_FILE', __FILE__ );
3333
define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
3434
define( 'ANG_PLUGIN_DIR', plugin_dir_path( ANG_PLUGIN_FILE ) );

assets/css/sk-components.css

-17
Original file line numberDiff line numberDiff line change
@@ -1156,23 +1156,6 @@
11561156
/**
11571157
* Legacy features
11581158
*/
1159-
1160-
.elementor-control.elementor-control-ang_buttons {
1161-
margin-top: 40px;
1162-
}
1163-
1164-
.elementor-control.elementor-control-ang_buttons::before {
1165-
content: " ";
1166-
width: 100%;
1167-
height: 1px;
1168-
display: block;
1169-
background: #000;
1170-
opacity: 0.1;
1171-
top: -20px;
1172-
position: absolute;
1173-
}
1174-
1175-
.elementor-control.elementor-control-ang_buttons .elementor-control-content::after,
11761159
.elementor-control.elementor-control-ang_section_padding .elementor-control-content::after,
11771160
.elementor-control.elementor-control-ang_column_gaps .elementor-control-content::after,
11781161
.elementor-control.elementor-control-ang_colors .elementor-control-content::after {

assets/js/admin-settings.js

-36
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,6 @@
44
const { __ } = wp.i18n;
55
const { addQueryArgs } = wp.url;
66

7-
// Process Newsletter.
8-
function processNewsletter( e ) {
9-
if ( e.preventDefault ) {
10-
e.preventDefault();
11-
}
12-
const elSubmitBtn = $( '#ang-newsletter-submit' );
13-
let status = __( 'Subscribing', 'ang' );
14-
const angEmail = $( '#ang-newsletter-email' ).val();
15-
elSubmitBtn.text( status );
16-
17-
$.ajax( {
18-
url: 'https://analogwp.com/?ang-api=asdf&request=subscribe_newsletter',
19-
cache: ! 1,
20-
type: 'POST',
21-
dataType: 'JSON',
22-
data: {
23-
email: angEmail,
24-
},
25-
error: function() {
26-
status = __( 'Failed', 'ang' );
27-
elSubmitBtn.text( status );
28-
setTimeout( function() {
29-
elSubmitBtn.text( __( 'Subscribe up to newsletter', 'ang' ) );
30-
}, 2000 );
31-
},
32-
success: function() {
33-
status = __( 'Subscribed', 'ang' );
34-
elSubmitBtn.text( status );
35-
elSubmitBtn.attr( 'disabled', 'disabled' );
36-
},
37-
} );
38-
39-
return false;
40-
}
41-
$( '#ang-newsletter' ).submit( processNewsletter );
42-
437
// Process Plugin Rollback.
448
function processPluginRollback( e ) {
459
if ( e.preventDefault ) {

inc/class-elementor.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ public function enqueue_editor_scripts() {
147147
if ( $is_legacy_hidden ) {
148148
wp_add_inline_style(
149149
'analogwp-components-css',
150-
'.elementor-control.elementor-control-ang_buttons,
151-
.elementor-control.elementor-control-ang_section_padding,
150+
'.elementor-control.elementor-control-ang_section_padding,
152151
.elementor-control.elementor-control-ang_column_gaps,
153152
.elementor-control.elementor-control-ang_colors {
154153
display: none !important;

inc/elementor/class-typography.php

+26-7
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public function __construct() {
7474

7575
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_typography_sizes' ), 30, 2 );
7676
add_action( 'elementor/element/after_section_end', array( $this, 'register_styling_settings' ), 20, 2 );
77+
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_buttons' ), 40, 2 );
7778
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_tools' ), 270, 2 );
7879

79-
// Legacy features ( Button Sizes, Outer Section Padding and Column Gaps ) - deprecated to be removed.
80-
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_buttons' ), 275, 2 );
80+
// Legacy features ( Outer Section Padding and Column Gaps ) - deprecated to be removed.
8181
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_outer_section_padding' ), 280, 2 );
8282
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_columns_gap' ), 290, 2 );
8383

@@ -104,9 +104,7 @@ public function __construct() {
104104

105105
add_action( 'elementor/element/heading/section_title/after_section_end', array( $this, 'add_typo_helper_link' ), 999, 2 );
106106

107-
if ( Utils::is_elementor_pre( '3.20.0' ) ) {
108-
add_action( 'elementor/element/button/section_button/after_section_end', array( $this, 'add_btn_sizes_helper_link' ), 999, 2 );
109-
}
107+
add_action( 'elementor/element/button/section_button/after_section_end', array( $this, 'add_btn_sizes_helper_link' ), 999, 2 );
110108

111109
add_action( 'elementor/element/kit/section_buttons/after_section_end', array( $this, 'register_shadows' ), 47, 2 );
112110

@@ -822,8 +820,7 @@ public function register_buttons( Controls_Stack $element, $section_id ) {
822820
'ang_buttons_description',
823821
array(
824822
'raw' => sprintf(
825-
'%1$s<br/>%2$s <a href="%3$s" target="_blank">%4$s</a>',
826-
__( 'Heads-up! This is a legacy feature, no longer supported in Elementor.', 'ang' ),
823+
'%1$s <a href="%2$s" target="_blank">%3$s</a>',
827824
__( 'Define the default styles for every button size.', 'ang' ),
828825
'https://analogwp.com/docs/button-sizes/',
829826
__( 'Learn more.', 'ang' )
@@ -2413,6 +2410,17 @@ public function tweak_container_borders( Element_Base $element ) {
24132410
* @param Element_Base $element Element_Base Class.
24142411
*/
24152412
public function add_typo_helper_link( Element_Base $element ) {
2413+
// Check and reset the condition to none at size control.
2414+
$size_control = $element->get_controls( 'size' );
2415+
if ( $size_control ) {
2416+
$element->update_control(
2417+
'size',
2418+
[
2419+
'condition' => [],
2420+
]
2421+
);
2422+
};
2423+
24162424
$element->start_injection(
24172425
array(
24182426
'of' => 'size',
@@ -2442,6 +2450,17 @@ public function add_typo_helper_link( Element_Base $element ) {
24422450
* @param Element_Base $element Element_Base Class.
24432451
*/
24442452
public function add_btn_sizes_helper_link( Element_Base $element ) {
2453+
// Check and reset the condition to none at size control.
2454+
$size_control = $element->get_controls( 'size' );
2455+
if ( $size_control ) {
2456+
$element->update_control(
2457+
'size',
2458+
[
2459+
'condition' => [],
2460+
]
2461+
);
2462+
};
2463+
24452464
$element->start_injection(
24462465
array(
24472466
'of' => 'size',

inc/settings/views/html-admin-settings.php

-9
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@
9191
<a href="<?php echo esc_url( 'https://analogwp.com/docs/' ); ?>" target="_blank"><?php esc_html_e( 'Visit the online docs', 'ang' ); ?></a>
9292
</p>
9393
</div>
94-
<div class="newsletter-list">
95-
<h3><?php esc_html_e( 'Sign up for email updates', 'ang' ); ?></h3>
96-
<p><?php esc_html_e( 'Stay in the loop with Style Kits development by signing up to our newsletter.', 'ang' ); ?></p>
97-
<form id="ang-newsletter" action="" class="form-newsletter">
98-
<input id="ang-newsletter-email" type="email" placeholder="Enter your email" value="<?php echo esc_attr( $current_user->user_email ); ?>"/>
99-
<button id="ang-newsletter-submit" class="ang-button button-primary" type="submit"><?php esc_html_e( 'Sign me up', 'ang' ); ?></button>
100-
</form>
101-
<p><?php esc_html_e( 'By signing up you agree to our', 'ang' ); ?> <a href="<?php echo esc_url( 'https://analogwp.com/privacy-policy/' ); ?>" target="_blank"><?php esc_html_e( 'privacy and terms', 'ang' ); ?></a></p>
102-
</div>
10394
<div class="social">
10495
<a href="https://facebook.com/analogwp" target="_blank"><span class="dashicons dashicons-facebook-alt"></span></a>
10596
<a href="https://twitter.com/analogwp" target="_blank"><span class="dashicons dashicons-twitter"></span></a>

languages/ang-analogwp-app.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)