Version Description
(25th October 2017) = * TypeWatch is not a function #1299 * Error with BackupBuddy fixed #1303
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.65.2 |
Comparing to | |
See all releases |
Code changes from version 0.9.65.1 to 0.9.65.2
- accelerated-moblie-pages.php +2 -2
- includes/admin-script.js +72 -58
- readme.txt +6 -2
accelerated-moblie-pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
-
Version: 0.9.65.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -18,7 +18,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
18 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
19 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
20 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
21 |
-
define('AMPFORWP_VERSION','0.9.65.
|
22 |
|
23 |
// any changes to AMP_QUERY_VAR should be refelected here
|
24 |
function ampforwp_generate_endpoint(){
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 0.9.65.2
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
18 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
19 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
20 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
21 |
+
define('AMPFORWP_VERSION','0.9.65.2');
|
22 |
|
23 |
// any changes to AMP_QUERY_VAR should be refelected here
|
24 |
function ampforwp_generate_endpoint(){
|
includes/admin-script.js
CHANGED
@@ -1,8 +1,79 @@
|
|
1 |
jQuery(function($) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$(document).ready(function() {
|
3 |
$('.redux-container').each(function() {
|
4 |
if (!$(this).hasClass('redux-no-sections')) {
|
5 |
$(this).find('.redux-main').prepend('<input style="float:right" class="redux_field_search" name="" type="text" placeholder="Search the controls"/>');
|
|
|
6 |
}
|
7 |
});
|
8 |
|
@@ -13,63 +84,6 @@ jQuery(function($) {
|
|
13 |
return false;
|
14 |
}
|
15 |
});
|
16 |
-
|
17 |
-
jQuery('.redux_field_search').typeWatch({
|
18 |
-
callback:function( searchString ){
|
19 |
-
searchString = searchString.toLowerCase();
|
20 |
-
var searchArray = searchString.split(' ');
|
21 |
-
var parent = $(this).parents('.redux-container:first');
|
22 |
-
var expanded_options = parent.find('.expand_options');
|
23 |
-
if (searchString != "") {
|
24 |
-
if (!expanded_options.hasClass('expanded')) {
|
25 |
-
expanded_options.click();
|
26 |
-
parent.find('.redux-main').addClass('redux-search');
|
27 |
-
}
|
28 |
-
} else {
|
29 |
-
if (expanded_options.hasClass('expanded')) {
|
30 |
-
expanded_options.click();
|
31 |
-
parent.find('.redux-main').removeClass('redux-search');
|
32 |
-
}
|
33 |
-
parent.find('.redux-section-field, .redux-info-field, .redux-notice-field, .redux-container-group, .redux-section-desc, .redux-group-tab h3').show();
|
34 |
-
|
35 |
-
}
|
36 |
-
parent.find('.redux-field-container').each(function() {
|
37 |
-
if (searchString != "") {
|
38 |
-
$(this).parents('tr:first').hide();
|
39 |
-
} else {
|
40 |
-
$(this).parents('tr:first').show();
|
41 |
-
}
|
42 |
-
});
|
43 |
-
parent.find('div.redux-group-tab').css('display','none');
|
44 |
-
parent.find('.form-table tr').filter(function () {
|
45 |
-
var item = $(this);
|
46 |
-
var isMatch = true,
|
47 |
-
text = $(this).find('.redux_field_th').text().toLowerCase();
|
48 |
-
if ( !text || text == "" ) {
|
49 |
-
return false;
|
50 |
-
}
|
51 |
-
$.each(searchArray, function (i, searchStr) {
|
52 |
-
if (text.indexOf(searchStr) == -1) {
|
53 |
-
isMatch = false;
|
54 |
-
}
|
55 |
-
});
|
56 |
-
if (isMatch) {
|
57 |
-
console.log(this);
|
58 |
-
$(this).show();
|
59 |
-
|
60 |
-
// console.log($(this).parents('div.redux-group-tab'));
|
61 |
-
$(this).parents('div.redux-group-tab').css('display','block');
|
62 |
-
}
|
63 |
-
return isMatch;
|
64 |
-
}).show( function() {
|
65 |
-
|
66 |
-
|
67 |
-
});
|
68 |
-
},
|
69 |
-
wait:400,
|
70 |
-
highlight:false,
|
71 |
-
captureLength:0
|
72 |
-
});
|
73 |
-
|
74 |
});
|
75 |
});
|
1 |
jQuery(function($) {
|
2 |
+
var reduxOptionSearch = function(){
|
3 |
+
jQuery('.redux_field_search').typeWatch({
|
4 |
+
callback:function( searchString ){
|
5 |
+
searchString = searchString.toLowerCase();
|
6 |
+
var searchArray = searchString.split(' ');
|
7 |
+
var parent = $(this).parents('.redux-container:first');
|
8 |
+
var expanded_options = parent.find('.expand_options');
|
9 |
+
if (searchString != "") {
|
10 |
+
if (!expanded_options.hasClass('expanded')) {
|
11 |
+
expanded_options.click();
|
12 |
+
parent.find('.redux-main').addClass('redux-search');
|
13 |
+
}
|
14 |
+
} else {
|
15 |
+
if (expanded_options.hasClass('expanded')) {
|
16 |
+
expanded_options.click();
|
17 |
+
parent.find('.redux-main').removeClass('redux-search');
|
18 |
+
}
|
19 |
+
parent.find('.redux-section-field, .redux-info-field, .redux-notice-field, .redux-container-group, .redux-section-desc, .redux-group-tab h3').show();
|
20 |
+
|
21 |
+
if($('.redux-group-tab-link-li.active').length>0){
|
22 |
+
var rel = $('.redux-group-tab-link-li.active a').attr('data-rel');
|
23 |
+
var selector = 'div#'+rel+'_section_group';
|
24 |
+
jQuery(selector).show();
|
25 |
+
jQuery(selector).css('display','block');
|
26 |
+
|
27 |
+
}else{
|
28 |
+
$('.redux-group-tab-link-li.activeChild').click();
|
29 |
+
$('div#'+rel+'_section_group').show();
|
30 |
+
$('#'+rel+'_section_group').css('display','block');
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
34 |
+
parent.find('.redux-field-container').each(function() {
|
35 |
+
if (searchString != "") {
|
36 |
+
parent.find('div.redux-group-tab').css('display','none');
|
37 |
+
$(this).parents('tr:first').hide();
|
38 |
+
} else {
|
39 |
+
$(this).parents('tr:first').show();
|
40 |
+
}
|
41 |
+
});
|
42 |
+
parent.find('.form-table tr').filter(function () {
|
43 |
+
if(searchString==''){
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
var item = $(this);
|
47 |
+
var isMatch = true,
|
48 |
+
text = $(this).find('.redux_field_th').text().toLowerCase();
|
49 |
+
if ( !text || text == "" ) {
|
50 |
+
return false;
|
51 |
+
}
|
52 |
+
$.each(searchArray, function (i, searchStr) {
|
53 |
+
if (text.indexOf(searchStr) == -1) {
|
54 |
+
isMatch = false;
|
55 |
+
}
|
56 |
+
});
|
57 |
+
if (isMatch) {
|
58 |
+
$(this).show();
|
59 |
+
$(this).parents('div.redux-group-tab').css('display','block');
|
60 |
+
}
|
61 |
+
return isMatch;
|
62 |
+
}).show( function() {
|
63 |
+
|
64 |
+
|
65 |
+
});
|
66 |
+
},
|
67 |
+
wait:400,
|
68 |
+
highlight:false,
|
69 |
+
captureLength:0
|
70 |
+
});
|
71 |
+
}
|
72 |
$(document).ready(function() {
|
73 |
$('.redux-container').each(function() {
|
74 |
if (!$(this).hasClass('redux-no-sections')) {
|
75 |
$(this).find('.redux-main').prepend('<input style="float:right" class="redux_field_search" name="" type="text" placeholder="Search the controls"/>');
|
76 |
+
reduxOptionSearch();
|
77 |
}
|
78 |
});
|
79 |
|
84 |
return false;
|
85 |
}
|
86 |
});
|
87 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
});
|
89 |
});
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.8.2
|
7 |
-
Stable tag: 0.9.65.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -149,7 +149,11 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
-
= 0.9.65.
|
|
|
|
|
|
|
|
|
153 |
* AMP Minifcation Issues fixed
|
154 |
|
155 |
= 0.9.65 (22nd October 2017) =
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.8.2
|
7 |
+
Stable tag: 0.9.65.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 0.9.65.2 (25th October 2017) =
|
153 |
+
* TypeWatch is not a function #1299
|
154 |
+
* Error with BackupBuddy fixed #1303
|
155 |
+
|
156 |
+
= 0.9.65.1 (24th October 2017) =
|
157 |
* AMP Minifcation Issues fixed
|
158 |
|
159 |
= 0.9.65 (22nd October 2017) =
|