diff --git a/wp-content/themes/dekart/template-parts/author-eaat.php b/wp-content/themes/dekart/template-parts/author-eaat.php index 623c809..a8360ad 100644 --- a/wp-content/themes/dekart/template-parts/author-eaat.php +++ b/wp-content/themes/dekart/template-parts/author-eaat.php @@ -3,7 +3,7 @@ * E-E-A-T автор и даты — универсальный шаблон. * * Автор: поле на странице → OG: Site Name → «Частная школа Декарт». - * Годы на рынке: из branch_founded. + * Годы на рынке: schema_founded (CF) → branch_founded (Settings). * Даты: из WordPress (публикация/обновление). * * @package Dekart @@ -19,8 +19,8 @@ $post_id = get_the_ID(); $author_name = carbon_get_post_meta( $post_id, 'pksh_author_name' ) ?: get_option( 'branch_og_site_name', 'Частная школа Декарт' ); -// Годы на рынке -$founded = get_option( 'branch_founded', '' ); +// Годы на рынке: CF → Settings API → пусто +$founded = carbon_get_theme_option( 'schema_founded' ) ?: get_option( 'branch_founded', '' ); $years = $founded ? (int) date( 'Y' ) - (int) $founded : 0; $author_title = 'Образовательный центр с гослицензией';