Files
grzanieplus.pl/apps/backend/modules/stBackend/templates/_application_shortcuts.php
2025-03-12 17:06:23 +01:00

41 lines
1.3 KiB
PHP

<?php
use_helper('stBackend');
/**
* @var stBackendDesktopModule[] $applications
*/
?>
<div class="application_shortcuts" style="position: relative;z-index: 10;">
<ul>
<?php
$check_file = sfConfig::get('sf_plugins_dir'). DIRECTORY_SEPARATOR. 'stIfirmaPlugin';
foreach ($applications as $application):
if (!$application->isValid())
{
continue;
}
if (in_array($application->getName(), array('stPointsBackend', 'stAddThisBackend')) && stTheme::hideOldConfiguration())
{
continue;
}
if ($application->getRoute()=='stInvoiceBackend/ifirmaConfig' && !file_exists($check_file))
{
continue;
}
$url = st_url_for($application->getRoute());
?>
<li>
<div class="icon" style="float: left;">
<a target="_parent" href="<?php echo $url ?>" style="background-image: url(<?php echo get_app_icon($application->getIcon()) ?>);"></a>
</div>
<div class="name">
<a target="_parent" href="<?php echo $url ?>"><?php echo $application->getLabel() ?></a>
</div>
</li>
<?php endforeach ?>
</ul>
<div class="clr"></div>
</div>