<?php
$controller_name = $controller->_get->toString('controller');
$action_name = $controller->_get->toString('action');

$isScriptPreview = $controller_name == 'pjAdminOptions' && $action_name == 'pjActionPreview';
$isScriptInstall = $controller_name == 'pjAdminOptions' && $action_name == 'pjActionInstall';
$isScriptHelp = $controller_name == 'pjAdminOrders' && $action_name == 'pjActionHelp';

$hasAccessScriptPreview = pjAuth::factory('pjAdminOptions', 'pjActionPreview')->hasAccess();
$hasAccessScriptInstall = pjAuth::factory('pjAdminOptions', 'pjActionInstall')->hasAccess();
$hasAccessScriptHelp = pjAuth::factory('pjAdminOrders', 'pjActionHelp')->hasAccess();
?>
<!-- <?php if ($hasAccessScriptHelp): ?>
    <li<?php echo $isScriptHelp ? ' class="active"' : NULL; ?>>
        <a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminOrders&amp;action=pjActionHelp"><i class="fa fa-book"></i> <span class="nav-label"><?php $lbl = __('menuHelpManual', true); echo !empty($lbl) && $lbl !== 'menuHelpManual' ? htmlspecialchars($lbl, ENT_QUOTES, 'UTF-8') : 'Help manual'; ?></span></a>
    </li>
<?php endif; ?> -->
<?php if ($hasAccessScriptInstall): ?>
    <li<?php echo $isScriptInstall ? ' class="active"' : NULL; ?>>
        <a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminOptions&amp;action=pjActionInstall"><i class="fa fa-code"></i> <span class="nav-label"><?php __('menuInstall');?></span></a>
    </li>
<?php endif; ?>
