Skip to content

Commit 64b06b1

Browse files
committed
Merge pull request #100 from rinatkhaziev/readme-updates
Readme updates
2 parents 776d2c1 + 261801c commit 64b06b1

File tree

3 files changed

+40
-29
lines changed

3 files changed

+40
-29
lines changed

ad-code-manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin URI: http://automattic.com
55
Description: Easy ad code management
66
Author: Rinat Khaziev, Jeremy Felt, Daniel Bachhuber, Automattic, doejo
7-
Version: 0.4.3-alpha
7+
Version: 0.5
88
Author URI: http://automattic.com
99
1010
GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
@@ -24,7 +24,7 @@
2424
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2525
2626
*/
27-
define( 'AD_CODE_MANAGER_VERSION', '0.4.3-alpha' );
27+
define( 'AD_CODE_MANAGER_VERSION', '0.5' );
2828
define( 'AD_CODE_MANAGER_ROOT' , dirname( __FILE__ ) );
2929
define( 'AD_CODE_MANAGER_FILE_PATH' , AD_CODE_MANAGER_ROOT . '/' . basename( __FILE__ ) );
3030
define( 'AD_CODE_MANAGER_URL' , plugins_url( '/', __FILE__ ) );

readme.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Ad Code Manager #
2-
**Contributors:** rinatkhaziev, jeremyfelt, danielbachhuber, carldanley, zztimur, automattic, doejo
3-
**Tags:** advertising, ad codes, ads, adsense, dfp, doubleclick for publishers
4-
**Requires at least:** 3.1
5-
**Tested up to:** 3.6-beta3
6-
**Stable tag:** 0.4.1
2+
**Contributors:** rinatkhaziev, jeremyfelt, danielbachhuber, carldanley, zztimur, automattic, doejo
3+
**Tags:** advertising, ad codes, ads, adsense, dfp, doubleclick for publishers
4+
**Requires at least:** 3.1
5+
**Tested up to:** 4.3
6+
**Stable tag:** 0.5
77

88
Manage your ad codes through the WordPress admin in a safe and easy way.
99

@@ -13,7 +13,7 @@ Ad Code Manager gives non-developers an interface in the WordPress admin for con
1313

