28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @var stConfiguration $configuration
|
|
*/
|
|
use_helper('stAdminGenerator');
|
|
?>
|
|
|
|
<?php echo st_admin_application_start(__('Konfiguracja'), 'stConfigurationPlugin', '@stConfigurationPlugin', __('Konfiguracja')) ?>
|
|
<?php st_view_slot_start('application-menu') ?>
|
|
<?php echo st_admin_get_menu($menu_items) ?>
|
|
<?php st_view_slot_end() ?>
|
|
|
|
<div class="admin_form">
|
|
<?php foreach (stConfiguration::getGroups() as $group => $label): if (!$configuration->hasDesktopModules($group)) continue; ?>
|
|
<div id="<?php echo $group ?>" style="visibility: hidden; margin-top: -120px"></div>
|
|
<?php st_admin_section_start(__($label)) ?>
|
|
<?php st_include_partial('stBackend/application_shortcuts', array('applications' => $configuration->getDesktopModules($group))) ?>
|
|
<?php st_admin_section_end() ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
<?php echo st_admin_application_end() ?>
|
|
<script>
|
|
jQuery(function($) {
|
|
let selected = $('#main-application-menu a[href="'+window.location.pathname+window.location.search+window.location.hash+'"]');
|
|
selected.closest('li').addClass('selected');
|
|
});
|
|
</script>
|