diff --git a/footer.php b/footer.php
index 40f3246..c1abacc 100644
--- a/footer.php
+++ b/footer.php
@@ -80,10 +80,18 @@
+
+ banners_conf_display( 'right_240x400_1' ) ?>
+
+
+
+ banners_conf_display( 'right_240x400_2' ) ?>
+
+
banners_conf_display( 'vgnki_240x400' ) ?>
-
+
@@ -138,12 +146,19 @@
-
+
+ banners_conf_display( 'right_240x200_1' ) ?>
+
+
+
+ banners_conf_display( 'right_240x200_2' ) ?>
+
banners_conf_display( 'vgnki_240x200' ) ?>
+
diff --git a/functions.php b/functions.php
index 6394f8c..a1e296c 100644
--- a/functions.php
+++ b/functions.php
@@ -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;
diff --git a/header.php b/header.php
index ebfc444..bd0d799 100644
--- a/header.php
+++ b/header.php
@@ -1,8 +1,9 @@
-
-
+
+
+
=get_bloginfo('name')?>
diff --git a/index.php b/index.php
index f9edbd4..e6ca90c 100644
--- a/index.php
+++ b/index.php
@@ -49,6 +49,10 @@ $nn = 0;?>
//elseif($nn == 4):
//card_post_id(29005, '');
//endif?>
+
+ //if($nn == 4):
+ //card_post_id(31271, '');
+ //endif?>
diff --git a/page-19009.php b/page-19009.php
deleted file mode 100644
index 11b1076..0000000
--- a/page-19009.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
Тестовая страница
-
-
-
-
-

-
-
-
-
-

-
-
-
-
-
-
-
-
-
+
diff --git a/wp-future.php b/wp-future.php
index a1415e1..4bf4514 100644
--- a/wp-future.php
+++ b/wp-future.php
@@ -1,7 +1,7 @@