diff --git a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig index 0240d9a61..db2d38bbe 100644 --- a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig +++ b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig @@ -10,6 +10,11 @@ aria-controls="nav-description" aria-selected="true">{{ trans('visiosoft.module.advs::field.description') }} + {{ trans('visiosoft.module.location::addon.title') }} + {{ addBlock('ad-detail/content-tab',{'features':features})|raw }} @@ -25,6 +30,12 @@
{{ adv.advs_desc|raw }}
+ + {{ addBlock('ad-detail/content',{'features':features,'adv':adv, 'profile': profile})|raw }} diff --git a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/map.twig b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/map.twig index 22fd037e7..a0a21f18b 100644 --- a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/map.twig +++ b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/map.twig @@ -1,29 +1,47 @@{% if(adv.map_Val == "") %} - {{ trans('visiosoft.module.advs::field.no_location') }} + {{ trans('visiosoft.module.advs::field.no_location') }} {% else %} - {% set map_arr = adv.map_Val|split(',') %} -
- - + var ifAnyImg = "https://maps.googleapis.com/maps/api/streetview/metadata?size=600x300&location=" + coord[0] + "," + coord[1] + + "&fov=90&heading=235&pitch=10&key=" + google_map_key; + $.getJSON(ifAnyImg, function (data) { + if (data.status === "OK") { + loadScript('https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback=initMap'); + } + if (data.status === "ZERO_RESULTS") { + $("#mapDiv").html(no_image_text); + } else { + $("#mapDiv").html("Google Error : " + data.error_message); + } + } + ) + }); + + + +{% endif %} \ No newline at end of file