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/templates/production/template-prod-page.php

28 lines
808 B

<?php
/**
* Template Name: Production
* Description: Production page template
*/
?>
<?php
add_action('wp_enqueue_scripts', function() {
enqueue_static_assets('front-page'); // Для директории /static/main/
enqueue_static_assets('production'); // Для директории /static/main/
// С дополнительными параметрами
// enqueue_static_assets('theme', ['css' => false, 'version' => '1.0.0']);
});
$context = Timber::get_context();
$context['title'] = get_field('title');
$context['btn_text'] = get_field('btn_text');
$context['desc'] = get_field('desc');
$context['steps_1'] = get_field('steps_1');
$context['steps_2'] = get_field('steps_2');
Timber::render('templates/production/production.twig', $context);
?>