Skip to content

Commit

Permalink
Merge pull request #665 from analogwp/release-v2.0.8
Browse files Browse the repository at this point in the history
Release v2.0.8
  • Loading branch information
lushkant authored Dec 8, 2023
2 parents 5aa7f0c + 9d08ca4 commit c78a56e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 20 deletions.
18 changes: 9 additions & 9 deletions analogwp-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
* Plugin Name: Style Kits for Elementor
* Plugin URI: https://analogwp.com/
* 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.
* Version: 2.0.7
* Version: 2.0.8
* Author: AnalogWP
* Author URI: https://analogwp.com/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: ang
* Elementor tested up to: 3.18.0
* Elementor Pro tested up to: 3.16.1
* Elementor tested up to: 3.18.2
* Elementor Pro tested up to: 3.18.1
*/

defined( 'ABSPATH' ) || exit;

define( 'ANG_ELEMENTOR_MINIMUM', '3.5.0' );
define( 'ANG_ELEMENTOR_MINIMUM', '3.10.0' );
define( 'ANG_PHP_MINIMUM', '7.0' );
define( 'ANG_WP_MINIMUM', '5.9' );
define( 'ANG_VERSION', '2.0.7' );
define( 'ANG_WP_MINIMUM', '6.0' );
define( 'ANG_VERSION', '2.0.8' );
define( 'ANG_PLUGIN_FILE', __FILE__ );
define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
define( 'ANG_PLUGIN_DIR', plugin_dir_path( ANG_PLUGIN_FILE ) );
Expand Down Expand Up @@ -193,10 +193,10 @@ function analog_fail_load() {
add_action(
'plugins_loaded',
static function() {
if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) {
if ( version_compare( PHP_VERSION, ANG_PHP_MINIMUM, '<' ) ) {
wp_die(
/* translators: %s: version number */
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), '5.6.0' ) ),
esc_html( sprintf( __( 'Style Kit for Elementor requires PHP version %s', 'ang' ), ANG_PHP_MINIMUM ) ),
esc_html__( 'Error Activating', 'ang' )
);
}
Expand All @@ -220,7 +220,7 @@ static function() {
return;
}

if ( ! version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
if ( ! version_compare( get_bloginfo( 'version' ), ANG_WP_MINIMUM, '>=' ) ) {
add_action( 'admin_notices', 'analog_fail_wp_version' );
return;
}
Expand Down
22 changes: 17 additions & 5 deletions inc/elementor/class-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

namespace Analog\Elementor;

use Analog\Options;
use Analog\Plugin;
use Elementor\Core\Base\Module;
use Elementor\Controls_Manager;
use Elementor\Controls_Stack;
use Elementor\Core\Kits\Controls\Repeater as Global_Style_Repeater;
use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
use Elementor\Element_Base;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Box_Shadow;
Expand Down Expand Up @@ -154,6 +154,8 @@ public function get_name() {
/**
* Register Heading typography controls.
*
* @deprecated TODO: Remove in v2.0.9
*
* @param Controls_Stack $element Controls object.
* @param string $section_id Section ID.
*/
Expand Down Expand Up @@ -199,7 +201,9 @@ public function register_heading_typography( Controls_Stack $element, $section_i
/* translators: %s: Heading 1-6 type */
'label' => sprintf( __( 'Heading %s', 'ang' ), $i ),
'selector' => "{$selector} h{$i}, {$selector} .elementor-widget-heading h{$i}.elementor-heading-title",
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'global' => [
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
],
)
);
}
Expand All @@ -210,6 +214,8 @@ public function register_heading_typography( Controls_Stack $element, $section_i
/**
* Register Body and Paragraph typography controls.
*
* @deprecated TODO: Remove in v2.0.9
*
* @param Controls_Stack $element Controls object.
* @param string $section_id Section ID.
*/
Expand Down Expand Up @@ -245,7 +251,9 @@ public function register_body_and_paragraph_typography( Controls_Stack $element,
'name' => 'ang_body',
'label' => __( 'Body Typography', 'ang' ),
'selector' => '{{WRAPPER}}',
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_3,
'global' => [
'default' => Global_Typography::TYPOGRAPHY_TEXT,
],
)
);

Expand Down Expand Up @@ -316,7 +324,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
array(
'name' => 'ang_size_' . $setting[0],
'label' => __( 'Heading', 'ang' ) . ' ' . $setting[1],
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'global' => [
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
],
'selector' => $selectors,
'exclude' => $size_controls,
)
Expand Down Expand Up @@ -355,7 +365,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
array(
'name' => 'ang_text_size_' . $setting[0],
'label' => __( 'Text', 'ang' ) . ' ' . $setting[1],
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'global' => [
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
],
'selector' => "{{WRAPPER}} .elementor-widget-heading .elementor-heading-title.elementor-size-{$setting[0]}:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)",
'exclude' => $size_controls,
)
Expand Down
4 changes: 2 additions & 2 deletions languages/ang.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL2.
msgid ""
msgstr ""
"Project-Id-Version: Style Kits for Elementor 2.0.6\n"
"Project-Id-Version: Style Kits for Elementor 2.0.7\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/analogwp-templates\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-09-15T15:27:09+00:00\n"
"POT-Creation-Date: 2023-12-04T17:18:53+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: ang\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analogwp-templates",
"version": "2.0.7",
"version": "2.0.8",
"description": "Handfully crafted Elementor templates packs.",
"main": "/client/index.js",
"private": true,
Expand Down
13 changes: 10 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Style Kits - Advanced Theme Styles for Elementor ===
Contributors: analogwp, mauryaratan
Requires at least: 5.9
Requires at least: 6.0
Requires PHP: 7.0
Tested up to: 6.4.1
Stable tag: 2.0.7
Tested up to: 6.4.2
Stable tag: 2.0.8
Tags: elementor, patterns, global styles, elementor addons, design system
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -102,6 +102,13 @@ We offer high-level support for all Style Kits users. Reach out to https://analo

== Changelog ==

= 2.0.8 - December 08, 2023 =
* New: Bumped minimum WordPress and Elementor required versions to v6.0 and v3.10.0 respectively
* Fix: Fix typography controls deprecated schemes
* Fix: Minimum system requirements checkers
* Improvements: Compatibility with Elementor v3.18.2 and Elementor Pro v3.18.1
* Improvements: Other minor code changes

= 2.0.7 - December 04, 2023 =
* Fix: Cannot add a control outside of a section at Typography Section in Kit Settings
* Improvements: Compatibility with Elementor v3.18.0 and Elementor Pro v3.18.0
Expand Down

0 comments on commit c78a56e

Please sign in to comment.