Global 2026-07-17

This commit is contained in:
Dekart Deploy Bot 2026-07-17 18:50:14 +00:00
parent 547e3728a9
commit 032b1ce48a
2 changed files with 4 additions and 12 deletions

View File

@ -2019,11 +2019,6 @@ function dekart_branch_settings_page() {
<label>Почтовый индекс</label>
<input type="text" name="branch_postal_code" value="<?php echo esc_attr( get_option( 'branch_postal_code', '' ) ); ?>">
</div>
<div class="branch-field">
<label>Города обслуживания (areaServed)</label>
<input type="text" name="branch_area_served" value="<?php echo esc_attr( get_option( 'branch_area_served', 'Щёлково, Фрязино, Монино, Ивантеевка, Королёв' ) ); ?>">
<p class="desc">Через запятую. Для Schema.org LocalBusiness.areaServed</p>
</div>
<div class="branch-field">
<label>Google Place ID</label>
<input type="text" name="branch_google_place_id" value="<?php echo esc_attr( get_option( 'branch_google_place_id', '' ) ); ?>">
@ -2192,11 +2187,7 @@ function dekart_branch_settings_page() {
<textarea name="branch_schema_description" rows="3" style="width:100%;max-width:500px"><?php echo esc_textarea( get_option( 'branch_schema_description', '' ) ); ?></textarea>
<p class="desc">Появляется в сниппете Google и Яндекса как описание организации. Рекомендуется 12 предложения: тип школы, какие классы, особенности. Пример: «Частная школа полного дня в Щёлково. Обучение с 1 по 11 класс, подготовка к ЕГЭ и ОГЭ, индивидуальный подход.» Если пусто собирается автоматически из названия и города филиала.</p>
</div>
<div class="branch-field">
<label>Города присутствия (для Schema.org areaServed)</label>
<input type="text" name="branch_area_served" value="<?php echo esc_attr( get_option( 'branch_area_served', 'Щёлково, Фрязино, Монино' ) ); ?>" style="width:100%;max-width:500px">
<p class="desc">Города через запятую, где работает школа. Первым укажите город филиала. Влияет на локальный поиск школа будет показываться жителям этих городов. Пример: <code>Щёлково, Фрязино, Монино, Ивантеевка, Королёв</code></p>
</div>
</div>
</div>

View File

@ -525,8 +525,9 @@ function dekart_schema_local_business(): ?array {
$google_place_id = get_option( 'branch_google_place_id' );
// branch_google_maps_url — Google Maps URL для hasMap
$google_maps_url = get_option( 'branch_google_maps_url' );
// branch_area_served — города обслуживания (через запятую)
$area_served_raw = get_option( 'branch_area_served', 'Щёлково, Фрязино, Монино, Ивантеевка, Королёв' );
// area_served — города обслуживания (через запятую)
// Приоритет: CF schema_area_served → Settings API branch_area_served
$area_served_raw = carbon_get_theme_option( 'schema_area_served' ) ?: get_option( 'branch_area_served', 'Щёлково, Фрязино, Монино, Ивантеевка, Королёв' );
// branch_hours — часы работы: CF complex (schema_hours) → textarea (branch_hours)
$hours_cf = carbon_get_theme_option( 'schema_hours' );