correct php 8.2
This commit is contained in:
19
footer.php
19
footer.php
@@ -80,10 +80,18 @@
|
||||
|
||||
<?if (LANG_VERSION == 'ru'):?>
|
||||
|
||||
<div class="right-info">
|
||||
<? banners_conf_display( 'right_240x400_1' ) ?>
|
||||
</div>
|
||||
|
||||
<div class="right-info">
|
||||
<? banners_conf_display( 'right_240x400_2' ) ?>
|
||||
</div>
|
||||
|
||||
<div class="right-info">
|
||||
<? banners_conf_display( 'vgnki_240x400' ) ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?endif?>
|
||||
|
||||
|
||||
@@ -138,12 +146,19 @@
|
||||
|
||||
<?if (LANG_VERSION == 'ru'):?>
|
||||
|
||||
|
||||
<div class="mobile-info">
|
||||
<? banners_conf_display( 'right_240x200_1' ) ?>
|
||||
</div>
|
||||
|
||||
<div class="mobile-info">
|
||||
<? banners_conf_display( 'right_240x200_2' ) ?>
|
||||
</div>
|
||||
|
||||
<div class="mobile-info">
|
||||
<? banners_conf_display( 'vgnki_240x200' ) ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?endif?>
|
||||
|
||||
|
||||
@@ -43,17 +43,13 @@ function disable_wp_emojis_in_tinymce( $plugins ) {
|
||||
|
||||
|
||||
|
||||
|
||||
require get_template_directory().'/src/calend-block.php';
|
||||
require get_template_directory().'/src/calendar.php';
|
||||
require get_template_directory().'/src/perevod.php';
|
||||
require get_template_directory().'/lang.php';
|
||||
require get_template_directory().'/blocks/card_post_id.php';
|
||||
|
||||
|
||||
|
||||
|
||||
require get_template_directory().'/lang.php'; // функции перевода
|
||||
//require get_template_directory().'/blocks/card_post_id.php';
|
||||
|
||||
add_post_type_support('post', 'page-attributes');
|
||||
|
||||
//require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
|
||||
|
||||
@@ -173,6 +169,10 @@ add_filter( 'single_template', function ( $single_template ) {
|
||||
#search
|
||||
function my_search_order( $query ) {
|
||||
|
||||
if (!isset( $_GET['s'] )){
|
||||
return '';
|
||||
}
|
||||
|
||||
$s = trim($_GET['s']);
|
||||
|
||||
if ($query->is_search) {
|
||||
@@ -809,9 +809,6 @@ function find_youtube($str) {
|
||||
add_filter('the_content', 'add_div_youtube');
|
||||
|
||||
|
||||
//preview
|
||||
ini_set('display_errors', 'off');
|
||||
|
||||
add_filter( 'posts_results', 'set_query_to_draft', null, 2 );
|
||||
function set_query_to_draft( $posts, &$query ) {
|
||||
|
||||
@@ -823,7 +820,7 @@ $post_status_obj = get_post_status_object(get_post_status( $posts[0]));
|
||||
if ( !$post_status_obj->name == 'draft' )
|
||||
return $posts;
|
||||
|
||||
if ( $_GET['key'] != 'guest' )
|
||||
if ( !isset($_GET['key']) or $_GET['key'] != 'guest' )
|
||||
return $posts;
|
||||
|
||||
$query->_draft_post = $posts;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1"/>
|
||||
<meta name="yandex-verification" content="22f98955910722f8" />
|
||||
<meta name="zen-verification" content="9Ui9YzVJgKUB7bIgRNnAZqdHCNI8v9REm3TDpW0kciEicYyuD640moNznBDbFqcT" />
|
||||
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
||||
|
||||
@@ -49,6 +49,10 @@ $nn = 0;?>
|
||||
//elseif($nn == 4):
|
||||
//card_post_id(29005, '');
|
||||
//endif?>
|
||||
|
||||
<?//if($nn == 4):
|
||||
//card_post_id(31271, '');
|
||||
//endif?>
|
||||
|
||||
<?if ($nn < 25):?>
|
||||
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
|
||||
define('TESTMODE', 1);
|
||||
|
||||
include 'header.php';?>
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1 id="mainpage-title">Тестовая страница</h1>
|
||||
|
||||
<style>
|
||||
|
||||
.center-banner{
|
||||
width: 100%;
|
||||
display: block;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.center-banner img{
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 768px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="center-banner">
|
||||
<img src="https://vetandlife.ru/wp-content/themes/vij/pub/banners/banner-768-110.jpg" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="center-banner">
|
||||
<img src="https://vetandlife.ru/wp-content/themes/vij/pub/banners/banner-768.jpg" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<?get_footer();
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
|
||||
include_once '/vhosts/beta/wp-load.php';
|
||||
include_once '/vhosts/vetandlife.ru/wp-load.php';
|
||||
|
||||
function filterHtml($html) {
|
||||
|
||||
@@ -29,10 +29,10 @@ $posts = get_posts( array(
|
||||
|
||||
|
||||
// Яндекс Новости
|
||||
create_rss_file($posts, 'views/rss/yanews.php', '/vhosts/beta/rss/yanews.xml');
|
||||
create_rss_file($posts, 'views/rss/yanews.php', '/vhosts/vetandlife.ru/rss/yanews.xml');
|
||||
|
||||
// Общая лента
|
||||
create_rss_file($posts, 'views/rss/rssnews.php', '/vhosts/beta/rss/news.xml');
|
||||
create_rss_file($posts, 'views/rss/rssnews.php', '/vhosts/vetandlife.ru/rss/news.xml');
|
||||
|
||||
|
||||
|
||||
|
||||
3
tag.php
3
tag.php
@@ -1,5 +1,6 @@
|
||||
|
||||
<div>
|
||||
<?php get_header(); ?>
|
||||
<?php sleep(2); get_header(); ?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
//require '/thosts/vij/wp/vendor/autoload.php';
|
||||
require '/vhosts/beta/vendor/autoload.php';
|
||||
require '/vhosts/vetandlife.ru/vendor/autoload.php';
|
||||
|
||||
dbl_config('vetandlife', 'mysql:host=mysql;dbname=vetandlife', 'vetandlife', 'g-34hJk-3-er2');
|
||||
$currdate = date('Y-m-d H:i:s');
|
||||
|
||||
Reference in New Issue
Block a user