83 lines
4.1 KiB
PHP
83 lines
4.1 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php $version = stApplication::getApplicationVersion('stBackend'); ?>
|
|
<?php use_javascript('jquery-1.7.2.min.js?v'.$version, 'first') ?>
|
|
<?php use_javascript('jquery-no-conflict.js?v'.$version, 'first') ?>
|
|
<?php use_javascript('popper.min.js?v'.$version, 'first') ?>
|
|
<?php use_javascript('/jQueryTools/tippy/js/tippy-bundle.umd.min.js?v'.$version, 'first'); ?>
|
|
<?php use_javascript('jquery.tools-1.2.6.min.js?v'.$version, 'first') ?>
|
|
<?php use_javascript('/js/backend/jquery-ui.min.js?v'.$version, 'first') ?>
|
|
<?php use_javascript('/jQueryTools/clipboard/js/clipboard.min.js?v'.$version); ?>
|
|
<?php use_javascript('/jQueryTools/chosen/js/chosen.jquery.js?v'.$version); ?>
|
|
<?php use_stylesheet('/jQueryTools/tippy/css/scale.css?v'.$version); ?>
|
|
<?php use_stylesheet('/css/pretty-checkbox.min.css?v'.$version, 'first'); ?>
|
|
<?php use_stylesheet('backend/beta/style.css?v'.$version, 'last') ?>
|
|
<?php use_stylesheet('backend/bootstrap-grid.css?v' . $version, 'last'); ?>
|
|
<?php use_stylesheet('/jQueryTools/prevue/css/font-awesome-eyes.css?v'.$version); ?>
|
|
<?php use_stylesheet('/jQueryTools/chosen/css/chosen.css?v'.$version); ?>
|
|
<?php use_stylesheet('backend/stDashboardGadget.css?v'.$version, 'last'); ?>
|
|
<?php include_http_metas() ?>
|
|
<?php include_metas() ?>
|
|
<title><?php echo __('SOTESHOP - panel administracyjny', null, 'stBackendMain') ?></title>
|
|
</head>
|
|
<body class="iframe">
|
|
<?php init_tooltip('.list_tooltip', array()) ?>
|
|
<?php init_tooltip('.tooltip', array()) ?>
|
|
<?php echo $sf_data->getRaw('sf_content') ?>
|
|
<script type="text/javascript">
|
|
jQuery(function($) {
|
|
var clipboard = new Clipboard('.clipboard-btn');
|
|
clipboard.on('success', function(e) {
|
|
|
|
var api = $(e.trigger).data('tooltip');
|
|
api.show();
|
|
api.getTip().html("<?php echo __('Skopiowane!', null, 'stBackend') ?>");
|
|
|
|
e.clearSelection();
|
|
});
|
|
$('body').on('click', '.external-link', function() {
|
|
var href = $(this).attr('href');
|
|
window.parent.location = href;
|
|
return false;
|
|
});
|
|
|
|
$(document).on('tooltip-show', function(e, instance) {
|
|
instance.setProps({ interactive: false });
|
|
});
|
|
|
|
$(document).on('chosen:init', function(event, selector) {
|
|
var selects = $(selector ? selector : 'select').not('.flatpickr-monthDropdown-months');
|
|
|
|
selects.chosen({
|
|
disable_search_threshold: 5,
|
|
padding: 10,
|
|
placeholder_text: " "
|
|
}).on('chosen:showing_dropdown', function(event, params) {
|
|
var chosen_container = $(event.target).next('.chosen-container');
|
|
var dropdown = chosen_container.find('.chosen-drop');
|
|
var dropdown_top = dropdown.offset().top - $(window).scrollTop();
|
|
var dropdown_height = dropdown.height();
|
|
var viewport_height = $(window).height();
|
|
|
|
if (dropdown_top + dropdown_height > viewport_height && dropdown_top - dropdown_height > 0) {
|
|
chosen_container.addClass('chosen-drop-up');
|
|
} else if (dropdown_top + dropdown_height > viewport_height) {
|
|
var diff = dropdown_top + dropdown_height - viewport_height;
|
|
var chosenResults = dropdown.find('.chosen-results');
|
|
|
|
chosenResults.css({ 'max-height': chosenResults.height() - (diff + 5) });
|
|
}
|
|
|
|
}).on('chosen:hiding_dropdown', function(event, params) {
|
|
$(event.target).next('.chosen-container').removeClass('chosen-drop-up');
|
|
}).on('chosen:update', function() {
|
|
$(this).chosen('destroy').chosen();
|
|
});
|
|
});
|
|
|
|
$(document).trigger('chosen:init');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|