-
- X
-
-
-
-
-
-
+ {% if(adv.video_url != null) %}
+
-
-{% endif %}
- {% if(profile.getObject().gsm_phone is not null or profile.office_phone is not null or entries('advs').isEnabled('messages')) %}
-
-
+ {% endif %}
+ {% if adv_detail_place_code %}
+
+ {{ adv_detail_place_code }}
+
+ {% endif %}
+
+
+
{{ trans('visiosoft.module.advs::field.share') }}
+
+
+
+
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/src/Adv/Command/GetAd.php b/addons/default/visiosoft/advs-module/src/Adv/Command/GetAd.php
new file mode 100644
index 000000000..17ec929c5
--- /dev/null
+++ b/addons/default/visiosoft/advs-module/src/Adv/Command/GetAd.php
@@ -0,0 +1,34 @@
+id = $id;
+ }
+
+
+ /**
+ * @param AdvRepositoryInterface $groups
+ * @return |null
+ */
+ public function handle(AdvRepositoryInterface $groups)
+ {
+ if ($this->id) {
+ return $groups->findById($this->id);
+ }
+ return null;
+ }
+}
diff --git a/addons/default/visiosoft/advs-module/src/AdvsModulePlugin.php b/addons/default/visiosoft/advs-module/src/AdvsModulePlugin.php
new file mode 100644
index 000000000..ee0efb288
--- /dev/null
+++ b/addons/default/visiosoft/advs-module/src/AdvsModulePlugin.php
@@ -0,0 +1,28 @@
+dispatch(new GetAd($id))) {
+ return null;
+ }
+
+ return $ad;
+ }
+ )
+ ];
+ }
+}
diff --git a/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php b/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php
index 24a5037dc..6e353d9f8 100644
--- a/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php
+++ b/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php
@@ -27,7 +27,9 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
*
* @type array|null
*/
- protected $plugins = [];
+ protected $plugins = [
+ AdvsModulePlugin::class,
+ ];
/**
* The addon Artisan commands.
diff --git a/composer.json b/composer.json
index 509c5675a..40afddcf7 100644
--- a/composer.json
+++ b/composer.json
@@ -67,7 +67,8 @@
"anomaly/html_block-extension": "~1.0.0",
"anomaly/wysiwyg_block-extension": "~1.0.0",
"ammadeuss/laravel-html-dom-parser": "^1.1",
- "guzzlehttp/guzzle": "~6.3.3"
+ "guzzlehttp/guzzle": "~6.3.3",
+ "paquettg/php-html-parser": "^2.1"
},
"require-dev": {
"filp/whoops": "~2.0",