Skip to content

Commit d039703

Browse files
update
1 parent ca688f1 commit d039703

14 files changed

Lines changed: 64 additions & 17 deletions

File tree

assets/modules/food-module/css/main.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,24 @@ table.table.dataTable > tbody > tr > td a[data-mode] {
17801780
.dt-info .select-info .select-item:first-child {
17811781
display: block;
17821782
}
1783+
.food-title-flex {
1784+
display: -ms-flexbox;
1785+
display: flex;
1786+
-ms-flex-direction: row;
1787+
flex-direction: row;
1788+
-ms-flex-pack: justify;
1789+
justify-content: space-between;
1790+
-ms-flex-align: self-start;
1791+
align-items: self-start;
1792+
}
1793+
.food-title-flex h1 {
1794+
-ms-flex: 1 0 auto;
1795+
flex: 1 0 auto;
1796+
}
1797+
.food-title-flex .food-settings {
1798+
padding: 1.3em 0;
1799+
line-height: 1.5;
1800+
}
17831801
#food-module-evo {
17841802
position: relative;
17851803
}

assets/modules/food-module/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/modules/food-module/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* bower_components/datatables.net-select/js/dataTables.select.js
1212
* bower_components/datatables.net-bs/js/dataTables.bootstrap.js
1313
*
14-
* Last Update: 2025-10-28 00:21:12 GMT+0400
14+
* Last Update: 2025-11-05 00:02:06 GMT+0400
1515
*/
1616
/*!
1717
* JavaScript Cookie v2.2.1

assets/modules/food-module/js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/modules/food-module/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* Скрипт модуля FoodModuleMenu v1.4.6 для Evolution CMS
2+
* Скрипт модуля FoodModuleMenu v1.4.7 для Evolution CMS
33
* Модуль загрузки файлов меню ежедневного питания
44
* Актуально для сайтов школ России
55
* Автор: Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>
66
* GitHub: https://github.com/ProjectSoft-STUDIONIONS/food-module#readme
7-
* Last Update: 2025-10-28 00:21:12 GMT+0400
7+
* Last Update: 2025-11-05 00:02:06 GMT+0400
88
*/
99
window.DT_table = false;
1010
(function (factory) {

assets/modules/food-module/js/main.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/modules/food-module/lang/english.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
$_lang["sch_title"] = "Daily Food Menu";
3+
$_lang["sch_settings"] = "Module settings\n«Daily Food Menu»";
34
$_lang["sch_food_top"] = "Root level";
45
$_lang["sch_file"] = "File";
56
$_lang["sch_permission"] = "Rights";

assets/modules/food-module/lang/russian-UTF8.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
$_lang["sch_title"] = "Меню ежедневного питания";
3+
$_lang["sch_settings"] = "Настройки модуля\n«Меню ежедневного питания»";
34
$_lang["sch_food_top"] = "Корневой уровень";
45
$_lang["sch_file"] = "Файл";
56
$_lang["sch_permission"] = "Права";

assets/modules/food-module/lang/russian.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
$_lang["sch_title"] = "Меню ежедневного питания";
3+
$_lang["sch_settings"] = "Настройки модуля\n«Меню ежедневного питания»";
34
$_lang["sch_food_top"] = "Корневой уровень";
45
$_lang["sch_file"] = "Файл";
56
$_lang["sch_permission"] = "Права";

assets/modules/food-module/tmpl/template.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
$modPath = str_replace(MODX_BASE_PATH, '', $base_path);
88
$upload_maxsize = $modx->config['upload_maxsize'];
9+
$mod = getModule();
910
?>
1011
<script>
1112
const FOOD_FILE_PATH = "<?= $data["path"]; ?>";
@@ -15,7 +16,18 @@
1516
</script>
1617
<div id="food-module-evo">
1718
<div class="container">
18-
<h1 class="text-left"><i class="fa fa-folder-open"></i><?= $_lang['sch_title']; ?></h1>
19+
<div class="food-title-flex">
20+
<h1 class="text-left"><i class="fa fa-folder-open"></i><?= $_lang['sch_title']; ?></h1>
21+
<?php
22+
if($mod && $modx->hasPermission('edit_module')):
23+
?>
24+
<div class="food-settings">
25+
<a class="btn btn-primary food-icon food-icon-tools" href="index.php?a=108&id=<?= $mod["id"];?>" title="<?= $_lang["sch_settings"]; ?>" target="main"></a>
26+
</div>
27+
<?php
28+
endif;
29+
?>
30+
</div>
1931
<?php
2032
if($data["path"]):
2133
?>

0 commit comments

Comments
 (0)