-
-
-
+
+
+
Подробнее о программе →
@@ -1047,7 +1118,7 @@ $schema_graph[] = array('@type' => 'BreadcrumbList', 'itemListElement' => $bread
// ─── ЭКСПЕРТНОСТЬ ───
$teacher_creds = trim(implode(', ', array_filter(array(
$direction ?: '',
- ($tenure ? 'педагогический стаж ' . $tenure . ' лет' : ''),
+ ($tenure ? 'педагогический стаж ' . $tenure . ' ' . dekart_years_plural((int) $tenure) : ''),
))));
get_template_part('template-parts/author-eaat', null, array(
'author_name' => $full_name,
diff --git a/wp-content/themes/dekart/template-parts/teachers-cards.php b/wp-content/themes/dekart/template-parts/teachers-cards.php
index e45e6d1..b13ef50 100644
--- a/wp-content/themes/dekart/template-parts/teachers-cards.php
+++ b/wp-content/themes/dekart/template-parts/teachers-cards.php
@@ -56,7 +56,7 @@ $teachers_query = new WP_Query($query_args);
if ($start_year && is_numeric($start_year)) {
$e = (int) date('Y') - (int) $start_year;
if ($e > 0) {
- $t_exp = $e . ' лет';
+ $t_exp = $e . ' ' . dekart_years_plural($e);
}
}
@@ -106,6 +106,7 @@ $teachers_query = new WP_Query($query_args);