Skip to content

Commit c78a56e

Browse files
authored
Merge pull request #665 from analogwp/release-v2.0.8
Release v2.0.8
2 parents 5aa7f0c + 9d08ca4 commit c78a56e

File tree

5 files changed

+39
-20
lines changed

5 files changed

+39
-20
lines changed

analogwp-templates.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
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.0.7
13+
* Version: 2.0.8
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
19-
* Elementor tested up to: 3.18.0
20-
* Elementor Pro tested up to: 3.16.1
19+
* Elementor tested up to: 3.18.2
20+
* Elementor Pro tested up to: 3.18.1
2121
*/
2222

2323
defined( 'ABSPATH' ) || exit;
2424

25-
define( 'ANG_ELEMENTOR_MINIMUM', '3.5.0' );
25+
define( 'ANG_ELEMENTOR_MINIMUM', '3.10.0' );
2626
define( 'ANG_PHP_MINIMUM', '7.0' );
27-
define( 'ANG_WP_MINIMUM', '5.9' );
28-
define( 'ANG_VERSION', '2.0.7' );
27+
define( 'ANG_WP_MINIMUM', '6.0' );
28+
define( 'ANG_VERSION', '2.0.8' );
2929
define( 'ANG_PLUGIN_FILE', __FILE__ );
3030
define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
3131
define( 'ANG_PLUGIN_DIR', plugin_dir_path( ANG_PLUGIN_FILE ) );
@@ -193,10 +193,10 @@ function analog_fail_load() {
193193
add_action(
194194
'plugins_loaded',
195195
static function() {
196-
if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) {
196+
if ( version_compare( PHP_VERSION, ANG_PHP_MINIMUM, '<' ) ) {
197197
wp_die(
198198
/* translators: %s: version number */
199-
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), '5.6.0' ) ),
199+
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), ANG_PHP_MINIMUM ) ),
200200
esc_html__( 'Error Activating', 'ang' )
201201
);
202202
}
@@ -220,7 +220,7 @@ static function() {
220220
return;
221221
}
222222

223-
if ( ! version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
223+
if ( ! version_compare( get_bloginfo( 'version' ), ANG_WP_MINIMUM, '>=' ) ) {
224224
add_action( 'admin_notices', 'analog_fail_wp_version' );
225225
return;
226226
}

inc/elementor/class-typography.php

+17-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
namespace Analog\Elementor;
99

10-
use Analog\Options;
1110
use Analog\Plugin;
1211
use Elementor\Core\Base\Module;
1312
use Elementor\Controls_Manager;
1413
use Elementor\Controls_Stack;
1514
use Elementor\Core\Kits\Controls\Repeater as Global_Style_Repeater;
15+
use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
1616
use Elementor\Element_Base;
1717
use Elementor\Group_Control_Border;
1818
use Elementor\Group_Control_Box_Shadow;
@@ -154,6 +154,8 @@ public function get_name() {
154154
/**
155155
* Register Heading typography controls.
156156
*
157+
* @deprecated TODO: Remove in v2.0.9
158+
*
157159
* @param Controls_Stack $element Controls object.
158160
* @param string $section_id Section ID.
159161
*/
@@ -199,7 +201,9 @@ public function register_heading_typography( Controls_Stack $element, $section_i
199201
/* translators: %s: Heading 1-6 type */
200202
'label' => sprintf( __( 'Heading %s', 'ang' ), $i ),
201203
'selector' => "{$selector} h{$i}, {$selector} .elementor-widget-heading h{$i}.elementor-heading-title",
202-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
204+
'global' => [
205+
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
206+
],
203207
)
204208
);
205209
}
@@ -210,6 +214,8 @@ public function register_heading_typography( Controls_Stack $element, $section_i
210214
/**
211215
* Register Body and Paragraph typography controls.
212216
*
217+
* @deprecated TODO: Remove in v2.0.9
218+
*
213219
* @param Controls_Stack $element Controls object.
214220
* @param string $section_id Section ID.
215221
*/
@@ -245,7 +251,9 @@ public function register_body_and_paragraph_typography( Controls_Stack $element,
245251
'name' => 'ang_body',
246252
'label' => __( 'Body Typography', 'ang' ),
247253
'selector' => '{{WRAPPER}}',
248-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_3,
254+
'global' => [
255+
'default' => Global_Typography::TYPOGRAPHY_TEXT,
256+
],
249257
)
250258
);
251259

@@ -316,7 +324,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
316324
array(
317325
'name' => 'ang_size_' . $setting[0],
318326
'label' => __( 'Heading', 'ang' ) . ' ' . $setting[1],
319-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
327+
'global' => [
328+
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
329+
],
320330
'selector' => $selectors,
321331
'exclude' => $size_controls,
322332
)
@@ -355,7 +365,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
355365
array(
356366
'name' => 'ang_text_size_' . $setting[0],
357367
'label' => __( 'Text', 'ang' ) . ' ' . $setting[1],
358-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
368+
'global' => [
369+
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
370+
],
359371
'selector' => "{{WRAPPER}} .elementor-widget-heading .elementor-heading-title.elementor-size-{$setting[0]}:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)",
360372
'exclude' => $size_controls,
361373
)

languages/ang.pot

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GPL2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Style Kits for Elementor 2.0.6\n"
5+
"Project-Id-Version: Style Kits for Elementor 2.0.7\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/analogwp-templates\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2023-09-15T15:27:09+00:00\n"
12+
"POT-Creation-Date: 2023-12-04T17:18:53+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.8.1\n"
1515
"X-Domain: ang\n"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "analogwp-templates",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "Handfully crafted Elementor templates packs.",
55
"main": "/client/index.js",
66
"private": true,

readme.txt

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== Style Kits - Advanced Theme Styles for Elementor ===
22
Contributors: analogwp, mauryaratan
3-
Requires at least: 5.9
3+
Requires at least: 6.0
44
Requires PHP: 7.0
5-
Tested up to: 6.4.1
6-
Stable tag: 2.0.7
5+
Tested up to: 6.4.2
6+
Stable tag: 2.0.8
77
Tags: elementor, patterns, global styles, elementor addons, design system
88
License: GPLv2
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -102,6 +102,13 @@ We offer high-level support for all Style Kits users. Reach out to https://analo
102102

103103
== Changelog ==
104104

105+
= 2.0.8 - December 08, 2023 =
106+
* New: Bumped minimum WordPress and Elementor required versions to v6.0 and v3.10.0 respectively
107+
* Fix: Fix typography controls deprecated schemes
108+
* Fix: Minimum system requirements checkers
109+
* Improvements: Compatibility with Elementor v3.18.2 and Elementor Pro v3.18.1
110+
* Improvements: Other minor code changes
111+
105112
= 2.0.7 - December 04, 2023 =
106113
* Fix: Cannot add a control outside of a section at Typography Section in Kit Settings
107114
* Improvements: Compatibility with Elementor v3.18.0 and Elementor Pro v3.18.0

0 commit comments

Comments
 (0)