t('Single column'), 'icon' => 'layouts/onecol.png', 'theme' => 'panels_onecol', 'css' => 'layouts/onecol.css', 'panels' => array('middle' => t('Middle column')), 'settings form' => 'panels_onecol_settings', ); return $items; } function panels_onecol_settings($display, $layout, $settings) { $form['plain'] = array( '#type' => 'checkbox', '#title' => t('Use minimalistic (plain) output'), '#default_value' => isset($settings['plain']) ? $settings['plain'] : 0, '#description' => t('Enable this option to output minimal panels display HTML markup.'), ); return $form; } /** * This function uses heredoc notation to make it easier to convert * to a template. */ function theme_panels_onecol($id, $content, $settings) { if ($id) { $idstr = " id='$id'"; } if (!empty($settings['plain'])) { $output = <<$content[middle] EOT; } else { $output = <<
$content[middle]
EOT; } return $output; }