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);