Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="system">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post();
- $icl_lang_duplicate_of = get_post_meta($post->ID, '_icl_lang_duplicate_of', true);
- $duplicate_class = !empty($icl_lang_duplicate_of) ? ' duplicate_post': NULL; ?>
- <article class="item" data-permalink="<?php the_permalink(); ?>">
- <?php if (has_post_thumbnail()) : ?>
- <?php
- $width = get_option('thumbnail_size_w'); //get the width of the thumbnail setting
- $height = get_option('thumbnail_size_h'); //get the height of the thumbnail setting
- ?>
- <?php the_post_thumbnail(array($width, $height), array('class' => 'size-auto')); ?>
- <?php endif; ?>
- <header>
- <h1 class="title"><?php the_title(); ?></h1>
- <p class="meta">
- <?php
- $date = '<time datetime="'.get_the_date('Y-m-d').'" pubdate>'.get_the_date().'</time>';
- printf(__('Written by %s on %s. Posted in %s', 'warp'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'" title="'.get_the_author().'">'.get_the_author().'</a>', $date, get_the_category_list(', '));
- ?>
- </p>
- </header>
- <div class="content clearfix<?php echo $duplicate_class; ?>"><?php the_content(''); ?></div>
- <?php the_tags('<p class="taxonomy">'.__('Tags: ', 'warp'), ', ', '</p>'); ?>
- <?php edit_post_link(__('Edit this post.', 'warp'), '<p class="edit">','</p>'); ?>
- <?php if (pings_open()) : ?>
- <p class="trackback"><?php printf(__('<a href="%s">Trackback</a> from your site.', 'warp'), get_trackback_url()); ?></p>
- <?php endif; ?>
- <?php if (get_the_author_meta('description')) : ?>
- <section class="author-box clearfix">
- <?php echo get_avatar(get_the_author_meta('user_email')); ?>
- <h3 class="name"><?php the_author(); ?></h3>
- <div class="description"><?php the_author_meta('description'); ?></div>
- </section>
- <?php endif; ?>
- <?php comments_template(); ?>
- </article>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement