WPtouch - Version 4.3.41

Version Description

Download this release

Release Info

Developer wptouch
Plugin Icon 128x128 WPtouch
Version 4.3.41
Comparing to
See all releases

Code changes from version 4.3.40 to 4.3.41

Files changed (4) hide show
  1. admin/js/wptouch-menu.js +51 -50
  2. lang/wptouch.pot +4 -4
  3. readme.txt +5 -1
  4. wptouch.php +2 -2
admin/js/wptouch-menu.js CHANGED
@@ -1,58 +1,59 @@
1
- jQuery( '.wptouch-menu-icon' ).each( function(){
2
- // var dataID = jQuery( this ).attr( 'data-object-id' );
3
- jQuery( this ).on( 'click', 'img.icon-preview', function(){
4
- if ( jQuery( this ).attr( 'src' ) != wptouchMenu.default_icon ) {
5
- jQuery( this ).parent().find( 'a.remove_icon' ).show();
6
- }
7
- });
 
8
 
9
- jQuery( this ).on( 'click', 'a.remove_icon', function( e ) {
10
- e.preventDefault();
11
- jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
12
- jQuery( this ).siblings( 'input' ).val('');
13
- jQuery( this ).hide();
14
- });
15
- });
16
 
17
- jQuery( '#icon-packs' ).on( 'click', 'img', function( e ) {
18
- e.preventDefault();
19
- e.stopImmediatePropagation();
20
- var imageSource = jQuery( this ).attr( 'src' );
21
- jQuery( '[data-object-id=' + pageId + ']' ).find( 'img.icon-preview' ).attr( 'src', imageSource )
22
- jQuery( '[data-object-id=' + pageId + ']' ).find( '.remove_icon' ).show();
23
- jQuery( '#edit-menu-item-icon-' + pageId ).val( imageSource );
24
- });
25
 
26
- jQuery( 'p.wptouch-menu-icon' ).on( 'click', 'a.remove_icon', function( e ) {
27
- e.preventDefault();
28
- jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
29
- jQuery( this ).siblings( 'input' ).val('');
30
- jQuery( this ).hide();
31
- });
32
 
33
- // Enable popovers
34
- jQuery( function(){
35
- jQuery( '[data-toggle=wptouch-popover]', '.wptouch-menu-icon' ).each( function(){
36
- jQuery( this ).popover({
37
- trigger: 'click',
38
- html : true,
39
- placement: 'bottom',
40
- content: function() {
41
- pageId = jQuery( this ).parent().attr( 'data-object-id' );
42
- // move the icon div inside the popover
43
- return jQuery( '#icon-picker' ).html();
44
- }
45
- });
46
- });
47
-
48
- // Hide on click outside
49
- jQuery( 'body' ).on( 'click', function ( e ) {
50
- if ( jQuery( e.target ).data( 'toggle' ) !== 'wptouch-popover' && jQuery( e.target ).parents( '.wptouch-popover.in' ).length === 0 ) {
51
- jQuery( '.wptouch-popover.in' ).parents( '.wptouch-menu-icon' ).find( 'a.change_icon' ).trigger( 'click' );
52
- }
53
- });
54
- }); // self-executing
55
 
 
 
 
 
 
 
 
 
