|  | @@ 560-561 (lines=2) @@ | 
                                                            
                                    | 557 |  | 		$media = false; | 
                                                            
                                    | 558 |  | 		if ( $args['from_thumbnail'] ) | 
                                                            
                                    | 559 |  | 			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 560 |  | 		if ( !$media && $args['from_slideshow'] ) | 
                                                            
                                    | 561 |  | 			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 562 |  | 		if ( !$media && $args['from_gallery'] ) | 
                                                            
                                    | 563 |  | 			$media = self::from_gallery( $post_id ); | 
                                                            
                                    | 564 |  | 		if ( !$media && $args['from_attachment'] ) | 
                                                                                
                                |  | @@ 564-565 (lines=2) @@ | 
                                                            
                                    | 561 |  | 			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 562 |  | 		if ( !$media && $args['from_gallery'] ) | 
                                                            
                                    | 563 |  | 			$media = self::from_gallery( $post_id ); | 
                                                            
                                    | 564 |  | 		if ( !$media && $args['from_attachment'] ) | 
                                                            
                                    | 565 |  | 			$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 566 |  | 		if ( !$media && $args['from_html'] ) { | 
                                                            
                                    | 567 |  | 			if ( empty( $args['html_content'] ) ) | 
                                                            
                                    | 568 |  | 				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |