add view to function
This commit is contained in:
@@ -25,13 +25,13 @@
|
|||||||
'4' => [
|
'4' => [
|
||||||
'name' => 'Елена Орехова',
|
'name' => 'Елена Орехова',
|
||||||
'position' => 'Заместитель редактора',
|
'position' => 'Заместитель редактора',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/makeeva.png'
|
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/orexova.jpg'
|
||||||
],
|
],
|
||||||
|
|
||||||
'5' => [
|
'5' => [
|
||||||
'name' => 'Елена Каримова',
|
'name' => 'Елена Каримова',
|
||||||
'position' => 'Научный обозреватель',
|
'position' => 'Научный обозреватель',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/makeeva.png'
|
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/karimova.jpg'
|
||||||
],
|
],
|
||||||
|
|
||||||
'6' => [
|
'6' => [
|
||||||
@@ -46,11 +46,11 @@
|
|||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
||||||
],
|
],
|
||||||
|
|
||||||
'8' => [
|
/** '8' => [
|
||||||
'name' => 'Ольга Дружинина',
|
'name' => 'Ольга Дружинина',
|
||||||
'position' => 'Автор',
|
'position' => 'Автор',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
||||||
],
|
], */
|
||||||
|
|
||||||
'9' => [
|
'9' => [
|
||||||
'name' => 'Ксения Рахманова',
|
'name' => 'Ксения Рахманова',
|
||||||
|
|||||||
11
footer.php
11
footer.php
@@ -37,10 +37,21 @@
|
|||||||
<?php $copyright = get_field('copyright', 'option'); ?>
|
<?php $copyright = get_field('copyright', 'option'); ?>
|
||||||
<div class="footer-bottom__text desktop">
|
<div class="footer-bottom__text desktop">
|
||||||
<?= sprintf('© %d %s', date('Y'), $copyright); ?>
|
<?= sprintf('© %d %s', date('Y'), $copyright); ?>
|
||||||
|
<!--Rating::top.agroserver.ru counter-->
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php get_template_part('partials/menu-footer-bottom'); ?>
|
<?php get_template_part('partials/menu-footer-bottom'); ?>
|
||||||
<div class="socials footer__socials">
|
<div class="socials footer__socials">
|
||||||
<?php get_template_part('partials/menu-socials'); ?>
|
<?php get_template_part('partials/menu-socials'); ?>
|
||||||
|
<a href="https://agroserver.ru/" target="_blank">
|
||||||
|
<script language="javascript">
|
||||||
|
var r = escape(document.referrer);
|
||||||
|
var rd = Math.random();
|
||||||
|
var pr = 'https://top.agroserver.ru/ct/';
|
||||||
|
document.write('<img src="'+pr+'?uid=18819&ref='+r+'&rd='+rd+'" width="88" height="31" border="0">');
|
||||||
|
</script></a>
|
||||||
|
<!--// Rating::top.agroserver.ru counter-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-bottom__text mobile">
|
<div class="footer-bottom__text mobile">
|
||||||
|
|||||||
@@ -753,4 +753,27 @@ $hash_link.\n\n
|
|||||||
|
|
||||||
add_action('wpcf7_mail_sent', 'my_custom_mail_sent' );
|
add_action('wpcf7_mail_sent', 'my_custom_mail_sent' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!function_exists('view')){
|
||||||
|
function view ($view, $data = array(), $layer = null){
|
||||||
|
|
||||||
|
ob_start();
|
||||||
|
|
||||||
|
if (is_array($data))
|
||||||
|
extract($data);
|
||||||
|
if ($layer !== null){
|
||||||
|
$content = view($view, $data);
|
||||||
|
require $layer;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
require $view;
|
||||||
|
|
||||||
|
return trim(ob_get_clean());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,12 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|||||||
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_desktop', false) !== ''):?>
|
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_desktop', false) !== ''):?>
|
||||||
<div class="banner banner--header desktop">
|
<div class="banner banner--header desktop">
|
||||||
<?php banners_conf_display('header_banner_desktop'); ?>
|
<?php banners_conf_display('header_banner_desktop'); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_mobile', false) !== ''):?>
|
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_mobile', false) !== ''):?>
|
||||||
<div class="banner banner--header mobile">
|
<div class="banner banner--header mobile">
|
||||||
<?php banners_conf_display('header_banner_mobile'); ?>
|
<?php banners_conf_display('header_banner_mobile'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user