src/Webtrees/Module/GeoDispersion/Views/GeoAnalysisTabGenerationsView.php
protected function htmlGenerationTopPlacesRow($data, $analysis_level) {
        $tmp_places = array();
        $sum_gen = $data['sum'];
        $other = $data['other'];
        
        foreach($data['places'] as $placename => $count) {
            if($placename != 'other'){
                $levels = array_map('trim',explode(',', $placename));
                $placename = '<span title="'.implode(I18N::$list_separator, array_reverse($levels)).'">'.$levels[$analysis_level-1].'</span>';
            }
            else{
                $placename = I18N::translate('Other places');
            }
            $tmp_places[] = I18N::translate('<strong>%s</strong> [%d - %s]', $placename, $count, I18N::percentage(Functions::safeDivision($count, $sum_gen + $other), 1));         	
        }
        
        return implode(I18N::$list_separator, $tmp_places);
    }
protected function htmlGenerationTopPlacesRow($data, $analysis_level) {
        $tmp_places = array();
        $sum_gen = $data['sum'];
        $other = $data['other'];
        
        foreach($data['places'] as $placename => $count) {
            if($placename != 'other'){
                $levels = array_map('trim',explode(',', $placename));
                $placename = '<span title="'.implode(I18N::$list_separator, array_reverse($levels)).'">'.$levels[$analysis_level-1].'</span>';
            }
            else{
                $placename = I18N::translate('Other places');
            }
            $tmp_places[] = I18N::translate('<strong>%s</strong> [%d - %s]', $placename, $count, I18N::percentage(Functions::safeDivision($count, $sum_gen + $other), 1));         	
        }
        
        return implode(I18N::$list_separator, $tmp_places);
    }
protected function htmlGenerationTopPlacesRow ( $ data , $ analysis_level ) { $ tmp_places = array ( ) ; $ sum_gen = $ data [ 'sum' ] ; $ other = $ data [ 'other' ] ; foreach ( $ data [ 'places' ] as $ placename => $ count ) { if ( $ placename != 'other' ) { $ levels = array_map ( 'trim' , explode ( ',' , $ placename ) ) ; $ placename = '<span title="' . implode ( I18N :: $ list_separator , array_reverse ( $ levels ) ) . '">' . $ levels [ $ analysis_level - 1 ] . '</span>' ; } else { $ placename = I18N :: translate ( 'Other places' ) ; } $ tmp_places [ ] = I18N :: translate ( '<strong>%s</strong> [%d - %s]' , $ placename , $ count , I18N :: percentage ( Functions :: safeDivision ( $ count , $ sum_gen + $ other ) , 1 ) ) ; } return implode ( I18N :: $ list_separator , $ tmp_places ) ; }
Returns the HTML code fo display a row of the Top Places found for a generation.

@param array $data Data array
@param int $analysis_level Level of subdivision of analysis
@return string HTML code for Top Places row
Returns the HTML code fo display a row of the Top Places found for a generation .