Lines Matching refs:params

388  * @param array  $params Cell params to apply
390 function tpl_generate_page(array $layout, $page, $params) { argument
391 if (!empty($params['headline-string-name'])) {
392 print('<h3>'.$lang[$params['headline-string-name']].'</h3>');
495 function tpl_get_css_props(array $params) { argument
498 if (is_array($params['css'])) {
499 foreach ($params['css'] as $key => $value) {
518 $params = tpl_get_cell_params($layout, $item);
521 $css_props = tpl_get_css_props($params);
568 if ($params['id'] != 'default') {
582 if (is_array($params['items'])) {
583 $todo = array_merge($todo, $params['items']);
584 } else if (is_array($params['pages'])) {
585 $todo = array_merge($todo, $params['pages']);
588 $params = tpl_get_cell_params($layout, $name);
589 $css_props = tpl_get_css_props($params);
685 * @param string $params Cell params to use
688 function tpl_generate_div(array &$layout, $type, array $params, $level=1) { argument
691 if ($params['flex']['direction'] == 'column') {
693 if ($params['flex']['mode'] == 'same-size') {
696 } else if ($params['flex']['direction'] == 'row') {
698 if ($params['flex']['mode'] == 'same-size') {
760 if ($params['id'] == 'default' && empty($params['items']) &&
761 empty($params['pages'])) {
768 if (!empty($params['items'])) {
769 $childs = count($params['items']);
771 $divclass .= 'container_items '.$params['id'];
773 $childs = count($params['pages']);
775 $divclass .= 'container_pages '.$params['id'];
783 switch ($params['border']) {
793 switch ($params['corners']) {
800 switch ($params['list-type']) {
810 if (!empty($params['background'])) {
811 $background = tpl_get_background_class($params['background']);
891 print('<div>Cell id ("'.$params['id'].'")</div>');
894 foreach ($params['items'] as $item) {
895 $params = tpl_get_cell_params($layout, $item);
896 tpl_generate_div($layout, $item, $params, $level+1);
900 foreach ($params['pages'] as $page) {
901 $params = tpl_get_cell_params($layout, $page);
902 tpl_generate_page($layout, $page, $params);
922 foreach ($layout['cells'] as $params) {
923 if ($params['id'] == $cell) {
925 return $params;
926 } else if ($params['id'] == 'default') {
928 $default = $params;
947 $params = tpl_get_cell_params($layout, $item);
948 tpl_generate_div($layout, $item, $params);