Version Description
(12th February 2020) = * Improvement: import/export option improved * Fixed: Added option to show/hide featured image on AMP pagebuilder * Fixed: AMP Options panel UI bug
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.26 |
Comparing to | |
See all releases |
Code changes from version 1.0.25 to 1.0.26
- README.md +6 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +5 -0
- includes/admin-style.css +3 -0
- includes/options/admin-config.php +9 -0
- includes/options/redux-core/framework.php +11 -1
- includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php +12 -12
- includes/options/redux-core/templates/panel/menu_container.tpl.php +0 -2
- readme.txt +6 -1
- templates/design-manager/swift/page.php +5 -1
README.md
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: 5.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,11 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
197 |
= 1.0.25 (12th February 2020) =
|
198 |
* Fixed: Title issue #4138
|
199 |
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.0.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 1.0.26 (12th February 2020) =
|
198 |
+
* Improvement: import/export option improved
|
199 |
+
* Fixed: Added option to show/hide featured image on AMP pagebuilder
|
200 |
+
* Fixed: AMP Options panel UI bug
|
201 |
+
|
202 |
= 1.0.25 (12th February 2020) =
|
203 |
* Fixed: Title issue #4138
|
204 |
|
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: 1.0.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
-
define('AMPFORWP_VERSION','1.0.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
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: 1.0.26
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
+
define('AMPFORWP_VERSION','1.0.26');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.25 (12th February 2020) =
|
4 |
* Fixed: Title issue #4138
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.26 (12th February 2020) =
|
4 |
+
* Improvement: import/export option improved
|
5 |
+
* Fixed: Added option to show/hide featured image on AMP pagebuilder
|
6 |
+
* Fixed: AMP Options panel UI bug
|
7 |
+
|
8 |
= 1.0.25 (12th February 2020) =
|
9 |
* Fixed: Title issue #4138
|
10 |
|
includes/admin-style.css
CHANGED
@@ -2032,4 +2032,7 @@ div#section-ampforwp-ux-section::after,div#section-ampforwp-ux-section-right::af
|
|
2032 |
}
|
2033 |
|
2034 |
|
|
|
|
|
|
|
2035 |
}
|
2032 |
}
|
2033 |
|
2034 |
|
2035 |
+
}
|
2036 |
+
.redux-container-import_export h4{
|
2037 |
+
margin-bottom:10px;
|
2038 |
}
|
includes/options/admin-config.php
CHANGED
@@ -6774,6 +6774,15 @@ else{
|
|
6774 |
'tooltip-subtitle' => esc_html__('Enable Featured Image on Pages.'),
|
6775 |
'required' => array('amp-design-selector','=','4'),
|
6776 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6777 |
array(
|
6778 |
'id' => 'ampforwp_pages_breadcrumbs',
|
6779 |
'type' => 'switch',
|
6774 |
'tooltip-subtitle' => esc_html__('Enable Featured Image on Pages.'),
|
6775 |
'required' => array('amp-design-selector','=','4'),
|
6776 |
),
|
6777 |
+
array(
|
6778 |
+
'id' => 'featured_image_swift_page_builder',
|
6779 |
+
'type' => 'switch',
|
6780 |
+
'class' => 'child_opt child_opt_arrow',
|
6781 |
+
'default' => '1',
|
6782 |
+
'title' => esc_html__('Featured Image on Pagebuilder', 'accelerated-mobile-pages'),
|
6783 |
+
'tooltip-subtitle' => esc_html__('Enable Featured Image on Pagebuilder Pages.'),
|
6784 |
+
'required' => array('featured_image_swift_page','=','1'),
|
6785 |
+
),
|
6786 |
array(
|
6787 |
'id' => 'ampforwp_pages_breadcrumbs',
|
6788 |
'type' => 'switch',
|
includes/options/redux-core/framework.php
CHANGED
@@ -3231,7 +3231,17 @@
|
|
3231 |
}
|
3232 |
}
|
3233 |
|
3234 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3235 |
$string .= '<a href="javascript:void(0);" id="' . esc_attr( $k . $suffix ) . '_section_group_li_a" class="redux-group-tab-link-a" data-key="' . esc_attr( $k ) . '" data-rel="' . esc_attr( $k . $suffix ) . '">' . $extra_icon . $icon . '<span class="group_title">' . wp_kses_post( $section['title'] ) . '</span></a>';
|
3236 |
|
3237 |
$nextK = $k;
|
3231 |
}
|
3232 |
}
|
3233 |
|
3234 |
+
$amp_opt = get_option("ampforwp_option_panel_view_type");
|
3235 |
+
$opt_visible = "";
|
3236 |
+
$opt_visible_class = "amp-full-view-options";
|
3237 |
+
if(($amp_opt==1 || $amp_opt=="") && !get_theme_support('amp-template-mode')){
|
3238 |
+
$opt_visible = 'style=display:none';
|
3239 |
+
}
|
3240 |
+
if($section['title']=="Extensions" || $section['title']=="Setup"){
|
3241 |
+
$opt_visible = '';
|
3242 |
+
$opt_visible_class = "";
|
3243 |
+
}
|
3244 |
+
$string .= '<li '.esc_html($opt_visible).' id="' . esc_attr( $k . $suffix ) . '_section_group_li" class="'.esc_attr($opt_visible_class).' redux-group-tab-link-li '.esc_attr($addClass).'' . esc_attr( $hide_section ) . esc_attr( $section['class'] ) . esc_attr( $subsectionsClass ) . ' ' . strtolower( wp_kses_post( $section['id'] )) . '" '.ampforwp_css_sanitizer($style).'>';
|
3245 |
$string .= '<a href="javascript:void(0);" id="' . esc_attr( $k . $suffix ) . '_section_group_li_a" class="redux-group-tab-link-a" data-key="' . esc_attr( $k ) . '" data-rel="' . esc_attr( $k . $suffix ) . '">' . $extra_icon . $icon . '<span class="group_title">' . wp_kses_post( $section['title'] ) . '</span></a>';
|
3246 |
|
3247 |
$nextK = $k;
|
includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php
CHANGED
@@ -95,38 +95,38 @@ namespace ReduxCore\ReduxFramework;
|
|
95 |
?>
|
96 |
<h4><?php esc_html_e( 'Export Options', 'redux-framework' ) ?></h4>
|
97 |
|
98 |
-
<div
|
99 |
<p class="description">
|
100 |
-
<?php echo esc_html( apply_filters( 'redux-backup-description', __( 'Here you can
|
101 |
</p>
|
102 |
</div>
|
103 |
<?php
|
104 |
// $this->parent->args['opt_name'] is sanitized in the ReduxFramework class, no need to re-sanitize it.
|
105 |
-
$link =
|
106 |
?>
|
107 |
-
<p><?php esc_html_e( 'Copy Data To Export All Your Settings', 'redux-framework' ) ?></p>
|
108 |
<p></p>
|
109 |
<?php
|
110 |
$backup_options = get_option('redux_builder_amp');
|
111 |
$backup_options['redux-backup'] = '1';
|
112 |
$content = json_encode( $backup_options );
|
113 |
?>
|
114 |
-
<textarea class="large-text noUpdate" id="redux-export-code" rows="10" readonly="true"><?php echo $content
|
115 |
-
<a href="<?php echo $link; ?>" id="redux-export-code-dl" class="button-primary"><?php esc_html_e( '
|
116 |
-
<
|
117 |
<?php echo esc_html( apply_filters( 'redux-backup-description', __( 'Download a backup file of your settings', 'accelerated-mobile-pages' ) ) ) ?>
|
118 |
-
</
|
119 |
<h4><?php esc_html_e( 'Import Options', 'redux-framework' ); ?></h4>
|
120 |
-
<p>
|
121 |
-
|
122 |
</p>
|
123 |
|
124 |
<p></p>
|
125 |
-
<div id="redux-import-code-wrapper">
|
126 |
<textarea id="import-code-value" name="<?php echo $this->parent->args['opt_name']; ?>[import_code]" class="large-text noUpdate" rows="10"></textarea>
|
127 |
</div>
|
128 |
<p id="redux-import-action">
|
129 |
-
<input type="submit" id="redux-import" name="import" class="button-primary" value="<?php esc_html_e( 'Import', 'redux-framework' ) ?>"
|
130 |
<input type="button" id="redux-import-from-file" name="import_from_file" class="button-primary" value="<?php esc_html_e( 'Import From File', 'redux-framework' ) ?>">
|
131 |
<input type="file" id="redux-import-file-type" accept=".json">
|
132 |
<input type="hidden" id="ampforwp_import_nonce" value="<?php $nonce = wp_create_nonce('ampforwp_import_file'); echo $nonce;?>">
|
95 |
?>
|
96 |
<h4><?php esc_html_e( 'Export Options', 'redux-framework' ) ?></h4>
|
97 |
|
98 |
+
<div>
|
99 |
<p class="description">
|
100 |
+
<?php echo esc_html( apply_filters( 'redux-backup-description', __( 'Here you can download your current option settings. Keep this safe as you can use it as a backup should anything go wrong, or you can use it to restore your settings on this site (or any other site).', 'accelerated-mobile-pages' ) ) ) ?>
|
101 |
</p>
|
102 |
</div>
|
103 |
<?php
|
104 |
// $this->parent->args['opt_name'] is sanitized in the ReduxFramework class, no need to re-sanitize it.
|
105 |
+
$link = admin_url( 'admin-ajax.php?action=redux_download_options-' . $this->parent->args['opt_name'] . '&secret=' . $secret ) ;
|
106 |
?>
|
107 |
+
<p class="hide"><?php esc_html_e( 'Copy Data To Export All Your Settings', 'redux-framework' ) ?></p>
|
108 |
<p></p>
|
109 |
<?php
|
110 |
$backup_options = get_option('redux_builder_amp');
|
111 |
$backup_options['redux-backup'] = '1';
|
112 |
$content = json_encode( $backup_options );
|
113 |
?>
|
114 |
+
<textarea class="large-text noUpdate hide" id="redux-export-code" rows="10" readonly="true"><?php echo $content;//it's json encode content.?></textarea>
|
115 |
+
<a href="<?php echo esc_url($link); ?>" id="redux-export-code-dl" class="button-primary"><?php esc_html_e( 'Export Data File', 'redux-framework' ) ?></a>
|
116 |
+
<span class="description">
|
117 |
<?php echo esc_html( apply_filters( 'redux-backup-description', __( 'Download a backup file of your settings', 'accelerated-mobile-pages' ) ) ) ?>
|
118 |
+
</span >
|
119 |
<h4><?php esc_html_e( 'Import Options', 'redux-framework' ); ?></h4>
|
120 |
+
<p class="description">
|
121 |
+
Here you can import your option settings file. Please download your existing settings as backup before import.
|
122 |
</p>
|
123 |
|
124 |
<p></p>
|
125 |
+
<div id="redux-import-code-wrapper" class="hide">
|
126 |
<textarea id="import-code-value" name="<?php echo $this->parent->args['opt_name']; ?>[import_code]" class="large-text noUpdate" rows="10"></textarea>
|
127 |
</div>
|
128 |
<p id="redux-import-action">
|
129 |
+
<input type="submit" id="redux-import" name="import" class="button-primary hide" value="<?php esc_html_e( 'Import', 'redux-framework' ) ?>">
|
130 |
<input type="button" id="redux-import-from-file" name="import_from_file" class="button-primary" value="<?php esc_html_e( 'Import From File', 'redux-framework' ) ?>">
|
131 |
<input type="file" id="redux-import-file-type" accept=".json">
|
132 |
<input type="hidden" id="ampforwp_import_nonce" value="<?php $nonce = wp_create_nonce('ampforwp_import_file'); echo $nonce;?>">
|
includes/options/redux-core/templates/panel/menu_container.tpl.php
CHANGED
@@ -26,7 +26,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
26 |
if(($amp_opt==1 || $amp_opt=="") && !get_theme_support('amp-template-mode')){
|
27 |
$opt_visible = 'style=display:none';
|
28 |
}
|
29 |
-
echo '<div class="amp-full-view-options" '.esc_attr($opt_visible).'>';
|
30 |
}
|
31 |
$title = isset ( $section[ 'title' ] ) ? $section[ 'title' ] : '';
|
32 |
|
@@ -60,7 +59,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
60 |
* @param object $this ReduxFramework
|
61 |
*/
|
62 |
do_action ( "redux/page/{$this->parent->args[ 'opt_name' ]}/menu/after", $this );
|
63 |
-
echo '</div>';
|
64 |
$opt_easy = "";
|
65 |
$opt_easy_active = "";
|
66 |
$opt_full = "";
|
26 |
if(($amp_opt==1 || $amp_opt=="") && !get_theme_support('amp-template-mode')){
|
27 |
$opt_visible = 'style=display:none';
|
28 |
}
|
|
|
29 |
}
|
30 |
$title = isset ( $section[ 'title' ] ) ? $section[ 'title' ] : '';
|
31 |
|
59 |
* @param object $this ReduxFramework
|
60 |
*/
|
61 |
do_action ( "redux/page/{$this->parent->args[ 'opt_name' ]}/menu/after", $this );
|
|
|
62 |
$opt_easy = "";
|
63 |
$opt_easy_active = "";
|
64 |
$opt_full = "";
|
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: 5.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,11 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.25 (12th February 2020) =
|
195 |
* Fixed: Title issue #4138
|
196 |
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.0.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.26 (12th February 2020) =
|
195 |
+
* Improvement: import/export option improved
|
196 |
+
* Fixed: Added option to show/hide featured image on AMP pagebuilder
|
197 |
+
* Fixed: AMP Options panel UI bug
|
198 |
+
|
199 |
= 1.0.25 (12th February 2020) =
|
200 |
* Fixed: Title issue #4138
|
201 |
|
templates/design-manager/swift/page.php
CHANGED
@@ -18,7 +18,11 @@ amp_header(); ?>
|
|
18 |
<div class="sf-img">
|
19 |
<?php amp_featured_image();?>
|
20 |
</div>
|
21 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
22 |
<div class="pg">
|
23 |
<?php if ( is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' == ampforwp_get_setting('swift-social-position') ){
|
24 |
ampforwp_swift_social_icons();
|
18 |
<div class="sf-img">
|
19 |
<?php amp_featured_image();?>
|
20 |
</div>
|
21 |
+
<?php }elseif (true == ampforwp_get_setting('featured_image_swift_page') && true == ampforwp_get_setting('featured_image_swift_page_builder')) {?>
|
22 |
+
<div class="sf-img">
|
23 |
+
<?php amp_featured_image();?>
|
24 |
+
</div>
|
25 |
+
<?php } ?>
|
26 |
<div class="pg">
|
27 |
<?php if ( is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' == ampforwp_get_setting('swift-social-position') ){
|
28 |
ampforwp_swift_social_icons();
|