styles

Panel Styles

where can i find some documentation about how to create a new "Panel Styles" ?

i tried do that using the functions below in a file called: window.inc inside modules/panel/styles.
But, nothing happen. I also tried remove $output = theme('panels_pane', $content, $pane, $display); to see something wrong happen, but nothing.

function panels_window_panels_styles() {
  return array(
    'window' => array(
      'title' => t('Window'),
      'description' => t('Create a window style'),
      'render pane' => 'panels_window_style_render_pane',
    ),
  );
}

function theme_panels_window_style_render_pane($content, $pane, $display) {
  $output = theme('panels_pane', $content, $pane, $display);

  if (!$output) {
    return;
  }

  return render_window_box($content);
}

function render_window_box($content)
{
return <<< EOF
    <div class="window">
        $content
    </div>
EOF;
}

3 comments
Syndicate content