You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
cosmopet-architecture/wp-content/themes/cosmopet/modules/footer/module-controller.php

19 lines
850 B

<?php
/* TO_DO почему-то здесь берется из админки, а внутри timber/context подтягивает неизвестно откуда старые значения */
global $social;
$social = get_field('social', 'options');
// Добавляем данные в контекст Timber
add_filter('timber/context', function($context) {
global $social;
$context['email_list'] = get_field('email_list', 'options');
$context['email_list_ae'] = get_field('email_list_ae', 'options');
$context['adres'] = get_field('adres', 'options');
// $context['social'] = get_field('social', 'options'); // вытягивало непонятно откуда
$context['social'] = $social;
$context['footer-links'] = get_field('footer-links', 'options');
return $context;
});