diff --git a/analogwp-templates.php b/analogwp-templates.php index 4e19bbdf..aba52ddc 100644 --- a/analogwp-templates.php +++ b/analogwp-templates.php @@ -3,7 +3,7 @@ * Plugin Name: Style Kits for Elementor * Plugin URI: https://analogwp.com/ * Description: Style Kits adds intuitive styling controls in the Elementor editor that power-up your design workflow. - * Version: 1.3.4 + * Version: 1.3.5 * Author: AnalogWP * Author URI: https://analogwp.com/ * License: GPL2 @@ -83,7 +83,7 @@ public function __wakeup() { private function setup_constants() { // Plugin version. if ( ! defined( 'ANG_VERSION' ) ) { - define( 'ANG_VERSION', '1.3.4' ); + define( 'ANG_VERSION', '1.3.5' ); } define( 'ANG_LAST_STABLE_VERSION', '1.2.2' ); diff --git a/package.json b/package.json index bfad88b8..be424348 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "analogwp-templates", - "version": "1.3.4", + "version": "1.3.5", "description": "Handfully crafted Elementor templates packs.", "main": "/src/js/app/index.js", "private": true, diff --git a/readme.txt b/readme.txt index 56e15155..b8bf3975 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: analogwp, mauryaratan Requires at least: 5.0 Requires PHP: 5.4 Tested up to: 5.2.2 -Stable tag: 1.3.4 +Stable tag: 1.3.5 Tags: elementor, landing page, design, website builder, templates License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -97,6 +97,9 @@ Our dedicated support team has your back. Please reach out via our website at ht == Changelog == += 1.3.5 = +* Fix: An issue with Analog modal not launching in Elementor screen + = 1.3.4 = * New: All new *[Style Kits](https://github.com/mauryaratan/analogwp-templates/issues/135)* library page to import pre-build Style Kits. * New: Added Quick Edit and Bulk edit actions on posts list, to assign a Style Kit to multiple posts/pages at once. diff --git a/src/js/app/App.js b/src/js/app/App.js index 65c437b1..11e706fa 100644 --- a/src/js/app/App.js +++ b/src/js/app/App.js @@ -214,23 +214,25 @@ class App extends React.Component { window.addEventListener( 'hashchange', this.switchTabs, false ); window.addEventListener( 'DOMContentLoaded', this.switchTabs, false ); - const parentMenu = document.querySelector( '#toplevel_page_analogwp_templates .wp-submenu' ); - const menuItems = parentMenu.querySelectorAll( 'a' ); - - const removeClasses = () => { - const listItems = parentMenu.querySelectorAll( 'li' ); - listItems.forEach( item => { - item.classList.remove( 'current' ); + if ( AGWP.is_settings_page ) { + const parentMenu = document.querySelector( '#toplevel_page_analogwp_templates .wp-submenu' ); + const menuItems = parentMenu.querySelectorAll( 'a' ); + + const removeClasses = () => { + const listItems = parentMenu.querySelectorAll( 'li' ); + listItems.forEach( item => { + item.classList.remove( 'current' ); + } ); + }; + + menuItems.forEach( ( menu ) => { + menu.addEventListener( 'click', () => { + removeClasses(); + + menu.parentNode.classList.add( 'current' ); + } ); } ); - }; - - menuItems.forEach( ( menu ) => { - menu.addEventListener( 'click', () => { - removeClasses(); - - menu.parentNode.classList.add( 'current' ); - } ); - } ); + } const templates = await requestTemplateList();