Global 2026-07-19 ПКШ

This commit is contained in:
Dekart Deploy Bot 2026-07-19 07:53:51 +00:00
parent 8f91d6e177
commit 08a53760c6

View File

@ -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 = 'Образовательный центр с гослицензией';