Skip to content

Commit afe1700

Browse files
committed
Correct incorrect developer docs.
1 parent a9e8a41 commit afe1700

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/Developer-API.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Developer API
22

3-
A `global $DoubleClick` variable is defined on plugin init, making it possible to define breakpoints
3+
A `global $doubleclick` variable is defined on plugin init, making it possible to define breakpoints
44
and place ads directly within your theme.
55

66
__Quick Function Links:__
77

8-
* [$DoubleClick->register_breakpoint($identifier,$args)](#doubleclick-register_breakpointidentifierargs)
9-
* [$DoubleClick->place_ad($identifier,$size,$breakpoints)](#doubleclick-place_adidentifiersizebreakpoints)
8+
* [$doubleclick->register_breakpoint($identifier,$args)](#doubleclick-register_breakpointidentifierargs)
9+
* [$doubleclick->place_ad($identifier,$size,$breakpoints)](#doubleclick-place_adidentifiersizebreakpoints)
1010

1111
* * *
1212

1313
## 1. Define Breakpoints
1414

15-
##### $DoubleClick->register_breakpoint($identifier,$args)
15+
##### $doubleclick->register_breakpoint($identifier,$args)
1616

1717
You can make it easier for users to target breakpoints by defining them in `functions.php`
1818

@@ -21,16 +21,16 @@ You can make it easier for users to target breakpoints by defining them in `func
2121
```php
2222
function ad_setup() {
2323

24-
global $DoubleClick;
24+
global $doubleclick;
2525

2626
// Optionally define the network code directly in functions.php.
27-
// $DoubleClick->networkCode = "xxxxxxx";
27+
// $doubleclick->network_code = "xxxxxxx";
2828

2929
/* Define Breakpoints */
30-
$DoubleClick->register_breakpoint('phone', array('minWidth'=> 0,'maxWidth'=>720));
31-
$DoubleClick->register_breakpoint('tablet', array('minWidth'=>760,'maxWidth'=>1040));
32-
$DoubleClick->register_breakpoint('desktop', array('minWidth'=>1040,'maxWidth'=>1220));
33-
$DoubleClick->register_breakpoint('xl', array('minWidth'=>1220,'maxWidth'=>9999));
30+
$doubleclick->register_breakpoint('phone', array('min_width'=> 0,'max_width'=>720));
31+
$doubleclick->register_breakpoint('tablet', array('min_width'=>760,'max_width'=>1040));
32+
$doubleclick->register_breakpoint('desktop', array('min_width'=>1040,'max_width'=>1220));
33+
$doubleclick->register_breakpoint('xl', array('min_width'=>1220,'max_width'=>9999));
3434

3535
}
3636
add_action('dfw_setup','ad_setup');
@@ -50,18 +50,18 @@ __$args__
5050

5151
## 2. Place Ads
5252

53-
### $DoubleClick->place_ad($identifier,$sizes,$args)
53+
### $doubleclick->place_ad($identifier,$sizes,$args)
5454

5555
Prints DOM to display an ad at the given breakpoint.
5656

5757
##### Example:
5858

5959
```php
6060

61-
global $DoubleClick;
61+
global $doubleclick;
6262

6363
// simple call:
64-
$DoubleClick->place_ad('my-identifier','300x250');
64+
$doubleclick->place_ad('my-identifier','300x250');
6565

6666
// more options:
6767
$sizes = array(
@@ -73,7 +73,7 @@ $args = array(
7373
'lazyLoad' => false // if set to true, the ad will load only once its within view on screen.
7474
);
7575

76-
$DoubleClick->place_ad('my-identifier',$sizes,$args);
76+
$doubleclick->place_ad('my-identifier',$sizes,$args);
7777
```
7878

7979

0 commit comments

Comments
 (0)