mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
Add ablity to extend operator/users.php page with plugins
This commit is contained in:
parent
185be59862
commit
3baf24269f
@ -52,6 +52,11 @@ $page['coreStyles.trackedVisitorWindowParams'] = $style_config['tracked']['visit
|
|||||||
$page['coreStyles.inviteWindowParams'] = $style_config['invitation']['window_params'];
|
$page['coreStyles.inviteWindowParams'] = $style_config['invitation']['window_params'];
|
||||||
$page['coreStyles.banWindowParams'] = $style_config['ban']['window_params'];
|
$page['coreStyles.banWindowParams'] = $style_config['ban']['window_params'];
|
||||||
|
|
||||||
|
// Get additional files
|
||||||
|
$page['additional_css'] = get_additional_css('users');
|
||||||
|
$page['additional_js'] = get_additional_js('users');
|
||||||
|
$page['js_plugin_options'] = get_js_plugin_options('users');
|
||||||
|
|
||||||
prepare_menu($operator);
|
prepare_menu($operator);
|
||||||
start_html_output();
|
start_html_output();
|
||||||
require('../view/pending_users.php');
|
require('../view/pending_users.php');
|
||||||
|
@ -22,6 +22,11 @@ $page['menuid'] = "users";
|
|||||||
|
|
||||||
function tpl_header() { global $page, $webimroot;
|
function tpl_header() { global $page, $webimroot;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<!-- Plugins CSS files -->
|
||||||
|
<?php echo $page['additional_css']; ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- External libs -->
|
<!-- External libs -->
|
||||||
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/jquery.min.js"></script>
|
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/json2.js"></script>
|
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/json2.js"></script>
|
||||||
@ -35,6 +40,11 @@ function tpl_header() { global $page, $webimroot;
|
|||||||
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/default_app.js"></script>
|
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/default_app.js"></script>
|
||||||
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/users_app.js"></script>
|
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/users_app.js"></script>
|
||||||
|
|
||||||
|
<!-- Plugins JavaScript files -->
|
||||||
|
<?php echo $page['additional_js']; ?>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Localization constants -->
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
Mibew.Localization.set({
|
Mibew.Localization.set({
|
||||||
'pending.table.speak': "<?php echo getlocal('pending.table.speak') ?>",
|
'pending.table.speak': "<?php echo getlocal('pending.table.speak') ?>",
|
||||||
@ -108,7 +118,8 @@ function tpl_header() { global $page, $webimroot;
|
|||||||
trackedVisitorWindowParams: "<?php echo $page['coreStyles.trackedVisitorWindowParams']; ?>",
|
trackedVisitorWindowParams: "<?php echo $page['coreStyles.trackedVisitorWindowParams']; ?>",
|
||||||
banWindowParams: "<?php echo $page['coreStyles.banWindowParams']; ?>",
|
banWindowParams: "<?php echo $page['coreStyles.banWindowParams']; ?>",
|
||||||
inviteWindowParams: "<?php echo $page['coreStyles.inviteWindowParams']; ?>"
|
inviteWindowParams: "<?php echo $page['coreStyles.inviteWindowParams']; ?>"
|
||||||
}
|
},
|
||||||
|
plugins: <?php echo $page['js_plugin_options']; ?>
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//--></script>
|
//--></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user