| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/colleary/public_html/wp-content/themes/realhomes/ |
Upload File : |
<?php
get_header();
/* Page Head */
$banner_image_path = get_default_banner();
$banner_title = __('Archives', 'framework');
$banner_details = "";
$post = $posts[0]; // Hack. Set $post so that the_date() works.
if (is_category())
{
$banner_title = __('All Posts in Category', 'framework');
$banner_details = single_cat_title('',false);
}
elseif( is_tag() )
{
$banner_title = __('All Posts in Tag', 'framework');
$banner_details = single_tag_title('',false);
}
elseif (is_day())
{
$banner_title = __('Archives', 'framework');
$banner_details = get_the_date();
}
elseif (is_month())
{
$banner_title = __('Archives', 'framework');
$banner_details = get_the_date('F Y');
}
elseif (is_year())
{
$banner_title = __('Archives', 'framework');
$banner_details = get_the_date('Y');
}
elseif (is_author())
{
$curauth = $wp_query->get_queried_object();
$banner_title = __('All Posts By', 'framework');
$banner_details = $curauth->display_name;
}
elseif (isset($_GET['paged']) && !empty($_GET['paged']))
{
$banner_title = __('Archives', 'framework');
$banner_details = "";
}
?>
<div class="page-head" style="background-repeat: no-repeat;background-position: center top;background-image: url('<?php echo esc_url( $banner_image_path ); ?>'); ">
<div class="container">
<div class="wrap clearfix">
<h1 class="page-title"><span><?php echo esc_html( $banner_title ); ?></span></h1>
<?php if ( ! empty( $banner_details ) ) { ?>
<p><?php echo esc_html( $banner_details ); ?></p>
<?php } ?>
</div>
</div>
</div><!-- End Page Head -->
<!-- Content -->
<div class="container contents blog-page">
<div class="row">
<div class="span9 main-wrap">
<!-- Main Content -->
<div class="main">
<div class="inner-wrapper">
<?php get_template_part("loop"); ?>
</div>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php get_sidebar(); ?>
</div><!-- End contents row -->
</div><!-- End Content -->
<?php get_footer(); ?>