Beispiel #1
0
<div <?php post_class( 'article-content' ); ?>>

	<?php
	if ( ! is_single() )
		wm_heading( 'list' );
	?>

	<?php
	if ( is_single() || wm_option( 'blog-full-posts' ) ) {
		if ( is_single() )
			wm_meta();

		if ( has_excerpt() && ! post_password_required() )
			echo '<div class="article-excerpt">' . apply_filters( 'wm_default_content_filters', get_the_excerpt() ) . '</div>';

		the_content();

		do_action( 'wm_end_post' );
	} else {
		echo wm_content_or_excerpt( $post );
	}
	?>
</div>

<?php
if ( ! is_single() )
	wm_meta();
else
	wm_meta( array( 'tags' ), 'meta-bottom' );
?>
Beispiel #2
0
			if ( has_post_thumbnail()) {
				$titleWithImage .= '<a href="' . get_permalink() . '" title="' . esc_attr( get_the_title() ) . '" class="alignright frame">';
				$titleWithImage .= get_the_post_thumbnail( null, 'widget' );
				$titleWithImage .= '</a>';
			}
			$titleWithImage .= '<a href="' . get_permalink() . '">';
			$titleWithImage .= get_the_title();
			$titleWithImage .= '</a>';

			$out .= '<article>';
			$out .= '<div class="article-content"><span class="numbering' . $orderClass . '">' . $order . '</span>';
			$out .= '<h2 class="post-title">' . $titleWithImage . '</h2>';
			if ( get_the_excerpt() )
				$out .= '<div class="excerpt"><p>' . strip_tags( apply_filters( 'convert_chars', strip_shortcodes( get_the_excerpt() ) ) ) . '</p><p>' . wm_more( 'nobtn', false ) . '</p></div>';
			$out .= '</div>';
			$out .= ( 'page' === $post->post_type ) ? ( wm_meta( array( 'permalink' ), null, 'footer', false ) ) : ( wm_meta( null, null, 'footer', false ) );
			$out .= '</article>';

			//the actual output
			if ( $out && $countOK ) {
				echo '<div class="search-item' . $even . '">' . $out . '</div>';

				$even = ( $even ) ? ( '' ) : ( ' even' );

				$order++;
			}
		endwhile;
		?>

	</section> <!-- /list-articles -->