Exemplo n.º 1
0
                    <p><?php 
    echo whoami();
    ?>
</p>
                    <a class="menu_toggle" href="javascript:showhideGlobalMenu();" title="<?php 
    echo __('Toggle menu');
    ?>
"><?php 
    echo __('Toggle menu');
    ?>
</a> 
                </div>
		<div class="breadcrumbs_container">
			<article class="breadcrumbs">
                            <?php 
    $globalMenu = new GlobalMenu();
    //rebuild fast access menu cache on language switch
    if (wf_CheckPost(array('lang_form'))) {
        $globalMenu->rebuildFastAccessMenuData();
    }
    print $globalMenu->renderFastAccessMenu();
    ?>
                           
                        </article>
		</div>
	</section><!-- end of secondary bar -->
	
	<aside id="sidebar" class="column">
		<form class="quick_search" method="POST" action="?module=usersearch">
                   <?php 
    if (cfr('USERSEARCH')) {
Exemplo n.º 2
0
<?php

if (cfr('GLMENUCONF')) {
    $glMenu = new GlobalMenu();
    if (wf_CheckPost(array('glcustomconfedit'))) {
        $glMenu->saveCustomConfigs();
        rcms_redirect('?module=glmenuconf&rebuildfastacc=true');
    }
    if (wf_CheckGet(array('rebuildfastacc'))) {
        $glMenu->rebuildFastAccessMenuData();
        rcms_redirect('?module=glmenuconf');
    }
    show_window(__('Personalize menu'), $glMenu->getEditForm());
} else {
    show_error(__('You cant control this module'));
}