Version Description
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.85.2 |
Comparing to | |
See all releases |
Code changes from version 0.9.85.1 to 0.9.85.2
- README.md +2 -2
- accelerated-moblie-pages.php +2 -2
- readme.txt +2 -2
- templates/design-manager/swift/style.php +1 -1
- templates/features.php +10 -26
README.md
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 0.9.85.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 0.9.85.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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.85.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -19,7 +19,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
19 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
20 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
21 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
22 |
-
define('AMPFORWP_VERSION','0.9.85.
|
23 |
|
24 |
// any changes to AMP_QUERY_VAR should be refelected here
|
25 |
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.85.2
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
19 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
20 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
21 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
22 |
+
define('AMPFORWP_VERSION','0.9.85.2');
|
23 |
|
24 |
// any changes to AMP_QUERY_VAR should be refelected here
|
25 |
function ampforwp_generate_endpoint(){
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 0.9.85.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 0.9.85.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
templates/design-manager/swift/style.php
CHANGED
@@ -471,7 +471,7 @@ if ( isset($redux_builder_amp['ampforwp-disqus-comments-support']) && $redux_bui
|
|
471 |
}
|
472 |
<?php } } ?>
|
473 |
<?php if ( isset($redux_builder_amp['ampforwp-dropcap']) && $redux_builder_amp['ampforwp-dropcap'] ) { ?>
|
474 |
-
.
|
475 |
float: left;
|
476 |
font-size: 75px;
|
477 |
line-height: 1;
|
471 |
}
|
472 |
<?php } } ?>
|
473 |
<?php if ( isset($redux_builder_amp['ampforwp-dropcap']) && $redux_builder_amp['ampforwp-dropcap'] ) { ?>
|
474 |
+
.cntn-wrp:first-child::first-letter {
|
475 |
float: left;
|
476 |
font-size: 75px;
|
477 |
line-height: 1;
|
templates/features.php
CHANGED
@@ -4470,7 +4470,14 @@ global $redux_builder_amp, $post;
|
|
4470 |
$featured_image_field = $redux_builder_amp['ampforwp-custom-fields-featured-image'];
|
4471 |
if(in_array($featured_image_field, $custom_fields_name)){
|
4472 |
$amp_img_src = $custom_fields[$featured_image_field][0];
|
4473 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4474 |
switch ($param) {
|
4475 |
case 'url':
|
4476 |
$output = $amp_img_src;
|
@@ -5761,7 +5768,7 @@ function ampforwp_default_logo($param=""){
|
|
5761 |
if($logo_url){
|
5762 |
$logo_id = get_theme_mod( 'custom_logo' );
|
5763 |
$logo_alt = get_post_meta( $logo_id, '_wp_attachment_image_alt', true) ;
|
5764 |
-
$image = getimagesize($redux_builder_amp['opt-media']['url']);
|
5765 |
|
5766 |
if(empty($image) || $image==false){
|
5767 |
$logo_id = attachment_url_to_postid($redux_builder_amp['opt-media']['url']);
|
@@ -6335,27 +6342,4 @@ if ( ! function_exists('ampforwp_amp2wp_fb') ) {
|
|
6335 |
}(document, "script", "facebook-jssdk"));</script>';
|
6336 |
}
|
6337 |
}
|
6338 |
-
}
|
6339 |
-
|
6340 |
-
// Dropcap Support in AMP
|
6341 |
-
add_filter('the_content', 'ampforwp_dropcapped_content',0);
|
6342 |
-
if ( ! function_exists('ampforwp_dropcapped_content') ) {
|
6343 |
-
function ampforwp_dropcapped_content($content) {
|
6344 |
-
global $redux_builder_amp;
|
6345 |
-
$new_content = $first = $remaining = $spanned_first_letter = '';
|
6346 |
-
if( function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint() && isset($redux_builder_amp['ampforwp-dropcap']) && $redux_builder_amp['ampforwp-dropcap'] ) {
|
6347 |
-
|
6348 |
-
// left trim $content
|
6349 |
-
$new_content = ltrim ( $content );
|
6350 |
-
// select first letter of $content
|
6351 |
-
$first = mb_substr( $new_content, 0, 1 );
|
6352 |
-
// select remaining letters of content
|
6353 |
-
$remaining = mb_substr( $new_content, 1 );
|
6354 |
-
// add <span> to the first letter for content
|
6355 |
-
$spanned_first_letter = '<span class="a-dc">' . $first . '</span>';
|
6356 |
-
// Merge
|
6357 |
-
$content = $spanned_first_letter . $remaining;
|
6358 |
-
}
|
6359 |
-
return $content;
|
6360 |
-
}
|
6361 |
-
}
|
4470 |
$featured_image_field = $redux_builder_amp['ampforwp-custom-fields-featured-image'];
|
4471 |
if(in_array($featured_image_field, $custom_fields_name)){
|
4472 |
$amp_img_src = $custom_fields[$featured_image_field][0];
|
4473 |
+
|
4474 |
+
$image = @getimagesize($amp_img_src);
|
4475 |
+
if(empty($image) || $image==false){
|
4476 |
+
$img_id = attachment_url_to_postid($amp_img_src);
|
4477 |
+
$imageDetail = wp_get_attachment_image_src( $img_id , 'full');
|
4478 |
+
$image[0] = $imageDetail[1];
|
4479 |
+
$image[1] = $imageDetail[2];
|
4480 |
+
}
|
4481 |
switch ($param) {
|
4482 |
case 'url':
|
4483 |
$output = $amp_img_src;
|
5768 |
if($logo_url){
|
5769 |
$logo_id = get_theme_mod( 'custom_logo' );
|
5770 |
$logo_alt = get_post_meta( $logo_id, '_wp_attachment_image_alt', true) ;
|
5771 |
+
$image = @getimagesize($redux_builder_amp['opt-media']['url']);
|
5772 |
|
5773 |
if(empty($image) || $image==false){
|
5774 |
$logo_id = attachment_url_to_postid($redux_builder_amp['opt-media']['url']);
|
6342 |
}(document, "script", "facebook-jssdk"));</script>';
|
6343 |
}
|
6344 |
}
|
6345 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|