示例#1
0
 *
 * @package Huesos
 * @since 1.0.0
 */
get_header();
?>

<main id="primary" class="content-area single-record" role="main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/MusicAlbum">

	<?php 
while (have_posts()) {
    the_post();
    ?>

		<?php 
    get_template_part('audiotheme/parts/content-record', str_replace('record-type-', '', get_audiotheme_record_type()));
    ?>

		<?php 
    comments_template('', true);
    ?>

	<?php 
}
?>

</main>

<?php 
get_sidebar();
get_footer();
示例#2
0
 role="article" itemscope itemtype="http://schema.org/MusicAlbum">

			<?php 
    if (has_post_thumbnail()) {
        ?>

				<p class="audiotheme-record-artwork audiotheme-featured-image">
					<a href="<?php 
        the_permalink();
        ?>
">
						<?php 
        the_post_thumbnail('record-thumbnail', array('itemprop' => 'image'));
        ?>
						<span class="audiotheme-record-type"><?php 
        echo esc_html(get_audiotheme_record_type_string(get_audiotheme_record_type()));
        ?>
</span>
					</a>
				</p>

			<?php 
    }
    ?>

			<?php 
    the_title('<h2 class="audiotheme-record-title entry-title" itemprop="name"><a href="' . esc_url(get_permalink()) . '">', '</a></h2>');
    ?>

			<?php 
    $artist = get_audiotheme_record_artist();
示例#3
0
<?php

/**
 * The template used for displaying individual records.
 *
 * @package Huesos
 * @since 1.0.0
 */
$has_sidebar = huesos_has_sidebar();
$record_type = str_replace('record-type-', '', get_audiotheme_record_type());
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<?php 
if ($has_sidebar && has_post_thumbnail()) {
    ?>
		<figure class="record-artwork">
			<a class="post-thumbnail" href="<?php 
    echo esc_url(wp_get_attachment_url(get_post_thumbnail_id()));
    ?>
" itemprop="image">
				<?php 
    the_post_thumbnail('large');
    ?>
			</a>