Skip to content

Commit

Permalink
Merge branch 'Skodin-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastergalen committed Nov 30, 2016
2 parents 13fe816 + 1dcf592 commit d2377c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [ "laravel", "adsense", "ads" ],
"require": {
"php": ">=5.4.0",
"illuminate/view": "5.0.*|5.1.*|5.2.*"
"illuminate/view": "5.0.*|5.1.*|5.2.*|5.3.*"
},
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/AdsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function show($name) {
'ad_client' => config("ads.client_id"),
'ad_style' => config("ads.ads.$name.ad_style", "display:block;"),
'ad_slot' => config("ads.ads.$name.ad_unit_id"),
'ad_format' => config("ads.ads.$name.format", "auto")
'ad_format' => config("ads.ads.$name.ad_format", null)
]);
}
}
1 change: 0 additions & 1 deletion src/config/ads.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
'rectangle' => [
'ad_unit_id' => 1234567890,
'ad_style' => 'display:inline-block;width:300px;height:250px',
'ad_format' => 'auto'
]
]
];
Expand Down
14 changes: 9 additions & 5 deletions src/views/ad.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Mods Center Responsive -->
<ins class="adsbygoogle"
style="{!! $ad_style !!}"
data-ad-client="{!! $ad_client !!}"
data-ad-slot="{!! $ad_slot !!}"
data-ad-format="{!! $ad_format !!}"></ins>
style="{!! $ad_style !!}"
data-ad-client="{!! $ad_client !!}"
data-ad-slot="{!! $ad_slot !!}"
@if(isset($ad_format))
data-ad-format="{!! $ad_format !!}"
@endif
>
</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</script>

0 comments on commit d2377c3

Please sign in to comment.