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/static-pages/about/template-about.php

39 lines
1.3 KiB

<?php
/**
* Template Name: About Page
* Description: About page template
*/
?>
<?php
add_action('wp_enqueue_scripts', function() {
wp_enqueue_style('gp-front-page-style', get_template_directory_uri() . '/static/css/front-page.css');
wp_enqueue_style('gp-about-page-style', get_template_directory_uri() . '/static/css/about-page.css');
wp_enqueue_script( 'gp-about-page-main', get_template_directory_uri() . '/static/js/about-page.js', array(), null, true );
});
$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('_pages/about.twig', $context);
?>