56
  /*!
57
  * Bootstrap v3.3.5 (http://getbootstrap.com)
58
  * Copyright 2011-2015 Twitter, Inc.
1
+ jQuery(document).ready(function() {
2
+ jQuery( '.wptouch-menu-icon' ).each( function(){
3
+ // var dataID = jQuery( this ).attr( 'data-object-id' );
4
+ jQuery( this ).on( 'click', 'img.icon-preview', function(){
5
+ if ( jQuery( this ).attr( 'src' ) != wptouchMenu.default_icon ) {
6
+ jQuery( this ).parent().find( 'a.remove_icon' ).show();
7
+ }
8
+ });
9
 
10
+ jQuery( this ).on( 'click', 'a.remove_icon', function( e ) {
11
+ e.preventDefault();
12
+ jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
13
+ jQuery( this ).siblings( 'input' ).val('');
14
+ jQuery( this ).hide();
15
+ });
16
+ });
17
 
18
+ jQuery(document).on( 'click', '#icon-packs img', function( e ) {
19
+ e.preventDefault();
20
+ e.stopImmediatePropagation();
21
+ var imageSource = jQuery( this ).attr( 'src' );
22
+ jQuery( '[data-object-id=' + pageId + ']' ).find( 'img.icon-preview' ).attr( 'src', imageSource )
23
+ jQuery( '[data-object-id=' + pageId + ']' ).find( '.remove_icon' ).show();
24
+ jQuery( '#edit-menu-item-icon-' + pageId ).val( imageSource );
25
+ });
26
 
27
+ jQuery( 'p.wptouch-menu-icon' ).on( 'click', 'a.remove_icon', function( e ) {
28
+ e.preventDefault();
29
+ jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
30
+ jQuery( this ).siblings( 'input' ).val('');
31
+ jQuery( this ).hide();
32
+ });
33
 
34
+ // Enable popovers
35
+ jQuery( function(){
36
+ jQuery( '[data-toggle=wptouch-popover]', '.wptouch-menu-icon' ).each( function(){
37
+ jQuery( this ).popover({
38
+ trigger: 'click',
39
+ html : true,
40
+ placement: 'bottom',
41
+ content: function() {
42
+ pageId = jQuery( this ).parent().attr( 'data-object-id' );
43
+ // move the icon div inside the popover
44
+ return jQuery( '#icon-picker' ).html();
45
+ }
46
+ });
47
+ });
 
 
 
 
 
 
 
 
48
 
49
+ // Hide on click outside
50
+ jQuery( 'body' ).on( 'click', function ( e ) {
51
+ if ( jQuery( e.target ).data( 'toggle' ) !== 'wptouch-popover' && jQuery( e.target ).parents( '.wptouch-popover.in' ).length === 0 ) {
52
+ jQuery( '.wptouch-popover.in' ).parents( '.wptouch-menu-icon' ).find( 'a.change_icon' ).trigger( 'click' );
53
+ }
54
+ });
55
+ }); // self-executing
56
+ });
57
  /*!
58
  * Bootstrap v3.3.5 (http://getbootstrap.com)
59
  * Copyright 2011-2015 Twitter, Inc.
lang/wptouch.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPtouch Mobile Plugin 4.3.40\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
- "POT-Creation-Date: 2021-05-05 19:53:05+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2537,9 +2537,9 @@ msgstr ""
2537
  msgid "WPtouch Mobile Plugin"
2538
  msgstr ""
2539
 
2540
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.40) #-#-#-#-#
2541
  #. Plugin URI of the plugin/theme
2542
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.40) #-#-#-#-#
2543
  #. Author URI of the plugin/theme
2544
  msgid "http://www.wptouch.com/"
2545
  msgstr ""
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPtouch Mobile Plugin 4.3.41\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
+ "POT-Creation-Date: 2021-05-05 20:40:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2537
  msgid "WPtouch Mobile Plugin"
2538
  msgstr ""
2539
 
2540
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.41) #-#-#-#-#
2541
  #. Plugin URI of the plugin/theme
2542
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.41) #-#-#-#-#
2543
  #. Author URI of the plugin/theme
2544
  msgid "http://www.wptouch.com/"
2545
  msgstr ""
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: wptouch, sureswiftcapital, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
- Stable tag: 4.3.40
6
  Tested up to: 5.5.3
7
  License: GPLv2
8
 
@@ -33,6 +33,10 @@ For more information visit [WPtouch.com](http://www.wptouch.com/?utm_campaign=wp
33
 
34
  == Changelog ==
35
 
 
 
 
 
36
  = Version 4.3.40 (May 4th, 2021) =
37
 
38
  * Fixed menu icon jQuery error.
2
  Contributors: wptouch, sureswiftcapital, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
+ Stable tag: 4.3.41
6
  Tested up to: 5.5.3
7
  License: GPLv2
8
 
33
 
34
  == Changelog ==
35
 
36
+ = Version 4.3.41 (May 5th, 2021) =
37
+
38
+ * Fixed subsequent icon jQuery error.
39
+
40
  = Version 4.3.40 (May 4th, 2021) =
41
 
42
  * Fixed menu icon jQuery error.
wptouch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
- Version: 4.3.40
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
@@ -14,7 +14,7 @@
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
- define( 'WPTOUCH_VERSION', '4.3.40' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
+ Version: 4.3.41
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
+ define( 'WPTOUCH_VERSION', '4.3.41' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );