Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 13th, 2010  |  syntax: PHP  |  size: 0.44 KB  |  hits: 249  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. $format = get_post_format();
  4. $format = ! empty( $format ) ? $format : 'default';
  5.  
  6. if ( isset( $post->post_type ) ) {
  7.         switch( $post->post_type ) {
  8.                 case 'post' :
  9.                         get_template_part( 'post', $format );
  10.                         break;
  11.                 case 'page' :
  12.                         get_template_part( 'post', 'page' );
  13.                         break;
  14.                 case 'mfields_bookmark' :
  15.                         get_template_part( 'post', 'bookmark' );
  16.                         break;
  17.                 default :
  18.                         get_template_part( 'post' );
  19.                         break;
  20.         }
  21. }
  22. ?>