Пример #1
0
/* 
 * Template for displaying Audio
 */
?>
						
<div id="post-<?php 
the_ID();
?>
" <?php 
post_class('post');
?>
>
	
	<?php 
media_center_post_header();
?>

	<div class="post-entry">
		<div class="post-content">
		
			<?php 
media_center_audio_player(get_the_ID());
?>
			
			<h2 class="post-title">
				<a href="<?php 
the_permalink();
?>
" title="<?php 
echo esc_attr(sprintf(__('Permalink to %s', 'media_center'), the_title_attribute('echo=0')));
Пример #2
0
<div class="single-col-grid">
	<div class="posts">
	<?php 
if ($the_query->have_posts()) {
    /* Start the Loop */
    while ($the_query->have_posts()) {
        $the_query->the_post();
        $post_format = get_post_format();
        $post_format_text = !empty($post_format) ? $post_format : __('Standard', 'media_center');
        ?>
		<div class="post-single-col-grid row">
			<div class="col-xs-5">
				<div class="clearfix">
					<div class="pull-left date-format-container">
						<?php 
        media_center_post_header('style-2');
        ?>
					</div>
					<a href="<?php 
        the_permalink();
        ?>
" class="post-thumbnail pull-right" title="<?php 
        echo sprintf(__('Post Format: %1$s', 'media_center'), $post_format_text);
        ?>
">
						<?php 
        if (has_post_thumbnail()) {
            echo get_the_post_thumbnail(get_the_ID(), array(265, 265), array('class' => 'media-object'));
        } else {
            echo '<span class="mc-default-post-thumbnail">' . media_center_default_post_thumbnail($post_format) . '</span>';
        }