new logic menu conf
This commit is contained in:
33
page-forest-experts.php
Normal file
33
page-forest-experts.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying all pages
|
||||
*
|
||||
* This is the template that displays all pages by default.
|
||||
*
|
||||
* @package YourThemeName
|
||||
*/
|
||||
|
||||
get_header( 'forest' ); ?>
|
||||
|
||||
<div class="content-middle articles-wrapper">
|
||||
|
||||
<div class="section-title about-section-title">
|
||||
<h1 class="section-title__title"><? the_title();?></h1>
|
||||
</div>
|
||||
|
||||
<div class="article-single">
|
||||
|
||||
<div class="article-single__content">
|
||||
<? the_content();?>
|
||||
</div>
|
||||
|
||||
<div class="article-social">Подписывайтесь на нас в <a href="https://dzen.ru/agroexpert_press?favid=254170145" target="_blank">Дзен</a> и <a href="https://t.me/agroexpert_press" target="_blank">Telegram</a></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
get_footer( 'forest' );
|
||||
@@ -5,20 +5,9 @@ $locations = get_nav_menu_locations();
|
||||
$menu_id = $locations[$menu_location];
|
||||
$menu_items = wp_get_nav_menu_items($menu_id);
|
||||
|
||||
$privacyPolicy = get_field('privacy_policy', 'option');
|
||||
//$privacyPolicy = get_field('privacy_policy', 'option');
|
||||
|
||||
|
||||
foreach ($menu_items ?? [] as $menu_item) {
|
||||
|
||||
if($privacyPolicy) {
|
||||
|
||||
if($menu_item->post_name === 'politika-konfidenczialnosti') $file = $privacyPolicy['file']['url'];
|
||||
|
||||
if($menu_item->post_name === 'svidetelstvo-o-registraczii-elektronnogo-smi') $file = $privacyPolicy['file_certificate']['url'];
|
||||
|
||||
echo "<a href='" . esc_url($file) . "' class='footer-bottom__text footer-bottom__link' target='_blank'>" . $menu_item->title . "</a>";
|
||||
} else {
|
||||
echo "<a href='" . esc_url($menu_item->url) . "' class='footer-bottom__text footer-bottom__link' target='_blank'>" . $menu_item->title . "</a>";
|
||||
}
|
||||
|
||||
echo "<a href='" . esc_url($menu_item->url) . "' class='footer-bottom__text footer-bottom__link' target='_blank'>" . esc_html($menu_item->title) . "</a>";
|
||||
}
|
||||
|
||||
@@ -10,6 +10,12 @@
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?if (function_exists('krutilka_placement')):?>
|
||||
<div class="banner-left desktop">
|
||||
<?=krutilka_placement( 'left-desktop-0' );?>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<div class="subscribe-form">
|
||||
<p class="subscribe-form__title subtitle-20">
|
||||
Подписка на рассылку
|
||||
|
||||
Reference in New Issue
Block a user