Test Code Style

Test code style…

<div id="post-<?php the_ID(); ?>" <?php post_class( 'post format-standard clearfix' ); ?>>
<div class="post-header clearfix">
<?php $presentation_options = get_option( 'standard_theme_presentation_options' ); ?>
<?php if ( '' != get_the_post_thumbnail() ) { ?>
<?php if( $presentation_options['display_featured_images'] == 'always' || ( $presentation_options['display_featured_images'] == 'single-post' && is_single() ) || ( $presentation_options['display_featured_images'] == 'index' && is_home() ) ) { ?>
<div class="thumbnail alignleft">
<a class="thumbnail-link fademe" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'standard' ), the_title_attribute( 'echo=0' ) ); ?>">
<?php the_post_thumbnail( 'thumbnail' ); ?>
</a>
</div> <!-- /.thumbnail -->
<?php } // end if ?>
<?php } // end if ?>
<div class="title-wrap clearfix">
<?php if( '' !== get_the_title() ) { ?>
<?php if( is_single() || is_page() ) { ?>
<h1 class="post-title entry-title"><?php the_title(); ?></h1>
<?php } else { ?>
<h2 class="post-title entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_attr__( '%s', 'standard' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a>
</h2>
<?php } // end if ?>
<?php } // end if ?>
<div class="post-header-meta">
<?php if( strlen( trim( get_the_title() ) ) == 0 ) { ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_attr__( '%s', 'standard' ), the_title_attribute( 'echo=0' ) ); ?>"><span class="the-time updated"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
<?php } else { ?>
<span class="the-time updated"><?php the_time( get_option( 'date_format' ) ); ?></span>
<?php } // end if/else ?>
</div><!-- /.post-header-meta -->
</div><!-- /.title-wrap -->
</div><!-- /.post-header -->

Some more sample text.

Be the first to start the conversation.

Leave a Comment