1414
Some code-level configuration may be necessary to setup Ad Code Manager. Ad tags must be added (via `do_action()`) to your theme's template files where you'd like ads to appear. Alternatively, you can incorporate ad tags into your website with our widget and our shortcode. [Check out the configuration guide](http://vip.wordpress.com/documentation/configure-ad-code-manager-to-manage-the-advertisements-on-your-site/) for the full details.
1515

16-
A common set of parameters must also be defined for your ad provider. This includes the tag IDs used by your template, the default URL for your ad provider, and the default HTML surrounding that URL. Ad Code Manager comes with support for Google Doubleclick For Publishers (and Async), OpenX, and Google AdSense. All of the logic is abstracted, however, so configuring a different provider is relatively easy. Check `providers/doubleclick-for-publishers.php` for an idea of how to extend ACM to suit your needs.
16+
A common set of parameters must also be defined for your ad provider. This includes the tag IDs used by your template, the default URL for your ad provider, and the default HTML surrounding that URL. Ad Code Manager comes with support for Google Doubleclick For Publishers (and Async), and Google AdSense. All of the logic is abstracted, however, so configuring a different provider is relatively easy. Check `providers/doubleclick-for-publishers.php` for an idea of how to extend ACM to suit your needs.
1717

1818
Once this configuration is in place, the Ad Code Manager admin interface will allow you to add new ad codes, modify the parameters for your script URL, and define conditionals to determine when the ad code appears. Conditionals are core WordPress functions like is_page(), is_category(), or your own custom functions that evaluate certain expression and then return true or false.
1919

@@ -49,6 +49,9 @@ Since the plugin is in its early stages, there are a couple additional configura
4949

5050
## Upgrade Notice ##
5151

52+
### 0.5 ###
53+
DFP Async provider now supports multiple sizes. [Check out this snippet to see implementation](http://pastie.org/10422227)
54+
5255
### 0.4 ###
5356
Easier, streamlined configuration for Doubleclick for Publishers Async and Google AdSense.
5457

@@ -66,10 +69,13 @@ Flush the cache when adding or deleting ad codes, and set priority of 10 when a
6669

6770
## Changelog ##
6871

69-
### 0.4.3 (??? ?? ????) ###
72+
73+
### 0.5 (Sep 15, 2015) ###
74+
* Added support for flex sized DFP Async ads (see upgrade notice)
7075
* Added robots.txt entries for provider's crawlers
7176
* Bug fix: Prevent global `$post` polution if ad code is getting rendered inside a loop
7277
* New Italian translation courtesy of [sniperwolf](https://github.com/sniperwolf)
78+
* Using PHP5 constructs when initializing the widget
7379

7480
### 0.4.1 (Apr. 27, 2013) ###
7581
* Disabled rendering of ads on preview to avoid crawling errors. Thanks [Paul Gibbs](https://github.com/paulgibbs)
@@ -135,7 +141,7 @@ There are some filters which allow you to easily customize the output of the plu
135141
### acm_ad_tag_ids ###
136142

137143
Ad tag ids are used as a parameter when adding tags to your theme (e.g. do_action( 'acm_tag', 'my_top_leaderboard' )). The `url_vars` defined as part of each tag here will also be used to replace tokens in your default URL.
138-
144+
139145
Arguments:
140146
* array $tag_ids array of default tag ids
141147

@@ -145,7 +151,7 @@ Example usage: Add a new ad tag called 'my_top_leaderboard'
145151
add_filter( 'acm_ad_tag_ids', 'my_acm_ad_tag_ids' );
146152
function my_acm_ad_tag_ids( $tag_ids ) {
147153
$tag_ids[] = array(
148-
'tag' => 'my_top_leaderboard', // tag_id
154+
'tag' => 'my_top_leaderboard', // tag_id
149155
'url_vars' => array(
150156
'sz' => '728x90', // %sz% token
151157
'fold' => 'atf', // %fold% token
@@ -176,7 +182,7 @@ function my_acm_default_url( $url ) {
176182

177183
### acm_output_html ###
178184

179-
The HTML outputted by the `do_action( 'acm_tag', 'ad_tag_id' );` call in your theme. Support multiple ad formats ( e.g. Javascript ad tags, or simple HTML tags ) by adjusting the HTML rendered for a given ad tag.
185+
The HTML outputted by the `do_action( 'acm_tag', 'ad_tag_id' );` call in your theme. Support multiple ad formats ( e.g. Javascript ad tags, or simple HTML tags ) by adjusting the HTML rendered for a given ad tag.
180186

181187
The `%url%` token used in this HTML will be filled in with the URL defined with `acm_default_url`.
182188

@@ -217,8 +223,8 @@ Example usage:
217223
```php
218224
add_filter( 'acm_register_provider_slug', 'my_acm_register_provider_slug' );
219225
function my_acm_register_provider_slug( $providers ) {
220-
$providers->new_provider_slug = array(
221-
'provider' => 'My_New_Ad_Company_ACM_Provider',
226+
$providers->new_provider_slug = array(
227+
'provider' => 'My_New_Ad_Company_ACM_Provider',
222228
'table' => 'My_New_Ad_Company_ACM_WP_List_Table'
223229
);
224230
return $providers;
@@ -248,7 +254,7 @@ Output tokens can be registered depending on the needs of your setup. Tokens def
248254

249255
Arguments:
250256
* array $output_tokens Any existing output tokens
251-
* string $tag_id Unique tag id
257+
* string $tag_id Unique tag id
252258
* array $code_to_display Ad Code that matched conditionals
253259

254260
Example usage: Test to determine whether you're in test or production by passing ?test=on query argument
@@ -265,7 +271,7 @@ function my_acm_output_tokens( $output_tokens, $tag_id, $code_to_display ) {
265271

266272
Extend the list of usable conditional functions with your own awesome ones. We whitelist these so users can't execute random PHP functions.
267273

268-
Arguments:
274+
Arguments:
269275
* array $conditionals Default conditionals
270276

271277
Example usage: Register a few custom conditional callbacks

readme.txt

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: rinatkhaziev, jeremyfelt, danielbachhuber, carldanley, zztimur, automattic, doejo
33
Tags: advertising, ad codes, ads, adsense, dfp, doubleclick for publishers
44
Requires at least: 3.1
5-
Tested up to: 3.6-beta3
6-
Stable tag: 0.4.1
5+
Tested up to: 4.3
6+
Stable tag: 0.5
77

88
Manage your ad codes through the WordPress admin in a safe and easy way.
99

@@ -13,7 +13,7 @@ Ad Code Manager gives non-developers an interface in the WordPress admin for con
1313

1414
Some code-level configuration may be necessary to setup Ad Code Manager. Ad tags must be added (via `do_action()`) to your theme's template files where you'd like ads to appear. Alternatively, you can incorporate ad tags into your website with our widget and our shortcode. [Check out the configuration guide](http://vip.wordpress.com/documentation/configure-ad-code-manager-to-manage-the-advertisements-on-your-site/) for the full details.
1515

16-
A common set of parameters must also be defined for your ad provider. This includes the tag IDs used by your template, the default URL for your ad provider, and the default HTML surrounding that URL. Ad Code Manager comes with support for Google Doubleclick For Publishers (and Async), OpenX, and Google AdSense. All of the logic is abstracted, however, so configuring a different provider is relatively easy. Check `providers/doubleclick-for-publishers.php` for an idea of how to extend ACM to suit your needs.
16+
A common set of parameters must also be defined for your ad provider. This includes the tag IDs used by your template, the default URL for your ad provider, and the default HTML surrounding that URL. Ad Code Manager comes with support for Google Doubleclick For Publishers (and Async), and Google AdSense. All of the logic is abstracted, however, so configuring a different provider is relatively easy. Check `providers/doubleclick-for-publishers.php` for an idea of how to extend ACM to suit your needs.
1717

1818
Once this configuration is in place, the Ad Code Manager admin interface will allow you to add new ad codes, modify the parameters for your script URL, and define conditionals to determine when the ad code appears. Conditionals are core WordPress functions like is_page(), is_category(), or your own custom functions that evaluate certain expression and then return true or false.
1919

@@ -39,6 +39,9 @@ Since the plugin is in its early stages, there are a couple additional configura
3939

4040
== Upgrade Notice ==
4141

42+
= 0.5 =
43+
DFP Async provider now supports multiple sizes. [Check out this snippet to see implementation](http://pastie.org/10422227)
44+
4245
= 0.4 =
4346
Easier, streamlined configuration for Doubleclick for Publishers Async and Google AdSense.
4447

@@ -56,10 +59,12 @@ Flush the cache when adding or deleting ad codes, and set priority of 10 when a
5659

5760
== Changelog ==
5861

59-
= 0.4.3 (??? ?? ????) =
62+
= 0.5 (Sep 15, 2015) =
63+
* Added support for flex sized DFP Async ads (see upgrade notice)
6064
* Added robots.txt entries for provider's crawlers
6165
* Bug fix: Prevent global `$post` polution if ad code is getting rendered inside a loop
6266
* New Italian translation courtesy of [sniperwolf](https://github.com/sniperwolf)
67+
* Using PHP5 constructs when initializing the widget
6368

6469
= 0.4.1 (Apr. 27, 2013) =
6570
* Disabled rendering of ads on preview to avoid crawling errors. Thanks [Paul Gibbs](https://github.com/paulgibbs)
@@ -125,7 +130,7 @@ There are some filters which allow you to easily customize the output of the plu
125130
= acm_ad_tag_ids =
126131

127132
Ad tag ids are used as a parameter when adding tags to your theme (e.g. do_action( 'acm_tag', 'my_top_leaderboard' )). The `url_vars` defined as part of each tag here will also be used to replace tokens in your default URL.
128-
133+
129134
Arguments:
130135
* array $tag_ids array of default tag ids
131136

@@ -134,7 +139,7 @@ Example usage: Add a new ad tag called 'my_top_leaderboard'
134139
`add_filter( 'acm_ad_tag_ids', 'my_acm_ad_tag_ids' );
135140
function my_acm_ad_tag_ids( $tag_ids ) {
136141
$tag_ids[] = array(
137-
'tag' => 'my_top_leaderboard', // tag_id
142+
'tag' => 'my_top_leaderboard', // tag_id
138143
'url_vars' => array(
139144
'sz' => '728x90', // %sz% token
140145
'fold' => 'atf', // %fold% token
@@ -162,7 +167,7 @@ Example usage: Set your default ad code URL
162167

163168
= acm_output_html =
164169

165-
The HTML outputted by the `do_action( 'acm_tag', 'ad_tag_id' );` call in your theme. Support multiple ad formats ( e.g. Javascript ad tags, or simple HTML tags ) by adjusting the HTML rendered for a given ad tag.
170+
The HTML outputted by the `do_action( 'acm_tag', 'ad_tag_id' );` call in your theme. Support multiple ad formats ( e.g. Javascript ad tags, or simple HTML tags ) by adjusting the HTML rendered for a given ad tag.
166171

167172
The `%url%` token used in this HTML will be filled in with the URL defined with `acm_default_url`.
168173

@@ -200,8 +205,8 @@ Example usage:
200205

201206
`add_filter( 'acm_register_provider_slug', 'my_acm_register_provider_slug' );
202207
function my_acm_register_provider_slug( $providers ) {
203-
$providers->new_provider_slug = array(
204-
'provider' => 'My_New_Ad_Company_ACM_Provider',
208+
$providers->new_provider_slug = array(
209+
'provider' => 'My_New_Ad_Company_ACM_Provider',
205210
'table' => 'My_New_Ad_Company_ACM_WP_List_Table'
206211
);
207212
return $providers;
@@ -228,7 +233,7 @@ Output tokens can be registered depending on the needs of your setup. Tokens def
228233

229234
Arguments:
230235
* array $output_tokens Any existing output tokens
231-
* string $tag_id Unique tag id
236+
* string $tag_id Unique tag id
232237
* array $code_to_display Ad Code that matched conditionals
233238

234239
Example usage: Test to determine whether you're in test or production by passing ?test=on query argument
@@ -243,7 +248,7 @@ Example usage: Test to determine whether you're in test or production by passing
243248

244249
Extend the list of usable conditional functions with your own awesome ones. We whitelist these so users can't execute random PHP functions.
245250

246-
Arguments:
251+
Arguments:
247252
* array $conditionals Default conditionals
248253

249254
Example usage: Register a few custom conditional callbacks
@@ -280,7 +285,7 @@ Example usage: has_category() and has_tag() use has_term(), which requires the o
280285
if ( in_array( $cond_func, array( 'my_page_is_child_of' ) ) && $wp_query->is_page ) {
281286
$cond_args[] = $cond_args[] = $wp_query->queried_object->ID;
282287
}
283-
288+
284289
return $cond_args;
285290
}`
286291

@@ -336,7 +341,7 @@ Example usage:
336341

337342
`add_filter( 'acm_ad_code_count', function( $total ) { return 100; } );`
338343

339-
= acm_list_table_columns =
344+
= acm_list_table_columns =
340345

341346
This filter can alter table columns that are displayed in ACM UI.
342347

0 commit comments

Comments
 (0)