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.
39 lines
1.3 KiB
39 lines
1.3 KiB
<?php
|
|
/**
|
|
* Template Name: About Page
|
|
* Description: About page template
|
|
*/
|
|
?>
|
|
|
|
|
|
<?php
|
|
|
|
add_action('wp_enqueue_scripts', function() {
|
|
enqueue_static_assets('front-page'); // Для директории /static/main/
|
|
enqueue_static_assets('about'); // Для директории /static/main/
|
|
// С дополнительными параметрами
|
|
// enqueue_static_assets('theme', ['css' => false, 'version' => '1.0.0']);
|
|
});
|
|
|
|
$context = Timber::get_context();
|
|
$context['title'] = get_field('title');
|
|
$context['text'] = get_field('text');
|
|
$context['adv_title'] = get_field('adv_title');
|
|
$context['adv_text'] = get_field('adv_text');
|
|
$context['adv'] = get_field('adv');
|
|
$context['adv_sum'] = get_field('adv_sum');
|
|
$context['adv_2'] = get_field('adv_2');
|
|
$context['about_title'] = get_field('about_title');
|
|
$context['about_text'] = get_field('about_text');
|
|
$context['about_img'] = get_field('about_img');
|
|
$context['about_points'] = get_field('about_points');
|
|
$context['diag_title'] = get_field('diag_title');
|
|
$context['diag_points'] = get_field('diag_points');
|
|
$context['diag_img'] = get_field('diag_img');
|
|
$context['e_title'] = get_field('e-title');
|
|
$context['e_points'] = get_field('e-points');
|
|
$context['faq'] = get_field('faq');
|
|
|
|
Timber::render('templates/about/about.twig', $context);
|
|
|
|
?>
|
|
|