Skip to content

Commit e6a499b

Browse files
authored
Merge pull request #672 from analogwp/release-v2.2.0
Release v2.2.0
2 parents e64113b + 3a26026 commit e6a499b

File tree

227 files changed

+91258
-9528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+91258
-9528
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/assets/js/app.js.map
33
/build
44
/assets/js/app.js
5+
/assets/js/app/
56
node_modules/
67
/assets/fonts/
78
/assets/js/blocksLibrary.js
@@ -23,3 +24,5 @@ tests/_support/_generated/*
2324
tests/cache/*
2425
tests/error.log
2526
.DS_Store
27+
28+
analogwp-templates.zip

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
21

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![WordPress plugin](https://img.shields.io/wordpress/plugin/dt/analogwp-templates.svg?style=flat)](https://wordpress.org/plugins/analogwp-templates/) [![Installs](https://img.shields.io/wordpress/plugin/installs/analogwp-templates.svg)](https://wordpress.org/plugins/analogwp-templates/) [![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://github.com/mauryaratan/analogwp-templates/blob/master/license.txt) ![build](https://img.shields.io/travis/mauryaratan/analogwp-templates)
1+
[![WordPress plugin](https://img.shields.io/wordpress/plugin/dt/analogwp-templates.svg?style=flat)](https://wordpress.org/plugins/analogwp-templates/) [![Installs](https://img.shields.io/wordpress/plugin/installs/analogwp-templates.svg)](https://wordpress.org/plugins/analogwp-templates/) [![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://github.com/analogwp/analogwp-templates/blob/master/license.txt) ![build](https://img.shields.io/travis/analogwp/analogwp-templates)
22

33
![](https://img.shields.io/wordpress/plugin/wp-version/analogwp-templates)
44
[![WordPress](https://img.shields.io/wordpress/v/analogwp-templates.svg?style=flat)]()
@@ -17,4 +17,4 @@ More information can be found at [analogwp.com](https://analogwp.com/).
1717
- `gulp build` for building distribution zip file.
1818

1919
### Bugs
20-
If you find a 🐞 or an issue, please [create an issue](https://github.com/mauryaratan/stag-blocks/issues/new).
20+
If you find a 🐞 or an issue, please [create an issue](https://github.com/analogwp/stag-blocks/issues/new).

analogwp-templates.php

+40-6
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@
33
* Plugin main file.
44
*
55
* @package Analog
6-
* @copyright 2019-2023 Dashwork Studio Pvt. Ltd.
6+
* @copyright 2019-2024 SmallTownDev.
77
* @link https://analogwp.com
88
*
99
* @wordpress-plugin
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.1.0
13+
* Version: 2.2.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
19-
* Elementor tested up to: 3.23.4
20-
* Elementor Pro tested up to: 3.23.3
19+
* Elementor tested up to: 3.25.7
20+
* Elementor Pro tested up to: 3.25.3
2121
*/
2222

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

2525
define( 'ANG_ELEMENTOR_MINIMUM', '3.10.0' );
26-
define( 'ANG_PHP_MINIMUM', '7.0' );
26+
define( 'ANG_PHP_MINIMUM', '8.0' );
2727
define( 'ANG_WP_MINIMUM', '6.0' );
28-
define( 'ANG_VERSION', '2.1.0' );
28+
define( 'ANG_VERSION', '2.2.0' );
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 ) );
@@ -185,6 +185,40 @@ function analog_fail_load() {
185185
require_once $vendor_file;
186186
}
187187

188+
if ( ! function_exists( 'sk_fs' ) ) {
189+
// Create a helper function for easy SDK access.
190+
function sk_fs() {
191+
global $sk_fs;
192+
193+
if ( ! isset( $sk_fs ) ) {
194+
// Include Freemius SDK.
195+
require_once dirname(__FILE__) . '/freemius/start.php';
196+
197+
$sk_fs = fs_dynamic_init( array(
198+
'id' => '17032',
199+
'slug' => 'analogwp-templates',
200+
'type' => 'plugin',
201+
'public_key' => 'pk_e05579cda0ad78db31e94616185cc',
202+
'is_premium' => false,
203+
'has_addons' => false,
204+
'has_paid_plans' => false,
205+
'menu' => array(
206+
'slug' => 'analogwp_templates',
207+
'first-path' => 'admin.php?page=analog_onboarding&from=freemius',
208+
'support' => false,
209+
),
210+
) );
211+
}
212+
213+
return $sk_fs;
214+
}
215+
216+
// Init Freemius.
217+
sk_fs();
218+
// Signal that SDK was initiated.
219+
do_action( 'sk_fs_loaded' );
220+
}
221+
188222
/**
189223
* Fire up plugin instance.
190224
*

assets/js/admin-settings.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,17 @@
132132
elSubmitBtn.val( 'Sending...' );
133133

134134
$.post(
135-
'https://analogwp.com/?ang-api=analogwp-templates&request=discount_code',
135+
'https://analogwp.com/?ang-api=analogwp-templates&request=freemius_discount_code',
136136
{
137137
email: email,
138-
first_name: fname,
139-
last_name: lname,
138+
first_name: JSON.stringify( fname ),
139+
last_name: JSON.stringify( lname ),
140140
}
141-
).done( function() {
141+
).done( function( res ) {
142142
status = 'Coupon sent!';
143143
elSubmitBtn.val( status );
144144
elSubmitBtn.attr( 'disabled', 'disabled' );
145-
} ).fail( function() {
145+
} ).fail( function(res) {
146146
status = 'Failed to send, please contact support.';
147147
elSubmitBtn.val( status );
148148
setTimeout( function() {

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "mauryaratan/analogwp-templates",
2+
"name": "analogwp/analogwp-templates",
33
"description": "Style Kits for Elementor adds a number of intuitive styling controls in the Elementor editor that allow you to apply styles globally or per page.",
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0",
66
"authors": [
77
{
8-
"name": "Ram Ratan Maurya",
9-
"email": "ratan.maurya@gmail.com"
8+
"name": "AnalogWP",
9+
"email": "hello@analogwp.com"
1010
}
1111
],
1212
"minimum-stability": "dev",

0 commit comments

Comments
 (0)