| 1 |
<?php |
<?php |
| 2 |
// $Id: rounded_corners.inc,v 1.1.2.6 2009/06/13 19:10:30 merlinofchaos Exp $ |
// $Id: rounded_corners.inc,v 1.1.2.7 2009/07/21 21:23:24 merlinofchaos Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file styles/rounded_corners.inc |
* @file styles/rounded_corners.inc |
| 86 |
* Render callback for a single pane. |
* Render callback for a single pane. |
| 87 |
*/ |
*/ |
| 88 |
function theme_panels_rounded_corners_style_render_pane($content, $pane, $display) { |
function theme_panels_rounded_corners_style_render_pane($content, $pane, $display) { |
| 89 |
$output = theme('panels_pane', $content, $pane, $display); |
if (empty($content->content) { |
|
|
|
|
if (!$output) { |
|
| 90 |
return; |
return; |
| 91 |
} |
} |
| 92 |
|
|
| 93 |
|
$output = theme('panels_pane', $content, $pane, $display); |
| 94 |
|
|
| 95 |
// Just stick a box around the standard theme_panels_pane. |
// Just stick a box around the standard theme_panels_pane. |
| 96 |
$output = theme('panels_rounded_corners_box', $output); |
$output = theme('panels_rounded_corners_box', $output); |
| 97 |
panels_add_rounded_corners_css($display, 'pane'); |
panels_add_rounded_corners_css($display, 'pane'); |