soundmap_theme/content-single.php
2016-11-29 01:18:17 +01:00

67 lines
1.8 KiB
PHP

<?php
/**
* The template for displaying content in the single.php template
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if(has_post_thumbnail()){
$id=get_the_ID();
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" class="cboxElement" >';
$attr = array(
'class' => "colorbox-$id",
);
the_post_thumbnail('thumbnail', $attr);
echo '</a>';
}?>
<?php the_content(); ?>
<?php
$id_p = get_the_ID();
$aut = get_marker_author($id_p);
$dat = get_marker_date($id_p);
$text = __('<p>Author: %1$s<br/>Date: %2$s</p>','soundmap_theme');
printf(
$text,
"<a href='/?s=$aut'>".$aut."</a>",
$dat
);
?>
<?php the_player($id_p); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ' | ', 'soundmap_theme' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', __( ' | ', 'soundmap_theme' ) );
$utility_text = __( 'Categories: %1$s<br/>Tags: %2$s</br>', 'soundmap_theme' );
printf(
$utility_text,
$categories_list,
$tag_list
);
?>
<?php edit_post_link( __( 'Edit', 'soundmap_theme' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->