list.inc File Reference

(1.1.2.9 2008/10/24 00:05:59 merlinofchaos)


Detailed Description

Definition of the 'list' panel style.

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)


Function Documentation

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 }

Here is the call graph for this function:


Generated on Sun Feb 5 05:00:25 2012 for Panels 2 by  doxygen 1.5.6