Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="hl__hwd">
- <?php global $do_not_duplicate; global $post; $recent = new WP_Query(array( 'tag' => get_option('terkini'), 'posts_per_page' => '1' )); while($recent->have_posts()) : $recent->the_post(); $do_not_duplicate[] = $post->ID; if (isset($do_not_duplicate)) { ?>
- <div class="hl__item hl__item--big" style="width: 100%; float: left; margin-right: 0; position: relative; display: none;list-style:none;padding:15px">
- <a href="<?php the_permalink(); ?>" rel="bookmark" class="hl__link">
- <div class="hl__category">
- <span class="hl__link">Headline</span>
- </div>
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <?php the_post_thumbnail('hwd-medium-thumb'); ?>
- <?php } ?>
- <div class="hl__gradient">
- <span class="feat-cat">
- <?php $category = get_the_category(); echo esc_html( $category[0]->cat_name ); ?>
- </span>
- <div class="hl__title">
- <h2><?php the_title(); ?></h2>
- </div>
- </div>
- </a>
- </div>
- <?php } endwhile; wp_reset_postdata(); ?>
- </div>
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
- <?php endwhile; ?>
- <?php else: ?>
- .......
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
- <div class="featured-post">
- <?php _e( 'Featured post', 'twentytwelve' ); ?>
- </div>
- <?php endif; ?>
- <header class="entry-header">
- <?php if ( is_single() ) : ?>
- <?php custom_breadcrumbs(); ?>
- <h2 class="entry-title"><?php the_title(); ?></h2>
- <div class="date-post"><?php the_time(get_option('date_format')); ?></div>
- <?php if ( ! post_password_required() && ! is_attachment() ) :
- the_post_thumbnail('hwd-post-thumb');
- ?>
- <div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; // is_single() ?>
- </header><!-- .entry-header -->
- <?php else : ?>
- <li class="latest__item">
- <a href="<?php the_permalink(); ?>" rel="bookmark">
- <div class="latest__img">
- <?php the_post_thumbnail('hwd-mobile-thumb'); ?>
- </div>
- <div class="latest__title">
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </div>
- <?php twentytwelve_entry_meta() ?>
- </a>
- </li>
- <?php endif; ?>
- <?php if ( is_search() ) : // Only display Excerpts for Search ?>
- <?php endif; ?>
- </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement