diff --git a/author.php b/author.php
index f7953e7..b666055 100644
--- a/author.php
+++ b/author.php
@@ -1,15 +1,29 @@
-
-
+
+
+
 . ')
';
+ } else {
+ echo '
' . get_avatar($author_id, 100, '', '', array('class' => 'avatar-round')) . '
';
+ }
+ ?>
= get_the_author(); ?>
';
+ echo '
';
echo nl2br(esc_html($author_description));
echo '
';
}
@@ -22,7 +36,7 @@
'post_type' => 'post',
'posts_per_page' => 11,
'paged' => $paged,
- 'author' => get_queried_object_id()
+ 'author' => $author_id
);
$query = new WP_Query($args);
?>
@@ -31,4 +45,4 @@
-
+
\ No newline at end of file
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 7796d77..9d4e21a 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -23,8 +23,14 @@ COPY vite.config.js vite.config.js
COPY ./certs /certs
+# Открываем порт, который использует dev-сервер (например, Vite)
+EXPOSE 5173
+
+# Запускаем dev-сервер (например, `npm run dev` для Vite)
+CMD ["npm", "run", "dev"]
+
# Определяем команду, которая будет выполняться при каждом запуске контейнера
#CMD npm run build && chown -R 1000:1000 ./dist
#CMD ["npm", "run", "build"]
-ENTRYPOINT ["npm", "run"]
\ No newline at end of file
+#ENTRYPOINT ["npm", "run"]
\ No newline at end of file
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 53a1073..93e0770 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -21,6 +21,7 @@ import './styles/components/single-partner-item.css';
import './styles/components/suggestion-item.css';
import './styles/components/agro-informer.css';
import './styles/components/cookie-consent.css';
+import './styles/components/author.css';
// rfo
diff --git a/frontend/src/styles/components/author.css b/frontend/src/styles/components/author.css
new file mode 100644
index 0000000..6c563a9
--- /dev/null
+++ b/frontend/src/styles/components/author.css
@@ -0,0 +1,19 @@
+.section-title-author{
+ padding: 2.5rem 0 0 2.5rem;
+ display: flex;
+ align-items: center; /* центрирование по вертикали */
+ gap: 18px;
+}
+
+.author-avatar{
+ width: 10rem;
+ height: 10rem;
+ border-radius: 50%;
+ overflow: hidden;
+ position: relative;
+}
+
+.author-desc{
+ margin-top: 0.5rem;
+ padding: 1.5rem 1.25rem;
+}
\ No newline at end of file
diff --git a/functions.php b/functions.php
index 76ff30e..f601b85 100644
--- a/functions.php
+++ b/functions.php
@@ -4,6 +4,7 @@ setlocale(LC_TIME, 'ru_RU.UTF-8');
require get_template_directory() . '/inc/rubrics-menu.php'; // Рубрики в меню
require get_template_directory() . '/inc/special.php'; // Подключаем спецпроекты
require get_template_directory() . '/inc/spravochniki.php'; // Подключаем справочники
+require get_template_directory() . '/inc/avatar.php'; // Подключаем фото авторов
// Полностью отключить XML-RPC
add_filter( 'xmlrpc_enabled', '__return_false' );
diff --git a/inc/avatar.php b/inc/avatar.php
new file mode 100644
index 0000000..ecc46c3
--- /dev/null
+++ b/inc/avatar.php
@@ -0,0 +1,64 @@
+
+