add zakons
This commit is contained in:
34
blocks/zakons.php
Normal file
34
blocks/zakons.php
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# три последних эвента
|
||||||
|
|
||||||
|
$posts = get_posts( array(
|
||||||
|
'numberposts' => 2,
|
||||||
|
'category' => 6,
|
||||||
|
'post_type' => 'post',
|
||||||
|
//'post_status' => 'publish, future',
|
||||||
|
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||||
|
) );
|
||||||
|
|
||||||
|
# вывод поста
|
||||||
|
if( $posts ):?>
|
||||||
|
|
||||||
|
<div class="publs_right">
|
||||||
|
|
||||||
|
<div class="publs_right_title">Законодательство</div>
|
||||||
|
|
||||||
|
<?foreach($posts as $post):
|
||||||
|
setup_postdata( $post );
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="publs_right_item">
|
||||||
|
<a href="<?php the_permalink(); ?>"><?php the_title();?></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php endforeach;?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?wp_reset_postdata();
|
||||||
|
|
||||||
|
endif;
|
||||||
@@ -88,6 +88,9 @@
|
|||||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/women-argo.jpg" width="240" height="400" />
|
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/women-argo.jpg" width="240" height="400" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php get_template_part( '/blocks/zakons');?>
|
||||||
|
|
||||||
<?get_template_part( '/blocks/mosts', null, ['subclass' => '']);?>
|
<?get_template_part( '/blocks/mosts', null, ['subclass' => '']);?>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- end main -->
|
</div><!-- end main -->
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
||||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=44">
|
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=45">
|
||||||
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
||||||
|
|||||||
36
style.css
36
style.css
@@ -129,7 +129,14 @@ a{
|
|||||||
|
|
||||||
#mainlogo{
|
#mainlogo{
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
width: 240px;
|
min-width: 260px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainlogo IMG{
|
||||||
|
min-width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-info{
|
.right-info{
|
||||||
@@ -300,7 +307,6 @@ a{
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
|
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@@ -591,7 +597,6 @@ a{
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-left: 22px;
|
margin-left: 22px;
|
||||||
width: 20%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* +7 (495) 925 06 34 info@vetandlife.ru */
|
/* +7 (495) 925 06 34 info@vetandlife.ru */
|
||||||
@@ -814,7 +819,7 @@ a{
|
|||||||
#nav_content{
|
#nav_content{
|
||||||
display: flex;
|
display: flex;
|
||||||
padding:0;
|
padding:0;
|
||||||
padding-bottom: 28px;
|
padding-bottom: 18px;
|
||||||
margin-top: 28px;
|
margin-top: 28px;
|
||||||
margin-bottom: 28px;
|
margin-bottom: 28px;
|
||||||
border-bottom: 1px solid #E9EAEB;
|
border-bottom: 1px solid #E9EAEB;
|
||||||
@@ -823,6 +828,8 @@ a{
|
|||||||
#nav_content li{
|
#nav_content li{
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
color: #909294;
|
color: #909294;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 3,2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav_content li a{
|
#nav_content li a{
|
||||||
@@ -886,11 +893,32 @@ a{
|
|||||||
background-color: #00466A;
|
background-color: #00466A;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 22px;
|
padding: 22px;
|
||||||
|
margin-bottom: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.publs_right{
|
||||||
|
border-top: 1px solid #E9EAEB;
|
||||||
|
margin: 22px;
|
||||||
|
padding-top: 18px;
|
||||||
|
padding-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.publs_right_title{
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.publs_right_item{
|
||||||
|
padding-top: 28px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.most_title{
|
.most_title{
|
||||||
color: #2D9CDB;
|
color: #2D9CDB;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user