>DansTonCode();

Tous les codes sources "Blague"page 9

PHP
 21 Juillet, 2014 à 11:31
#177
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;    			    		
    	}
PHP
 11 Juillet, 2014 à 02:50
#190
// hack for ie browser (assuming that ie is a browser)