Add ablity to extend operator/users.php page with plugins

This commit is contained in:
Dmitriy Simushev 2013-02-05 09:10:45 +00:00
parent 185be59862
commit 3baf24269f
2 changed files with 17 additions and 1 deletions

View File

@ -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');

View File

@ -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>