diff --git a/admin_credentials.txt b/admin_credentials.txt index d888f1b..5a46981 100644 --- a/admin_credentials.txt +++ b/admin_credentials.txt @@ -1,4 +1,4 @@ WordPress Admin Credentials: URL: http://localhost/wp-admin Username: admin -Password: c59u3v2geHuIQMRP +Password: H0ZpANnG18nK8AUq diff --git a/wp-content/plugins/blog-style-refresh/blog-style-refresh.php b/wp-content/plugins/blog-style-refresh/blog-style-refresh.php new file mode 100644 index 0000000..37da9ee --- /dev/null +++ b/wp-content/plugins/blog-style-refresh/blog-style-refresh.php @@ -0,0 +1,168 @@ +is_main_query() || is_feed()) { + return; + } + + if (!(is_front_page() || is_home())) { + return; + } + + static $hero_rendered = false; + if ($hero_rendered) { + return; + } + $hero_rendered = true; + + $posts_page_id = (int) get_option('page_for_posts'); + $blog_url = $posts_page_id ? get_permalink($posts_page_id) : home_url('/'); + + echo '
'; + echo '
'; + echo '

Личный блог

'; + echo '

Пишу о жизни, технологиях и мыслях

'; + echo '

Спокойные статьи без шума: практичные идеи, наблюдения и полезные заметки на каждый день.

'; + echo ''; + echo '
'; + echo '
'; +}, 9); + +add_action('wp_enqueue_scripts', function () { + $css = << li, +article.post { + border-radius: 18px; + background: #fff; + box-shadow: 0 12px 36px rgba(20,20,43,.08); + padding: clamp(18px,2vw,30px); + margin-bottom: 28px; +} +.wp-block-post-title a, +h1.wp-block-post-title, +.entry-title { color: var(--blog-text); text-decoration: none; } +.wp-block-post-title a:hover { color: var(--blog-accent); } +.wp-block-post-featured-image img, +.entry-content img { + border-radius: 14px; + box-shadow: 0 10px 26px rgba(0,0,0,.12); + max-width: 100%; + height: auto; + display: block; +} +.entry-content figure, +.entry-content .wp-block-image { + max-width: 100%; + margin-left: 0; + margin-right: 0; +} +.entry-content .alignwide, +.entry-content .alignfull { + width: 100%; + max-width: 100%; + margin-left: auto; + margin-right: auto; +} +.entry-content, +.wp-block-post-excerpt, +.wp-block-post-content, +.wp-block-group.is-layout-constrained > * { + max-width: var(--blog-max-width); + margin-left: auto; + margin-right: auto; +} +.entry-content p, +.wp-block-post-content p { + font-size: 1.08rem; + line-height: 1.8; + color: #2b3340; +} +a { text-underline-offset: 3px; } +a:hover { color: var(--blog-accent); } +.wp-block-tag-cloud a, +.wp-block-post-terms a { + display: inline-block; + border-radius: 999px; + padding: 4px 10px; + background: #f2f3ff; + margin-right: 6px; +} +.wp-block-button__link, +button, +input[type='submit'] { + border-radius: 999px !important; +} +@media (max-width: 782px) { + .blog-hero { + margin: 14px auto 22px; + padding: 0 10px; + } +} +CSS; + wp_register_style('blog-style-refresh', false, [], '1.0.3'); + wp_enqueue_style('blog-style-refresh'); + wp_add_inline_style('blog-style-refresh', $css); +}, 20);