Lines Matching refs:layout
197 function tpl_print_body(array $layout) { argument
198 $body_class = tpl_get_background_class($layout['background']);
386 * @param array $layout Layout to be used
390 function tpl_generate_page(array $layout, $page, $params) { argument
452 function tpl_create_grid(&$layout) { argument
458 foreach ($layout['grid'] as $row) {
469 for ($row = 0 ; $row < count($layout['grid']) ; $row++) {
470 $columns = count($layout['grid'][$row]);
472 if ($layout['grid'][$row][$column] == 'space') {
473 $layout['grid'][$row][$column] = 'empty';
481 for ($index = 0 ; $index < count($layout['grid']) ; $index++) {
482 $columns = count($layout['grid'][$index]);
485 $layout['grid'][$index][] = 'empty';
514 * @param array $layout Layout to use
517 function tpl_print_grid_area($layout, $item) { argument
518 $params = tpl_get_cell_params($layout, $item);
588 $params = tpl_get_cell_params($layout, $name);
598 * @param array $layout Layout to use
600 function tpl_print_grid(array $layout) { argument
601 $max_rows = count($layout['grid']);
602 $total_vert_space = $layout['grid-vert-space'];
611 $max_columns = count($layout['grid'][0]);
624 print(" height: ".$layout['height'].";\n");
626 print(" top: ".$layout['top'].";\n");
643 for ($row = 0 ; $row < count($layout['grid']) ; $row++) {
645 for ($column = 0 ; $column < count($layout['grid'][$row]) ; $column++) {
646 $item = $layout['grid'][$row][$column];
652 if ($column+1 < count($layout['grid'][$row])) {
656 if ($row+1 < count($layout['grid'])) {
665 for ($row = 0 ; $row < count($layout['grid']) ; $row++) {
666 foreach ($layout['grid'][$row] as $item) {
669 tpl_print_grid_area($layout, $item);
683 * @param array $layout Layout to use
688 function tpl_generate_div(array &$layout, $type, array $params, $level=1) { argument
831 if (empty($layout['toc']) || $layout['toc'] == 'on-page') {
895 $params = tpl_get_cell_params($layout, $item);
896 tpl_generate_div($layout, $item, $params, $level+1);
901 $params = tpl_get_cell_params($layout, $page);
902 tpl_generate_page($layout, $page, $params);
917 * @param array $layout Layout to use
920 function tpl_get_cell_params(array $layout, $cell) { argument
922 foreach ($layout['cells'] as $params) {
938 * @param array $layout Layout to use
940 function tpl_generate_grid_cells(array $layout) { argument
942 for ($row = 0 ; $row < count($layout['grid']) ; $row++) {
943 foreach ($layout['grid'][$row] as $item) {
947 $params = tpl_get_cell_params($layout, $item);
948 tpl_generate_div($layout, $item, $params);
959 * @param array $layout Layout to use
961 function tpl_print_site_class($layout) argument
964 if (empty($layout['theme'])) {
967 switch ($layout['theme']) {
973 $classes .= ' '.$layout['theme'];