Skip to content

Commit

Permalink
Version 1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mauryaratan committed Aug 28, 2019
1 parent c8d7cef commit ade9dab
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions analogwp-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' );
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": "1.3.4",
"version": "1.3.5",
"description": "Handfully crafted Elementor templates packs.",
"main": "/src/js/app/index.js",
"private": true,
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
34 changes: 18 additions & 16 deletions src/js/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ade9dab

Please sign in to comment.