• 1.
    function woo_display_post_image() {
  • 2.
     
  • 3.
     	global $woo_options;
  • 4.
     	
  • 5.
     	$display_image = false;
  • 6.
     
  • 7.
     	$width = $woo_options['woo_thumb_w'];
  • 8.
     	$height = $woo_options['woo_thumb_h'];
  • 9.
     	$align = $woo_options['woo_thumb_align'];
  • 10.
     	
  • 11.
     	if ( (is_single() || is_page()) && @$woo_options['woo_thumb_single'] == 'true' ) {
  • 12.
     		$width = $woo_options['woo_single_w'];
  • 13.
     		$height = $woo_options['woo_single_h'];
  • 14.
     		$align = $woo_options['woo_thumb_align_single'];
  • 15.
     		$display_image = true; 
  • 16.
     	}
  • 17.
     
  • 18.
     	if ( get_option('woo_woo_tumblog_switch') == 'true' ) { $is_tumblog = woo_tumblog_test(); } else { $is_tumblog = false; }
  • 19.
     
  • 20.
     	if ( $is_tumblog || ( is_single() && @$woo_options['woo_thumb_single'] == 'false' ) ) { $display_image = false; }
  • 21.
     
  • 22.
     	if ( $display_image == true and !woo_embed('') ) { woo_image('width=' . $width . '&height=' . $height . '&class=thumbnail ' . $align); }
  • 23.
     
  • 24.
     } // End woo_display_post_image()
function woo_display_post_image() { global $woo_options; $display_image = false; $width = $woo_options['woo_thumb_w']; $height = $woo_options['woo_thumb_h']; $align = $woo_options['woo_thumb_align']; if ( (is_single() || is_page()) && @$woo_options['woo_thumb_single'] == 'true' ) { $width = $woo_options['woo_single_w']; $height = $woo_options['woo_single_h']; $align = $woo_options['woo_thumb_align_single']; $display_image = true; } if ( get_option('woo_woo_tumblog_switch') == 'true' ) { $is_tumblog = woo_tumblog_test(); } else { $is_tumblog = false; } if ( $is_tumblog || ( is_single() && @$woo_options['woo_thumb_single'] == 'false' ) ) { $display_image = false; } if ( $display_image == true and !woo_embed('') ) { woo_image('width=' . $width . '&height=' . $height . '&class=thumbnail ' . $align); } } // End woo_display_post_image()

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter