 <div class="settingsSideBar">
            <ul class="unstyled">

                <?php if (isActionAllowed('auth.admin_page')) { ?>
                <li class="user_management <?php echo (strpos(uri_string(),'settings/user-management')!==false)?"selectedElement":""?>">
                    <?php echo anchor('/settings/user-management',"User management",array('class' => 'txt')) ?>
                </li>
                <?php } ?>

                <?php if (isActionAllowed('settings.online_users')) { ?>
                <li class="<?php echo (uri_string()=='settings/active-tokens')?"selectedElement":""?>">
                     <?php $callcollectIcon ='<i class=" icon-info-sign"></i>'; ?>
                    <?php echo anchor('/settings/active-tokens',"Active tokens",array('class' => 'txt ')) ?>
                </li>
                <?php } ?>

                <?php if (isActionAllowed('settings.manage')) { ?>
                <li class="portalsettings <?php echo (uri_string()=='settings/preferences')?"selectedElement":""?>">
                    <?php $settingsIcon = '<i class="icon-cog"></i>'; ?>
                    <?php echo anchor('/settings/preferences',"Preferences", array('class' => 'txt')) ?>
                </li>
                <?php }?>
                <?php if (isActionAllowed('apps.index')) { ?>
                <li class="<?php echo ( (uri_string()=='apps' || uri_string()=='apps/index' ) ?"selectedElement":"")?>">
                    <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                    <?php echo anchor('/apps',"Manage apps", array('class' => 'txt')) ?>
                </li>
                <?php }?>
                <?php if (isActionAllowed('settings.vcs')) { ?>
                <li class="vcs <?php echo (uri_string()=='settings/vcs')?"selectedElement":""?>">
                    <?php $prefIcon ='<i class="icon-asterisk"></i>'; ?>
                    <?php echo anchor('/settings/vcs',"Version control repository",array('class' => 'txt')) ?>
                </li>
                <?php } ?>

               <?php if (isActionAllowed('settings.systemIdentifier')) { ?>
                <li class="<?php echo (uri_string()=='settings/host-identifier')?"selectedElement":""?>">
                     <?php $callcollectIcon ='<i class=" icon-info-sign"></i>'; ?>
                    <?php echo anchor('/settings/host-identifier',"Host identifier",array('class' => 'txt ')) ?>
                </li>
                <?php } ?>
                 <?php if (isActionAllowed('settings.notification_scripts')) { ?>
                <li class="<?php echo strpos(uri_string(), 'settings/notification-scripts')!==false?"selectedElement":""?>">
                    <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                    <?php echo anchor('/settings/notification-scripts',"Custom notification scripts",array('class' => 'txt ')) ?>
                </li>
                <?php } ?>
                <?php if(isActionAllowed('settings.mail')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/mail')!==false?"selectedElement":""?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/mail',"Mail settings",array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
                <?php if (isActionAllowed('settings.ldap_api_settings')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/authentication')!==false?"selectedElement":""?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/authentication', 'Authentication settings',array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
                <?php if (isActionAllowed('ai-settings.update')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/ai') !== false ? "selectedElement" : "" ?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/ai', 'AI settings', array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
                <?php if (isActionAllowed('data_transfer.index')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/export-import')!==false?"selectedElement":""?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/export-import', 'Export / Import',array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
                <?php if (isActionAllowed('rbac.index')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/rbac') !== false ? "selectedElement" : "" ?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/rbac', 'Role based access control', array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
                <?php if (isActionAllowed('customization')) { ?>
                    <li class="<?php echo strpos(uri_string(), 'settings/customization') !== false ? "selectedElement" : "" ?>">
                        <?php $settingsIcon = '<i class="icon-ok-circle"></i>'; ?>
                        <?php echo anchor('/settings/customization', 'Customization', array('class' => 'txt ')) ?>
                    </li>
                <?php } ?>
            </ul>

            <ul class="unstyled">
                <li class="user_management <?php echo (uri_string()=='settings/about')?"selectedElement":""?>">
                    <?php echo anchor('/settings/about',"About CFEngine",array('class' => 'txt')) ?>
                </li>
            </ul>
  </div>
