dev_10_fixbugs
commit
fdab7e2422
@ -0,0 +1,18 @@ |
|||||||
|
<?php |
||||||
|
/* |
||||||
|
Template Name: Policy |
||||||
|
Template Post Type: page |
||||||
|
*/ |
||||||
|
|
||||||
|
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-wtb-page-style', get_template_directory_uri() . '/static/css/policy-page.css'); |
||||||
|
wp_enqueue_script( 'gp-wtb-page-main', get_template_directory_uri() . '/static/js/wtb-page.js', array(), null, true ); |
||||||
|
}); |
||||||
|
|
||||||
|
// Инициализация Timber |
||||||
|
$context = Timber::context(); |
||||||
|
|
||||||
|
// Рендеринг шаблона |
||||||
|
Timber::render('_pages/policy.twig', $context); |
||||||
|
?> |
@ -0,0 +1,38 @@ |
|||||||
|
.policy-home { |
||||||
|
margin-top: 5%; |
||||||
|
margin-bottom: 5%; |
||||||
|
} |
||||||
|
|
||||||
|
h1 { |
||||||
|
font-family: "Craftwork Grotesk"; |
||||||
|
font-size: 48px; |
||||||
|
font-weight: 700; |
||||||
|
line-height: 56px; |
||||||
|
text-transform: uppercase; |
||||||
|
margin-bottom: 60px; |
||||||
|
} |
||||||
|
|
||||||
|
h3 { |
||||||
|
font-size: 24px; |
||||||
|
font-family: "Craftwork Grotesk"; |
||||||
|
margin-top: 20px; |
||||||
|
margin-bottom: 20px; |
||||||
|
} |
||||||
|
|
||||||
|
p { |
||||||
|
font-size: 18px; |
||||||
|
font-family: "Craftwork Grotesk"; |
||||||
|
margin-bottom: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
ul { |
||||||
|
margin-bottom: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
li { |
||||||
|
font-size: 18px; |
||||||
|
font-family: "Craftwork Grotesk"; |
||||||
|
margin-bottom: 10px; |
||||||
|
list-style-type: disc; |
||||||
|
margin-left: 25px; |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
{% set bodyClass = 'main-np' %} |
||||||
|
|
||||||
|
{% extends 'layout.twig' %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<div class="body-wrap"> |
||||||
|
<main class="wrapper" style="padding-top: 0;"> |
||||||
|
<section class="policy-home"> |
||||||
|
<div class="container"> |
||||||
|
{{ post.content }} <!-- Вывод контента из WordPress --> |
||||||
|
</div> |
||||||
|
</section> |
||||||
|
</main> |
||||||
|
</div> |
||||||
|
{% endblock %} |
Loading…
Reference in new issue