Skip to content

Commit

Permalink
Merge pull request nevercodealone#73 from rogoit/main
Browse files Browse the repository at this point in the history
Google Analytics tag
  • Loading branch information
rogoit authored Oct 8, 2023
2 parents d559fa9 + e8f08ae commit daf109b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 16 deletions.
6 changes: 6 additions & 0 deletions config/image-formats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@
</meta>
<scale x="1920" y="1080"/>
</format>
<format key="edugate-page-title">
<meta>
<title lang="en">Page Title Course Detail</title>
</meta>
<scale x="1920" y="300"/>
</format>
<format key="1920x1280">
<meta>
<title lang="en">Employer branding testimorial background</title>
Expand Down
17 changes: 17 additions & 0 deletions public/edugate/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,20 @@ ul.list-detail li:hover,
color: #242c42;
font-size: 15px;
}

.single-container {
position: relative;
width: 100%;
max-width: 1980px;
height: calc(25vh - 100px);
margin: 0 auto;
background-repeat: no-repeat;
background-attachment: unset;
background-position: center;
background-size: 100% auto;
text-align: center;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
Binary file added public/img/nca-matrix-default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions templates/pages/training-detail.html.twig
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{% extends "base-edugate.html.twig" %}

{% block content %}
{% set image = extension.excerpt.images[0].formats['1920x1080'] is defined ? extension.excerpt.images[0].formats['1920x1080'] : '/uploads/media/1920x1080/00/210-nca-matrix-default.jpg' %}
<div class="section background-opacity page-title set-height-top" style="background-image: url('{{ image }}')">
<div class="container">
<div class="page-title-wrapper">
<h2 class="captions">Kurs Inhalt</h2>
</div>
</div>
{% set image = extension.excerpt.images[0].formats['edugate-page-title'] is defined ? extension.excerpt.images[0].formats['edugate-page-title'] : '/img/nca-matrix-default.jpg' %}
<div class="single-container" style="background-image: url('{{ image }}')">
<h1>{{ content.title }}</h1>
</div>
<div class="section section-padding courses-detail">
<div class="container">
<div class="courses-detail-wrapper">
<div class="row">
<div class="col-md-9 layout-left">
<h1 class="course-title">{{ content.title }}</h1>
<div class="course-des">
{% include 'includes/edugate/blocks-training.html.twig' %}
</div>
Expand Down
16 changes: 8 additions & 8 deletions templates/partial/analytics.html.twig
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!-- Analytics -->
<!-- Google Tag Manager -->
<script data-type="application/javascript" type="text/plain" data-name="google-tag-manager">
(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-NTBGN2M');
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-11279247245"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11279247245');
</script>
<!-- End Google Tag Manager -->

<!-- Matomo -->
<script data-type="application/javascript" type="text/plain" data-name="matomo">
Expand Down

0 comments on commit daf109b

Please sign in to comment.