From d0b92ab4075643ff6669b9580ab83b5c0a7cfc56 Mon Sep 17 00:00:00 2001 From: Daniel Bosen Date: Tue, 30 Nov 2021 10:12:33 +0100 Subject: [PATCH] mh parameter --- ivw_integration.module | 1 + templates/ivw-call.html.twig | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ivw_integration.module b/ivw_integration.module index a99cb10..7f44556 100644 --- a/ivw_integration.module +++ b/ivw_integration.module @@ -24,6 +24,7 @@ function ivw_integration_theme() { 'dg' => NULL, 'pt' => NULL, 'bfe' => NULL, + 'legacy_mode' => NULL, 'mobile_st' => NULL, 'mobile_cp' => NULL, 'mobile_sv' => NULL, diff --git a/templates/ivw-call.html.twig b/templates/ivw-call.html.twig index 1eb6604..89e450f 100644 --- a/templates/ivw-call.html.twig +++ b/templates/ivw-call.html.twig @@ -33,12 +33,18 @@ } if ((typeof window.IOMm !== 'undefined') && (typeof window.IOMm === 'function')) { - IOMm('configure', { + var IOMmConfigureParameter = { "st": responsive_data.st, "dn": responsive_data.dn, "dc": responsive_data.dc, "dg": responsive_data.dg, - }); + } + + if ("{{ legacy_mode }}" !== "1") { + IOMmConfigureParameter.mh = 5 + } + + IOMm('configure', IOMmConfigureParameter); IOMm('pageview', { cp: responsive_data.cp, pt: responsive_data.pt });