Version Description
(28th April 2021) = * Improvements: Added an option to add one signal notification on the desktop #4377 * Improvements: Added an option to set Target for CTA button in swift theme #4995 * Improvements: Added an option to install PWA from options panel #4529 * Improvements: Added HappyForms Compatibility Extension #5001 * Fixed: Width in percentage not working for the audio from the Pennews Theme #4576 * Fixed: Need to allow two attributes in input tag #4998
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.76.15 |
Comparing to | |
See all releases |
Code changes from version 1.0.76.14 to 1.0.76.15
- README.md +9 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +8 -0
- components/components-core.php +35 -1
- images/happyforms-for-amp.png +0 -0
- includes/admin-style.css +1 -0
- includes/features/notice-bar/notice-bar-functions.php +8 -2
- includes/features/performance/performance-options.php +13 -26
- includes/features/push-notification/push-notification-options.php +8 -0
- includes/options/admin-config.php +21 -0
- includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +2 -0
- readme.txt +9 -1
- templates/design-manager/swift/header.php +6 -2
- templates/features.php +1 -0
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.7
|
7 |
-
Stable tag: 1.0.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,14 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.76.14 (23rd April 2021) =
|
197 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
198 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 1.0.76.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 1.0.76.15 (28th April 2021) =
|
197 |
+
* Improvements: Added an option to add one signal notification on the desktop #4377
|
198 |
+
* Improvements: Added an option to set Target for CTA button in swift theme #4995
|
199 |
+
* Improvements: Added an option to install PWA from options panel #4529
|
200 |
+
* Improvements: Added HappyForms Compatibility Extension #5001
|
201 |
+
* Fixed: Width in percentage not working for the audio from the Pennews Theme #4576
|
202 |
+
* Fixed: Need to allow two attributes in input tag #4998
|
203 |
+
|
204 |
= 1.0.76.14 (23rd April 2021) =
|
205 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
206 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
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.76.
|
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.76.
|
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.76.15
|
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.76.15');
|
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,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.76.14 (23rd April 2021) =
|
4 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
5 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.76.15 (28th April 2021) =
|
4 |
+
* Improvements: Added an option to add one signal notification on the desktop #4377
|
5 |
+
* Improvements: Added an option to set Target for CTA button in swift theme #4995
|
6 |
+
* Improvements: Added an option to install PWA from options panel #4529
|
7 |
+
* Improvements: Added HappyForms Compatibility Extension #5001
|
8 |
+
* Fixed: Width in percentage not working for the audio from the Pennews Theme #4576
|
9 |
+
* Fixed: Need to allow two attributes in input tag #4998
|
10 |
+
|
11 |
= 1.0.76.14 (23rd April 2021) =
|
12 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
13 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
components/components-core.php
CHANGED
@@ -845,7 +845,41 @@ function ampforwp_backtotop_global_css(){?>
|
|
845 |
.has-text-align-left { text-align: left;}
|
846 |
.has-text-align-right { text-align: right;}
|
847 |
.has-text-align-center { text-align: center;}
|
848 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
849 |
// Fallback for amp_call_now #2782
|
850 |
if ( !function_exists('amp_call_now') ) {
|
851 |
function amp_call_now(){
|
845 |
.has-text-align-left { text-align: left;}
|
846 |
.has-text-align-right { text-align: right;}
|
847 |
.has-text-align-center { text-align: center;}
|
848 |
+
<?php if (ampforwp_get_setting('ampforwp-web-push-onesignal') && ampforwp_get_setting('ampforwp-web-push-onesignal-popup') && is_single()) { ?>
|
849 |
+
@media (min-width:1281px){
|
850 |
+
.onesignal-popup{
|
851 |
+
position: fixed;
|
852 |
+
top: 0;
|
853 |
+
bottom: 0;
|
854 |
+
left: 0;
|
855 |
+
right: 0;
|
856 |
+
background: rgba(0, 0, 0, 0.7);
|
857 |
+
color: #333;
|
858 |
+
z-index:9999999;
|
859 |
+
line-height:1.3;
|
860 |
+
height: 100vh;
|
861 |
+
width: 100vw
|
862 |
+
}
|
863 |
+
.onesignal-popup_wrapper{
|
864 |
+
padding: 2rem;
|
865 |
+
background: #fff;
|
866 |
+
max-width: 700px;
|
867 |
+
width: 95%;
|
868 |
+
margin: 5% auto;
|
869 |
+
text-align: center;
|
870 |
+
position:fixed;
|
871 |
+
left: 0;
|
872 |
+
right: 0;
|
873 |
+
margin:10% auto;
|
874 |
+
}
|
875 |
+
.onesignal-popup_x{
|
876 |
+
position: absolute;
|
877 |
+
right: 24px;
|
878 |
+
top: 16px;
|
879 |
+
cursor:pointer;
|
880 |
+
}
|
881 |
+
}
|
882 |
+
<?php } }
|
883 |
// Fallback for amp_call_now #2782
|
884 |
if ( !function_exists('amp_call_now') ) {
|
885 |
function amp_call_now(){
|
images/happyforms-for-amp.png
ADDED
Binary file
|
includes/admin-style.css
CHANGED
@@ -1090,6 +1090,7 @@ span.switch-text {
|
|
1090 |
font-size: 14px;
|
1091 |
top: 7px;
|
1092 |
left: 12px;
|
|
|
1093 |
}
|
1094 |
#finalized-import-structure-data-from-amp{
|
1095 |
margin-left:8px;
|
1090 |
font-size: 14px;
|
1091 |
top: 7px;
|
1092 |
left: 12px;
|
1093 |
+
margin-left: 10px;
|
1094 |
}
|
1095 |
#finalized-import-structure-data-from-amp{
|
1096 |
margin-left:8px;
|
includes/features/notice-bar/notice-bar-functions.php
CHANGED
@@ -35,8 +35,14 @@ function ampforwp_footer() {
|
|
35 |
<?php } ?>
|
36 |
<button on="tap:amp-user-notification1.dismiss"><?php echo esc_html__(ampforwp_get_setting('amp-accept-button-text'),'accelerated-mobile-pages'); ?></button>
|
37 |
</amp-user-notification>
|
38 |
-
<?php }
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
// 50. Properly adding noditification Scritps the AMP way
|
42 |
add_filter( 'amp_post_template_data', 'ampforwp_add_notification_scripts', 75 );
|
35 |
<?php } ?>
|
36 |
<button on="tap:amp-user-notification1.dismiss"><?php echo esc_html__(ampforwp_get_setting('amp-accept-button-text'),'accelerated-mobile-pages'); ?></button>
|
37 |
</amp-user-notification>
|
38 |
+
<?php }
|
39 |
+
if(ampforwp_get_setting('ampforwp-web-push-onesignal') && ampforwp_get_setting('ampforwp-web-push-onesignal-popup') && is_single()){ ?>
|
40 |
+
<amp-user-notification id="onesignal-popup-id" class="onesignal-popup" layout="nodisplay">
|
41 |
+
<div class="onesignal-popup_wrapper">
|
42 |
+
<?php echo ampforwp_onesignal_notifications_widget() ?>
|
43 |
+
<button class="onesignal-popup_x" on="tap:onesignal-popup-id.dismiss">X</button></div>
|
44 |
+
</amp-user-notification>
|
45 |
+
<?php } }
|
46 |
|
47 |
// 50. Properly adding noditification Scritps the AMP way
|
48 |
add_filter( 'amp_post_template_data', 'ampforwp_add_notification_scripts', 75 );
|
includes/features/performance/performance-options.php
CHANGED
@@ -11,11 +11,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
11 |
$cache_AD_URL = "http://ampforwp.com/amp-cache/#utm_source=options-panel&utm_medium=performance-tab&utm_campaign=AMP%20Plugin";
|
12 |
$cache_desc = '<a href="'.$cache_AD_URL.'" target="_blank"><img class="ampforwp-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp_cache_b.png" width="560" height="85" /></a>';
|
13 |
}
|
14 |
-
//
|
15 |
Redux::setSection( $opt_name, array(
|
16 |
-
'title' => esc_html__( '
|
17 |
-
'id' => '
|
18 |
-
'desc'
|
19 |
'subsection' => true,
|
20 |
'fields' => array(
|
21 |
array(
|
@@ -28,29 +28,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
28 |
),
|
29 |
|
30 |
array(
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
),
|
41 |
-
|
42 |
-
)
|
43 |
-
|
44 |
-
)
|
45 |
-
|
46 |
-
);
|
47 |
-
// Performance SECTION
|
48 |
-
Redux::setSection( $opt_name, array(
|
49 |
-
'title' => __( 'Performance', 'accelerated-mobile-pages' ),
|
50 |
-
'id' => 'amp-performance',
|
51 |
-
'desc' => $cache_desc,
|
52 |
-
'subsection' => true,
|
53 |
-
'fields' => array(
|
54 |
array(
|
55 |
'id' => 'ampforwp-performance',
|
56 |
'type' => 'section',
|
11 |
$cache_AD_URL = "http://ampforwp.com/amp-cache/#utm_source=options-panel&utm_medium=performance-tab&utm_campaign=AMP%20Plugin";
|
12 |
$cache_desc = '<a href="'.$cache_AD_URL.'" target="_blank"><img class="ampforwp-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp_cache_b.png" width="560" height="85" /></a>';
|
13 |
}
|
14 |
+
// Performance SECTION
|
15 |
Redux::setSection( $opt_name, array(
|
16 |
+
'title' => esc_html__( 'Performance', 'accelerated-mobile-pages' ),
|
17 |
+
'id' => 'amp-performance',
|
18 |
+
'desc' => $cache_desc,
|
19 |
'subsection' => true,
|
20 |
'fields' => array(
|
21 |
array(
|
28 |
),
|
29 |
|
30 |
array(
|
31 |
+
'id' => 'ampforwp_pwa_module',
|
32 |
+
'type' => 'raw',
|
33 |
+
'title' => esc_html__('PWA Support', 'accelerated-mobile-pages'),
|
34 |
+
'content' => (!is_plugin_active('pwa-for-wp/pwa-for-wp.php')?
|
35 |
+
'<div class="install-now ampforwp-activation-call-module-upgrade button " id="ampforwp-pwa-activation-call" data-secure="'.wp_create_nonce('verify_module').'">Activate this Module</div>'
|
36 |
+
: '<div class="col-wrapper">
|
37 |
+
<a href="'.admin_url('admin.php?page=pwaforwp&reference=ampforwp').'"> <div class="ampforwp-recommendation-btn updated-message"><p>Go to PWA Settings</p></div> </a>
|
38 |
+
</div>
|
39 |
+
').'<a class="amp_recommend_learnmore" href="https://ampforwp.com/tutorials/article/what-is-pwa-for-wp-and-why-its-included-in-the-amp/" target="_blank">Learn more</a>'
|
40 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
array(
|
42 |
'id' => 'ampforwp-performance',
|
43 |
'type' => 'section',
|
includes/features/push-notification/push-notification-options.php
CHANGED
@@ -210,6 +210,14 @@ function ampforwp_push_notification_options($opt_name){
|
|
210 |
),
|
211 |
$izt_opt3,
|
212 |
$izt_opt1,$izt_opt2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
array(
|
214 |
'id' => 'translation',
|
215 |
'type' => 'section',
|
210 |
),
|
211 |
$izt_opt3,
|
212 |
$izt_opt1,$izt_opt2,
|
213 |
+
array(
|
214 |
+
'id' => 'ampforwp-web-push-onesignal-popup',
|
215 |
+
'type' => 'switch',
|
216 |
+
'title' => 'Popup on Desktop',
|
217 |
+
'default' => 0,
|
218 |
+
'tooltip-subtitle' => 'Show Subscribe Button in Popup on Desktop',
|
219 |
+
'required' => array('ampforwp-web-push-onesignal', '=' , '1'),
|
220 |
+
),
|
221 |
array(
|
222 |
'id' => 'translation',
|
223 |
'type' => 'section',
|
includes/options/admin-config.php
CHANGED
@@ -699,6 +699,18 @@ $extension_listing_array = array(
|
|
699 |
'store_url'=>'https://accounts.ampforwp.com',
|
700 |
'is_activated'=>(is_plugin_active('forminator-for-amp/forminator-for-amp.php')? 1 : 2),
|
701 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
array(
|
703 |
'name'=>'Paid Memberships PRO for AMP',
|
704 |
'class'=>'new-ext',
|
@@ -4539,6 +4551,15 @@ Redux::setSection( $opt_name, array(
|
|
4539 |
array('signin-button','=',1)
|
4540 |
)
|
4541 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4542 |
array(
|
4543 |
'id' => 'signin-button-border-line',
|
4544 |
'class' => 'child_opt child_opt_arrow',
|
699 |
'store_url'=>'https://accounts.ampforwp.com',
|
700 |
'is_activated'=>(is_plugin_active('forminator-for-amp/forminator-for-amp.php')? 1 : 2),
|
701 |
),
|
702 |
+
array(
|
703 |
+
'name'=>'Happyforms for AMP',
|
704 |
+
'class'=>'new-ext',
|
705 |
+
'desc'=>'Add Happy forms Support in AMP',
|
706 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/happyforms-for-amp.png',
|
707 |
+
'price'=>'$39',
|
708 |
+
'url_link'=>'https://ampforwp.com/addons/happyforms-for-amp/',
|
709 |
+
'plugin_active_path'=> 'happyforms-for-amp/happyforms-for-amp.php',
|
710 |
+
'item_name'=>'Happyforms for AMP',
|
711 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
712 |
+
'is_activated'=>(is_plugin_active('happyforms-for-amp/happyforms-for-amp.php')? 1 : 2),
|
713 |
+
),
|
714 |
array(
|
715 |
'name'=>'Paid Memberships PRO for AMP',
|
716 |
'class'=>'new-ext',
|
4551 |
array('signin-button','=',1)
|
4552 |
)
|
4553 |
),
|
4554 |
+
array(
|
4555 |
+
'id' => 'signin-button-new-tab',
|
4556 |
+
'class' => 'child_opt child_opt_arrow',
|
4557 |
+
'title' => esc_html__('New Tab', 'accelerated-mobile-pages'),
|
4558 |
+
'tooltip-subtitle' => esc_html__('Open the button link in new tab','accelerated-mobile-pages'),
|
4559 |
+
'type' => 'switch',
|
4560 |
+
'default' => '1',
|
4561 |
+
'required' => array('signin-button', '=', '1')
|
4562 |
+
),
|
4563 |
array(
|
4564 |
'id' => 'signin-button-border-line',
|
4565 |
'class' => 'child_opt child_opt_arrow',
|
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php
CHANGED
@@ -5059,6 +5059,8 @@ class AMP_Allowed_Tags_Generated {
|
|
5059 |
array(
|
5060 |
'attr_spec_list' => array(
|
5061 |
'accept' => array(),
|
|
|
|
|
5062 |
'accesskey' => array(),
|
5063 |
'autocomplete' => array(),
|
5064 |
'autofocus' => array(),
|
5059 |
array(
|
5060 |
'attr_spec_list' => array(
|
5061 |
'accept' => array(),
|
5062 |
+
'mask' => array(),
|
5063 |
+
'mask-output' => array(),
|
5064 |
'accesskey' => array(),
|
5065 |
'autocomplete' => array(),
|
5066 |
'autofocus' => array(),
|
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.7
|
7 |
-
Stable tag: 1.0.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,14 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.76.14 (23rd April 2021) =
|
194 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
195 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 1.0.76.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= 1.0.76.15 (28th April 2021) =
|
194 |
+
* Improvements: Added an option to add one signal notification on the desktop #4377
|
195 |
+
* Improvements: Added an option to set Target for CTA button in swift theme #4995
|
196 |
+
* Improvements: Added an option to install PWA from options panel #4529
|
197 |
+
* Improvements: Added HappyForms Compatibility Extension #5001
|
198 |
+
* Fixed: Width in percentage not working for the audio from the Pennews Theme #4576
|
199 |
+
* Fixed: Need to allow two attributes in input tag #4998
|
200 |
+
|
201 |
= 1.0.76.14 (23rd April 2021) =
|
202 |
* Improvements: Added an option to add Schema Pro FAQ in AMP #4956
|
203 |
* Improvements: Added support for the audio from the Pennews Theme #4576
|
templates/design-manager/swift/header.php
CHANGED
@@ -268,9 +268,13 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
268 |
<?php amp_logo(); ?>
|
269 |
</div>
|
270 |
<div class="h-2">
|
271 |
-
|
|
|
|
|
|
|
|
|
272 |
<div class="h-sing">
|
273 |
-
<a
|
274 |
</div>
|
275 |
<?php } ?>
|
276 |
<?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
|
268 |
<?php amp_logo(); ?>
|
269 |
</div>
|
270 |
<div class="h-2">
|
271 |
+
<?php if( ampforwp_get_setting('signin-button-text') && ampforwp_get_setting('signin-button-link') ){
|
272 |
+
$new_tab = '';
|
273 |
+
if (ampforwp_get_setting('signin-button-new-tab')) {
|
274 |
+
$new_tab = 'target=_blank';
|
275 |
+
}?>
|
276 |
<div class="h-sing">
|
277 |
+
<a <?php echo esc_html($new_tab); ?> <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link'))?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
|
278 |
</div>
|
279 |
<?php } ?>
|
280 |
<?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
|
templates/features.php
CHANGED
@@ -9507,6 +9507,7 @@ function ampforwp_pennews_audio_embed(){
|
|
9507 |
if(empty($audio)){
|
9508 |
return;
|
9509 |
}
|
|
|
9510 |
$audio_str = substr( $audio, -4 );
|
9511 |
$html ='<div class="audio-iframe">';
|
9512 |
if ( wp_oembed_get( $audio ) ) {
|
9507 |
if(empty($audio)){
|
9508 |
return;
|
9509 |
}
|
9510 |
+
$audio = preg_replace('/<iframe(.*?)width="(.*?)%"(.*?)<\/iframe>/', '<iframe$1width="1000"$3</iframe>', $audio);
|
9511 |
$audio_str = substr( $audio, -4 );
|
9512 |
$html ='<div class="audio-iframe">';
|
9513 |
if ( wp_oembed_get( $audio ) ) {
|