work on sthome and archive pages, template cleanup
This commit is contained in:
44
archive.php
44
archive.php
@@ -1,19 +1,47 @@
|
||||
<?php get_header(); ?>
|
||||
<?php get_header();?>
|
||||
|
||||
|
||||
|
||||
<!-- section -->
|
||||
<section>
|
||||
<section id="content">
|
||||
|
||||
<h1><?php _e( 'Archives', 'dis2019' ); ?></h1>
|
||||
|
||||
<?php get_template_part('loop'); ?>
|
||||
<?php
|
||||
if (is_category()) {
|
||||
$ttl = single_cat_title("", false);
|
||||
$cl = "category";
|
||||
} elseif (is_tag()) {
|
||||
$ttl = single_tag_title("", false);
|
||||
$cl = "tag";
|
||||
} else {
|
||||
$ttl = the_archive_title();
|
||||
$cl = "";
|
||||
}
|
||||
|
||||
|
||||
// esc_html_e($ttl, 'text-domain')
|
||||
?>
|
||||
<h1 class="archivetitle <?php echo $cl; ?>"><?php echo $ttl; ?></h1>
|
||||
|
||||
<?php
|
||||
if (is_tag()) {
|
||||
|
||||
echo '<div class="archivedescription">';
|
||||
echo tag_description();
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php get_template_part('pagination'); ?>
|
||||
|
||||
|
||||
|
||||
<?php get_template_part('loop');?>
|
||||
|
||||
<?php get_template_part('loadmore');?>
|
||||
|
||||
</section>
|
||||
<!-- /section -->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
||||
<?php get_footer();?>
|
||||
|
||||
Reference in New Issue
Block a user