diff --git a/Block/Popup.php b/Block/Popup.php
index 33c689d..5fca8a9 100644
--- a/Block/Popup.php
+++ b/Block/Popup.php
@@ -154,7 +154,8 @@ public function hintedCountry()
'delayDuration' => (int)$this->config->getDelayDuration(),
'cookieLifetime' => (int)$this->config->getCookieDuration(),
'modalContent' => $this->getModalText($lang, $this->getShowForUnselected()),
- 'showModalOverlay' => $this->config->getShowModal()
+ 'showModalOverlay' => $this->config->getShowModal(),
+ 'responsiveModal' => $this->config->isResponsiveModal()
];
}
diff --git a/Helper/Config.php b/Helper/Config.php
index bfc7c83..56dcd20 100644
--- a/Helper/Config.php
+++ b/Helper/Config.php
@@ -93,6 +93,12 @@ class Config extends AbstractHelper
const SHOW_MODAL = 'countrypopup/general/show_modal';
+ /**
+ * config path for responsive modal setting
+ */
+ const RESPONSIVE_MODAL = 'countrypopup/general/responsive_modal';
+
+
/**
* fallback detect string
*/
@@ -215,4 +221,14 @@ public function getShowModal($scope = ScopeInterface::SCOPE_STORE)
{
return $this->scopeConfig->isSetFlag(self::SHOW_MODAL, $scope);
}
+
+ /**
+ * return true if modal is responsive
+ * @param string $scope
+ * @return bool
+ */
+ public function isResponsiveModal($scope = ScopeInterface::SCOPE_STORE)
+ {
+ return $this->scopeConfig->isSetFlag(self::RESPONSIVE_MODAL, $scope);
+ }
}
\ No newline at end of file
diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml
index f9c4ea6..475da99 100644
--- a/etc/adminhtml/system.xml
+++ b/etc/adminhtml/system.xml
@@ -52,12 +52,17 @@
If the detected country is equal the current store country no hint will be shown.]]>
Magento\Config\Model\Config\Source\Yesno
+
Magento\Config\Model\Config\Source\Yesno
+
+
+ Magento\Config\Model\Config\Source\Yesno
+