diff --git a/blocks/card_post_id.php b/blocks/card_post_id.php index 8eb9609..00a079d 100644 --- a/blocks/card_post_id.php +++ b/blocks/card_post_id.php @@ -10,9 +10,9 @@ $curr_post = get_post( $id );?> ID) ) :?>
<?=$curr_post->post_title;?> - - - + '; + //endif?>
diff --git a/blocks/zakons.php b/blocks/zakons.php index 4858a96..ad87552 100644 --- a/blocks/zakons.php +++ b/blocks/zakons.php @@ -2,7 +2,7 @@ # три последних эвента -$posts = get_posts( array( +$zakon_posts = get_posts( array( 'numberposts' => 2, 'category' => 6, 'post_type' => 'post', @@ -11,24 +11,22 @@ $posts = get_posts( array( ) ); # вывод поста -if( $posts ):?> +if( $zakon_posts ):?>
Законодательство
-
- + post_title;?>
- \ No newline at end of file diff --git a/footer.php b/footer.php index d35d409..40f3246 100644 --- a/footer.php +++ b/footer.php @@ -10,12 +10,22 @@ - + - '']);?> - + '']); + get_blocks_gen('opinion'); + ?> + + + '']);?> @@ -71,35 +81,20 @@
- - - -
- -
- - - +
- + // get_template_part( '/blocks/zakons'); + get_blocks_gen( 'zakons' ); + }?> - - - - - - '']);?> 'mob-lite']);?> @@ -146,18 +141,9 @@
- - - +
-
- - - -
- - diff --git a/functions.php b/functions.php index c08c51a..6394f8c 100644 --- a/functions.php +++ b/functions.php @@ -15,12 +15,12 @@ define('IMGSERVER', 'https://img.vetandlife.ru/'); require ABSPATH.'/vendor/autoload.php'; #отключаем автообновления -add_filter('pre_site_transient_update_core',create_function('$a', "return null;")); -wp_clear_scheduled_hook('wp_version_check'); +//add_filter('pre_site_transient_update_core',create_function('$a', "return null;")); +//wp_clear_scheduled_hook('wp_version_check'); -remove_action( 'load-update-core.php', 'wp_update_plugins' ); -add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); -wp_clear_scheduled_hook( 'wp_update_plugins' ); +//remove_action( 'load-update-core.php', 'wp_update_plugins' ); +//add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); +//wp_clear_scheduled_hook( 'wp_update_plugins' ); #отключаем эмодзи diff --git a/header.php b/header.php index 6782598..ebfc444 100644 --- a/header.php +++ b/header.php @@ -4,12 +4,13 @@ + <?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?> - + @@ -103,17 +104,16 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ - +
- +
- +
- diff --git a/index.php b/index.php index 6e0a66e..f9edbd4 100644 --- a/index.php +++ b/index.php @@ -41,9 +41,13 @@ $nn = 0;?> - diff --git a/page-subscript.php b/page-subscript.php index 9629f60..475149e 100644 --- a/page-subscript.php +++ b/page-subscript.php @@ -10,7 +10,8 @@ get_header();?>