Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /var/www/theprintave/wp-content/plugins/dokan-lite/templates/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/plugins/dokan-lite/templates/widgets/store-map-mapbox.php
<script type="text/javascript">
    jQuery( document ).ready( function ( $ ) {
        var accessToken = '<?php echo esc_js( $access_token ); ?>';
        var location = <?php echo wp_json_encode( $location ); ?>

        mapboxgl.accessToken = accessToken;

        var dokanMapbox = new mapboxgl.Map( {
            container: 'dokan-store-location',
            style: 'mapbox://styles/mapbox/streets-v10',
            center: [ location.longitude, location.latitude ],
            zoom: location.zoom,
        } );

        dokanMapbox.addControl( new mapboxgl.NavigationControl() );

        new mapboxgl.Marker()
            .setLngLat( [ location.longitude, location.latitude ] )
            .addTo( dokanMapbox );
    } );
</script>

Spamworldpro Mini