<?php
/**
* The template for displaying search results pages.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
get_header('main'); ?>
<section id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'certificates-theme' ), the_search_query() ); ?></h1>
</header>
<?php
while ( have_posts() ) : the_post(); ?>
<?php
get_template_part( 'content', 'search' );
endwhile;
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'certificates-theme' ),
'next_text' => __( 'Next page', 'certificates-theme' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'certificates-theme' ) . ' </span>',
) );
else :
get_template_part( 'content', 'none' );
endif;
?>
</main>
</section>
<?php get_footer('main'); ?>
<?php
/*
Template Name: Новости
*/
?>
<?php
/*
Template Name: Главная
*/
?>
$(".tab_item-information").not(":first").hide();
$(".wrapper-information .tab-information .title").click(function() {
var col = $(".wrapper-information .tab-information .title").eq($(this).parent().parent().index());
$(".wrapper-information .tab-information .title").removeClass("active").find($(this)).addClass("active");
$(".tab_item-information").hide().eq($(this).parent().parent().index()).fadeIn()
}).eq(0).addClass("active");