Skip to content

Commit

Permalink
Manual ads
Browse files Browse the repository at this point in the history
  • Loading branch information
RubbaBoy committed Jul 14, 2019
1 parent f767452 commit 3ff324a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
17 changes: 17 additions & 0 deletions includes/ads.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

function createHorizontal() {
?>
<center>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1875272624841591"
data-ad-slot="7204855459"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
<?php
}
4 changes: 4 additions & 0 deletions includes/footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<?php
include_once 'ads.php';
createHorizontal();
?>
<div class="footer">
<div class="footer-contents col-12 col-sm-12 col-md-10 col-lg-10 col-xl-8">
<div class="left-column">
Expand Down
6 changes: 0 additions & 6 deletions includes/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ function head($title) {
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-84382008-3"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-1875272624841591",
enable_page_level_ads: true
});
</script>
<script>
window.dataLayer = window.dataLayer || [];

Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
include_once 'includes/default-section.php';
include_once 'includes/components.php';
include_once 'includes/ads.php';
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -47,6 +48,7 @@ classes, and much much more.</p>
</div>
<?php
endSection();
createHorizontal();
startSection('Features', 'features');
?>

Expand Down

0 comments on commit 3ff324a

Please sign in to comment.