Version Description
(1st May 2019) = * Fixed: Alignment problem when right sidebar is enable in blog page and there is no featured image in the posts #3057
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.97.50.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.97.50 to 0.9.97.50.1
- README.md +4 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +3 -0
- readme.txt +4 -1
- templates/design-manager/swift/index.php +2 -2
- templates/design-manager/swift/style.php +23 -19
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.1.1
|
7 |
-
Stable tag: 0.9.97.50
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -183,6 +183,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
183 |
|
184 |
== Changelog ==
|
185 |
|
|
|
|
|
|
|
186 |
= 0.9.97.50 (29th April 2019) =
|
187 |
* Added: New Icon of Telegram in all the Designs #2448
|
188 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 0.9.97.50.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
+
= 0.9.97.50.1 (1st May 2019) =
|
187 |
+
* Fixed: Alignment problem when right sidebar is enable in blog page and there is no featured image in the posts #3057
|
188 |
+
|
189 |
= 0.9.97.50 (29th April 2019) =
|
190 |
* Added: New Icon of Telegram in all the Designs #2448
|
191 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
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.97.50
|
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','0.9.97.50');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
// any changes to AMP_QUERY_VAR should be refelected here
|
26 |
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.97.50.1
|
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','0.9.97.50.1');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
// any changes to AMP_QUERY_VAR should be refelected here
|
26 |
function ampforwp_generate_endpoint(){
|
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
3 |
= 0.9.97.50 (29th April 2019) =
|
4 |
* Added: New Icon of Telegram in all the Designs #2448
|
5 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 0.9.97.50.1 (1st May 2019) =
|
4 |
+
* Fixed: Alignment problem when right sidebar is enable in blog page and there is no featured image in the posts #3057
|
5 |
+
|
6 |
= 0.9.97.50 (29th April 2019) =
|
7 |
* Added: New Icon of Telegram in all the Designs #2448
|
8 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
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.1.1
|
7 |
-
Stable tag: 0.9.97.50
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -184,6 +184,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
187 |
= 0.9.97.50 (29th April 2019) =
|
188 |
* Added: New Icon of Telegram in all the Designs #2448
|
189 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 0.9.97.50.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 0.9.97.50.1 (1st May 2019) =
|
188 |
+
* Fixed: Alignment problem when right sidebar is enable in blog page and there is no featured image in the posts #3057
|
189 |
+
|
190 |
= 0.9.97.50 (29th April 2019) =
|
191 |
* Added: New Icon of Telegram in all the Designs #2448
|
192 |
* Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
|
templates/design-manager/swift/index.php
CHANGED
@@ -21,10 +21,10 @@
|
|
21 |
?>
|
22 |
<div class="fbp">
|
23 |
<?php if (ampforwp_has_post_thumbnail() ) { $argsbig = array("tag"=>'div',"tag_class"=>'image-container','image_size'=>'full','image_crop'=>'true','image_crop_width'=>723,'image_crop_height'=>394, 'responsive'=> true); ?>
|
24 |
-
<div class="fbp-img">
|
25 |
<?php amp_loop_image($argsbig); ?>
|
26 |
</div> <?php } ?>
|
27 |
-
<div class="fbp-cnt">
|
28 |
<?php amp_loop_category(); ?>
|
29 |
<?php amp_loop_title(); ?>
|
30 |
<div class="at-dt">
|
21 |
?>
|
22 |
<div class="fbp">
|
23 |
<?php if (ampforwp_has_post_thumbnail() ) { $argsbig = array("tag"=>'div',"tag_class"=>'image-container','image_size'=>'full','image_crop'=>'true','image_crop_width'=>723,'image_crop_height'=>394, 'responsive'=> true); ?>
|
24 |
+
<div class="fbp-img fbp-c">
|
25 |
<?php amp_loop_image($argsbig); ?>
|
26 |
</div> <?php } ?>
|
27 |
+
<div class="fbp-cnt fbp-c">
|
28 |
<?php amp_loop_category(); ?>
|
29 |
<?php amp_loop_title(); ?>
|
30 |
<div class="at-dt">
|
templates/design-manager/swift/style.php
CHANGED
@@ -325,10 +325,17 @@ padding: <?php echo esc_html($redux_builder_amp['primary-menu-padding-control'][
|
|
325 |
|
326 |
if( ampforwp_is_home() || is_archive() || is_search() || (function_exists('is_shop') && is_shop()) || ampforwp_is_blog() ) { ?>
|
327 |
.hmp{margin-top:34px;display:inline-block;width:100%; }
|
328 |
-
.fbp{width:100%;display:
|
329 |
.fbp-img a{display:block;line-height:0;}
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
.fbp-cnt .loop-category{margin-bottom:12px;}
|
333 |
.fsp-cnt .loop-category{margin-bottom:7px;}
|
334 |
.fsp-cnt .loop-category li {font-weight: 500;}
|
@@ -377,12 +384,12 @@ echo $fontFamily;
|
|
377 |
@media(max-width:1110px){
|
378 |
.amppb-fluid .col{max-width:95%}
|
379 |
.sf-img .wp-caption-text{width:100%;padding:10px 40px;}
|
380 |
-
.fbp-img{
|
381 |
.fbp-img amp-img img{width:100%;}
|
382 |
.fbp-cnt h2 {font-size: 28px;line-height: 34px;}
|
383 |
}
|
384 |
@media(max-width:768px){
|
385 |
-
.fbp-img {
|
386 |
.hmp{margin:0;}
|
387 |
.fbp-cnt {float: none;width: 100%;margin-left: 0px;margin-top:10px;display:inline-block;}
|
388 |
.fbp-cnt .loop-category{margin-bottom:5px;}
|
@@ -1136,11 +1143,8 @@ if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar')
|
|
1136 |
padding-right: 20px;
|
1137 |
}
|
1138 |
/*** Home page ***/
|
1139 |
-
.fbp-
|
1140 |
-
|
1141 |
-
width: 30%;
|
1142 |
-
margin-left: 20px;
|
1143 |
-
}
|
1144 |
.b-w .fsp, .arch-psts .fsp{
|
1145 |
flex-basis: calc(49.33% - 30px);
|
1146 |
}
|
@@ -1169,6 +1173,7 @@ if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar')
|
|
1169 |
.fbp-cnt{
|
1170 |
width:100%;
|
1171 |
}
|
|
|
1172 |
.pg-lft{
|
1173 |
width:100%;
|
1174 |
padding:0;
|
@@ -1178,7 +1183,7 @@ if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar')
|
|
1178 |
}
|
1179 |
}
|
1180 |
<?php }
|
1181 |
-
if ( ( true == ampforwp_get_setting('gbl-sidebar') && (ampforwp_is_front_page() || ampforwp_is_home()) ) || ( true == ampforwp_get_setting('swift-sidebar') && is_single() ) ) { ?>
|
1182 |
/*** Sidebar CSS ***/
|
1183 |
<?php if ( is_active_sidebar( 'swift-sidebar' ) ) : ?>
|
1184 |
.sdbr-right{
|
@@ -1806,8 +1811,11 @@ if( true == $redux_builder_amp['amp-rtl-select-option'] ) {?>
|
|
1806 |
.h-3 {order: -2;justify-content: flex-start;}
|
1807 |
.h-3 .h-srch{margin-left:0;}
|
1808 |
.h-3 .h-nav {order: -1;margin: 0px 10px 0px 0;}
|
1809 |
-
|
1810 |
-
.fbp-
|
|
|
|
|
|
|
1811 |
.fbp-cnt, .fsp-cnt{text-align:right;}
|
1812 |
.right a, .left a{direction:rtl;}
|
1813 |
.right a:after{padding:0px 6px 0px 0px;top:-1px;}
|
@@ -1831,18 +1839,14 @@ if( true == $redux_builder_amp['amp-rtl-select-option'] ) {?>
|
|
1831 |
.archive .author-img {float: right;}
|
1832 |
.archive .author-img amp-img {margin: 0px 0px 10px 12px;}
|
1833 |
.amp-archive-title, .amp-archive-desc{text-align:right;}
|
1834 |
-
|
1835 |
-
.fbp-img{float:right;}
|
1836 |
-
.fbp-cnt{width:33%;}
|
1837 |
-
}
|
1838 |
@media(max-width:768px){
|
1839 |
-
.fbp-
|
1840 |
.fsp-img {float: right;margin-right: 0;margin-left:20px;}
|
1841 |
.rlp-image {float: right;margin-left: 15px;margin-right: 0;}
|
1842 |
.sp-rt{margin-right:0}
|
1843 |
}
|
1844 |
@media(max-width:480px){
|
1845 |
-
.fbp-cnt{width:100%;margin-right:0;}
|
1846 |
.next a {text-align: left;}
|
1847 |
.next span{right:auto;left:0;}
|
1848 |
.post-date .post-edit-link {float: left;}
|
325 |
|
326 |
if( ampforwp_is_home() || is_archive() || is_search() || (function_exists('is_shop') && is_shop()) || ampforwp_is_blog() ) { ?>
|
327 |
.hmp{margin-top:34px;display:inline-block;width:100%; }
|
328 |
+
.fbp{width:100%;display: flex;flex-wrap: wrap;margin:15px 15px 20px 15px;}
|
329 |
.fbp-img a{display:block;line-height:0;}
|
330 |
+
|
331 |
+
<?php if(true == ampforwp_get_setting('ampforwp-full-post-in-loop')){?>
|
332 |
+
.fbp-img{width:100%;}
|
333 |
+
<?php }else{ ?>
|
334 |
+
.fbp-c{flex: 1 0 100%;}
|
335 |
+
.fbp-img{flex-basis: calc(65%);margin-right:30px;}
|
336 |
+
.fbp-cnt{flex-basis: calc(31%);}
|
337 |
+
<?php } ?>
|
338 |
+
|
339 |
.fbp-cnt .loop-category{margin-bottom:12px;}
|
340 |
.fsp-cnt .loop-category{margin-bottom:7px;}
|
341 |
.fsp-cnt .loop-category li {font-weight: 500;}
|
384 |
@media(max-width:1110px){
|
385 |
.amppb-fluid .col{max-width:95%}
|
386 |
.sf-img .wp-caption-text{width:100%;padding:10px 40px;}
|
387 |
+
.fbp-img{flex-basis: calc(64%);}
|
388 |
.fbp-img amp-img img{width:100%;}
|
389 |
.fbp-cnt h2 {font-size: 28px;line-height: 34px;}
|
390 |
}
|
391 |
@media(max-width:768px){
|
392 |
+
.fbp-img {flex-basis: calc(100%);margin-right:0;}
|
393 |
.hmp{margin:0;}
|
394 |
.fbp-cnt {float: none;width: 100%;margin-left: 0px;margin-top:10px;display:inline-block;}
|
395 |
.fbp-cnt .loop-category{margin-bottom:5px;}
|
1143 |
padding-right: 20px;
|
1144 |
}
|
1145 |
/*** Home page ***/
|
1146 |
+
.fbp-img{margin:0px 10px 10px 0px;}
|
1147 |
+
.fbp-cnt {flex-basis: calc(100%);}
|
|
|
|
|
|
|
1148 |
.b-w .fsp, .arch-psts .fsp{
|
1149 |
flex-basis: calc(49.33% - 30px);
|
1150 |
}
|
1173 |
.fbp-cnt{
|
1174 |
width:100%;
|
1175 |
}
|
1176 |
+
.fbp-img{margin:0px;}
|
1177 |
.pg-lft{
|
1178 |
width:100%;
|
1179 |
padding:0;
|
1183 |
}
|
1184 |
}
|
1185 |
<?php }
|
1186 |
+
if ( ( true == ampforwp_get_setting('gbl-sidebar') && (ampforwp_is_front_page() || ampforwp_is_home()) || ampforwp_is_blog()) || ( true == ampforwp_get_setting('swift-sidebar') && is_single() ) ) { ?>
|
1187 |
/*** Sidebar CSS ***/
|
1188 |
<?php if ( is_active_sidebar( 'swift-sidebar' ) ) : ?>
|
1189 |
.sdbr-right{
|
1811 |
.h-3 {order: -2;justify-content: flex-start;}
|
1812 |
.h-3 .h-srch{margin-left:0;}
|
1813 |
.h-3 .h-nav {order: -1;margin: 0px 10px 0px 0;}
|
1814 |
+
<?php if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar') && is_active_sidebar( 'swift-sidebar' ) ) { ?>
|
1815 |
+
.fbp-img {margin: 0px 0px 10px 10px;}
|
1816 |
+
<?php } else{ ?>
|
1817 |
+
.fbp-img{margin-left: 30px;margin-right: 0;}
|
1818 |
+
<?php } ?>
|
1819 |
.fbp-cnt, .fsp-cnt{text-align:right;}
|
1820 |
.right a, .left a{direction:rtl;}
|
1821 |
.right a:after{padding:0px 6px 0px 0px;top:-1px;}
|
1839 |
.archive .author-img {float: right;}
|
1840 |
.archive .author-img amp-img {margin: 0px 0px 10px 12px;}
|
1841 |
.amp-archive-title, .amp-archive-desc{text-align:right;}
|
1842 |
+
|
|
|
|
|
|
|
1843 |
@media(max-width:768px){
|
1844 |
+
.fbp-img{margin-left: 0px;margin-right: 0;}
|
1845 |
.fsp-img {float: right;margin-right: 0;margin-left:20px;}
|
1846 |
.rlp-image {float: right;margin-left: 15px;margin-right: 0;}
|
1847 |
.sp-rt{margin-right:0}
|
1848 |
}
|
1849 |
@media(max-width:480px){
|
|
|
1850 |
.next a {text-align: left;}
|
1851 |
.next span{right:auto;left:0;}
|
1852 |
.post-date .post-edit-link {float: left;}
|