<?php

$post_date     = get_theme_mod( 'post_date_display_setting' );
$post_author   = get_theme_mod( 'post_author_display_setting' );
$post_category = get_theme_mod( 'post_category_display_setting' );

if ( $post_date != 'hide' ) { ?>
	<span class="date"><?php
		echo get_the_date();
	?></span><?php
}
if ( $post_date != 'hide' && ( $post_author != 'hide' || $post_category != 'hide' ) ) { ?>
	<span> / </span><?php
}
if ( $post_author != 'hide' ) { ?>
	<span class="author"><?php the_author_posts_link(); ?></span><?php
}
if ( $post_author != 'hide' && $post_category != 'hide' && has_term( '', 'category' ) ) { ?>
	<span> / </span><?php
}
if ( $post_category != 'hide' && has_term( '', 'category' ) ) { ?>
	<span class="category">
	<?php ct_tracks_category_link(); ?>
	</span><?php
}