Definition in file list.inc.
Go to the source code of this file.
Functions | |
| panels_list_panels_styles () | |
| panels_list_style_settings_form ($style_settings) | |
| theme_panels_list_style_render_panel ($display, $panel_id, $panes, $settings) | |
| panels_list_panels_styles | ( | ) |
Implementation of hook_panels_style_info().
Definition at line 17 of file list.inc.
00017 { 00018 return array( 00019 'list' => array( 00020 'title' => t('List'), 00021 'description' => t('Presents the panes in the form of an HTML list.'), 00022 'render panel' => 'panels_list_style_render_panel', 00023 'settings form' => 'panels_list_style_settings_form', 00024 'settings validate' => 'panels_list_style_settings_validate', 00025 ), 00026 ); 00027 }
| panels_list_style_settings_form | ( | $ | style_settings | ) |
Settings form callback.
Definition at line 53 of file list.inc.
00053 { 00054 $form['list_type'] = array( 00055 '#type' => 'select', 00056 '#title' => t('List type'), 00057 '#options' => array( 00058 'ul' => t('Unordered'), 00059 'ol' => t('Ordered'), 00060 ), 00061 '#default_value' => (isset($style_settings['list_type'])) ? $style_settings['list_type'] : 'ul', 00062 ); 00063 00064 return $form; 00065 }
| theme_panels_list_style_render_panel | ( | $ | display, | |
| $ | panel_id, | |||
| $ | panes, | |||
| $ | settings | |||
| ) |
Render callback.
Definition at line 38 of file list.inc.
References panels_render_pane().
00038 { 00039 $items = array(); 00040 00041 foreach ($panes as $pane_id => $content) { 00042 $item = panels_render_pane($content, $display->content[$pane_id], $display); 00043 if ($item) { 00044 $items[] = $item; 00045 } 00046 } 00047 return theme('item_list', $items, NULL, $settings['list_type']); 00048 }
1.5.6