AMP for WP – Accelerated Mobile Pages - Version 0.9.81

Version Description

(15th February 2018) = * Edge case fatal error on features.php fixed * Admin dashboard messup CSS fix #1731 * Custom CSS Output added in Swift

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 0.9.81
Comparing to
See all releases

Code changes from version 0.9.80 to 0.9.81

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.80
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.php');
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.80');
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.81
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.php');
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.81');
23
 
24
  // any changes to AMP_QUERY_VAR should be refelected here
25
  function ampforwp_generate_endpoint(){
pagebuilder/inc/admin-amp-page-builder.css CHANGED
@@ -845,7 +845,7 @@ position: fixed;
845
  border-bottom: 1px solid #f1f1f1;
846
  padding: 15px 10px 15px 15px;
847
  }
848
- .form-label {
849
  float: left;
850
  width: 15%;
851
  margin-bottom: 0;
@@ -862,26 +862,22 @@ position: fixed;
862
  .amp-form-control:hover .form-label{
863
  color: #000
864
  }
865
- .form-field {
866
  float: left;
867
  width: 70%;
868
  }
869
- label.form-label-radio {
870
  margin-right: 15px;
871
  }
872
- .form-field input, .form-field textarea{
873
  padding: 7px 8px;
874
  }
875
- .form-label > input[type=text], input[type=search], input[type=tel], input[type=time], input[type=url], input[type=week], input[type=password], input[type=checkbox], input[type=color], input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=month], input[type=number], .form-label > select, .form-label > textarea{
876
- padding: 0.3em 1em;
877
- line-height: 1.5;
878
- }
879
-
880
- .form-label > .form-control {
881
  margin-top: 0.5em;
882
  }
883
 
884
- .form-control {
885
 
886
  display: block;
887
  padding: 0.5em 1em;
@@ -1276,7 +1272,7 @@ a.amppb_accordion__panel:hover {
1276
  .rtl .amppb-module .module_label {
1277
  left: -35px;
1278
  }
1279
- .rtl .form-label{
1280
  margin-right:10px;
1281
  }
1282
  .rtl .amp-accordion-head .amp-accordion-label {
845
  border-bottom: 1px solid #f1f1f1;
846
  padding: 15px 10px 15px 15px;
847
  }
848
+ #amp-page-builder .form-label {
849
  float: left;
850
  width: 15%;
851
  margin-bottom: 0;
862
  .amp-form-control:hover .form-label{
863
  color: #000
864
  }
865
+ #amp-page-builder .form-field {
866
  float: left;
867
  width: 70%;
868
  }
869
+ #amp-page-builder label.form-label-radio {
870
  margin-right: 15px;
871
  }
872
+ #amp-page-builder .form-field input, #amp-page-builder .form-field textarea{
873
  padding: 7px 8px;
874
  }
875
+
876
+ #amp-page-builder .form-label > #amp-page-builder .form-control {
 
 
 
 
877
  margin-top: 0.5em;
878
  }
879
 
880
+ #amp-page-builder .form-control {
881
 
882
  display: block;
883
  padding: 0.5em 1em;
1272
  .rtl .amppb-module .module_label {
1273
  left: -35px;
1274
  }
1275
+ .rtl #amp-page-builder .form-label{
1276
  margin-right:10px;
1277
  }
1278
  .rtl .amp-accordion-head .amp-accordion-label {
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.9.4
7
- Stable tag: 0.9.80
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -182,6 +182,11 @@ You can contact us from [here](http://ampforwp.com/contact/)
182
 
183
  == Changelog ==
184
 
 
 
 
 
 
185
  = 0.9.80 (15th February 2018) =
186
  * View More details on the [blog post](https://ampforwp.com/introducing-swift/)
187
  * AMP Page Builder 3.0: The AMP Page Builder is a lightweight and much stable than ever and works flawlessly! [Read More](https://ampforwp.com/tutorials/article/amp-page-builder-installation/)
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.81
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
182
 
183
  == Changelog ==
184
 
185
+ = 0.9.81 (15th February 2018) =
186
+ * Edge case fatal error on features.php fixed
187
+ * Admin dashboard messup CSS fix #1731
188
+ * Custom CSS Output added in Swift
189
+
190
  = 0.9.80 (15th February 2018) =
191
  * View More details on the [blog post](https://ampforwp.com/introducing-swift/)
192
  * AMP Page Builder 3.0: The AMP Page Builder is a lightweight and much stable than ever and works flawlessly! [Read More](https://ampforwp.com/tutorials/article/amp-page-builder-installation/)
templates/design-manager/swift/style.php CHANGED
@@ -623,3 +623,4 @@ if( true == $redux_builder_amp['amp-rtl-select-option'] ) {?>
623
  .fsp-cnt{width:100%;float:none;display:inline-block;}
624
  }
625
  <?php } ?>
 
623
  .fsp-cnt{width:100%;float:none;display:inline-block;}
624
  }
625
  <?php } ?>
626
+ <?php echo $redux_builder_amp['css_editor']; ?>
templates/features.php CHANGED
@@ -4705,10 +4705,11 @@ function ampforwp_generate_inline_related_posts($content){
4705
 
4706
  $break_point = '</p>';
4707
  $content_parts = explode($break_point, $content);
4708
- array_walk($content_parts, function(&$value, $key) {
4709
- if(!empty(trim($value))){
4710
- $value .= '</p>';
4711
- }
 
4712
  }
4713
  );
4714
  if(count($content_parts)>1){
4705
 
4706
  $break_point = '</p>';
4707
  $content_parts = explode($break_point, $content);
4708
+ array_walk($content_parts, function(&$value, $key) {
4709
+ $value = trim($value);
4710
+ if(!empty($value)){
4711
+ $value .= '</p>';
4712
+ }
4713
  }
4714
  );
4715
  if(count($content_parts)>1){