/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php
</div>
<?php }?>
<header class="page-header">
<?php
if ( get_query_var('tag') || get_query_var('post_date') ) {
if ( pll_current_language() == 'uk') {
setlocale(LC_ALL, 'uk_UA.UTF-8');
}
?>
<h1 class="page-title">
<?php if (get_query_var('tag')) {
echo __( 'NEWS FROM REGION - ', 'twentyseventeen' );
$tag = get_term_by('slug', $tagquery, 'post_tag');
echo $tag->name;
echo ('<br>');
} else echo (__( 'NEWS', 'twentyseventeen' ).' ') ?>
<?php if ( ( $postdates[0] != 0) || ( $postdates[1] != 0 ) ) {
echo __( 'DATES ', 'twentyseventeen' );
} ?>
<?php
if ( $postdates[0] != 0 ) {
echo __( 'FROM ', 'twentyseventeen' );
echo mysql2date( get_option( 'date_format' ), $postdates[0] );
}?>
<?php
if ( $postdates[1] != 0 ) {
echo __( 'TO ', 'twentyseventeen' );
echo mysql2date( get_option( 'date_format' ), $postdates[1] );
} ?>
</h1>
<?} else {
echo '<h1 class="page-title">'.$title.'</h1>';
the_archive_description( '<div class="taxonomy-description">', '</div>' );
}
?>
</header><!-- .page-header -->
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php
</div>
<?php }?>
<header class="page-header">
<?php
if ( get_query_var('tag') || get_query_var('post_date') ) {
if ( pll_current_language() == 'uk') {
setlocale(LC_ALL, 'uk_UA.UTF-8');
}
?>
<h1 class="page-title">
<?php if (get_query_var('tag')) {
echo __( 'NEWS FROM REGION - ', 'twentyseventeen' );
$tag = get_term_by('slug', $tagquery, 'post_tag');
echo $tag->name;
echo ('<br>');
} else echo (__( 'NEWS', 'twentyseventeen' ).' ') ?>
<?php if ( ( $postdates[0] != 0) || ( $postdates[1] != 0 ) ) {
echo __( 'DATES ', 'twentyseventeen' );
} ?>
<?php
if ( $postdates[0] != 0 ) {
echo __( 'FROM ', 'twentyseventeen' );
echo mysql2date( get_option( 'date_format' ), $postdates[0] );
}?>
<?php
if ( $postdates[1] != 0 ) {
echo __( 'TO ', 'twentyseventeen' );
echo mysql2date( get_option( 'date_format' ), $postdates[1] );
} ?>
</h1>
<?} else {
echo '<h1 class="page-title">'.$title.'</h1>';
the_archive_description( '<div class="taxonomy-description">', '</div>' );
}
?>
</header><!-- .page-header -->
/var/www/newjustice/newjustice.org.ua/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/var/www/newjustice/newjustice.org.ua/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/var/www/newjustice/newjustice.org.ua/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';