PHP_SMART_HOME_V3/app/views/templates/plugins.phtml

55 lines
1.3 KiB
PHTML
Raw Permalink Normal View History

2020-10-25 23:01:30 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<?php
2020-11-18 20:40:52 +00:00
$partial = new Partial('head');
2020-10-25 23:01:30 +00:00
$partial->prepare('baseDir', $BASEDIR);
2020-11-18 20:40:52 +00:00
$partial->prepare('baseUrl', $BASEURL);
2020-10-25 23:01:30 +00:00
$partial->render();
?>
<title><?php echo $TITLE ?></title>
</head>
<body class="no-transitions">
<div class="row no-gutters main">
<div class="col-md-3 d-sm-none"></div>
<div class="col-md-3 nav-container">
<?php
$partial = new Partial('menu');
$partial->prepare('item', 'plugins');
$partial->prepare('langMng',$LANGMNG);
$partial->prepare('debugMod',$DEBUGMOD);
$partial->render();
?>
</div>
<div class="col-md-9 main-body">
<div class="col-12 col-sm-9 mx-auto mt-4">
2020-10-26 15:16:42 +00:00
<h1><?php echo $LANGMNG->get('t_Plugins');
?></h1>
2020-10-25 23:01:30 +00:00
<div class="row mb-4">
<?php if ($PLUGINS): ?>
2020-10-26 15:45:45 +00:00
<?php foreach ($PLUGINS as $plugin):
2020-10-26 15:16:42 +00:00
//BUTTON
$partial = new Partial('pluginButton');
$partial->prepare('langMng',$LANGMNG);
$partial->prepare('pluginName',$plugin['name']);
$partial->prepare('pluginStatus',$plugin['status']);
$partial->render();
2020-10-26 15:45:45 +00:00
2020-10-26 15:16:42 +00:00
?>
2020-10-25 23:01:30 +00:00
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php
$partial = new Partial('footer');
$partial->prepare('baseDir', BASEDIR);
$partial->render();
//TODO js do main.js
?>
</body>
</html>