diff --git a/README.md b/README.md
index 102df1f..34a207e 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,13 @@
##WP AdZonia##
WordPress Advertisement Manager Plugin
Version 1.2.1
-Developer: Mayeenul Islam (@mayeenulislam)
+Developer: Mayeenul Islam (@mayeenulislam)
[**nano**designs](http://nanodesignsbd.com)
A simplest and easiest Advertisement Manager Plugin for WordPress sites, and most astonishingly - it's in WordPress' way. You can call the advertisements into your template using a simple function: , or you can call the ad in anywhere using the shortcode:
[wp-adzonia id="#"]
, or you can use the AdZonia widget into any widget-enabled area of your site.
+A new feature is added in v1.2.1 as a *beta feature* that enables any ad to show in predefined areas directly from the admin panel, without any coding. *Isn't that cool!*
+
###Screenshots###
List of advertisements
@@ -28,6 +30,7 @@ Thanks also to Shimul Islam, Tareq Hasan, Sisir Kanti Adhikari. And thanks also * Admin panel tabs for Image ad and Code ad * No-js elements are considered and implemented * Additional functions for more user-friendliness +* Show ad in predefined places *Beta Feature ####1.2#### * Completely Translation-ready diff --git a/assets/banner-1544x500.png b/assets/banner-1544x500.png index b398ed0..a694c49 100644 Binary files a/assets/banner-1544x500.png and b/assets/banner-1544x500.png differ diff --git a/assets/banner-772x250.png b/assets/banner-772x250.png index c6c37c1..805f79d 100644 Binary files a/assets/banner-772x250.png and b/assets/banner-772x250.png differ diff --git a/assets/screenshot-2.png b/assets/screenshot-2.png index 6630ad7..6367c7c 100644 Binary files a/assets/screenshot-2.png and b/assets/screenshot-2.png differ diff --git a/css/admin-style.css b/css/admin-style.css index 6db00e5..fff5188 100644 --- a/css/admin-style.css +++ b/css/admin-style.css @@ -1 +1 @@ -.text-center{text-align:center}.dead{color:grey}.required,.ad-inactive{color:#dd3d36}.orange{color:orange}.clearfix{clear:both}.row:before,.row:after{content:"";display:table}.row:after{clear:both}.adz-meta-table td{vertical-align:top}.adz-meta-div .p-icon{font-size:.8125rem;vertical-align:sub}.adz-label-td,.adz-info-td{min-width:80px;font-size:.8125rem}.adz-img-table .adz-info-td{width:80%}.adz-img-table input[type='text']#wpadz_ad_image{width:85%;margin-right:1%}.adz-info-td input[type='text'],.adz-info-td textarea{-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;border-radius:5px;width:100%}.adz-info-td textarea#wpadz_ad_code{font-family:Consolas,Monaco,monospace}#adzonia-info{background:#f3f3f3}body.post-type-adzonia.post-new-php #postexcerpt.postbox{background:#f3f3f3}.adz-tooltip-icon{font-size:1.125rem;color:#999;position:relative;cursor:pointer}.adz-tooltip-icon:hover{color:#555}.adz-tooltip-icon:hover:after{content:attr(data-tooltip);position:absolute;background-color:rgba(0,0,0,0.6);color:#fff;padding:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;-khtml-border-radius:10px;border-radius:10px;z-index:9999;white-space:normal;width:160px;top:-5px;left:20px;font-family:"Open Sans",sans-serif;font-size:.8125rem;line-height:1.2}#adzonia-tabs ul.tab-switches{margin:0;padding:0}#adzonia-tabs ul.tab-switches li{display:inline-block;float:left;border:solid 1px #ccc;font-size:.9rem;margin-bottom:0}#adzonia-tabs ul.tab-switches li:first-of-type{-webkit-border-radius:5px 0 0 5px;-moz-border-radius:5px 0 0 5px;-o-border-radius:5px 0 0 5px;-khtml-border-radius:5px 0 0 5px;border-radius:5px 0 0 5px;border-right-width:0}#adzonia-tabs ul.tab-switches li:last-of-type{-webkit-border-radius:0 5px 5px 0;-moz-border-radius:0 5px 5px 0;-o-border-radius:0 5px 5px 0;-khtml-border-radius:0 5px 5px 0;border-radius:0 5px 5px 0;border-left-width:0}#adzonia-tabs ul.tab-switches li.ui-state-default{background-color:#dbdbdb}#adzonia-tabs ul.tab-switches li.ui-state-default a{color:#666;text-shadow:0 1px 0 #fff}#adzonia-tabs ul.tab-switches li.ui-tabs-active{background-color:#2ea2cc;border-color:#0074a2}#adzonia-tabs ul.tab-switches li.ui-tabs-active a{color:#fff;text-shadow:0 0 0 #fff}#adzonia-tabs ul.tab-switches li a{display:block;padding:5px 30px;text-decoration:none}#adzonia-tabs ul.tab-switches li a:focus{border:0;-webkit-box-shadow:0 0 0 #fff;-moz-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff}#adzonia-tabs .adzonia-tab-contents{padding-top:20px} \ No newline at end of file +.text-center{text-align:center}.dead{color:grey}.required,.ad-inactive{color:#dd3d36}.orange{color:orange}.clearfix{clear:both}.row:before,.row:after{content:"";display:table}.row:after{clear:both}.adzonia-left-column{float:left;width:78%}.adzonia-right-column{float:right;width:20%}@media(max-width:728px){.adzonia-left-column,.adzonia-right-column{float:none;clear:both;width:100%}}.adz-meta-table td{vertical-align:top}.adz-meta-div .p-icon{font-size:.8125rem;vertical-align:sub}.adz-label-td,.adz-info-td{min-width:80px;font-size:.8125rem}.adz-img-table .adz-info-td{width:80%}.adz-img-table input[type='text']#wpadz_ad_image{width:85%;margin-right:1%}.adz-info-td input[type='text'],.adz-info-td textarea{-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;border-radius:5px;width:100%}.adz-info-td textarea#wpadz_ad_code{font-family:Consolas,Monaco,monospace}#adzonia-info{background:#f3f3f3}body.post-type-adzonia.post-new-php #postexcerpt.postbox{background:#f3f3f3}.adz-tooltip-icon{font-size:1.125rem;color:#999;position:relative;cursor:pointer}.adz-tooltip-icon:hover{color:#555}.adz-tooltip-icon:hover:after{content:attr(data-tooltip);position:absolute;background-color:rgba(0,0,0,0.6);color:#fff;padding:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;-khtml-border-radius:10px;border-radius:10px;z-index:9999;white-space:normal;width:160px;top:-5px;left:20px;font-family:"Open Sans",sans-serif;font-size:.8125rem;line-height:1.2}#adzonia-tabs ul.tab-switches{margin:0;padding:0}#adzonia-tabs ul.tab-switches li{display:inline-block;float:left;border:solid 1px #ccc;font-size:.9rem;margin-bottom:0}#adzonia-tabs ul.tab-switches li:first-of-type{-webkit-border-radius:5px 0 0 5px;-moz-border-radius:5px 0 0 5px;-o-border-radius:5px 0 0 5px;-khtml-border-radius:5px 0 0 5px;border-radius:5px 0 0 5px;border-right-width:0}#adzonia-tabs ul.tab-switches li:last-of-type{-webkit-border-radius:0 5px 5px 0;-moz-border-radius:0 5px 5px 0;-o-border-radius:0 5px 5px 0;-khtml-border-radius:0 5px 5px 0;border-radius:0 5px 5px 0;border-left-width:0}#adzonia-tabs ul.tab-switches li.ui-state-default{background-color:#dbdbdb}#adzonia-tabs ul.tab-switches li.ui-state-default a{color:#666;text-shadow:0 1px 0 #fff}#adzonia-tabs ul.tab-switches li.ui-tabs-active{background-color:#2ea2cc;border-color:#0074a2}#adzonia-tabs ul.tab-switches li.ui-tabs-active a{color:#fff;text-shadow:0 0 0 #fff}#adzonia-tabs ul.tab-switches li a{display:block;padding:5px 30px;text-decoration:none}#adzonia-tabs ul.tab-switches li a:focus{border:0;-webkit-box-shadow:0 0 0 #fff;-moz-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff}#adzonia-tabs .adzonia-tab-contents{padding-top:20px} \ No newline at end of file diff --git a/css/admin-style.less b/css/admin-style.less index 448938b..6a67075 100644 --- a/css/admin-style.less +++ b/css/admin-style.less @@ -31,6 +31,22 @@ .row:after{ clear: both; } +.adzonia-left-column{ + float: left; + width: 78%; +} +.adzonia-right-column{ + float: right; + width: 20%; +} +@media (max-width:728px){ + .adzonia-left-column, + .adzonia-right-column{ + float: none; + clear: both; + width: 100%; + } +} .adz-meta-table{ td{ vertical-align: top; diff --git a/dev/DEV-DIRECTIVES.md b/dev/DEV-DIRECTIVES.md index 81431cc..8fbaf81 100644 --- a/dev/DEV-DIRECTIVES.md +++ b/dev/DEV-DIRECTIVES.md @@ -1,9 +1,10 @@ #Direction for the Developers -NO NEED TO COPY the following files: +**NO NEED TO COPY** the following files: -- lessmixins.less -- adzonia-scripts.js (after changes just minify it and replace the js/adzonia-scripts.min.js) +-lessmixins.less
+- adzonia-scripts.js
(after changes just minify it and replace the js/adzonia-scripts.min.js
)
+---
**nano**designs[wp-adzonia id="#"]
into the body of any post or page or shortcode enabled widget. Just add the ID of the ad into the hash (#).', 'wp-adzonia' ); ?><?php if ( function_exists( "show_adzonia" ) ) show_adzonia( # ); ?>
. Just add the ID of the ad into the hash (#).', 'wp-adzonia' ); ?>AdZonia GitHub manual. To reduce the plugin size we shifted the manual there.', 'wp-adzonia' ); ?>
\ No newline at end of file diff --git a/wp-adzonia.php b/wp-adzonia.php index 3216972..70cf437 100644 --- a/wp-adzonia.php +++ b/wp-adzonia.php @@ -64,12 +64,20 @@ function adzonia_settings_page_callback() {