Skip to content

Commit

Permalink
Merge pull request #39 from digitalutsc/issue-37
Browse files Browse the repository at this point in the history
Separated analytics and service code
  • Loading branch information
kylehuynh205 authored Jun 6, 2024
2 parents 9ddd7af + 7ed70fd commit 67a11c5
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 8 deletions.
3 changes: 2 additions & 1 deletion 403.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion 500.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion 502.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion 503.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion 504.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
3 changes: 2 additions & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
require_once "functions.php";

require_once "../services.php";
use Noid\Lib\Helper;
use Noid\Lib\Noid;
use Noid\Lib\Storage\DatabaseInterface;
Expand Down Expand Up @@ -700,6 +700,7 @@ function enableShowHideMetadataColumn() {

</head>
<body>
<?php embedServices(); ?>
<div class="container">
<div class="row">
<div class="col-sm text-center">
Expand Down
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php require_once "services.php"; ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
Expand Down Expand Up @@ -70,7 +71,7 @@

</head>
<body>
<?php embedServices(); ?>
<div id="page" class="page">

<div class="pixfort_normal_1" id="section_header_1_dark">
Expand Down
10 changes: 10 additions & 0 deletions services.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
function embedServices() {
embedGoogleAnalytics();
}
function embedGoogleAnalytics() {
// Put your Google Analytics code inbetween the EOTs
echo <<<EOT
EOT;
}

0 comments on commit 67a11c5

Please sign in to comment.