From 4e038df3ff608088453690bb0316f55d49e5906b Mon Sep 17 00:00:00 2001 From: Repellent Date: Sun, 11 Jan 2026 15:43:04 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=20=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=D0=B5=D0=B9=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20?= =?UTF-8?q?=D1=81=D0=B0=D0=BC=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B5=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D1=83=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ------- ReadMe.txt | 10 ---------- class/comment.php | 3 +++ 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 ReadMe.txt diff --git a/README.md b/README.md index 22feac5..5c059bd 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,4 @@ https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css ``` ``` https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css -``` - -### Подготовленные стили для модуля: - -#### Добавить в шаблон -``` - ``` \ No newline at end of file diff --git a/ReadMe.txt b/ReadMe.txt deleted file mode 100644 index b8fcf7a..0000000 --- a/ReadMe.txt +++ /dev/null @@ -1,10 +0,0 @@ -Для AJAX работы модуля не забудьте подключить: -https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js -https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.3.0/jquery.form.min.js -https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js - -Стили: -https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css -https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css - -Добавить в шаблон \ No newline at end of file diff --git a/class/comment.php b/class/comment.php index af39b27..354d108 100644 --- a/class/comment.php +++ b/class/comment.php @@ -252,6 +252,9 @@ function commentListShow($tpl_dir) $artpage = $_REQUEST['artpage'] ?? null; $apage = $_REQUEST['apage'] ?? null; $user_group = (int)(UGROUP ?? 0); + + // 1. Подключаем CSS + $GLOBALS['user_header']['comment_css'] = ''; // --- ОПРЕДЕЛЯЕМ ТЕКУЩЕГО ПОЛЬЗОВАТЕЛЯ --- $current_user_id = (int)($_SESSION['user_id'] ?? 0);