app/Individual.php
public function displayImage($width, $height, $fit, $attributes): string
    {
        $media_file = $this->findHighlightedMediaFile();

        if ($media_file !== null) {
            return $media_file->displayImage($width, $height, $fit, $attributes);
        }

        if ($this->tree->getPreference('USE_SILHOUETTE')) {
            return '<i class="icon-silhouette-' . $this->sex() . '"></i>';
        }

        return '';
    }
public function displayImage($width, $height, $fit, $attributes): string
    {
        $media_file = $this->findHighlightedMediaFile();

        if ($media_file !== null) {
            return $media_file->displayImage($width, $height, $fit, $attributes);
        }

        if ($this->tree->getPreference('USE_SILHOUETTE')) {
            return '<i class="icon-silhouette-' . $this->sex() . '"></i>';
        }

        return '';
    }
public function displayImage ( $ width , $ height , $ fit , $ attributes ) : string { $ media_file = $ this -> findHighlightedMediaFile ( ) ; if ( $ media_file !== null ) { return $ media_file -> displayImage ( $ width , $ height , $ fit , $ attributes ) ; } if ( $ this -> tree -> getPreference ( 'USE_SILHOUETTE' ) ) { return '<i class="icon-silhouette-' . $ this -> sex ( ) . '"></i>' ; } return '' ; }
Display the prefered image for this individual.
Use an icon if no image is available.

@param int      $width      Pixels
@param int      $height     Pixels
@param string   $fit        "crop" or "contain"
@param string[] $attributes Additional HTML attributes

@return string
Display the prefered image for this individual . Use an icon if no image is available .