Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separated analytics and service code #39

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}