File: configuration.php

package info (click to toggle)
icingaweb2-module-map 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,028 kB
  • sloc: javascript: 11,939; php: 1,207; sh: 54; makefile: 15
file content (47 lines) | stat: -rw-r--r-- 1,781 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
$section = $this->menuSection(N_('Maps'), array('icon' => 'globe'));

$mapModule = $section->add(N_($this->translate('Default map')), array(
    'icon' => 'globe',
    'description' => $this->translate('Visualize your hosts and services on a map'),
    'url' => 'map',
    'priority' => 10
));

// stylesheets
$this->provideCssFile('vendor/leaflet.css');
$this->provideCssFile('vendor/MarkerCluster.css');
$this->provideCssFile('vendor/MarkerCluster.Default.css');
$this->provideCssFile('vendor/L.Control.Locate.css');
$this->provideCssFile('vendor/easy-button.css');
$this->provideCssFile('vendor/leaflet.awesome-markers.css');
$this->provideCssFile('vendor/leaflet.modal.css');
$this->provideCssFile('vendor/L.Control.OpenCageData.Search.min.css');

// javascript libraries
$this->provideJsFile('vendor/spin.js');
$this->provideJsFile('vendor/leaflet.js');
$this->provideJsFile('vendor/leaflet.spin.js');
$this->provideJsFile('vendor/leaflet.markercluster.js');
$this->provideJsFile('vendor/L.Control.Locate.js');
$this->provideJsFile('vendor/easy-button.js');
$this->provideJsFile('vendor/leaflet.awesome-markers.js');
$this->provideJsFile('vendor/Leaflet.Modal.js');
$this->provideJsFile('vendor/L.Control.OpenCageSearch.js');

// configuration menu
$this->provideConfigTab('config', array(
    'title' => $this->translate('Configure the map module'),
    'label' => $this->translate('Configuration'),
    'url' => 'config'
));

if ($this->app->getModuleManager()->hasEnabled("mapDatatype") && $this->app->getModuleManager()->hasEnabled("director")) {

    $this->provideConfigTab('director', array(
        'title' => $this->translate('Configure the director map datatype'),
        'label' => $this->translate('Director'),
        'url' => 'config/director'
    ));

}