first import
This commit is contained in:
22
sites/all/modules/panels/plugins/layouts/onecol/onecol.css
Normal file
22
sites/all/modules/panels/plugins/layouts/onecol/onecol.css
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
.panel-1col {
|
||||
/* overflow: hidden; */
|
||||
}
|
||||
|
||||
.panel-2col .panel-col-first .inside {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
.panel-1col .panel-col {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#panels-edit-display .panel-pane,
|
||||
#panels-edit-display .helperclass {
|
||||
margin: .5em;
|
||||
}
|
||||
|
||||
.panel-2col .panel-separator {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
14
sites/all/modules/panels/plugins/layouts/onecol/onecol.inc
Normal file
14
sites/all/modules/panels/plugins/layouts/onecol/onecol.inc
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* implementation of hook_panels_layouts()
|
||||
*/
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('Single column'),
|
||||
'category' => t('Columns: 1'),
|
||||
'icon' => 'onecol.png',
|
||||
'theme' => 'panels_onecol',
|
||||
'css' => 'onecol.css',
|
||||
'regions' => array('middle' => t('Middle column')),
|
||||
);
|
BIN
sites/all/modules/panels/plugins/layouts/onecol/onecol.png
Normal file
BIN
sites/all/modules/panels/plugins/layouts/onecol/onecol.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 B |
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Template for a 3 column panel layout.
|
||||
*
|
||||
* This template provides a very simple "one column" panel display layout.
|
||||
*
|
||||
* Variables:
|
||||
* - $id: An optional CSS id to use for the layout.
|
||||
* - $content: An array of content, each item in the array is keyed to one
|
||||
* panel of the layout. This layout supports the following sections:
|
||||
* $content['middle']: The only panel in the layout.
|
||||
*/
|
||||
?>
|
||||
<div class="panel-display panel-1col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
|
||||
<div class="panel-panel panel-col">
|
||||
<div><?php print $content['middle']; ?></div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user