<commit_before><?php use Roots\Sage\Titles; ?>

<?php
	$default_header_image = get_field('default_header_image','option');
	$header_image = get_field('header_background_image');
	$post_type = get_post_type();
	$post_type_name = get_post_type_object($post_type)->labels->name;
	$post_type_all_items = get_post_type_object($post_type)->labels->all_items;
?>

<?php if ( is_home() || is_archive() ) { ?>
	<div class="header-background"
		<?php if (get_field('default_header_background', 'option') == 'color') { ?>
			style="background-color: <?php the_field('default_header_color', 'option'); ?>"
		<?php } elseif (get_field('default_header_background', 'option') == 'image') { ?>
			style="background-image: url('<?php echo $default_header_image['sizes']['page-header'] ?>');"
		<?php } else { ?>
			style="background-color: grey;"
		<?php }; ?>
	>
<?php } else { ?>
	<div class="header-background"
		<?php if (get_field('header_background_type') == 'color') { ?>
			style="background-color: <?php the_field('header_background_color'); ?>"
		<?php } elseif (get_field('header_background_type') == 'image') { ?>
			style="background-image: url('<?php echo $header_image['sizes']['page-header'] ?>');"
		<?php } else { ?>
			<?php if (get_field('default_header_background', 'option') == 'color') { ?>
				style="background-color: <?php the_field('default_header_color', 'option'); ?>"
			<?php } elseif (get_field('default_header_background', 'option') == 'image') { ?>
				style="background-image: url('<?php echo $default_header_image['sizes']['page-header'] ?>');"
			<?php } else { ?>
				style="background-color: grey;"
			<?php }; ?>
		<?php }; ?>
	>
<?php }; ?>
	<div class="container">
		<div class="row">
			<div class="col-sm-12">
				<div class="page-header">
					<?php	if(is_singular() && !is_page()) { ?>
						<div class="post-view-all">
							<span>&lsaquo;</span><a href="<?php echo get_post_type_archive_link($post_type) ?>"><?php echo $post_type_all_items ?></a>
						</div>
					<?php }; ?>
					<h1>
						<?= Titles\title(); ?>
					</h1>
				</div>
			</div>
		</div>
	</div>
</div>
<commit_msg>cleaned up unused vairables on page-header.php<commit_after><?php use Roots\Sage\Titles; ?>

<?php
	$default_header_image = get_field('default_header_image','option');
	$header_image = get_field('header_background_image');
	$post_type = get_post_type();
	$post_type_all_items = get_post_type_object($post_type)->labels->all_items;
?>

<?php if ( is_home() || is_archive() ) { ?>
	<div class="header-background"
		<?php if (get_field('default_header_background', 'option') == 'color') { ?>
			style="background-color: <?php the_field('default_header_color', 'option'); ?>"
		<?php } elseif (get_field('default_header_background', 'option') == 'image') { ?>
			style="background-image: url('<?php echo $default_header_image['sizes']['page-header'] ?>');"
		<?php } else { ?>
			style="background-color: grey;"
		<?php }; ?>
	>
<?php } else { ?>
	<div class="header-background"
		<?php if (get_field('header_background_type') == 'color') { ?>
			style="background-color: <?php the_field('header_background_color'); ?>"
		<?php } elseif (get_field('header_background_type') == 'image') { ?>
			style="background-image: url('<?php echo $header_image['sizes']['page-header'] ?>');"
		<?php } else { ?>
			<?php if (get_field('default_header_background', 'option') == 'color') { ?>
				style="background-color: <?php the_field('default_header_color', 'option'); ?>"
			<?php } elseif (get_field('default_header_background', 'option') == 'image') { ?>
				style="background-image: url('<?php echo $default_header_image['sizes']['page-header'] ?>');"
			<?php } else { ?>
				style="background-color: grey;"
			<?php }; ?>
		<?php }; ?>
	>
<?php }; ?>
	<div class="container">
		<div class="row">
			<div class="col-sm-12">
				<div class="page-header">
					<?php	if(is_singular() && !is_page()) { ?>
						<div class="post-view-all">
							<span>&lsaquo;</span><a href="<?php echo get_post_type_archive_link($post_type) ?>"><?php echo $post_type_all_items ?></a>
						</div>
					<?php }; ?>
					<h1>
						<?= Titles\title(); ?>
					</h1>
				</div>
			</div>
		</div>
	</div>
</div>

{'fraction_non_alphanumeric': 0.22439256788947118, 'fraction_numerical': 0.0019056693663649356, 'mean_word_length': 4.9307909604519775, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1430162', 'n_tokens_mistral': 1620, 'n_tokens_neox': 1459, 'n_words': 243}