ID, 'full' ) ); if ( $imagesize < 698 || $imagesize[0] > 698 && $imagesize[0] < 1140 ) { // if the image is small, or if it's bigger than $content_width but still smaller than the full width, use whatever the width of the image is $content_width = $imagesize[0]; } else { // if the image is bigger than the content width, set the width to 1140 $content_width = 1140; } $ap_core_content = ap_core_get_which_content(); ?>