>DansTonCode();

Citation de code source en PHP177

 21 Juillet, 2014 à 11:31
foreach($menus as &$menu) {
    		$column_count = $menu['count'] / $columns;
    		
    		$column = 1;
    		$blocks = array();
    		foreach($menu['data'] as $md) {
    			if($md['cumulative_count'] > ( ($column_count * $column) * 1.15 ) ) { /* 15% more height... because fuck you, that's why ! */
					$column++;    				
    			} 
    			$blocks[$column][] = $md;
    		}
    		$menu['blocks'] = $blocks;    			    		
    	}

Allez voir les citations similaires

Partagez cette citation