Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeremy Groot
/
stellervista-Intranet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
71d5a35e
authored
2023-07-24 14:53:30 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gtag
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
5755bc0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
wp-content/themes/understrap-child/header.php
wp-content/themes/understrap-child/header.php
View file @
71d5a35
...
...
@@ -17,6 +17,15 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<html
<?php
language_attributes
();
?>
>
<head>
<meta
charset=
"
<?php
bloginfo
(
'charset'
);
?>
"
>
<?php
if
(
is_user_logged_in
())
{
?>
<!-- Google Tag Manager -->
<script>
(
function
(
w
,
d
,
s
,
l
,
i
){
w
[
l
]
=
w
[
l
]
||
[];
w
[
l
].
push
({
'gtm.start'
:
new
Date
().
getTime
(),
event
:
'gtm.js'
});
var
f
=
d
.
getElementsByTagName
(
s
)[
0
],
j
=
d
.
createElement
(
s
),
dl
=
l
!=
'dataLayer'
?
'&l='
+
l
:
''
;
j
.
async
=
true
;
j
.
src
=
'https://www.googletagmanager.com/gtm.js?id='
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'script'
,
'dataLayer'
,
'GTM-TFSKBLV'
);
</script>
<!-- End Google Tag Manager -->
<?php
}
?>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, minimum-scale=1"
>
<link
rel=
"profile"
href=
"http://gmpg.org/xfn/11"
>
...
...
@@ -25,6 +34,12 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<body
<?php
body_class
();
?>
<?php
understrap_body_attributes
();
?>
>
<?php
do_action
(
'wp_body_open'
);
?>
<?php
if
(
is_user_logged_in
())
{
?>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe
src=
"https://www.googletagmanager.com/ns.html?id=GTM-TFSKBLV"
height=
"0"
width=
"0"
style=
"display:none;visibility:hidden"
></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php
}
?>
<div
class=
"site"
id=
"page"
>
<?php
if
(
!
is_page
(
'login'
))
{
?>
<!-- ******************* The Navbar Area ******************* -->
...
...
@@ -51,4 +66,4 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<?php
get_template_part
(
'global-templates/navbar'
,
$navbar_type
.
'-'
.
$bootstrap_version
);
?>
</header>
<!-- #wrapper-navbar -->
<?php
}
?>
\ No newline at end of file
<?php
}
?>
...
...
Please
register
or
sign in
to post a comment