|  | @@ 628-633 (lines=6) @@ | 
                                                            
                                    | 625 |  | 			$media = self::from_gallery( $post_id ); | 
                                                            
                                    | 626 |  | 		if ( !$media && $args['from_attachment'] ) | 
                                                            
                                    | 627 |  | 			$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 628 |  | 		if ( ! $media && $args['from_blocks'] ) { | 
                                                            
                                    | 629 |  | 			if ( empty( $args['html_content'] ) ) | 
                                                            
                                    | 630 |  | 				$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content | 
                                                            
                                    | 631 |  | 			else | 
                                                            
                                    | 632 |  | 				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that | 
                                                            
                                    | 633 |  | 		} | 
                                                            
                                    | 634 |  | 		if ( !$media && $args['from_html'] ) { | 
                                                            
                                    | 635 |  | 			if ( empty( $args['html_content'] ) ) | 
                                                            
                                    | 636 |  | 				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content | 
                                                                                
                                |  | @@ 634-639 (lines=6) @@ | 
                                                            
                                    | 631 |  | 			else | 
                                                            
                                    | 632 |  | 				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that | 
                                                            
                                    | 633 |  | 		} | 
                                                            
                                    | 634 |  | 		if ( !$media && $args['from_html'] ) { | 
                                                            
                                    | 635 |  | 			if ( empty( $args['html_content'] ) ) | 
                                                            
                                    | 636 |  | 				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content | 
                                                            
                                    | 637 |  | 			else | 
                                                            
                                    | 638 |  | 				$media = self::from_html( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that | 
                                                            
                                    | 639 |  | 		} | 
                                                            
                                    | 640 |  |  | 
                                                            
                                    | 641 |  | 		if ( !$media && $args['fallback_to_avatars'] ) { | 
                                                            
                                    | 642 |  | 			$media = self::from_blavatar( $post_id, $args['avatar_size'] ); |