add search
This commit is contained in:
@@ -22,8 +22,10 @@ if( $posts ):
|
||||
|
||||
<div class="right_archive">
|
||||
<img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?the_title();?>">
|
||||
<div class="right_archive_text"><a href="<?php the_permalink(); ?>">Читать газету:<br><?php the_title();?></a></div>
|
||||
</div>
|
||||
<div class="right_archive_text">Читать газету<br>«Ветеринария и Жизнь»</div>
|
||||
<div class="right_archive_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php endforeach;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ if( $posts ):
|
||||
|
||||
foreach($posts as $post):?>
|
||||
|
||||
<div class="left_citata<?if (isset($subclass)) echo $subclass;?>">
|
||||
<div class="left_citata<?if ($args['subclass'] !== '') echo ' '.$args['subclass'];?>">
|
||||
<div class="left_citata_title">цитата</div>
|
||||
<img class="left_preview" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?the_title();?>">
|
||||
<div class="left_citata_text"><a href="<?=get_permalink($post);?>">«<?=$post->post_title;?>»</a></div>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
$key = 'vij_mosts';
|
||||
//$key = 'vij_mosts';
|
||||
|
||||
if (!$mosts = kuri_set($key)) {
|
||||
//if (!$mosts = kuri_set($key)) {
|
||||
|
||||
$mosts = get_posts( array(
|
||||
'numberposts' => 3,
|
||||
@@ -17,13 +17,14 @@ if (!$mosts = kuri_set($key)) {
|
||||
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||
));
|
||||
|
||||
kuri_set($key, $mosts);
|
||||
}
|
||||
// kuri_set($key, $mosts);
|
||||
//}
|
||||
|
||||
|
||||
# вывод поста
|
||||
if( $mosts ):?>
|
||||
|
||||
<div class="mosts<?if (isset($subclass)) echo $subclass;?>">
|
||||
<div class="mosts<?if ($args['subclass'] !== '') echo ' '.$args['subclass'];?>">
|
||||
<h3 class="most_title">Самое читаемое</h3>
|
||||
|
||||
<?php foreach($mosts as $most):?>
|
||||
|
||||
@@ -20,19 +20,14 @@ if (!$opinions = kuri_set($key)) {
|
||||
}
|
||||
|
||||
# вывод поста
|
||||
if($opinions ):
|
||||
if(is_array($opinions)):
|
||||
|
||||
foreach($opinions as $post):
|
||||
setup_postdata( $opinions );
|
||||
?>
|
||||
$post = $opinions[0];?>
|
||||
|
||||
<div class="left_opinion<?if (isset($subclass)) echo $subclass;?>">
|
||||
<div class="left_opinion<?if ($args['subclass'] !== '') echo ' '.$args['subclass'];?>">
|
||||
<div class="left_opinion_title">мнение</div>
|
||||
<img class="left_preview" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?=$post->post_title;?>">
|
||||
<div class="left_opinion_text"><a href="<?=get_permalink($post);?>"><?=$post->post_title;?></a></div>
|
||||
</div>
|
||||
|
||||
<?php endforeach;
|
||||
|
||||
|
||||
endif;
|
||||
<?php endif;
|
||||
|
||||
7
blocks/paginator.php
Normal file
7
blocks/paginator.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php if ( $wp_query->max_num_pages > 1 ) : ?><div class="pagination-wrapper"><?php the_posts_pagination( array(
|
||||
'prev_text' => __( '< Обратно', 'quidus' ),
|
||||
'next_text' => __( 'Далее >', 'quidus' ),
|
||||
'end_size' => 2,
|
||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'quidus' ) . ' </span>',
|
||||
) );
|
||||
?></div><?php endif;?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<p>test</p>
|
||||
<form id="email-form">
|
||||
<input class="sub_button" type="submit">подписаться</input>
|
||||
</form>
|
||||
Reference in New Issue
Block a user