-
-
+
addScript(JURI::root(true) . '/media/plg_fields_agosmsaddressmarker/leaflet/leaflet.js');
-JHtml::_('script', 'plg_fields_agosmsaddressmarker/admin-agosmsaddressmarker.js', ['version' => 'auto', 'relative' => true]);
+$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
+
+$wa->registerAndUseScript('agosmsaddressmarker', 'plg_fields_agosmsaddressmarker/admin-agosmsaddressmarker.js', [], [], []);
+// We need leaflet for calculation the address
+$document = Factory::getApplication()->getDocument();
+$document->addScript(URI::root(true) . '/media/plg_fields_agosmsaddressmarker/leaflet/leaflet.js');
if ($specialicon) {
- $document->addStyleSheet(JURI::root(true) . '/media/plg_fields_agosmsaddressmarker/css/font-awesome.min.css');
+ $wa->registerAndUseStyle('fontawesome', 'plg_fields_agosmsaddressmarker/font-awesome.min.css', [], [], []);
}
-JHtml::_('stylesheet', 'plg_fields_agosmsaddressmarker/agosmsaddressmarker.css', ['version' => 'auto', 'relative' => true]);
+$wa->registerAndUseStyle('agosmsaddressmarker', 'plg_fields_agosmsaddressmarker/agosmsaddressmarker.css', [], [], []);
JText::script('PLG_AGOSMSADDRESSMARKER_ADDRESSE_ERROR');
JText::script('PLG_AGOSMSADDRESSMARKER_ADDRESSE_NOTICE');
@@ -72,7 +75,6 @@
// Com_contact
else if ($app->input->getCmd('option') === 'com_contact') {
- //JFactory::getApplication()->enqueueMessage(JText::_('PLG_AGOSMSADDRESSMARKER_SUPPORTET'), 'message');
$context = 'com_contact.contact';
}
@@ -204,23 +206,22 @@ class="agosmsaddressmarkericon">
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -558,7 +559,7 @@ class="agosmsaddressmarkericon">
-
+
@@ -597,14 +598,14 @@ class="agosmsaddressmarkericon">
-
+
-
+
@@ -712,13 +713,13 @@ class="agosmsaddressmarkericon">
-
-
+
+
-
-
-
+
+
+
@@ -752,19 +753,19 @@ class="agosmsaddressmarkericon">
-
-
+
+
-
+
-
+
@@ -781,16 +782,16 @@ class="agosmsaddressmarkericon">
-
+
-
+
-
-
-
+
+
+
@@ -840,9 +841,9 @@ class="agosmsaddressmarkericon">
-
+
-
+
@@ -850,8 +851,8 @@ class="agosmsaddressmarkericon">
-
-
+
+
@@ -911,12 +912,12 @@ class="agosmsaddressmarkericon">
-
+
-
+
@@ -925,8 +926,8 @@ class="agosmsaddressmarkericon">
-
-
+
+
@@ -962,11 +963,11 @@ class="agosmsaddressmarkericon">
-
-
+
+
-
+
@@ -985,14 +986,14 @@ class="agosmsaddressmarkericon">
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/j4/pkg_agosms/src/plugins/fields/agosmsaddressmarker/models/forms/popup_data.xml b/j4/pkg_agosms/src/plugins/fields/agosmsaddressmarker/models/forms/popup_data.xml
new file mode 100644
index 00000000..33eb3d31
--- /dev/null
+++ b/j4/pkg_agosms/src/plugins/fields/agosmsaddressmarker/models/forms/popup_data.xml
@@ -0,0 +1,14 @@
+
+