HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/plugins/map-for-acf/js/yandex-map.js
(function ($) {

    'use strict';

    ymaps.ready(function () {

        var $maps = $('.yandex-map');
        $maps.each(function (index, value) {
            var $mapElement = $(value),
                id = $mapElement.attr('id');

            if (id !== undefined && window[id] !== undefined) {

                var $params = $.parseJSON(window[id]['params']);

                var $map = new ymaps.Map(id, {
                    zoom: $params.zoom,
                    center: [$params.center_lat, $params.center_lng],
                    type: 'yandex#' + $params.type,
                    behaviors: ['dblClickZoom', 'multiTouch', 'drag']
                }, {
                    minZoom: 5
                });

                $map.controls.remove('trafficControl');
                $map.controls.remove('searchControl');
                $map.controls.remove('geolocationControl');

                $($params.marks).each(function (index, mark) {
                    var place_mark = null;

                    if (mark.type == 'Point') { // create placemark

                        place_mark = new ymaps.Placemark(mark.coords, {
                            balloonContent: mark.content
                        });

                    } else { // if mark is circle

                        place_mark = new ymaps.Circle([
                            mark.coords,
                            mark.circle_size
                        ], {
                            balloonContent: mark.content
                        }, {
                            opacity: 0.5,
                            fillOpacity: 0.1,
                            fillColor: "#DB709377",
                            strokeColor: "#990066",
                            strokeOpacity: 0.7,
                            strokeWidth: 5
                        });

                    }

                    $map.geoObjects.add(place_mark);
                });

            }
        });

    });

})(jQuery);