Meks Easy Ads Widget - Version 1.2.1

Version Description

  • Added width and height dimensions to img tags (for better page speed score)
Download this release

Release Info

Developer mekshq
Plugin Icon 128x128 Meks Easy Ads Widget
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

inc/class-ads-widget.php CHANGED
@@ -68,11 +68,13 @@ class MKS_Ads_Widget extends WP_Widget {
68
  }
69
 
70
  $show_ind = 0;
71
-
72
- if($instance['size'] == 'custom'){
73
- $ad_size = 'style="width:'.$instance['ad_width'].'px; height:'.$instance['ad_height'].'px;"';
74
- } else {
75
- $ad_size = '';
 
 
76
  }
77
 
78
  $nofollow = $instance['nofollow'] ? 'rel="nofollow"' : '';
68
  }
69
 
70
  $show_ind = 0;
71
+
72
+ if( $instance['size'] == 'custom' ){
73
+ $ad_size = 'style="width:'.$instance['ad_width'].'px; height:'.$instance['ad_height'].'px;" width="'.$instance['ad_width'].'" height="'.$instance['ad_height'].'"';
74
+ } else if($instance['size'] == 'large'){
75
+ $ad_size = 'width="300" height="250"';
76
+ } else if($instance['size'] == 'small'){
77
+ $ad_size = 'width="125" height="125"';
78
  }
79
 
80
  $nofollow = $instance['nofollow'] ? 'rel="nofollow"' : '';
meks-easy-ads-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Meks Easy Ads Widget
4
  Plugin URI: http://mekshq.com
5
  Description: Display unlimited number of ads inside your WordPress widget. Specify custom ads size, randomize, rotate, enjoy!
6
  Author: Meks
7
- Version: 1.2
8
  Author URI: http://mekshq.com
9
  Text Domain: meks-easy-ads-widget
10
  Domain Path: /languages
@@ -30,7 +30,7 @@ Domain Path: /languages
30
 
31
  define ('MKS_ADS_WIDGET_URL', trailingslashit(plugin_dir_url(__FILE__)));
32
  define ('MKS_ADS_WIDGET_DIR', trailingslashit(plugin_dir_path(__FILE__)));
33
- define ('MKS_ADS_WIDGET_VER', '1.2');
34
 
35
  /* Initialize Widget */
36
  if(!function_exists('mks_ads_widget_init')):
4
  Plugin URI: http://mekshq.com
5
  Description: Display unlimited number of ads inside your WordPress widget. Specify custom ads size, randomize, rotate, enjoy!
6
  Author: Meks
7
+ Version: 1.2.1
8
  Author URI: http://mekshq.com
9
  Text Domain: meks-easy-ads-widget
10
  Domain Path: /languages
30
 
31
  define ('MKS_ADS_WIDGET_URL', trailingslashit(plugin_dir_url(__FILE__)));
32
  define ('MKS_ADS_WIDGET_DIR', trailingslashit(plugin_dir_path(__FILE__)));
33
+ define ('MKS_ADS_WIDGET_VER', '1.2.1');
34
 
35
  /* Initialize Widget */
36
  if(!function_exists('mks_ads_widget_init')):
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mekshq
3
  Donate link: http://mekshq.com/
4
  Tags: ad, ads, affiliate, niche, advertising, advertisement, marketing, sidebar, widget
5
  Requires at least: 3.0
6
- Tested up to: 4.4
7
- Stable tag: 1.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -46,6 +46,9 @@ For any questions, error reports and suggestions please email support@mekshq.com
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 1.2 =
50
  * Added an option to specify rotation speed
51
 
3
  Donate link: http://mekshq.com/
4
  Tags: ad, ads, affiliate, niche, advertising, advertisement, marketing, sidebar, widget
5
  Requires at least: 3.0
6
+ Tested up to: 4.5
7
+ Stable tag: 1.2.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 1.2.1 =
50
+ * Added width and height dimensions to img tags (for better page speed score)
51
+
52
  = 1.2 =
53
  * Added an option to specify rotation speed
54