Version Description
- Improved: Avoid image stretching on front end (if user does not upload the proper image size)
- Tested with WP 4.9
Download this release
Release Info
Developer | mekshq |
Plugin | Meks Easy Ads Widget |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- css/style.css +7 -0
- inc/class-ads-widget.php +4 -1
- meks-easy-ads-widget.php +2 -2
- readme.txt +15 -10
css/style.css
CHANGED
@@ -20,4 +20,11 @@
|
|
20 |
.mks_ads_widget ul li a{
|
21 |
padding: 0;
|
22 |
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
20 |
.mks_ads_widget ul li a{
|
21 |
padding: 0;
|
22 |
margin: 0;
|
23 |
+
}
|
24 |
+
.mks_adswidget_ul li img {
|
25 |
+
width: auto;
|
26 |
+
height: 100%;
|
27 |
+
object-fit: cover;
|
28 |
+
-o-object-fit: cover;
|
29 |
+
font-family: 'object-fit: cover;'
|
30 |
}
|
inc/class-ads-widget.php
CHANGED
@@ -79,10 +79,13 @@ class MKS_Ads_Widget extends WP_Widget {
|
|
79 |
if( $instance['size'] == 'custom' ){
|
80 |
$height = $instance['ad_height'] ? $instance['ad_height'].'px' : 'auto';
|
81 |
$ad_size = 'style="width:'.$instance['ad_width'].'px; height:'.$height.';" width="'.$instance['ad_width'].'" height="'.$instance['ad_height'].'"';
|
|
|
82 |
} else if($instance['size'] == 'large'){
|
83 |
$ad_size = 'style="width:300px; height:250px;" width="300" height="250"';
|
|
|
84 |
} else if($instance['size'] == 'small'){
|
85 |
$ad_size = 'style="width:125px; height:125px;" width="125" height="125"';
|
|
|
86 |
}
|
87 |
|
88 |
$nofollow = $instance['nofollow'] ? 'rel="nofollow"' : '';
|
@@ -103,7 +106,7 @@ class MKS_Ads_Widget extends WP_Widget {
|
|
103 |
<?php else: ?>
|
104 |
<?php if( $ad['type'] === 'code' && !empty( $ad['code'] ) ) : ?>
|
105 |
<li data-showind="<?php echo $show_ind; ?>">
|
106 |
-
<div <?php echo $
|
107 |
<?php echo do_shortcode($ad['code']); ?>
|
108 |
</div>
|
109 |
</li>
|
79 |
if( $instance['size'] == 'custom' ){
|
80 |
$height = $instance['ad_height'] ? $instance['ad_height'].'px' : 'auto';
|
81 |
$ad_size = 'style="width:'.$instance['ad_width'].'px; height:'.$height.';" width="'.$instance['ad_width'].'" height="'.$instance['ad_height'].'"';
|
82 |
+
$ad_code_size = 'style="width:'.$instance['ad_width'].'px; height:'.$height.';"';
|
83 |
} else if($instance['size'] == 'large'){
|
84 |
$ad_size = 'style="width:300px; height:250px;" width="300" height="250"';
|
85 |
+
$ad_code_size = 'style="width:300px; height:250px;"';
|
86 |
} else if($instance['size'] == 'small'){
|
87 |
$ad_size = 'style="width:125px; height:125px;" width="125" height="125"';
|
88 |
+
$ad_code_size = 'style="width:125px; height:125px;"';
|
89 |
}
|
90 |
|
91 |
$nofollow = $instance['nofollow'] ? 'rel="nofollow"' : '';
|
106 |
<?php else: ?>
|
107 |
<?php if( $ad['type'] === 'code' && !empty( $ad['code'] ) ) : ?>
|
108 |
<li data-showind="<?php echo $show_ind; ?>">
|
109 |
+
<div <?php echo $ad_code_size; ?>>
|
110 |
<?php echo do_shortcode($ad['code']); ?>
|
111 |
</div>
|
112 |
</li>
|
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: 2.0.
|
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', '2.0.
|
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: 2.0.3
|
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', '2.0.3');
|
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.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -14,18 +14,19 @@ Display unlimited number of ads inside your WordPress widget.
|
|
14 |
|
15 |
With this plugin you can create unlimited number of ads inside your WordPress widget. There are several smart options provided to customize ads for your needs.
|
16 |
|
17 |
-
|
18 |
|
19 |
* Create unlimited number of ads inside one widget
|
20 |
* Choose from predefined sizes or define your custom size
|
21 |
-
*
|
22 |
-
*
|
23 |
-
*
|
|
|
24 |
|
25 |
-
Meks Easy Ads Widget plugin is created by
|
26 |
|
27 |
-
|
28 |
-
|
29 |
|
30 |
|
31 |
== Installation ==
|
@@ -36,7 +37,7 @@ Meks Easy Ads Widget plugin is created by <a href="http://mekshq.com" target="_b
|
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
-
For any questions, error reports and suggestions please visit
|
40 |
|
41 |
== Screenshots ==
|
42 |
|
@@ -46,6 +47,10 @@ For any questions, error reports and suggestions please visit http://mekshq.com/
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
49 |
= 2.0.2 =
|
50 |
* Improved: Some special characters in code ads were not rendered properly in special cases
|
51 |
* Improved: Ad links are now sanitized so ads are always displayed even if link URL is not specified
|
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.9
|
7 |
+
Stable tag: 2.0.3
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
14 |
|
15 |
With this plugin you can create unlimited number of ads inside your WordPress widget. There are several smart options provided to customize ads for your needs.
|
16 |
|
17 |
+
== Features ==
|
18 |
|
19 |
* Create unlimited number of ads inside one widget
|
20 |
* Choose from predefined sizes or define your custom size
|
21 |
+
* Support for both image ads and script based ads
|
22 |
+
* Randomize ads ordering
|
23 |
+
* Limit number of ads per view (page load)
|
24 |
+
* Autoplay rotate ads
|
25 |
|
26 |
+
Meks Easy Ads Widget plugin is created by [Meks](https://mekshq.com)
|
27 |
|
28 |
+
== Live example? ==
|
29 |
+
You can see Meks Easy Ads Widget live example on our [Herald theme demo website](https://mekshq.com/demo/herald)
|
30 |
|
31 |
|
32 |
== Installation ==
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
|
40 |
+
For any questions, error reports and suggestions please visit https://mekshq.com/contact
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 2.0.3 =
|
51 |
+
* Improved: Avoid image stretching on front end (if user does not upload the proper image size)
|
52 |
+
* Tested with WP 4.9
|
53 |
+
|
54 |
= 2.0.2 =
|
55 |
* Improved: Some special characters in code ads were not rendered properly in special cases
|
56 |
* Improved: Ad links are now sanitized so ads are always displayed even if link URL is not specified
|