Jamil-Abdullayev b8246597d4 Initial commit: orgsteklo WordPress theme
Custom WooCommerce theme for orgsteklo.ru including:
- Product catalog with category/subcategory hierarchy
- Custom checkout with delivery calculation
- Price calculator
- Admin settings panel
- Search functionality
- User account pages
2026-03-05 00:48:06 +04:00

36 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php get_header(); ?>
<main>
<nav class="breadcumbs container">
<ul>
<li><a href="/">Главная</a></li>
<li><p class="breadcumbs-separator">/</p></li>
<li><p>Ошибка 404</p></li>
</ul>
</nav>
<section class="page_404">
<div class="page_404-container container">
<div class="page_404-main">
<h2>404</h2>
<h3>Похоже такой страницы не существует</h3>
<?php
function plural_form($number, $forms) {
$n = abs($number) % 100;
$n1 = $n % 10;
if ($n > 10 && $n < 20) return $forms[2];
if ($n1 > 1 && $n1 < 5) return $forms[1];
if ($n1 == 1) return $forms[0];
return $forms[2];
}
$product_count = wp_count_posts('product')->publish;
$word = plural_form($product_count, ['товар', 'товара', 'товаров']);
echo '<p>Но зато у нас есть более ' . number_format_i18n($product_count, 0) . ' ' . $word . '.</p>';
?>
<a href="/catalog" class="page_404-link">
Перейти в каталог
<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3242 4.44727L15.8767 8.99977L11.3242 13.5523" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.125 9H15.7475" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>
</a>
</div>
</div>
</section>
</main>
<?php get_footer(); ?>